Skip to content
Advertisement

Color values for opencv detection

JavaScript

This is a basic Detection of a specific color script in python taken from here. I am trying to work with “#34659F” color. I checked the above values, and they dont correspond to blue region. I check both the uppler and lower values and found that they dont correspond to blue values. I tried to select the upper and lower bound for “#34659F” from here but I am unable to get anything back.

So, I was wondering how those values are selected for any given color.

Advertisement

Answer

These are the values you are looking for.

lower_blue = np.array([60, 0, 0]) upper_blue = np.array([255, 206, 153])

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement