python 识图点击_opencv+python实现鼠标点击图像,输出该点的RGB和HSV值
我就废话不多说了,大家还是直接看代码吧!import cv2# 读取图片并缩放方便显示img = cv2.imread('D:/6.jpg')height, width = img.shape[:2]size = (int(width * 0.2), int(height * 0.2))# 缩放img = cv2.resize(img, size, interpolation=cv2.INTER_...