https://github.com/jalajthanaki/real_time_object_detection
This repository contains the code for real-time object detection. I'm using video stream coming from webcam. MobileNet-SSD and OpenCv has been used as base-line approach. TensorFlow object detection API has been used in revised approach.
https://github.com/jalajthanaki/real_time_object_detection
computer-vision deep-learning objectdetection opencv real-time-object-detection
Last synced: 12 months ago
JSON representation
This repository contains the code for real-time object detection. I'm using video stream coming from webcam. MobileNet-SSD and OpenCv has been used as base-line approach. TensorFlow object detection API has been used in revised approach.
- Host: GitHub
- URL: https://github.com/jalajthanaki/real_time_object_detection
- Owner: jalajthanaki
- Created: 2018-01-05T07:14:11.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-27T11:22:45.000Z (about 8 years ago)
- Last Synced: 2025-03-23T18:54:20.750Z (about 1 year ago)
- Topics: computer-vision, deep-learning, objectdetection, opencv, real-time-object-detection
- Language: Python
- Homepage:
- Size: 46.7 MB
- Stars: 10
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Real time object detection
## Overview
This repository contains the code for real time object detection.
There is two approach given here.
1. Base line or basic approach
2. revised approach
## Dependencies and installation
For base line approach there are following libraries which are needed.
* imutils: `$ sudo pip install imutils`
* Install computervision or CV2 from [here](https://www.pyimagesearch.com/2015/06/22/install-opencv-3-0-and-python-2-7-on-ubuntu/)
* time - default library of python
* numpy - `$ sudo pip install numpy`
For revised approach there are following libraries which are needed.
* os - default library of python
* Install computervision or CV2 from [here](https://www.pyimagesearch.com/2015/06/22/install-opencv-3-0-and-python-2-7-on-ubuntu/)
* time - default library of python
* argparse - default library of python
* multiprocessing - default library of python
* numpy `$ sudo pip install numpy`
* tensorflow - You can refer [this link](https://www.tensorflow.org/install/install_linux)
## Usage
#### Run base line approach using following execution steps.
```
1. Go to the base_line_model folder.
$ cd ./base_line_model
2. To run the script execute following command.
$ python object_detection_app.py
```
#### Run revised approach using following execution steps.
```
1. Go to the revised_approach folder.
$ cd ./revised_approach
2. To run the script execute following command.
$ python real_time_object_detection.py --prototxt MobileNetSSD_deploy.prototxt.txt --model MobileNetSSD_deploy.caffemodel
```
## Credit
The credit of this code goes to [Dat Tran](https://github.com/datitran) and the blogs provided on [Pyimagesearch site](https://www.pyimagesearch.com/). I've merely created a wrapper to get people started.