feature: trackerer wont overwrite existing key-points
This commit is contained in:
@@ -2,7 +2,7 @@ import argparse
|
||||
|
||||
from tsmark.video_annotator import Marker
|
||||
|
||||
VERSION = "0.7.7"
|
||||
VERSION = "0.7.8"
|
||||
|
||||
|
||||
class SmartFormatter(argparse.HelpFormatter):
|
||||
|
||||
@@ -1420,9 +1420,11 @@ class TrackerGUI:
|
||||
break
|
||||
|
||||
ok, bbox = tracker.update(frame)
|
||||
# ~ print(f"Tracking... ({i}/{max_frames})")
|
||||
if ok:
|
||||
# Tracking success
|
||||
if self.marker.nr + i + 1 in self.marker.points[self.marker.point_index]:
|
||||
point = self.marker.get_point(nr=self.marker.nr + i + 1)
|
||||
bbox = tuple([point["x0"], point["y0"], point["w"], point["h"]])
|
||||
tracked[i + 1] = [*bbox, 1]
|
||||
show_message = f"Tracking... ({i}/{max_frames})"
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user