Kichkun / age_model

Age recognition by single photo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Age predictor from single selfie

Installation

git clone https://github.com/Kichkun/age_model.git
cd age_model
pip install .

Age recognition

from age_model import AgeModel
import cv2
img = cv2.imread('img4.jpg')
demography = AgeModel.analyze(img)
#demography = AgeModel.analyze([img, img]) #analyzing multiple faces same time
print("Age: ", demography["age"])
#print("Age: ", demography)

{'age': 50.75593731981769}

Pretrained weights can be downloaded from here and should be placed in "models" folder

About

Age recognition by single photo


Languages

Language:Python 100.0%