error: (-215:Assertion failed) size.width>0 && size.height>0 in function 'cv::imshow'

 代碼如下: import cv2 as cv import numpy as np #讀取圖片 img=cv.imread(r'E:\Downloaded\pexels\The sea21471.jpeg',1) #獲取圖片的長寬信息 sp=img.shape length=sp[1] heighth=sp[0] print('加載的圖片的寬度:{},高度:{}'.format(length,
相關文章
相關標籤/搜索