1. A computer-based method for identification of a person by a facial image, the method comprising: localizing the facial image; detecting coordinates of eye pupil centers in the facial image; responsive to detecting the coordinates of eye pupil centers, deriving a normalized facial image based on the facial image; splitting the normalized facial image into rectangular blocks; describing the rectangular blocks of the normalized facial image by a DCT (discrete cosine transform); calculating distances between the normalized facial image and existing templates, the distances being weighted sums of shortest distances between the rectangular blocks of the normalized facial image and rectangular blocks of the existing templates, wherein one or more most different blocks are filtered from the weighted sum; and recognizing the normalized facial image based on the distances calculated.