1. A computer-implemented method for identifying a template associated with an image, the method comprising: receiving a digital image, a portion of the image depicting a first document; extracting the portion of the image; scaling the portion of the image; generating a first hash from the scaled image; comparing the first hash to a set of hashes, each corresponding to a template; selecting a first template as corresponding to the first document based on comparing the first hash to the set of hashes; extracting one or more sections of the portion of the image based on the selected first template; and performing optical character recognition on the extracted one or more sections of the portion of the image.