Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 1.73 KB

File metadata and controls

36 lines (26 loc) · 1.73 KB

YOLO Object detection with OpenCV

Requirements

Running Detectors

Image Detector

ex: python yolo.py --image images/baggage_claim.jpg --yolo yolo-coco

Command Shortcut Description Required Default
--image -image path to image True
--yolo -y base path to YOLO directory True
--confidence -c minimum probability to filter weak detections 0.5
--threshold -t threshold when applying non-maxima suppression 0.3

Video Detector (camera)

ex: python yolo_video.py --output output/output.avi --yolo yolo-coco

ex: python yolo_video.py --input 1 --output output/output.avi --yolo yolo-coco

Command Shortcut Description Required Default
--input -input camera id 0
--output -output path to output video True
--yolo -y base path to YOLO directory True
--confidence -c minimum probability to filter weak detections 0.5
--threshold -t threshold when applying non-maxima suppression 0.3