From 474a30752f3545668a0354d765e83f9887e2ac52 Mon Sep 17 00:00:00 2001 From: JonatanRek Date: Sat, 5 Oct 2024 22:35:16 +0200 Subject: [PATCH] Fix --- app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index 08b5992..ddf5155 100644 --- a/app.py +++ b/app.py @@ -41,12 +41,12 @@ try: i = 0 for (x, y, w, h) in faces: confidence = float(weights[i]) + print(str(confidence) + " Faces Confidence" , flush=True) if (confidence > treashold): face_roi = img[y:y+h, x:x+w] blurred_face = cv2.GaussianBlur(face_roi, (99, 99), 50) img[y:y+h, x:x+w] = blurred_face - - print(weights[i], flush=True) + print("Faces Anonymized" , flush=True) text = "{}".format(weights[i]) #cv2.rectangle(img, (x, y), (x+w, y+h), (255, 0, 0), 2) #cv2.putText(img, text, (x, y), cv2.FONT_HERSHEY_SIMPLEX, 0.45, (0, 0, 255), 2) @@ -63,7 +63,7 @@ try: } response = requests.post('{}/anonymize'.format(root_api_url), json=data) print(str(detection['id']) + " Anonymized" , flush=True) - time.sleep(5) + time.sleep(10) print("sleep", flush=True) time.sleep(900)