exadel-inc / CompreFace

Leading free and open-source face recognition system
https://exadel.com/accelerator-showcase/compreface/
Apache License 2.0
5.7k stars 775 forks source link

Similarity calculation using different metrics #1051

Open ahshamsi opened 1 year ago

ahshamsi commented 1 year ago

Current approach to calculate similarity is converted to liner result .. which may return high matching score for false cases.

Would it be possible to add options from admin to return similarity result using different metrics such as Cosine, Euclidean Distance and L2 form.

pospielov commented 1 year ago

We use Euclidean Distance to calculate similarity. We chose it because facial recognition libraries use it; because of this, we can guarantee that your accuracy is the same as those libraries. It's not easy to add more metrics now, we will consider adding more metrics in future.