You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello
When the image have different faces with different emotions : detector.top_emotion(image) give only the top of the first face;
how we can get top list of all faces?
The text was updated successfully, but these errors were encountered:
I find a solution, i think you can do the same in the original code
result = detector.detect_emotions(img)
print (len(result))
for i in range(len(result)):
top_emotions = [max(e["emotions"], key=lambda key: e["emotions"][key]) for e in result]
top_emotion = top_emotions[i]
score = result[i]["emotions"][top_emotion]
print (top_emotion, score)
Hello
When the image have different faces with different emotions : detector.top_emotion(image) give only the top of the first face;
how we can get top list of all faces?
The text was updated successfully, but these errors were encountered: