darknet icon indicating copy to clipboard operation
darknet copied to clipboard

Cannot output video from webcam real time

Open jasonchanhku opened this issue 2 years ago • 0 comments

I am trying to output a detected video from a webcam stream after stopping the stream. Upon running the command line:

darknet.exe detector demo data\coco.data yolov3.cfg weights\yolov3.weights -c 0 -out_filename testing.avi

Everything runs fine and the webcam is able to turn on and show real time detections. However, after I hit the ESC key, the stream closes and just gets stuck here:

image

The testing.avi output file remains at 0kb. Would this be because I did not stop the webcam stream properly (maybe I should not have pressed the ESC key?).

Happy to hear if anyone has a workaround for this. Thanks !

jasonchanhku avatar Jul 29 '22 14:07 jasonchanhku