我想我有一些Windows系統或python 3.6版本的問題。我正面臨一些屬性錯誤。我已經檢查並重新檢查了我的代碼,並且沒有錯誤,我也將我的代碼與其他人進行了比較,並且我已經看到沒有錯誤。那麼爲什麼我面臨這種錯誤。我在這裏添加我的代碼:AttributeError:模塊'cv2.cv2'沒有屬性'cv'
和我面臨以下錯誤。
C:\Users\MAN\AppData\Local\Programs\Python\Python36\python.exe C:/Users/MAN/PycharmProjects/facerecognition/Recognise/recognizerr.py Traceback (most recent call last): File "C:/Users/MAN/PycharmProjects/facerecognition/Recognise/recognizerr.py", line 11, in font = cv2.cv.InitFont(cv2.cv.CV_FONT_HERSHEY_SIMPLEX, 1, 1, 0, 1, 1) AttributeError: module 'cv2.cv2' has no attribute 'cv'
Process finished with exit code 1
這是Windows問題還是隻顯示Python 3.6版本中的錯誤? 爲您提供的信息我在Windows平臺上使用Python 3.6。
請不要*張貼*代碼*的屏幕截圖*,* *代碼。 –
[AttributeError:'module'對象可能有重複'InitFont'](https://stackoverflow.com/questions/44021999/attributeerror-module-object-has-no-attribute-initfont) –