Ask Your Question
2

Computing LBP Histogram in OpenCV

asked 2013-04-16 07:58:43 -0500

agile gravatar image

updated 2013-04-16 09:06:50 -0500

berak gravatar image

I am doing face recognition in android using JAVACV and OpenCV SDK for android. I used the sample code of face detection that comes with OpenCV android SDK. Now I want to move to face recognition. I want to compute the LBP Histogram of the detected face and store it in the database which will be later matched using Chi-square with other histogram. The Face recognizer class in OpenCV has train and predict method which are not publicly exposed. Does the train method compute the Histogram of the image? How can I compute the LBP Histogram using the face recognizer class?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
2

answered 2013-04-16 09:03:24 -0500

berak gravatar image

updated 2013-04-16 09:04:13 -0500

unfortunately, there's no wrapper for the contrib module yet. so no face reco currently.

someone made an issue , if you're not afraid to recompile the opencv java module, maybe changing the generator.py like descibed there works.

edit flag offensive delete link more

Comments

I am using OpenCV Android SDK. I don't see the mentioned folders.

agile gravatar imageagile ( 2013-04-22 07:05:28 -0500 )edit
0

answered 2014-04-19 20:28:57 -0500

rainNight gravatar image

I'am also have this problem,I cant't find any methods of the createEigenFaceRecognizer(),createFisherFaceRecognizer(),createLBPHFaceRecognizer() , and I want to know the ways you slove the problem.

edit flag offensive delete link more

Comments

you'll have to use jni to add the missing factory functions, maybe similar to this

berak gravatar imageberak ( 2014-04-20 03:09:07 -0500 )edit
Login/Signup to Answer

Question Tools

Stats

Asked: 2013-04-16 07:58:43 -0500

Seen: 1,527 times

Last updated: Apr 19 '14