不再保存到本地
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user