Extract Feature Detection from OpenCV Facial Recognition Algorithm

asked 2016-05-26 18:49:11 -0500

updated 2016-05-27 00:35:30 -0500

berak gravatar image

Hello,

I am aware that OpenCV has algorithms like Local Binary Patterns and Eigenfaces for facial detection as described here: http://docs.opencv.org/2.4/modules/co...

I understand that these algorithms compute features for the faces, and would like to exact these features.

These features are like the ones used in machine learning algorithms, not parts of the face.

Is it possible to extract features from the OpenCV facial recognition algorithms?

For example, in the link it talks about a 22-dimensional feature vector that was used once.

Thanks

edit retag flag offensive close merge delete

Comments

Chapter 6 of OpenCV 3 Blueprints talks about biometric identification and also discusses various parts of the face recognition interface. Might be interesting to take a look. About the feature vector, it is generated using reprojection. For example, the eigen representations can be retrieved using this part of the code.

StevenPuttemans gravatar imageStevenPuttemans ( 2016-05-27 08:24:17 -0500 )edit

As far as the part of the code, I think you have to first train the model in order to extract the eigen representations. I don't want to train the model. I just want to get the feature vectors.

mehtaiphoneapps gravatar imagemehtaiphoneapps ( 2016-05-27 11:55:11 -0500 )edit

Well as suggested in this sample of the book I mentioned, for LBPH face recognizers you can use the ELBP functionality to get the feature vectors, without training a recognizer model itself. I guess that for eigen and fisher representations, you will have to crack open the code and look for the part where the features are generated, respectively here and here. Then you will need to copy the respective code into a seperate function for your use.

StevenPuttemans gravatar imageStevenPuttemans ( 2016-05-30 02:56:34 -0500 )edit