Run the getModels.sh file from command line to download the needed model files
sudo chmod a+x getModels.sh
./getModels.sh
Command line usage for object detection using YOLOv3
-
Python
-
A single image:
python3 object_detection_yolo.py --image=bird.jpg
-
A video file:
python3 object_detection_yolo.py --video=run.mp4
-
-
C++:
-
A single image:
./object_detection_yolo.out --image=bird.jpg
-
A video file:
./object_detection_yolo.out --video=run.mp4
-
g++ -ggdb pkg-config --cflags --libs /usr/local/Cellar/opencv3/3.4.2/lib/pkgconfig/opencv.pc object_detection_yolo.cpp -o object_detection_yolo.out