I am tring to detect the plant with the colors of green and purple using opencv color detection. I have done it for the green color, but I am unable to get the exact lower range and upper range of the color green + purple. The values I have used would detect all the colors in the image. Values:
lower_purple = np.array([[80, 10, 10]])
upper_purple = np.array([120, 255, 255])
How can I get the exact hsv range of the values for each color.