creotiv / object_detection_projects

My public projects about object detection algorithms
346 stars 225 forks source link

StopIteration exception end of video file and Make video does not output video #15

Open Sweta-codes opened 5 years ago

Sweta-codes commented 5 years ago

After the traffic_capacity.py reaches the end of the 'input.mp4' video file, it throws a StopIteration exception as follows:

Traceback (most recent call last): File "traffic_capacity.py", line 72, in main() File "traffic_capacity.py", line 61, in main cap.next() StopIteration

Also the make_video.sh file is not creating an output video for traffic capacity example.

creotiv commented 5 years ago

fixed traffic_capacity.py by adding try catch. make_video.sh depends on ffmpeg converter which you must have installed

Kindly yours, Andrey Nikishaev

Areas ML/DS/CV/Soft Dev/BizDev/Growth Hacking/Customer Rel/IT LinkedIn http://ua.linkedin.com/in/creotiv GitHub http://github.com/creotiv Slideshare https://www.slideshare.net/anikishaev/ Skype creotiv.in.ua Mobile +380632410666

On Mon, Feb 11, 2019 at 6:25 AM Sweta notifications@github.com wrote:

After the traffic_capacity.py reaches the end of the 'input.mp4' video file, it throws a StopIteration exception as follows:

Traceback (most recent call last): File "traffic_capacity.py", line 72, in main() File "traffic_capacity.py", line 61, in main cap.next() StopIteration

Also the make_video.sh file is not creating an output video for traffic capacity example.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/creotiv/object_detection_projects/issues/15, or mute the thread https://github.com/notifications/unsubscribe-auth/AAPRDeOsQcLkExpyGNgeiXTwIvs_CBgdks5vMPDWgaJpZM4azgXs .

Sweta-codes commented 5 years ago

I have cloned the repository with your latest commit with a try-catch block, I'm still getting the StopIteration exception.

Also, I do have ffmpeg installed and the make_video.sh script is running perfectly fine with the traffic counting project, just not with traffic capacity.

Sweta-codes commented 5 years ago

Trying to run make_video.sh gives the following exception:

Could find no file with path './out/processed%04d.png' and index in the range 0-4 ./out/processed%04d.png: No such file or directory

harshsp31 commented 5 years ago

@Sweta-codes @creotiv I face the same error with make_video.sh Did you guys find any solution?