Ask Your Question

molina's profile - activity

2015-01-05 06:40:09 -0600 received badge  Necromancer (source)
2014-05-22 08:22:51 -0600 answered a question how can I align Face Images

Hello, I can not to do work this source code posted. Somebody expert could post the complete source code for help me ? I need to align an face but I'm newbie in this subject, I'm wasted few days research and I have really difficulty in reproduce "alignment face". Help me please.

2014-05-14 09:41:49 -0600 commented question How to add more data in previously stored trained data file?

Hi I'm facing the same situation. look my post please: http://answers.opencv.org/question/33363/how-to-createupdatedelete-an-face-stored-xml/

2014-05-14 09:40:37 -0600 commented question How to create,update,delete an face stored .xml

I'm newbie in opencv , could you show me some solution; at least lbph model ? please ?

2014-05-14 09:23:20 -0600 received badge  Editor (source)
2014-05-14 09:22:05 -0600 asked a question How to create,update,delete an face stored .xml

Hi ,

How I could to do update / insert (new face) in file .xml already stored ?

My propose is delete, insert and update.

I tried to to update an face in file .xml I used the class FaceRecognition of javacv's example FaceRecognition.java

What I did ? I use APPEND (CV_STORAGE_APPEND) at file, to preserve face already trained.

fileStorage = cvOpenFileStorage("facedata.xml", // filename
            null, // memstorage
            CV_STORAGE_APPEND, // flags APPEND instead of CV_STORAGE_WRITE
            null); // encoding

The CV_STORAGE_APPEND was successfuly, But the TAG from XML called: <avgTrainImg> and <projectedTrainFaceMat> is created once for all faces, and this method APPEND it create more than one tag <avgTrainImg>... occured Error when Load xml again.

Finding out another alternatives: I read an question about it How to add more data in previously stored trained data file? , but not has the solution. So I tried use

com.googlecode.javacv.cpp.opencv_contrib.createLBPHFaceRecognizer

But: I was faced with the Exception, In this point described below:

faceRecognizer.train(trainImages, trainLabels);

Exception:

Training Binary model ....OpenCV Error: The function/feature is not implemented (Using Original Local Binary Patterns for feature extraction only works on single-channel images (given 16). Please pass the image data as a grayscale image!) in cv::elbp, file \opencv\modules\contrib\src\facerec.cpp, line 646 java.lang.RuntimeException: ........\opencv\modules\contrib\src\facerec.cpp:646: error: (-213) Using Original Local Binary Patterns for feature extraction only works on single-channel images (given 16). Please pass the image data as a grayscale image! in function cv::elbp

at com.googlecode.javacv.cpp.opencv_contrib$FaceRecognizer.train(Native Method)

Some expert could help me ?

Any suggestion is welcome !

2014-05-14 08:41:09 -0600 answered a question How to include Opencv path?

If is Win put the path of opencv in your VARIABLE PATH of Windows:

Like this: PATH = %PATH%;%OPENCV_DIR%\vc10\bin;%OPENCV_DIR%\vc11\bin;

2014-05-14 08:38:47 -0600 answered a question C++ code equivalent in java

Why you don't use javacv.jar to help you ?