Ask Your Question
0

Face recognize using OpenCV4Android SDK tutorials ?

asked 2014-09-14 01:11:35 -0600

kienkikhung gravatar image

updated 2014-09-14 01:21:58 -0600

Hi everyone, I am a student. Recently I've been building a Face recognize project using opencv but I dont know where to start.

I successfully build my Face detection using OpenCv4Android by reading opencv face detection sample.

Now I start to build Face recognize (using LBPH algorithm) part, I read Opencv document and search google for tutorial that I can actually follow but i failed (there lots of tutorial using javacv but I want to use OpenCv4Android instead) :(

can anyone help me with the step by step tutorial about what should i do to using face recognize in OpenCV4Android SDK? Big thanks to you.

Additional:

  • I find out about FaceRecognizer.java class in opencv/contrib
  • I find facerec.java in OpenCV4android folder
  • I read somewhere and try the method FaceRecognize model = createLBPHFaceRecognizer() ---> but the method createLBPHFaceRecognizer() return error not found. where can i find and use this method?

Please help me what I need to do next? A lot of thanks!!!!!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-09-14 02:05:44 -0600

berak gravatar image

updated 2014-09-14 02:20:47 -0600

yes, createLBPHFaceRecognizer() (as well as the other 2 create** methods) is missing in the java api, it's a problem with the current generated wrappers (it can't handle cv::Ptr<anything> properly and just skips it).

so, what are the options ?

  1. wait a bit. there's a pull request in the pipeline, that should fix it.

  2. roll your own with some jni (see here and here)

  3. fall back to javacv (bah)

  4. no idea , what you need it for, but as a proof of concept, a straight norm(a,b,L2) does surprisingly well (even beats eigenfaces unless you do heavy preprocessing)

  5. outsource it to a server. usually, doing the recognition on your phone is a bad idea, as you probably want a huge database, and a consistent one for all users of your app.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-09-14 01:11:35 -0600

Seen: 250 times

Last updated: Sep 14 '14