Methods for face detection and adaptive face recognition door