The most similar face recognition in Python

How can I use Python and OpenCV to look for face similarities?

I have successfully used OpenCV and Python to extract faces from multiple photos using Haar Cascades.

Now I have a catalog of images, all of which are faces of different people.

What I would like to do is take a sample image, and then see which face it looks most on.

I tried using pyssim :

pyssim needle.jpg "haystack/*"

But, unfortunately, he is looking for the similarity of the image (color, etc.), and not facial features.

I repeat - I am very pleased to discover faces, what I would like to do is compare them.

+4
source share

Source: https://habr.com/ru/post/1544454/


All Articles