Ask Your Question

Revision history [back]

error: OpenCV(3.4.1) C:\Miniconda3\conda-bld\opencv-suite_1533128839831\work\modules\highgui\src\window.cpp:356: error: (-215) size.width>0 && size.height>0 in function cv::imshow

i got the above error for this code so please help me to find out the reason. import cv2

import numpy as np

img=cv2.imread("C:/Users/ravik_000/Desktop/photo",1) cv2.imshow('image',img) cv2.waitKey(0) cv2.destroyAllWindows()

error: OpenCV(3.4.1) C:\Miniconda3\conda-bld\opencv-suite_1533128839831\work\modules\highgui\src\window.cpp:356: error: (-215) size.width>0 && size.height>0 in function cv::imshow

i got the above error for this code so please help me to find out the reason. import cv2

import numpy as np

img=cv2.imread("C:/Users/ravik_000/Desktop/photo",1) cv2.imshow('image',img) cv2.waitKey(0) cv2.destroyAllWindows()

error: OpenCV(3.4.1) C:\Miniconda3\conda-bld\opencv-suite_1533128839831\work\modules\highgui\src\window.cpp:356: error: (-215) size.width>0 && size.height>0 in function cv::imshow

i got the above error for this code so please help me to find out the reason. import cv2reason.

 import cv2
#import numpy as np

np img=cv2.imread("C:/Users/ravik_000/Desktop/photo",1) cv2.imshow('image',img) cv2.waitKey(0) cv2.destroyAllWindows()

cv2.destroyAllWindows()