From b8d874d501b7600c79ec638f3b2f6e7a1918745f Mon Sep 17 00:00:00 2001 From: Sefik Ilkin Serengil Date: Thu, 24 Sep 2020 10:10:24 +0300 Subject: [PATCH] analysis --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 70b47e6..30b116f 100644 --- a/README.md +++ b/README.md @@ -77,10 +77,9 @@ Deepface also offers facial attribute analysis including [`age`](https://sefiks. ```python from deepface import DeepFace -demography = DeepFace.analyze("img4.jpg", actions = ['age', 'gender', 'race', 'emotion']) -#demographies = DeepFace.analyze(["img1.jpg", "img2.jpg", "img3.jpg"]) #analyzing multiple faces same time -print(demography["age"]," years old ",demography["dominant_race"]," ",demography["gender"] - ," in ",demography["dominant_emotion"]," mood") +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") ```