I have doubt in FaceRecognition.java
I'm following the example of the URL:
http://code.google.com/p/javacv/source/browse/samples/FaceRecognition.java?r=02385ce192fb82f1668386e55ff71ed8d6f88ae3When I detect Face from camera I need to get the image ( crop only the face and then recognize )
I would to know where
the point should I consider that the picture was actually foundpublic void recognizeFace(IplImage face) {
tallyFaceRecognizeTime = (double) cvGetTickCount() - timeFaceRecognizeStart;
if (nCorrect + nWrong > 0) {
return true;// FOUND THE FACE ????
LOGGER.info("TOTAL ACCURACY: " + (nCorrect * 100 / (nCorrect + nWrong)) + "% out of " + (nCorrect + nWrong) + " tests.");
LOGGER.info("TOTAL TIME: " + (tallyFaceRecognizeTime / (cvGetTickFrequency() * 1000.0 * (nCorrect + nWrong))) + " ms average.");
}
After How I will invoke the method above:
My purpose is to do :
//WHEN DETECT FACE.... then RECOGNIZE
CvSeq cascadeFaces = cvHaarDetectObjects(grayImage, defaultCascade, STORAGE, 1.15, 3, opencv_objdetect.CV_HAAR_DO_CANNY_PRUNING);
if( cascadeFaces.total() > 0){ // found face
CvRect rectangle = new CvRect(cvGetSeqElem(cascadeFaces, 0));
cvSetImageROI(grayImage, rectangle);
final FaceRecognition faceRecognition = new FaceRecognition();
faceRecognition.recognizeFace(grayImage); // refactoring the method
recognizeFileList }
Thanks & regards