This commit is contained in:
JonatanRek
2024-10-05 23:22:40 +02:00
parent 74dbc8163a
commit 1bad92e40d
+3 -1
View File
@@ -10,6 +10,8 @@ root_api_url = 'http://{}/local'.format(sever)
base_path = '/app/data/' base_path = '/app/data/'
print("API_ROOT: " + str(root_api_url), flush=True) print("API_ROOT: " + str(root_api_url), flush=True)
print("FACE_TRASHOLD: " + str(treashold), flush=True)
try: try:
while True: while True:
@@ -49,7 +51,7 @@ try:
img[y:y+h, x:x+w] = blurred_face img[y:y+h, x:x+w] = blurred_face
print("Faces Anonymized" , flush=True) print("Faces Anonymized" , flush=True)
text = "{}".format(weights[i]) text = "{}".format(weights[i])
cv2.rectangle(img, (x, y), (x+w, y+h), (255, 0, 0), 2) #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) #cv2.putText(img, text, (x, y), cv2.FONT_HERSHEY_SIMPLEX, 0.45, (0, 0, 255), 2)
i = i +1 i = i +1