2020
10-05
10-05
Python-opencv实现红绿两色识别操作
1.颜色空间转换(RGB转HSV)为了较准确的调红色和绿色的HSV,我使用cv2.createTrackbar()函数创建了六个滚动条#创建HSV最低滚动条cv2.createTrackbar('H_min','image',35,180,nothing)cv2.createTrackbar('S_min','image',43,255,nothing)cv2.createTrackbar('V_min','image',46,255,nothing)#创建HSV最高滚动条cv2.createTrackbar('H_max','image',0,180,nothing)cv2.createTrackbar('S_max','image',255,255,nothing)cv2.create...
继续阅读 >