我想使用opencv-python使用ctvColor将图像转换为灰度 像这样:
picture = cv2.cvtColor(picture, cv2.COLOR_RGB2GRAY)
这是我一直都犯的错误:
Traceback (most recent call last):
File "c:/Users/hp/Desktop/cam/m.py", line 7, in <module>
picture = cv2.cvtColor(picture, cv2.COLOR_RGB2GRAY)
TypeError: Expected Ptr<cv::UMat> for argument '%s'