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

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

fighteriris gravatar image

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

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


the face recognition code was moved to

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

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

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

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

yea, come back, if you run into problems !

berak gravatar imageberak ( 2015-05-14 13:28:54 -0500 )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 -0500 )edit

what error do you get ?

berak gravatar imageberak ( 2015-05-15 02:03:08 -0500 )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 -0500 )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 -0500 )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 -0500 )edit