A method of recognizing fingerprints, the method comprises: acquiring a match frequency corresponding to each of first fingerprint templates pre-stored in a fingerprint template set, wherein the fingerprint template set comprises N-numbered first fingerprint templates and N is a positive integer, and the match frequency is a number of match times between the each of the first fingerprint templates and fingerprint images input by a user; updating weighting information of each of the first fingerprint templates based on the match frequency corresponding to each of the first fingerprint templates, wherein a first fingerprint template corresponding to a higher match frequency corresponds to a higher weighting; determining a matching sequence according to the weighting information corresponding to each of the first fingerprint templates, wherein a first fingerprint template corresponding to a higher weighting has a higher match rank in the matching sequence; acquiring a fingerprint image of a fingerprint input by the user; comparing the fingerprint image with the first fingerprint templates based on the matching sequence, wherein the first fingerprint template having a highest match rank in the matching sequence is first compared with the fingerprint image; controlling an electronic device to perform a target operation when a match value between the fingerprint image and an ith first fingerprint template of the fingerprint template set is greater than a first preset threshold, wherein i is a positive number and is less than or equal to N; determining whether the match value between the fingerprint image and the ith first fingerprint template of the fingerprint template set is greater than a second preset threshold, wherein the second preset threshold is greater than the first preset threshold; and generating a second fingerprint template by extracting feature information from the fingerprint image, and adding the second fingerprint template to the fingerprint template set, when the match value is greater than the second preset threshold. acquiring a match frequency corresponding to each of first fingerprint templates pre-stored in a fingerprint template set, wherein the fingerprint template set comprises N-numbered first fingerprint templates and N is a positive integer, and the match frequency is a number of match times between the each of the first fingerprint templates and fingerprint images input by a user; updating weighting information of each of the first fingerprint templates based on the match frequency corresponding to each of the first fingerprint templates, wherein a first fingerprint template corresponding to a higher match frequency corresponds to a higher weighting; determining a matching sequence according to the weighting information corresponding to each of the first fingerprint templates, wherein a first fingerprint template corresponding to a higher weighting has a higher match rank in the matching sequence; acquiring a fingerprint image of a fingerprint input by the user; comparing the fingerprint image with the first fingerprint templates based on the matching sequence, wherein the first fingerprint template having a highest match rank in the matching sequence is first compared with the fingerprint image; controlling an electronic device to perform a target operation when a match value between the fingerprint image and an ith first fingerprint template of the fingerprint template set is greater than a first preset threshold, wherein i is a positive number and is less than or equal to N; determining whether the match value between the fingerprint image and the ith first fingerprint template of the fingerprint template set is greater than a second preset threshold, wherein the second preset threshold is greater than the first preset threshold; and generating a second fingerprint template by extracting feature information from the fingerprint image, and adding the second fingerprint template to the fingerprint template set, when the match value is greater than the second preset threshold.