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.
source share