import cv2
import numpy as np,sys
img1 = cv2.imread('Pictures/orange.jpg')
img2 = cv2.imread('pictures/orange.jpg')
cv2.imshow('apple', img1)
cv2.imshow('orange', img2)
cv2.waitKey(0)
cv2.destroyAllWindows()
当我尝试运行此代码时。
error Traceback (most recent call last) in () 6 7 cv2.imshow('apple', img1) ----> 8 cv2.imshow('orange', img2) 9 cv2.waitKey(0) 10 error: OpenCV(3.4.1) /io/opencv/modules/highgui/src/window.cpp:356: error: (-215) size.width>0 && size.height>0 in function imshow
我收到此错误。