OpenCV 2.4.3 - JavaCV 0.3 - FaceRecognizer Class - LBPH - update function still not working

I implemented face recognition in Java using the javacv LBPH class, but I had a problem where FaceRecognizer.LBPH does not support the update function. Here's the error:

"OpenCV error: function / function not implemented (this FaceRecognizer (FaceRecognizer.LBPH) does not support updating, you need to use FaceRecognizer :: train to update it.) In an unknown function, file ...... \ src \ opencv \ modules \ contrib \ src \ facerec.cpp line 305 "

+4
source share
3 answers

Here is the problem. In the trunk of the OpenCV repository, this method is virtual and is overridden by LBPH FaceRecognizer. Therefore, it is called by late binding rules in C ++. This works for C ++ and all shells. But here is the problem . In branch 2.4 of OpenCV, the team wanted to guarantee binary compilation, and therefore the virtual keyword was removed from the method signature. This causes all problems because overridden methods are no longer called. I will fix this and update this post accordingly.

+2
source

I have the same problem. Apparently this feature is not implemented in OpenCV 2.4.3 See: javacv

+1
source

This works for me now on iOS (the update was not called in previous versions). I restored the structure from the latest version of the repo using the following instructions: http://docs.opencv.org/trunk/doc/tutorials/introduction/ios_install/ios_install.html

+1
source

Source: https://habr.com/ru/post/1444270/


All Articles