错误:OpenCV(3.4.1) Error: Assertion failed (scn == 3 || scn == 4) in cv::cvtColor, file D:\Build\OpenCV\opencv-3.4.1\modules\imgproc\src\color.cpp, line 11147
Traceback (most recent call last):
Traceback (most recent call last):
cv2.error: OpenCV(3.4.1) D:\Build\OpenCV\opencv-3.4.1\modules\imgproc\src\color.cpp:11147: error: (-215) scn == 3 || scn == 4 in function cv::cvtColor
关于这个错误
img = cv2.imread('images/chess_board.jpg')
img = cv2.imread('chess_board.jpg')
这下好了