OpenCV报错 error: (-215) ssize.width > 0 && ssize.height > 0 in function
图像处理入门,在做二值化后轮廓识别时出现报错,使用代码见下。image=cv2.imread(‘pic.png')imgray=cv2.cvtColor(image,cv2.COLOR_BGR2GRAY)blurred=cv2.blur(imgray,(9,9))(_,thresh0)=cv2.threshold(blurred,130,255,cv2.THRESH_BINARY)_,contou