Giter Club home page Giter Club logo

saikapilkumar / real-time-object-detection-with-opencv Goto Github PK

View Code? Open in Web Editor NEW

This project forked from surya-murali/real-time-object-detection-with-opencv

1.0 0.0 1.0 30.91 MB

This project aims to do real-time object detection through a laptop cam using OpenCV. The idea is to loop over each frame of the video stream, detect objects, and bound each detection in a box.

Home Page: https://github.com/Surya-Murali/Real-Time-Object-Detection-With-OpenCV

License: MIT License

Shell 5.23% Python 94.77%

real-time-object-detection-with-opencv's Introduction

Real-Time-Object-Detection-With-OpenCV

Introduction

This project aims to do real-time object detection through a laptop camera or webcam using OpenCV and MobileNetSSD. The idea is to loop over each frame of the video stream, detect objects like person, chair, dog, etc. and bound each detection in a box. Here, we will go through the steps required for setting up the project and some explanation about the code.

Hi!

alt text

How to run this code?

Step 1: Create a directory in your local machine and cd into it

mkdir ~/Desktop/opencv_project
cd ~/Desktop/opencv_project

Step 2: Clone the repository and cd into the folder:

git clone https://github.com/Surya-Murali/Real-Time-Object-Detection-With-OpenCV.git
cd Real-Time-Object-Detection-With-OpenCV

Step 3: Install all the necessary libraries. I used MacOS for this project. These are some of the libraries I had to install:

brew install opencv
pip install opencv-python
pip install opencv-contrib-python
pip install opencv-python-headless
pip install opencv-contrib-python-headless
pip install matplotlib
pip install imutils

Make sure to download and install opencv and and opencv-contrib releases for OpenCV 3.3. This ensures that the deep neural network (dnn) module is installed. You must have OpenCV 3.3 (or newer) to run this code.

Step 4: Make sure you have your video devices connected (e.g. Webcam, FaceTime HD Camera, etc.). You can list them by typing this in your terminal

system_profiler SPCameraDataType
system_profiler SPCameraDataType | grep "^    [^ ]" | sed "s/    //" | sed "s/://"

Step 5: To start your video stream and real-time object detection, run the following command:

python real_time_object_detection.py --prototxt MobileNetSSD_deploy.prototxt.txt --model MobileNetSSD_deploy.caffemodel

Step 6: If you need any help regarding the arguments you pass, try:

python real_time_object_detection.py --help

References and Useful Links

real-time-object-detection-with-opencv's People

Contributors

surya-murali avatar

Stargazers

 avatar

Forkers

nikhilpatil79

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.