compile opencv 3.0.0-re1 get AttributeError: 'module' object has no attribute 'createEigenFaceRecognizer'

asked 2015-05-14 10:50:37 -0600

fighteriris gravatar image

updated 2015-05-14 13:29:42 -0600

berak gravatar image

I tried to compile the latest opencv in my raspeberry pi 2 with python. After tried different cmake params, still get this error.

i tried both python2.7 and python3.4, got this error, AttributeError: 'module' object has no attribute 'createEigenFaceRecognizer'

I am new to this, anyone could help? Thanks ^1000000000

edit retag flag offensive close merge delete

Comments

the face recognition code was moved to https://github.com/Itseez/opencv_contrib

download that, rebuild, then cv2.face.createEigenFaceRecognizer(...)

berak gravatar imageberak ( 2015-05-14 11:39:26 -0600 )edit

@berak will give it a try! thx for the answer.

fighteriris gravatar imagefighteriris ( 2015-05-14 12:31:43 -0600 )edit

yea, come back, if you run into problems !

berak gravatar imageberak ( 2015-05-14 13:28:54 -0600 )edit

@berak still not working, i ll try to reinstall the os get back this weekend.

fighteriris gravatar imagefighteriris ( 2015-05-14 20:03:54 -0600 )edit

what error do you get ?

berak gravatar imageberak ( 2015-05-15 02:03:08 -0600 )edit

@berak the same, has no attribut ..... maybe i ll try the 2.4.11 version opencv.

fighteriris gravatar imagefighteriris ( 2015-05-15 08:25:41 -0600 )edit

again, you need cv2.face.create... not cv.create...

try help(cv2) and help(cv2.face)

berak gravatar imageberak ( 2015-05-15 08:27:21 -0600 )edit

just finished compile the 2.4.11, works good! will try 3.0.0 later thx @berak

fighteriris gravatar imagefighteriris ( 2015-05-16 08:28:21 -0600 )edit