摘要: import cv2 # 读取图像 image = cv2.imread('input.jpg') # 获取原始图像的宽度和高度 height, width = image.shape[:2] # 定义新的大小 new_width = 640 # 新宽度 new_height = int(new_w 阅读全文
posted @ 2024-06-24 23:45 西北逍遥 阅读(5) 评论(0) 推荐(0) 编辑