多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
1 用python+opencv运行如下代码会报错 import cv2 im = cv2.imread("e:/img/1.jpg") imGray = cv2.imread('e:/img/1.jpg',cv2.CV_LOAD_IMAGE_GRAYSCALE) cv2.imshow("WinName",im) cv2.imshow("Gray WinName",imGray) cv2.waitKey() 解决方法:将CV_LOAD_IMAGE_GRAYSCALE替换成IMREAD_GRAYSCALE 2