https://github.com/matt-atadata/stunning-color
Dominant color extraction and colorspace mapping
https://github.com/matt-atadata/stunning-color
color-picker machinevision opencv python3 visionprocessing
Last synced: 6 months ago
JSON representation
Dominant color extraction and colorspace mapping
- Host: GitHub
- URL: https://github.com/matt-atadata/stunning-color
- Owner: matt-atadata
- License: mit
- Created: 2018-09-04T21:19:24.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-11T22:35:30.000Z (over 7 years ago)
- Last Synced: 2025-01-26T05:16:15.938Z (over 1 year ago)
- Topics: color-picker, machinevision, opencv, python3, visionprocessing
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# stunning-color
Dominant color extraction and colorspace mapping
Demo of a dominant color extractor. Think of this as the automatic process your eyes do to figure out what color an object is. We say that object is red or blue. A computer executes this by looking for the largest grouping of a single color in an object.
This code is a collection of background extractors and a disabled skin detector that returns a dominant color for the input image and then maps that color to a static list of color supplied beforehand for naming.
Execute with to see examble on detecting color of a blue leather jacket:
$ python mapmycolordetector.py https://d3ecedzw1mv51p.cloudfront.net/2017/10/Ladies-Leather-Biker-Jacket-Blue-Sue.jpg
Code will save off 4 intermediate images to show each phase of the background extraction and final evaluated image without a background for reference.
Requirements:
Code is all python3 and organized sequentially for easy of interpretibility.
Libraries used are:
io, sys, csv, math
numpy, scipy, urllib, cv2, skimage, PIL.
(I used Conda to have consistant package paths to python3).