Tri-dimensional face detection and localization