img = cv2.imread(os.path.join(filepath, name))
dst = cv2.resize(img, (img.shape[1]//4, img.shape[0]//4))
cv2.imwrite(os.path.join(aimpath, "image" + str(num).zfill(6)) + ".jpg", dst)
Logo

技术共进,成长同行——讯飞AI开发者社区

更多推荐