AhmadYahya97 / Fully-Automated-red-light-Violation-Detection

Detecting and Tracking the violating cars using yolov3 model and various image processing techniques.
34 stars 24 forks source link

TypeError: cannot unpack non-iterable NoneType object #7

Open sunjianbo-123 opened 3 years ago

sunjianbo-123 commented 3 years ago

Hello,

While trying to run the project through below command:

python /home/sunjianbo/PycharmProjects/pycharm/Fully-Automated-red-light-Violation-Detection/yolo_video_new.py -i /home/sunjianbo/PycharmProjects/pycarm/Fully-Automated-red-light-Violation-Detection/videos/aziz1.MP4 -o /home/sunjianbo/PycharmProjects/pycharm/Fully-Automated-red-light-Violation-Detection/videos/test.avi -y /home/sunjianbo/PycharmProjects/pycharm/Fully-Automated-red-light-Violation-Detection/yolo-coco/

The program crashes with below error

[INFO] loading YOLO from disk... [INFO] 0 total frames in video Traceback (most recent call last): File "/home/sunjianbo/PycharmProjects/pycharm/Fully-Automated-red-light-Violation-Detection/yolo_video_new.py", line 223, in xlight,ylight,wlight,hlight = setLightCoordinates() TypeError: cannot unpack non-iterable NoneType object

what should i do?

Husnain08 commented 3 years ago

i have the same issue @sunjianbo-123 Did you find a solution for this?

drkrillo commented 1 year ago

maybe it has been a long time since this issue but: yoou have " [INFO] 0 total frames in video " you don't have frames to analyze. could you solve theproblem, btw?