Ask Your Question
0

I am unable to correct the error i am getting when i use cv2.face_LBPHFaceRecognizer.create() function.

asked 2018-11-12 00:47:17 -0600

I am using python-3.6, opencvpython-3.4.3, and I when execute this line-> face_recognizer = cv2.face_LBPHFaceRecognizer.create() AttributeError: module 'cv2' has no attribute 'face_LBPHFaceRecognizer'

I am a beginner,please help

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2018-11-12 00:58:43 -0600

berak gravatar image

yea, typo, it has to be:

cv2.face.LBPHFaceRecognizer_create()

see docs

edit flag offensive delete link more

Comments

you also have to make sure, your cv2 was built with contrib modules

berak gravatar imageberak ( 2018-11-13 02:22:21 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2018-11-12 00:47:17 -0600

Seen: 873 times

Last updated: Nov 12 '18