Real-time face detection in a device for detecting digital picture