Pranshu Varshney 10th Aug 2020
- yolo.py and yolo_video.py - Python code to run YOLO model to produce object detection output in image and video respectovely.
- images: Contains images to be tested
- output: Contains the output for both image and videos
- videos: Contains videos to be tested. Folder is empty add your videos to test
- yolo-coco: Contains YOLO models weights and configuration used for prediction.Add yolo weights in this folder from Yolo weights
To run object detection in image run the below command:
python yolo.py --image images/dining.jpg --yolo yolo-coco
Note: The commands take dining image from image folder as input. YOLO model config files from yolo folder
To run object detection in video run the below command:
python yolo_video.py --input videos/traffic.mov --output output/traffic.mov --yolo yolo-coco
Note: The commands take traffic video from video folder as input and the output video is saved in the output folder with name traffic.mov with csv file contianing what object was detected.
Ref:https://www.pyimagesearch.com/2018/11/12/yolo-object-detection-with-opencv/