Browse Source

removed pritnts

master
cailean 2 months ago
parent
commit
1ac9aeccc4
  1. 6
      app.py

6
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]

Loading…
Cancel
Save