Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 1.26 KB

README.md

File metadata and controls

38 lines (30 loc) · 1.26 KB

YOLO-Object-Dectection

Object detection using YOLO Algorithm

STEPS TO RUN:

  1. Make sure all the needed softwares - Python 3, openCV , numpy etc are installed.
  2. Clone the repository.
    Folder content :
    a. yolo-coco -- Yolo COCO pretrained model
    b. yolo.py -- For detection in images
    c. yolo_video.py -- For detection in videos
    d. yolo_live.py -- For live detection using webcam
  3. Download pretrained YOLO model trained with COCO dataset from here.

Commands to be used to run the code(assuming default values for a few other arguments)

For detection in image:

python yolo.py -i imageName.jpeg -y yolo-coco

For detection in video:

python yolo_video.py -i videoName.mp4 -y yolo-coco

For live detection:

python yolo_video.py -y yolo-coco

Explanation of the arguments:

Required arguments

-i
Denotes the source image/video path
-y
To provide the path to Yolo COCO model

Optional arguments

-c
Minimum value to discard weak detection
Default value : 0.5
-t
Threshold value for non max suppression
Default value : 0.3