Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

imshow misunderstanding ?

$
0
0
"2.bmp" is a valid bitmap file located in the correct folder. So what's wrong with the following code to make it produce the error ... error: ..\..\..\..\opencv\modules\highgui\src\window.cpp:261: error: (-215) size.width>0 && size.height>0 in function cv::imshow --------------------------------------------------------------- import cv2 ifile = cv2.imread("C:\Users\ericnei\My Work\2.bmp") cv2.imshow("Demo",ifile) cv2.waitKey(0) cv2.destroyAllWindows()

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>