不再保存到本地

This commit is contained in:
2024-07-10 17:33:13 +08:00
parent 7fce862a94
commit 1eaa0558a9

View File

@@ -348,7 +348,6 @@ def photo_mask(pk_phhd, content):
with tempfile.NamedTemporaryFile(delete=False, suffix=".jpg") as temp_file:
cv2.imwrite(temp_file.name, image)
cv2.imwrite(f"./mask_test2/{phrec.cfjaddress}.jpg", image)
try:
for i in range(3):
is_upload_success = ucloud.upload_file(phrec.cfjaddress, temp_file.name)