1. A computer-implemented method of face detection and pose estimation, the method comprising the following steps: training, a convolutional neural network to map facial images to points on a face manifold, parameterized by facial pose, and to map non-facial images to points away from the face manifold; and simultaneously determining, whether an image is a face from its proximity to the face manifold and an estimate of facial pose of that image from its projection to the face manifold.