Predict function is not sending the result of confidence/distance
Remove the CV_WRAP from predict function on file
/opencv_contrib/modules/face/include/opencv2/face.hpp
and Recompile the opencv
-----------------------------
A better way that was already present in the opencv3, suggested by Abdul Jalil
result = cv2.face.MinDistancePredictCollector()
recognizer.predict(face,result, 0)
recog = result.getLabel()
conf = result.getDist()
Remove the CV_WRAP from predict function on file
/opencv_contrib/modules/face/include/opencv2/face.hpp
and Recompile the opencv
-----------------------------
A better way that was already present in the opencv3, suggested by Abdul Jalil
result = cv2.face.MinDistancePredictCollector()
recognizer.predict(face,result, 0)
recog = result.getLabel()
conf = result.getDist()
No comments:
Post a Comment