1. A method for facial recognition using a pre-template, comprising: detecting a face in a source image; determining face information for the detected face; cropping the source image around the detected face; adjusting a compression level based on a contrast of at least a portion of the detected face using a processor; encoding the cropped image based on the adjusted compression level; storing the encoded cropped image and the face information in a storage medium; obtaining an input image; and in response to obtaining the input image: obtaining the encoded cropped image from the storage medium, converting the encoded cropped image to a numerical representation of the detected face, and comparing the numerical representation of the detected face with the input image.