Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/datitran/object_detector_app
Real-Time Object Recognition App with Tensorflow and OpenCV
https://github.com/datitran/object_detector_app
opencv tensorflow
Last synced: 3 days ago
JSON representation
Real-Time Object Recognition App with Tensorflow and OpenCV
- Host: GitHub
- URL: https://github.com/datitran/object_detector_app
- Owner: datitran
- License: mit
- Created: 2017-06-19T13:58:50.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-05T06:52:31.000Z (almost 6 years ago)
- Last Synced: 2024-10-30T01:36:40.295Z (3 months ago)
- Topics: opencv, tensorflow
- Language: Python
- Homepage: https://medium.com/towards-data-science/building-a-real-time-object-recognition-app-with-tensorflow-and-opencv-b7a2b4ebdc32
- Size: 27 MB
- Stars: 1,296
- Watchers: 93
- Forks: 745
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Object-Detector-App
A real-time object recognition application using [Google's TensorFlow Object Detection API](https://github.com/tensorflow/models/tree/master/research/object_detection) and [OpenCV](http://opencv.org/).
## Getting Started
1. `conda env create -f environment.yml`
2. `python object_detection_app.py` / `python object_detection_multithreading.py`
Optional arguments (default value):
* Device index of the camera `--source=0`
* Width of the frames in the video stream `--width=480`
* Height of the frames in the video stream `--height=360`
* Number of workers `--num-workers=2`
* Size of the queue `--queue-size=5`
* Get video from HLS stream rather than webcam '--stream-input=http://somertmpserver.com/hls/live.m3u8'
* Send stream to livestreaming server '--stream-output=--stream=http://somertmpserver.com/hls/live.m3u8'## Tests
```
pytest -vs utils/
```## Requirements
- [Anaconda / Python 3.5](https://www.continuum.io/downloads)
- [TensorFlow 1.2](https://www.tensorflow.org/)
- [OpenCV 3.0](http://opencv.org/)## Notes
- OpenCV 3.1 might crash on OSX after a while, so that's why I had to switch to version 3.0. See open issue and solution [here](https://github.com/opencv/opencv/issues/5874).
- Moving the `.read()` part of the video stream in a multiple child processes did not work. However, it was possible to move it to a separate thread.## Copyright
See [LICENSE](LICENSE) for details.
Copyright (c) 2017 [Dat Tran](http://www.dat-tran.com/).