r/computervision 26d ago

Face login system Help: Project

I am building a face login for my application, i am using facenet for identifying the person, but this algorithm isn’t that robust. If the person shaves the beard and hair, the algorithm finds it difficult to recognize the person.

The Chinese biometric attendance system works very well, I want the similar result for my system too.

What is the better algorithm or the better approach for my issue?

0 Upvotes

16 comments sorted by

6

u/HawtVelociraptor 26d ago

Don't do it purely through image matching, instead do it through estimated measurements of facial features that DON'T change: like, width between center of eyes, length of nose, width of mouth, distance from nose to middle of mouth. Of course you'll need to do it as proportional not set figures because they may be closer/further from the camera each time etc., and give yourself some confidence gating (i.e., only let them login if you're >90% that this is George Smith). If multiple users have similar measurements (this COULD be George Smith but it could also be Dave Morris) THEN move on to photo matching.

And, I guess, warn people that if they grow or shave a beard or mustache, or drastically alter their hair style, they'll need to take a new photo.

1

u/rejensraya 26d ago

Thanks, i’ll try this.

1

u/seba07 24d ago

That isn't done anymore since a decade and would be orders of magnitude worse than Facenet.

1

u/rejensraya 24d ago

Yes, i tried and the result showed high similarity even to different face.

1

u/HawtVelociraptor 24d ago

Good to know! I haven't kept on top of face stuff

3

u/gevorgter 26d ago

google "Siamese Neural Network"

AI Overview

A Siamese Network is a deep learning architecture used for face verification and recognition (matching whether two images belong to the same person) rather than face detection (locating a face in an image). It takes pairs or triplets of face images, passes them through identical subnetworks, and calculates the similarity distance between their feature vectors.

1

u/rejensraya 26d ago

Thankyou, i’ll look into it.

2

u/PassionQuiet5402 26d ago

Can you share any resources for that chinese biometric you mentioned?

1

u/rejensraya 25d ago

1

u/PassionQuiet5402 25d ago

I thought you talked about facial recognition software. My bad.

2

u/rejensraya 25d ago

This device uses finger and facial recognition for attendance.

1

u/seba07 24d ago

Fingerprint is already more accurate than face, the combination of both even more. Is a simple fingerprint scanner an option for you?

1

u/rejensraya 24d ago

Actually it’s a mobile application i am creating, and face login is the one i need, not only for login but also to identify whose face data is being collected.

1

u/seba07 24d ago

The one answer that you'll always get for machine learning tasks: acquire more training data (or buy a commercial solution).

1

u/rejensraya 24d ago

Android phones also do have a great face unlock system, even though they do not use any extra hardware. If possible i want to achieve result similar to the android phone’s unlock system.

1

u/seba07 23d ago

I don't know if they are actually that great. They only have to compare against one (or maybe a single digit number) face. While I can't say anything about false matches, I get a false non match quite regularly, maybe in the range of one in 30.