初识OpenCV-Python - 004: Trackbar as the color palette
此次学习了如何用OpenCV建立一个色调盘。其中会用到cv2.getTrackbarPos(),cv2.createTrackbar()函数。code:importcv2importnumpyasnpdefnothing(x):pass#Createablackimage,awindowimg=np.zeros((300,512,3),np.uint8)cv2.namedWindow('image