From 1ac9aeccc4b83f96708ea73dff1fcdcee9868533 Mon Sep 17 00:00:00 2001 From: cailean Date: Wed, 21 Aug 2024 13:42:38 +0100 Subject: [PATCH] removed pritnts --- app.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app.py b/app.py index a87fdc9..3ec3f1e 100644 --- a/app.py +++ b/app.py @@ -47,11 +47,9 @@ def processImage(image, idx, foldername, video_path): img_path=image, actions=['emotion'], enforce_detection=True, - detector_backend=backends[3] + detector_backend=backends[0] ) - print(anaylse_obj) - emotions = anaylse_obj[0]['emotion'] num_of_faces = len(anaylse_obj) @@ -64,8 +62,6 @@ def processImage(image, idx, foldername, video_path): averages = {emotion: sums[emotion] / num_of_faces for emotion in sums} - print(f"averages: {averages}") - raw_emotions = [value for value in averages.values()] normalized_emotions = [value / 100 for value in raw_emotions]