Ask Your Question
2

Computing LBP Histogram in OpenCV

asked Apr 16 '13

agile gravatar image

updated Apr 16 '13

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?

Preview: (hide)

2 answers

Sort by » oldest newest most voted
2

answered Apr 16 '13

berak gravatar image

updated Apr 16 '13

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.

Preview: (hide)

Comments

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

agile gravatar imageagile (Apr 22 '13)edit
0

answered Apr 20 '14

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.

Preview: (hide)

Comments

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

berak gravatar imageberak (Apr 20 '14)edit

Question Tools

Stats

Asked: Apr 16 '13

Seen: 1,891 times

Last updated: Apr 19 '14