测试本地文件读取
This commit is contained in:
3
test.py
3
test.py
@@ -2,6 +2,5 @@ from photo_review.photo_review import open_image_from_url
|
|||||||
from ucloud import ucloud
|
from ucloud import ucloud
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
pic_path = ucloud.get_private_url("PH20240529000194_1_075936_1.PNG")
|
image = open_image_from_url("./PH20240529000194_1_075936_1.png")
|
||||||
image = open_image_from_url(pic_path)
|
|
||||||
image.save("test.png")
|
image.save("test.png")
|
||||||
|
|||||||
Reference in New Issue
Block a user