Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/laserborg/colorcounter
https://github.com/laserborg/colorcounter
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/laserborg/colorcounter
- Owner: LaserBorg
- License: mit
- Created: 2022-05-17T11:19:59.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-08T06:02:05.000Z (over 2 years ago)
- Last Synced: 2024-11-15T19:22:36.889Z (2 months ago)
- Language: Python
- Size: 1.05 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# colorCounter
you would have guessed it: it counts objects of certain colors within an image.
![preview result](doc/colorCounter.jpg)
It creates masks in HSV color space and counts resulting blobs after applying some cleanup operations (dilation/erosion, filtering etc).
currently, color is defined as Hue Value + Range, and min/max values for Saturation and Luminance.Biggest issue so far is intersection of elements because of perspective, as there is no segmentation to differentiate individual instances.
Simple solution will be printing a blank frame around the cards so they don't intersect visually.## Status:
work-in-progress. in the future, it hopefully will
- support A/B-Voting (e.g. red/green)
- plot the result as a pie chart like in [this example](https://datascienceparichay.com/article/plot-pie-chart-matplotlib/)
- maybe even have an interactive UI like [this Example](https://docs.opencv.org/3.4/db/df6/tutorial_erosion_dilatation.html)
- and eventually work with live-video input (webcam / raspberry)