有没有办法从对象获取HSV值?

时间:2019-04-21 22:40:34

标签: python opencv image-processing computer-vision hsv

是否可以获取要分离的颜色的HSV范围/值?

我想通过创建需要4值的掩码来检测HSV

enter image description here

数字4为蓝色,我尝试了以下操作:

lower_blue = np.array([110,50,50]) 
upper_blue = np.array([130,255,255])
image_blue = cv2.inRange(img, lower_blue, upper_blue)

使用上面的面具时,我得到的只是一张黑色图像。我可以通过某种方式知道HSV的值吗?

0 个答案:

没有答案
相关问题