Spaces:
Configuration error
Configuration error
File size: 399 Bytes
aa77e96 |
1 2 3 4 5 6 7 8 9 10 |
from deepface import DeepFace
demography = DeepFace.analyze("juan.jpg", actions = ['age', 'gender', 'race', 'emotion'])
#demographies = DeepFace.analyze(["img1.jpg", "img2.jpg", "img3.jpg"]) #analyzing multiple faces same time
print("Age: ", demography["age"])
print("Gender: ", demography["gender"])
print("Emotion: ", demography["dominant_emotion"])
print("Race: ", demography["dominant_race"])
|