diff --git a/app.py b/app.py index 6cd63dc..d53f6b2 100644 --- a/app.py +++ b/app.py @@ -43,7 +43,7 @@ try: for detection in response: print(str(detection['id']) + " Anonymization Started", flush=True) - img_path = "{}{}".format(base_path, detection['source_image_path']) + img_path = "{}{}".format(base_path, detection['path']) #print(img_path, flush=True) #Skip Non existing files if (not os.path.exists(img_path)): @@ -57,7 +57,7 @@ try: if (len(faces) <= 0): data = { "id": detection['id'], - "source_image_path": img_path.replace(base_path,""), + "path": img_path.replace(base_path,""), "face_found": 0, } response = requests.post('{}/anonymize'.format(root_api_url), json=data) @@ -93,7 +93,7 @@ try: data = { "id": detection['id'], - "source_image_path": new_img_path.replace(base_path,""), + "path": new_img_path.replace(base_path,""), "face_found": len(faces), } response = requests.post('{}/anonymize'.format(root_api_url), json=data)