I have searched through the web, but haven't found any answer so far to the following question, therefore I want to ask here if someone could help me out with that:
basically what i need is the same as in the solution from PraveenofPersia/Jesse there, but only the python implementation considering a Fisherface Recognizer: Any tips on confidence score for face verification (as opposed to face recognition)?
up to now I am facing the problem, that cv2 does not offer either subspaceProject nor any other.
has anyone suggestions here?
thank you!
those functions are unfortunately not exposed to the python api by default.
if you're building the cv2.pyd from source, there's an easy remedy :
CV_EXPORTS Mat subspaceProject(...)
toCV_EXPORTS_W Mat subspaceProject(...)
change
CV_EXPORTS Mat subspaceReconstruct(...)
toCV_EXPORTS_W Mat subspaceReconstruct(...)
rerun cmake / make to rebuild the cv libs and the python wrapper module
thew additional _W prefix will add those functions to the generated wrappers
I went ahead and re-wrote the functions in C++ as python. It's not the cleanest, but it works! If you take this python code and couple it with the high level concepts from another C++ example you can do exactly what you're trying to do.