测试opencv
This commit is contained in:
6
test.py
6
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)
|
||||
|
||||
Reference in New Issue
Block a user