From b17104d7cb3f0e778f08dc9deb8cc4d30cee4f06 Mon Sep 17 00:00:00 2001 From: liuyebo <1515783401@qq.com> Date: Fri, 21 Jun 2024 10:42:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95pillow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/test.py b/test.py index d367625..a4c9e45 100644 --- a/test.py +++ b/test.py @@ -1,8 +1,5 @@ -import cv2 - from photo_review.photo_review import open_image_from_url -from ucloud import ucloud if __name__ == '__main__': - image = cv2.imread("./PH20240529000194_1_075936_1.png") - cv2.imwrite("test.png", image) + image = open_image_from_url("./PH20240529000194_1_075936_1.png") + image.save("test.png")