feature: trackerer wont overwrite existing key-points

This commit is contained in:
q
2025-08-20 10:27:07 +03:00
parent 2a08b187c6
commit a0f17d034d
2 changed files with 4 additions and 2 deletions

View File

@@ -2,7 +2,7 @@ import argparse
from tsmark.video_annotator import Marker
VERSION = "0.7.7"
VERSION = "0.7.8"
class SmartFormatter(argparse.HelpFormatter):

View File

@@ -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: