Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Can't get predict confidence

When I run the predict(src) function, it returns only a int, instead of a int and a double.

using help() throws this:

Help on built-in function predict:

predict(...) method of cv2.face_BasicFaceRecognizer instance
    predict(src) -> retval  or  predict(src) -> label, confidence  or  predict(src, collector[, state]) -> None

The code I'm using is:

nbr_predicted, conf = recognizer.predict(imgp)