📜  调整 numpy 数组图像的大小 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:37.377000             🧑  作者: Mango

代码示例2
import cv2
#img is your image as array

#size of the new image
height = 500
width = 500

img_resized = cv2.resize(img, (width, height))