what is the solution to this error

asked 2017-05-02 11:20:25 -0500

razu gravatar image

updated 2017-05-02 13:01:46 -0500

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

edit retag flag offensive close merge delete

Comments

3

Looks like your image is empty. Check the image path if you use imread().

Eduardo gravatar imageEduardo ( 2017-05-02 12:50:12 -0500 )edit

The solutions is to check is image empty or not before try to show it.

pi-null-mezon gravatar imagepi-null-mezon ( 2017-05-03 09:07:13 -0500 )edit