mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 12:05:22 +00:00
analysis sample code
This commit is contained in:
parent
fb683d768a
commit
ac838923b7
@ -79,7 +79,8 @@ Deepface also offers facial attribute analysis including [`age`](https://sefiks.
|
|||||||
from deepface import DeepFace
|
from deepface import DeepFace
|
||||||
demography = DeepFace.analyze("img4.jpg", actions = ['age', 'gender', 'race', 'emotion'])
|
demography = DeepFace.analyze("img4.jpg", actions = ['age', 'gender', 'race', 'emotion'])
|
||||||
#demographies = DeepFace.analyze(["img1.jpg", "img2.jpg", "img3.jpg"]) #analyzing multiple faces same time
|
#demographies = DeepFace.analyze(["img1.jpg", "img2.jpg", "img3.jpg"]) #analyzing multiple faces same time
|
||||||
print("This is ", demography["age"]," years old ",demography["dominant_race"]," ",demography["gender"]," in ",demography["dominant_emotion"]," mood")
|
print(demography["age"]," years old ",demography["dominant_race"]," ",demography["gender"]
|
||||||
|
," 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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user