Face Detection and Facial Feature Localization for Human-machine Interface