I need to parse the image on all available colors. I want to use function - " inRange " to get the coordinates arrays each of the colors. And then by the length of the array to determine which color ranges are present or not. The main point that I do not know how to do - is to define a range of colors. that is, the maximum and minimum color values. The greater the range the more accurate the result. But anycase, there should be no more than 20.