ageitgey / face_recognition

The world's simplest facial recognition api for Python and the command line
MIT License
52.94k stars 13.44k forks source link

Wrong Face Recognized in knn classifier #799

Open Malathi15 opened 5 years ago

Malathi15 commented 5 years ago

Description

I was trying to recognize faces using knn classifier with person1: 50 images(3 different sets of same face) person2: 50 images(3 different sets of same face)

In the test folder, we had given person3 to test if unknown is recognized but instead person1 is recognized.

What I Did

Screenshot from 2019-04-09 16-29-28 Can you please help me in solving this issue?

EralpB commented 5 years ago

you can increase the confidence threshold so more faces will be "unknown"

if person3 looks 75% like person1, and your threshold is 70% it will be recognized "correctly" as 1.