import cv2
img = cv2.imread('imgpath')
try:
img.shape
except:
print("can not read the image")
Python判断读取图片是否成功
最新推荐文章于 2023-06-14 16:42:24 发布
import cv2
img = cv2.imread('imgpath')
try:
img.shape
except:
print("can not read the image")