bikz05 / digit-recognition

Handwritten Digit Recognition using OpenCV, sklearn and Python
131 stars 90 forks source link

performRecognition.py erro #10

Closed xandyxor closed 6 years ago

xandyxor commented 6 years ago

hi i change jpg to png file and then an error occurred

C:\Users\Andy\Downloads\digit-recognition-master\digit-recognition-master>python performRecognition.py -c digits_cls3.pkl -i test.png OpenCV Error: Assertion failed (ssize.width > 0 && ssize.height > 0) in cv::resize, file D:\Build\OpenCV\opencv-3.2.0\modules\imgproc\src\imgwarp.cpp, line 3492 Traceback (most recent call last): File "performRecognition.py", line 46, in roi = cv2.resize(roi, (28, 28), interpolation=cv2.INTER_AREA) cv2.error: D:\Build\OpenCV\opencv-3.2.0\modules\imgproc\src\imgwarp.cpp:3492: error: (-215) ssize.width > 0 && ssize.height > 0 in function cv::resize