mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 20:15:21 +00:00
analysis
This commit is contained in:
parent
b8d874d501
commit
e8a37f21cc
@ -79,7 +79,7 @@ Deepface also offers facial attribute analysis including [`age`](https://sefiks.
|
||||
from deepface import DeepFace
|
||||
obj = DeepFace.analyze("img4.jpg", actions = ['age', 'gender', 'race', 'emotion'])
|
||||
#objs = DeepFace.analyze(["img1.jpg", "img2.jpg", "img3.jpg"]) #analyzing multiple faces same time
|
||||
print(obj["age"]," years old ",obj["dominant_race"]," ",obj["gender"]," in ",obj["dominant_emotion"]," mood")
|
||||
print(obj["age"]," years old ",obj["dominant_race"]," ",obj["dominant_emotion"]," ", obj["gender"])
|
||||
```
|
||||
|
||||
<p align="center"><img src="https://raw.githubusercontent.com/serengil/deepface/master/icon/stock-2.jpg" width="95%" height="95%"></p>
|
||||
|
Loading…
x
Reference in New Issue
Block a user