Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Kichkun/age_model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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