what is the solution to this error
Traceback (most recent call last): File "C:\dfsdf.py", line 13, in <module> cv2.imshow("input", img) error: ......\opencv-2.4.13.2\modules\highgui\src\window.cpp:269: error: (-215) size.width>0 && size.height>0 in function cv::imshow
Looks like your image is empty. Check the image path if you use
imread()
.The solutions is to check is image empty or not before try to show it.