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