tensorturtle / classy-sort-yolov5

Ready-to-use realtime multi-object tracker that works for any object category. YOLOv5 + SORT implementation.
GNU General Public License v3.0
110 stars 29 forks source link

Troubleshooting dataset.mode typo bug when saving_img #19

Closed YoungjaeDev closed 1 year ago

YoungjaeDev commented 1 year ago

When executing the command below.

python classy_track.py --source <IMG_PATH> --save-img

Get below error...

Traceback (most recent call last):
  File "classy_track.py", line 306, in <module>
    detect(args)
  File "classy_track.py", line 247, in detect
    fps = vid_cap.get(cv2.CAP_PROP_FPS)
AttributeError: 'NoneType' object has no attribute 'get'
tensorturtle commented 1 year ago

@youngjae-avikus Thank you very much for this PR