Save the detected object images in a Yolo detection
make sure you have installed visual studio 2015 and configuration opencv ( I use opencv3.2.0 and worked)
download the zip file and unzip it.
download the weights from https://pjreddie.com/media/files/yolov2.weights
put it into ...\build\darknet\x64\
in your...\build\darknet
you will find a lot of sln files.
choose the "darknet_no_gpu.sln" open it with visual studio 2015
check attributes for opencv
debug or F5
in ...\build\darknet\x64\
open in powershell->cmd->darknet_no_gpu.exe detector test data/coco.data cfg/yolo.cfg yolov2.weights -i 0 -thresh 0.25 dog.jpg
it worked!