Loading repository data…
Loading repository data…
ukalwa / repository
A simple color blob detector to identify track color blobs in my favourite game using OpenCV 3.1 and Python
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
Color Blob detection
A simple color blob detector using OpenCV 3.1 and Python.
This application tracks the color identified by specific HSV ranges, displays the blob count in that frame and draws bounding boxes across all detected blobs. By default, the code is programmed to identify red, but it can be changed in the "Object Color identification" window with H,S,V trackbars presented to the user.
Environment Setup
OpenCV 3.1.0 <http://opencv.org/downloads.html>_Python 2.7 <https://www.python.org/downloads/>_numpy <https://www.scipy.org/scipylib/download.html>_ and matplotlib <https://matplotlib.org/>_Run python src/run_color_tracking.py
The code performs these following steps:
Basically the functions get_color_of_object handles the color selection and detect_object applies necessary image processing techniques to identify the blobs and draw the bounding boxes
.. image:: Images/color_identifier.PNG
.. image:: Images/color_tracking_in_game.PNG
This code is GNU GENERAL PUBLIC LICENSED.
If you have any suggestions or identified bugs please feel free to post them!