It compares the faces in two images and verifies whether they are of same person or not.
If the same image is to be compared with multiple imafes in the database then it verifies and gives the result by showing the matched images.(Refer DeepfaceFind for this.)