2017-08-26 76 views
-1

我在Python 2.7(64位)得到這個錯誤蟒蛇fishface = cv2.createFisherFaceRecognizer()錯誤

Traceback (most recent call last): 
    File "C:\Users\sam\documents\visual studio 2017\Projects\PythonApplication1\PythonApplication1\PythonApplication1.py", line 6, in <module> 
    fishface = cv2.createFisherFaceRecognizer() 
AttributeError: 'module' object has no attribute 'createFisherFaceRecognizer' 
Press any key to continue . . . 

爲fishface = cv2.createFisherFaceRecognizer()。我使用visual studio 2017,當我用python 2.7(32位)運行這個時,沒有這樣的問題。

請幫我解決這個問題。

回答

0

FisherFaceRecognizer文件不存在,這就是問題出現的原因。重新安裝opncv2.7解決了這個問題。