how i solve this error

asked 2018-01-13 16:22:48 -0500

updated 2019-02-12 14:57:34 -0500

LBerger gravatar image

Traceback (most recent call last): File "C:/Users/prajj/AppData/Local/Programs/Python/Python36-32/", line 6, in <module> cv2.imshow('image',img) cv2.error: C:\projects\opencv-python\opencv\modules\highgui\src\window.cpp:331: error: (-215) size.width>0 && size.height>0 in function cv::imshow

edit retag flag offensive close merge delete


Without code I try cartomancy : you read an image from disk with a wrong path and you don't check that image is not empty.

LBerger gravatar imageLBerger ( 2018-01-13 23:03:00 -0500 )edit

There is no data in image. @LBerger is correct.

ak1 gravatar imageak1 ( 2018-01-16 04:08:29 -0500 )edit