A real-time object recognition application using Google's TensorFlow Object Detection API and OpenCV.
conda env create -f environment.yml
python object_detection_app.py
Optional arguments (default value):- Device index of the camera
--source=0
- Width of the frames in the video stream
--width = 1024
- Height of the frames in the video stream
--height = 720
- Number of workers
--num-workers = 1
- Size of the queue
--queue-size = 50
- Device index of the camera
pytest -vs utils/
- 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.
- 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.
See LICENSE for details. Copyright (c) 2018