Cy23
2023-02-08
来自辽宁
安装 pip install opencv-python import cv2 as cv src = cv.imread('1.jpg') w,h,a = src.shape print(f"图片宽{w}px,高{h}px") print(src)
1
Matthew
2023-02-08
来自江苏
import cv2 pic = cv2.imread("第14章/cat.png") w,h,a = pic.shape print(f"图片宽{w}px,高{h}px") print(pic)