detecto icon indicating copy to clipboard operation
detecto copied to clipboard

Empty output file on "detect_video" function

Open alexandoikon13 opened this issue 4 years ago • 3 comments

When running the "detect_video" function as given in the tutorial, I define the input and output file but the latter is empty.

alexandoikon13 avatar Aug 05 '21 12:08 alexandoikon13

Would you be able to share the code that causes this issue? So is the output file missing completely or generated but has no frames?

alankbi avatar Aug 06 '21 02:08 alankbi

The code I use is the following: visualize.detect_video(model, './videos/video1.mp4', './videos/output1.avi', score_filter=0.8) It outputs an empty file.

alexandoikon13 avatar Aug 06 '21 08:08 alexandoikon13

Could you check to make sure all the paths to files are correct? If a file is being written but is empty, then that probably means there's an issue when it comes to reading in the original video file.

alankbi avatar Aug 10 '21 23:08 alankbi