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