Built an age detector using CNN and Open CV. I have used Adience Dataset to train the model. The model classifies into a total of eight age brackets:
-
0-2
-
4-6
-
8-12
-
15-20
-
25-32
-
38-43
-
48-53
-
60-100
-
The model is already trained. All you need to do is download the repository and run the file.
-
If u wish to detect age of a image run the following code in your preferred ide
%run detect_age.py --image img.jpg --face face_detector --age age_detector
- If u wish to detect age of a person using video camera of ur system run the following code
%run detect_age_video.py --face face_detector --age age_detector