This commit is contained in:
Sefik Ilkin Serengil 2020-09-24 10:10:24 +03:00 committed by GitHub
parent ac838923b7
commit b8d874d501
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,10 +77,9 @@ Deepface also offers facial attribute analysis including [`age`](https://sefiks.
```python ```python
from deepface import DeepFace from deepface import DeepFace
demography = DeepFace.analyze("img4.jpg", actions = ['age', 'gender', 'race', 'emotion']) obj = DeepFace.analyze("img4.jpg", actions = ['age', 'gender', 'race', 'emotion'])
#demographies = DeepFace.analyze(["img1.jpg", "img2.jpg", "img3.jpg"]) #analyzing multiple faces same time #objs = DeepFace.analyze(["img1.jpg", "img2.jpg", "img3.jpg"]) #analyzing multiple faces same time
print(demography["age"]," years old ",demography["dominant_race"]," ",demography["gender"] print(obj["age"]," years old ",obj["dominant_race"]," ",obj["gender"]," in ",obj["dominant_emotion"]," mood")
," in ",demography["dominant_emotion"]," mood")
``` ```
<p align="center"><img src="https://raw.githubusercontent.com/serengil/deepface/master/icon/stock-2.jpg" width="95%" height="95%"></p> <p align="center"><img src="https://raw.githubusercontent.com/serengil/deepface/master/icon/stock-2.jpg" width="95%" height="95%"></p>