Open Gavin666Github opened 4 years ago
You can use the center point of the bottom side of the bounding box to represent the trajectory. Then you can keep all the trajectories in all frames and draw them.
@ifzhang I found tracking_utils/visualization.py has a function called plot_trajectory , I try to use like below:
online_ids_vi = vis.plot_trajectory(img0,online_tlwhs,online_targets);
But report error,:
File "/home/sd/object_detection/objection_track/FairMOT/src/lib/tracking_utils/visualization.py", line 62, in plot_trajectory x1, y1, w, h = tuple(map(int, tlwh)) TypeError: 'numpy.float64' object is not iterable
Pls give some advice. Thx
hello,I want to draw everyone's trajectory instead of the bounding box. What should I do?Thx