Ask Your Question
0

cv2.face_LBPHFaceRecognizer object has no attribute setdouble

asked 2017-02-12 11:52:29 -0600

flash gravatar image

cv2.face_LBPHFaceRecognizer object has no attribute setdouble i am getting this error while trying to do face recognition in opencv3.. anyone knows whats the problem ? I had problem with "cv2.cv.CV_HAAR_SCALE_IMAGE" and got a simple solution by using "cv2.CASCADE_SCALE_IMAGE" . Likewise is there any ?

edit retag flag offensive close merge delete

Comments

Were you able to figure out any simple solutions to this as well?

Grounded gravatar imageGrounded ( 2017-04-20 17:49:56 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-02-13 02:26:15 -0600

berak gravatar image

the api has changed a bit in opencv3, cv2.cv is gone entirely, and you'd have to use methods like:

model.setThreshold(123)

try :

>>> help(cv2.face.createLBPHFaceRecognizer())

to see it's methods.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-02-12 11:52:29 -0600

Seen: 1,105 times

Last updated: Feb 13 '17