I'm trying to work out how to go about creating an on-the-fly simplification of incoming RGB values.
I'm trying to write an android app that utilizes a live camera view and sample colors. I've worked out how to detect and save individual color values, but my aim is to simplify these incoming values using clear ranges.
Example: When we detect Firebrick Red 178,34,34 it would recognize that value within a predefined range defined as Red and will be converted to a simple 255,0,0 upon saving the color.
The app is being put together in unity. If anyone has read a guide that goes over the process that would be ideal, so I can learn what is going on and how it is achieved. I'm stumped.
Thanks in advance for any help.