MACE face authentication always return not same person

asked 2019-12-24 02:43:28 -0500

Hi, I'm trying to create face authentication to recognize a single person using opencv on android. I was able to make face recognize by using LBPHFaceRecognizer, but then I realize that LBPH is not what I should use. So I change my code to use MACE Filter. but when I changed my code by using MACE filter, it always returns "not same person".

I use exact same cropped grayscale images for training (10 images) and testing that worked fine in LBPHFaceRecognizer.

Thank you.

edit retag flag offensive close merge delete

Comments

opencv version ?

berak gravatar imageberak ( 2019-12-24 03:03:12 -0500 )edit
2

I'm using opencv 4.0.0(pre).

azkaaprianta gravatar imageazkaaprianta ( 2019-12-24 04:04:30 -0500 )edit
berak gravatar imageberak ( 2019-12-24 04:27:41 -0500 )edit

so it's related to opencv version? what version should I use, 3.4.9 or 4.2.0?

azkaaprianta gravatar imageazkaaprianta ( 2019-12-24 08:24:36 -0500 )edit
1

both 3.4.9 and 4.2.0 have the change

if you could zip your 10 cropped images and put them somewhere ? i'd take a look.

berak gravatar imageberak ( 2019-12-24 10:24:42 -0500 )edit
2

Sorry for late reply. after hours tried to build opencv 3.4.9, finally I managed to install opencv 3.4.9 on my project. But the result still the same. Here the face images as requested. I'm using CascadeClassifier to detect and to crop the image.

classifier.detectMultiScale(gray, faces, 1.1, 3, 0 | CASCADE_SCALE_IMAGE, new Size(30, 30));

Please give advice. Thank you

azkaaprianta gravatar imageazkaaprianta ( 2019-12-26 03:33:27 -0500 )edit

i made a quick test, using your images and got 50% success.

imho it will get better with more (and more diverse) images

berak gravatar imageberak ( 2019-12-26 10:25:10 -0500 )edit
1

well, adding 50 training faces do the magic.

Thank you for the help.

azkaaprianta gravatar imageazkaaprianta ( 2020-01-02 05:18:31 -0500 )edit

thanks for trying this ;)

berak gravatar imageberak ( 2020-01-02 05:22:24 -0500 )edit