import numpy as np
import cv2 as cv
img = cv.imread("./pose1.jpg")
# 缩放图像,按照原始的大小自己调整
dst = cv.resize(img, (400, 300))
# 显示图像
# cv.imshow("dst: %d x %d" % (dst.shape[0], dst.shape[1]), dst)
# cv.waitKey(0)
# cv.destroyAllWindows()
#存入本地
cv.imwrite('./resize.jpg', dst)
04-29
1496