Color name prediction

Given data:

R   G   B   Color
0   0   0   Black
255 255 255 White
255 0   0   Red
0   255 0   Lime
0   0   255 Blue
255 255 0   Yellow
0   255 255 Cyan_Aqua
...

Can we predict the color given an RGB input? For example,

224, 255, 255=light_cyan

The goal is to generate logical names and not random names. For instance, if the data contains "green", a closest match with lighter hue, would be named "light green".

If yes, some pointers would be very helpful.

Topic weka

Category Data Science


I wrote a command-line tool that does exactly that: Cict

Example:

$ ./cict 000081
1   #000080 navyblue

As you can see, you simple pass a 24-bit hex-value to cict and it reports the distance to the color found (1 in this case), the value of the actual color (#000080) and the name (navyblue).

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.