Execute in webcam:html
$ example_dnn_object_detection
--config
=[PATH
-TO
-DARKNET]
/cfg
/yolo.cfg
--model
=[PATH
-TO
-DARKNET]
/yolo.weights
--classes
=object_detection_classes_pascal_voc.txt
--width
=
416
--height
=
416
--scale
=
0.
00392
--rgb
Execute with image or video file:git
$ example_dnn_object_detection
--config
=[PATH
-TO
-DARKNET]
/cfg
/yolo.cfg
--model
=[PATH
-TO
-DARKNET]
/yolo.weights
--classes
=object_detection_classes_pascal_voc.txt
--width
=
416
--height
=
416
--scale
=
0.
00392
--input
=[PATH
-TO
-IMAGE
-OR
-VIDEO
-FILE]
--rgb
--config=e:/template/yolov3.cfg --model=e:/template/yolov3.weights --classes=e:/template/object_detection_classes_pascal_voc.txt --width=416 --height=416 --scale=0.00392 --input=e:/template/bike.avi --rgb
wget https
:
//pjreddie.com/media/files/yolov3.weights
wget https
:
//github.com/pjreddie/darknet/blob/master/cfg/yolov3.cfg?raw=true -O ./yolov3.cfg
wget https
:
//github.com/pjreddie/darknet/blob/master/data/coco.names?raw=true -O ./coco.names