Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV(3.4.2) C:\projects\opencv-python\opencv\modules\highgui\src\window.cpp:356: error: (-215:Assertion failed) size.width>0 && size.height>0 in function 'cv::imshow

OpenCV(3.4.2) C:\projects\opencv-python\opencv\modules\highgui\src\window.cpp:356: error: (-215:Assertion failed) size.width>0 && size.height>0 in function 'cv::imshow

Please resolve this issue import numpy as np import matplotlib.pyplot as plt import cv2 im1 = cv2.imread('C://Test-C//33319//33319_2ms.jpg'); cv2.imshow('image', im1 ); cv2.waitKey(0)

OpenCV(3.4.2) C:\projects\opencv-python\opencv\modules\highgui\src\window.cpp:356: error: (-215:Assertion failed) size.width>0 && size.height>0 in function 'cv::imshow

OpenCV(3.4.2) C:\projects\opencv-python\opencv\modules\highgui\src\window.cpp:356: error: (-215:Assertion failed) size.width>0 && size.height>0 in function 'cv::imshow

Please resolve this issue issue:

import numpy as np
import matplotlib.pyplot as plt
import cv2
im1 = cv2.imread('C://Test-C//33319//33319_2ms.jpg');
cv2.imshow('image', im1 );
cv2.waitKey(0)

cv2.waitKey(0)

OpenCV(3.4.2) C:\projects\opencv-python\opencv\modules\highgui\src\window.cpp:356: error: (-215:Assertion failed) size.width>0 && size.height>0 in function 'cv::imshow

Error:

OpenCV(3.4.2) C:\projects\opencv-python\opencv\modules\highgui\src\window.cpp:356: error: (-215:Assertion failed) size.width>0 && size.height>0 in function 'cv::imshow

'cv::imshow

Please resolve this issue:

import numpy as np
import matplotlib.pyplot as plt
import cv2
im1 = cv2.imread('C://Test-C//33319//33319_2ms.jpg');
cv2.imshow('image', im1 );
cv2.waitKey(0)