darknet
darknet copied to clipboard
Fix darknet_video.py to so it's not off by 1 frame
The issue:
Previously the output videofile had detections off by 1 frame from the video.
The reason:
The darknet_image
is overwritten in video_capture
every time it's being created because it sits in the same memory so effectively the darknet_image_queue
is not working properly
Changes:
-
darknet_image
is created in every iteration ofvideo_capture
so every newdarknet_image
sits in different memory - remove limitations on
max_size
of the queue. I believe the limitations were put there to avoid the issue above, but it only made it so the result was off by one frame. Now that that's not an issue there is no reason to havemax_size
for any of the queques