Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 788 Bytes

README.md

File metadata and controls

29 lines (23 loc) · 788 Bytes

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