Detection Using A Pre-Trained Model
首先下载依赖包
git clone https://github.com/pjreddie/darknet
cd darknet
make
it's easy
接下来需要下载pre-trained文件 237M run:
wget https://pjreddie.com/media/files/yolov3.weights
然后运行代码:
./darknet detect cfg/yolov3.cfg yolov3.weights data/dog.jpg
你将会看到:
./darknet detector test cfg/coco.data cfg/yolov3.cfg yolov3.weights data/dog.jpg
每次识别data中的图片后图片都会刷新在darknet