20241217
This commit is contained in:
@ -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}")
|
||||
|
Reference in New Issue
Block a user