walton-wang929 / Color_Recognition

color recognition methods(kmeans and hsv)

Home Page:http://walton-wang.com/Color_Recognition/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Color Recognition

This repo contains Kmeans and HSV pixel range Color Recognition methods.

Kmeans

to cluster domianant color of a given box, input is box coordinate(x,y,w,h), return is color name

Advantage: accurate

Disadvantage: Time-consuming

Reference: K-Means Clustering in OpenCV

HSV pixel range

set up a HSV color look up table first. then compare each pixel of roi image with the look up table, then the largest distribution of color is the dominant.

demo

color Recognition

reference

1.node-colour-extractor: Extract colour palettes from images

2.Color Thief: Grabs the dominant color or a representative color palette from an image.

3.Color Extractor:a library and a CLI tool to extract the dominant colors of the main object of an image

4.How We Tackled Color Identification?--a blog

5.Image Background Removal

6.Opencv: Interactive Foreground Extraction using GrabCut Algorithm

About

color recognition methods(kmeans and hsv)

http://walton-wang.com/Color_Recognition/


Languages

Language:Python 100.0%