I have an image which has black and another color. How do I check if it is within range and print the color?
I basically want to convert the image to hsv and then place boundaries. If it is within the given boundary it should print the color. For example if it is within the hsv region of red which I define, It should return a boolean value like 1 or 0 to another variable and using "if loops", I should be able to check and print it. How do I go about it and if possible please help me with the code. Thanks in advance.
Sample image :