theAIGuysCode / yolov4-deepsort

Object tracking implemented with YOLOv4, DeepSort, and TensorFlow.
GNU General Public License v3.0
1.32k stars 751 forks source link

Why need to draw 2 rectangle? #19

Closed ilu3000 closed 3 years ago

ilu3000 commented 3 years ago

I don't understand with the code under "draw bbox on screen". Why do we need to draw two rectangle? What's the function on the second draw?

pinczakko commented 3 years ago

There are 2 rectangles for each detected object. The first one enclosed the detected object and the second one is used for the "caption" for the object (containing the object id number and its class). Anyway, I have refactored the object tracker so that it's easier to understand https://github.com/pinczakko/yolov4-deepsort/blob/master/object_tracker.py

ilu3000 commented 3 years ago

Thank you so much for your reply