Ask Your Question

alextorre98's profile - activity

2017-05-04 14:09:22 -0600 received badge  Notable Question (source)
2016-11-30 01:51:34 -0600 received badge  Popular Question (source)
2016-04-08 11:58:26 -0600 received badge  Student (source)
2016-01-05 11:12:13 -0600 commented answer Can't get predict confidence

Ok, thanks.

2016-01-05 09:53:29 -0600 asked a question 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)