Open sunjianbo-123 opened 3 years ago
i have the same issue @sunjianbo-123 Did you find a solution for this?
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?
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?