1. A method, comprising: capturing, using a fingerprint sensor of a mobile device, one or more first images of a first fingerprint; analyzing the one or more first images to obtain fingerprint information associated with the first fingerprint; obtaining, via an orientation sensor of the mobile device, first environmental information indicating a first orientation of the mobile device generating, using the fingerprint information and the first environmental information, an enrollment template for the first fingerprint; and storing the enrollment template among a plurality of enrollment templates in a memory of the mobile device, wherein the fingerprint information of the stored enrollment template is associated with the first environmental information; and wherein the stored enrollment template is selected from the plurality of enrollment templates based on second environmental information indicating a second orientation of the mobile device when the mobile device captures one or more second images of a second fingerprint, the selected enrollment template being retrieved to determine a degree of similarity between the first fingerprint and the second fingerprint.