Open CV Face Matching on Android Device

asked 2018-08-03 07:39:25 -0600

Hello, I am an android developer and i need to work on an application that features an alternative leg of app authentication using face such that instead of typing username and password, a user can decide to sign into the application by scanning his face.

While searching for resources online I was referred to OpenCV. Can I achieve this functionality through Open CV, and if i can, please provide useful links to tutorials, examples and documentation.

Thanks,

Sincerely, Oluwatosin Ayoola.

edit retag flag offensive close merge delete

Comments

you probably should not write such an app, especially, if you don't have any clue.

berak gravatar imageberak ( 2018-08-03 07:42:39 -0600 )edit

The link to tutorial you can find by yourself - just google "facenet" and read the paper and pick an implementation of your choice (torch, tensorflow, open cv)

holger gravatar imageholger ( 2018-08-03 07:42:41 -0600 )edit

@berak i disagree here - i still have no real clue of linear algebra math or cnn - and i am still able to use pretrained models and detect similar faces :-) . It will come to you once you get into the problem(and ask the opencv forum specific questions). My opinion.

How to say - in germany you would say the whole machine learing stuiff is "hard bread" - but it can be chewed and digested once you start eating ^^ Have a nice day and dont give up, Greetings, Holger

holger gravatar imageholger ( 2018-08-03 07:50:36 -0600 )edit

@holger, yea, point taken.

berak gravatar imageberak ( 2018-08-03 07:55:52 -0600 )edit

Well, I plan on taking the users picture on registration and extracting a base 64 string from the bitmap ... while trying to sign in I want to get another bitmap and compare it with the stored image ... all i need is a guide on how to compare two bitmaps to know if it is the same person else Authentication denied.

Oluwatosin gravatar imageOluwatosin ( 2018-08-03 07:56:56 -0600 )edit
1

@Oluwatosin , again do some research on facenet (it will give you a 128 float vector instead)

berak gravatar imageberak ( 2018-08-03 07:59:53 -0600 )edit
1

thanks @berak will check it out

Oluwatosin gravatar imageOluwatosin ( 2018-08-03 08:01:11 -0600 )edit
1

but again, my opinion here is: clueless app-coders should not mess with other folk's security...

berak gravatar imageberak ( 2018-08-03 08:01:56 -0600 )edit

@Oluwatosin listen to berak please - hes nearly always giving the right solutions :-)

holger gravatar imageholger ( 2018-08-03 08:02:20 -0600 )edit

@holger and listening to him means to give up and not work on the project again?

Oluwatosin gravatar imageOluwatosin ( 2018-08-03 08:04:55 -0600 )edit