OpenCV dnn module supports running inference on pre-trained deep learning models from popular frameworks like YOLO, TensorFlow, etc.
This project implements image Object detection, video Object detection and Real Time video Object detection through webcam using YOLO (You Only Look Once) algorithm.
For this project pretrained YOLOv3 models was used. The YOLOv3 implementation is from darknet.
Pre-built CPU-only OpenCV packages for Python.
NumPy can be used as an efficient multi-dimensional container of generic data. Arbitrary data-types can be defined
The argparse module makes it easy to write user friendly command line interfaces.
I've used YOLO v3 for coding purpose in this repository.
YOLO (You Only Look Once) is a very powerful and a fast algorithm in object detection. A strong understanding of the algorithm is essential before we start to code.
Before getting started, Make sure you have numpy and opencv installed. If not install them using pip.
pip install numpy
pip install opencv-python
git clone https://github.com/anotherwebguy/Object-Detection-Yolo.git
cd Object-Detection-Yolo
3. Download the pretrained weights yolov3.weights
4. Place the yolov3.weights in the yolo-coco directory
python main.py --image-path 'path/to/image/'
python main.py --video-path 'path/to/video/'
python main.py