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

Problem in loading the image..

$
0
0
import numpy as np import cv2 img = cv2.imread("mud.jpeg",cv2.IMREAD_COLOR) cv2.imshow("bhatnagar",img) cv2.waitKey(5) This is the error I am getting: I have even tried by giving the path of the image which could also be done if in case the file is not in the working directory. OpenCV Error: Assertion failed (size.width>0 && size.height>0) in cv::imshow, file C:\projects\opencv-python\opencv\modules\highgui\src\window.cpp, line 325 cv2.imshow("bhatnagar",img) cv2.error: C:\projects\opencv-python\opencv\modules\highgui\src\window.cpp:325: error: (-215) size.width>0 && size.height>0 in function cv::imshow

Viewing all articles
Browse latest Browse all 2088

Trending Articles