This commit is contained in:
王庆刚
2024-12-17 17:32:09 +08:00
parent afd033b965
commit 39f94c7bd4
11 changed files with 768 additions and 250 deletions

View File

@ -364,7 +364,10 @@ def drawTrack(tracks, img):
annotator = TrackAnnotator(img, line_width=2)
for track in tracks:
annotator.plotting_track(track.boxes)
if isinstance(track, np.ndarray):
annotator.plotting_track(track)
else:
annotator.plotting_track(track.boxes)
img = annotator.result()
# pth = save_dir.joinpath(f"{filename}")