A simple and accurate face detection algorithm in complex background