Gender and Age detection uses Convolution Neural Network to detect Ages of persons. It uses a trained model of CNN which is trained on over 28,000 images. It can detect images and show label in one of 8 age sets.
You can find the Model and more information here: https://talhassner.github.io/home/publication/2015_CVPR