Ask Your Question
0

confidence value in face recognition opencv3.1.0

asked 2017-02-25 10:28:40 -0600

Boggy gravatar image

i used opencv face recognition .But when i take confidence value TypeError: 'int' object is not iterable error in my code.How should i take conf value in opencv python 3.1.0??

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-02-25 10:53:45 -0600

berak gravatar image

updated 2017-02-25 12:23:52 -0600

there was a bug with the early 3.1 python bindings, you got 2 options:

  • update to current 3.2 (but then - please, both opencv main and opencv_contrib)

  • hack your current 3.1 version, and recompile:

    remove CV_WRAP here so it simply says: int predict(InputArray src) const;

    this will hide that method from the python interface, but in turn, let you use the desired:

    id, confidence = model.predict(query)

edit flag offensive delete link more

Comments

can you read the answer, again ? (i do not understand your problem)

berak gravatar imageberak ( 2017-02-25 12:22:57 -0600 )edit

Thz i will rebuild current 3.2.

Boggy gravatar imageBoggy ( 2017-02-25 12:30:13 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2017-02-25 10:28:40 -0600

Seen: 351 times

Last updated: Feb 25 '17