In order to solve the problem of `Identity Verification', the standard pipeline is to extract features or embeddings using a deep learning model and compute the distance with the templates, based on thresholding which the verification is performed. The distances are computed using either Euclidean distance (L2 distance) [1]} or cosine similarity [2]}.
