fixed track param

This commit is contained in:
2024-07-06 10:28:00 +02:00
parent 99d624a06a
commit bf4ae3b854
+4 -3
View File
@@ -100,8 +100,8 @@ class Corner:
class CornerTracker:
def __init__(self, do_track, color=(0, 255, 0), name: str = 'CornerTracker'):
self.do_track = do_track
def __init__(self, _do_track, color=(0, 255, 0), name: str = 'CornerTracker'):
self.do_track = _do_track
self.color = color
self.name = name
self.matching_tpl_bb = None
@@ -330,7 +330,8 @@ if __name__ == '__main__':
if args.scale is not None:
scale = np.float32(args.scale)
do_track = args.track is not None
# Parse track
do_track = args.track
# Let's go
colors = [(255, 0, 0), (0, 255, 0), (0, 0, 255), (255, 0, 255), (0, 255, 255), (255, 255, 255)]