shaileshmulange / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

FaceRecognizer.update is missing #233

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Load a LBP FaceRecognizer
2. Try to update it by adding new pictures
3. The Update function does not exist

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
JavaCV 0.2 on MacOsX

Please provide any additional information below.
The function FaceRecognizer.update (which is only supported by LBP recognizer) 
is missing. 
See: 
http://docs.opencv.org/trunk/modules/contrib/doc/facerec/facerec_api.html#facere
cognizer-update

Also, thanks for the good work

Original issue reported on code.google.com by vincent....@gmail.com on 21 Aug 2012 at 9:45

GoogleCodeExporter commented 9 years ago
My mistake, I was referring to the wrong Open CV version.

Original comment by vincent....@gmail.com on 21 Aug 2012 at 1:47

GoogleCodeExporter commented 9 years ago
It's in OpenCV 2.4.3 and therefore accessible with JavaCV 0.3, enjoy!

Original comment by samuel.a...@gmail.com on 5 Nov 2012 at 11:41

GoogleCodeExporter commented 9 years ago
Thanks that's great news!
I've tried to play with it but I get the following error:

11-05 18:04:44.802: E/cv::error()(3998): OpenCV Error: The function/feature
is not implemented (This FaceRecognizer (FaceRecognizer.LBPH) does not
support updating, you have to use FaceRecognizer::train to update it.) in
void cv::FaceRecognizer::update(cv::InputArrayOfArrays, cv::InputArray),
file /home/saudet/android/OpenCV-2.4.3/modules/contrib/src/facerec.cpp,
line 305

This is weird cause LBPH is the only model supporting "update". Any clue?

Original comment by vincent....@gmail.com on 5 Nov 2012 at 5:15

GoogleCodeExporter commented 9 years ago
But it works from C/C++?? Do you have some sample code I can try out in both 
C/C++ and Java?

Original comment by samuel.a...@gmail.com on 6 Nov 2012 at 1:55

GoogleCodeExporter commented 9 years ago
It can't work in C/C++ either, the update() function is not virtual:
    CV_WRAP void update(InputArrayOfArrays src, InputArray labels);
If you want this fixed, please report it on OpenCV's bug tracker!

Original comment by samuel.a...@gmail.com on 6 Nov 2012 at 6:49

GoogleCodeExporter commented 9 years ago
Thanks, I'll report the bug on OpenCV.

Original comment by vincent....@gmail.com on 6 Nov 2012 at 8:47

GoogleCodeExporter commented 9 years ago
Hi, 
Do you fix the problem ?
I use the opencv248 and javacv0-7, And I'm facing with this problem:
http://answers.opencv.org/question/33363/how-to-createupdatedelete-an-face-store
d-xml/

Could you help me please ?

Original comment by henrique...@gmail.com on 14 May 2014 at 6:05

GoogleCodeExporter commented 9 years ago
Nope, it doesn't look like it was fixed in either OpenCV 2.4.8 or 2.4.9. Please 
ask about that on OpenCV's site. I am not responsible for what they do on their 
end.

Original comment by samuel.a...@gmail.com on 16 May 2014 at 2:06