【发布时间】:2017-11-21 04:59:06
【问题描述】:
我正在尝试运行一些面部检测和面部识别代码。但是,当我尝试运行用于训练数据的代码时,它显示了一些错误。我在 Windows 平台上使用 Python 3.6 版本和 OpenCV 模块。我先添加代码,然后再出错。
它显示以下错误:
C:\Users\MAN\AppData\Local\Programs\Python\Python36\python.exe C:/Users/MAN/PycharmProjects/facerecognition/Train/train.py
Traceback (most recent call last): File "C:/Users/MAN/PycharmProjects/facerecognition/Train/train.py", line 5, in <module> recognizer = cv2.createLBPHFaceRecognizer()
AttributeError: module 'cv2.cv2' has no attribute 'createLBPHFaceRecognizer'
Process finished with exit code 1
【问题讨论】:
-
请编辑您的问题并在此处添加错误。还将您的代码添加为文本,而不是图像。
-
I downvoted because images of code are not useful 和 because you're being unresponsive to comments - 很久以前你被要求用实际文本替换代码图像,但没有这样做。