Ask Your Question
0

Is there any ways to import face recognizer methods in opencv 3.1.0 ?

asked 2017-07-31 01:29:34 -0600

dspuppy gravatar image

updated 2017-07-31 01:37:23 -0600

import cv2 recognizer1 = cv2.createEigenFaceRecognizer() recognizer2 = cv2.createLBPHFaceRecognizer()

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2017-07-31 01:42:56 -0600

berak gravatar image

updated 2017-07-31 02:12:26 -0600

with opencv3, the face reco module was moved to opencv_contrib , you probably don't have it yet.

so, you will have to rebuild your cv2.so from src , it's also recommended, that you use latest master branch from both repos.

then, syntax has changed slightly, too, you'll have to use:

recognizer1 = cv2.face.createEigenFaceRecognizer() ## opencv3.1

or:

recognizer1 = cv2.face.EigenFaceRecognizer_create() ## opencv3.3

good luck !

edit flag offensive delete link more

Comments

2

Thanks berak !

dspuppy gravatar imagedspuppy ( 2017-07-31 03:04:56 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2017-07-31 01:29:34 -0600

Seen: 157 times

Last updated: Jul 31 '17