# YOLOv3-Object-Detection-with-OpenCV
**Repository Path**: chenhai_hai_2020/YOLOv3-Object-Detection-with-OpenCV
## Basic Information
- **Project Name**: YOLOv3-Object-Detection-with-OpenCV
- **Description**: This project implements a real-time image and video object detection classifier using pretrained yolov3 models.
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 1
- **Created**: 2020-09-19
- **Last Updated**: 2022-04-06
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# YOLOv3-Object-Detection-with-OpenCV
This project implements an image and video object detection classifier using pretrained yolov3 models.
The yolov3 models are taken from the official yolov3 paper which was released in 2018. The yolov3 implementation is from [darknet](https://github.com/pjreddie/darknet). Also, this project implements an option to perform classification real-time using the webcam.
## How to use?
1) Clone the repository
```
git clone https://github.com/iArunava/YOLOv3-Object-Detection-with-OpenCV.git
```
2) Move to the directory
```
cd YOLOv3-Object-Detection-with-OpenCV
```
3) To infer on an image that is stored on your local machine
```
python3 yolo.py --image-path='/path/to/image/'
```
4) To infer on a video that is stored on your local machine
```
python3 yolo.py --video-path='/path/to/video/'
```
5) To infer real-time on webcam
```
python3 yolo.py
```
Note: This works considering you have the `weights` and `config` files at the yolov3-coco directory.
If the files are located somewhere else then mention the path while calling the `yolov3.py`. For more details
```
yolo.py --help
```
## Inference on images




## Inference on Video
[](https://www.youtube.com/watch?v=AzmCYs5fAn0)
Click on the image to Play the video on YouTube
## Inference in Real-time
[](https://youtu.be/QaxEtpRwmtI)
Click on the image to Play the video on YouTube
## References
1) [PyImageSearch YOLOv3 Object Detection with OpenCV Blog](https://www.pyimagesearch.com/2018/11/12/yolo-object-detection-with-opencv/)
## License
The code in this project is distributed under the MIT License.