how i solve this error
Traceback (most recent call last): File "C:/Users/prajj/AppData/Local/Programs/Python/Python36-32/img1.py", 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
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.
There is no data in image. @LBerger is correct.