AlexeyAB / darknet

YOLOv4 / Scaled-YOLOv4 / YOLO - Neural Networks for Object Detection (Windows and Linux version of Darknet )
http://pjreddie.com/darknet/
Other
21.65k stars 7.96k forks source link

can not save the mp4 file #1515

Open ccosc opened 6 years ago

ccosc commented 6 years ago

I use the script ../../darknet detector demo ../dataset/voc/voc.data ./test.cfg ./backup/train_41000.weights ../pic/cross_1.mp4 -dont_show 1 -out_filename res.avi

it did not produce the res.avi

I look your code of demo.c,find it has changed so much.

AlexeyAB commented 6 years ago

Use -dont_show instead of -dont_show 1

Also it looks like you run it from other folder, so try to find res.avi in the other folders - near with ./darknet or ../../

ccosc commented 6 years ago

but when I run it ../../darknet detector demo ../dataset/voc/voc.data ./test.cfg ./backup/train_41000.weights ../pic/cross_1.mp4 -dont_show -out_filename res.avi

it shows this:

............. person: 98% car: 100% car: 100% car: 95% car: 84% car: 64% car: 36% car: 33% bicycle: 100% input video stream closed.

It stopped at the beginning.

AlexeyAB commented 6 years ago

@ccosc

ccosc commented 6 years ago

I just download the opencv,and not compile it ..

ccosc commented 6 years ago

use the opencv with script