Giter VIP home page Giter VIP logo

yolov3-object-detection-with-opencv's Introduction

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. 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
  1. Move to the directory
cd YOLOv3-Object-Detection-with-OpenCV
  1. To infer on an image that is stored on your local machine
python3 yolo.py --image-path='/path/to/image/'
  1. To infer on a video that is stored on your local machine
python3 yolo.py --video-path='/path/to/video/'
  1. 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

yolo_img_infer_1 yolo_img_infer_2 yolo_infer_3 yolo_img_infer_4

Inference on Video

yolov3-video Click on the image to Play the video on YouTube

Inference in Real-time

yolov3-video Click on the image to Play the video on YouTube

References

  1. PyImageSearch YOLOv3 Object Detection with OpenCV Blog

License

The code in this project is distributed under the MIT License.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.