我在OpenCv中得到一个错误-cv2.face has no attribute create LBPHFaceRecognizer我已经安装了OpenCv contrib PythonPython 3.6版OpenCv 3.4版
cv2.face has no attribute create LBPHFaceRecognizer
py49o6xq1#
试试这个:
recognizer = cv2.face.LBPHFaceRecognizer_create()
kwvwclae2#
我发现的是基于OpenCV 3.2,但我猜它应该仍然有效。您需要使用的函数是cv2.face.createLBPHFaceRecognizer()。(https://www.superdatascience.com/opencv-face-recognition/)由于没有提供代码,这就是我现在所能告诉你的。
cv2.face.createLBPHFaceRecognizer()
2条答案
按热度按时间py49o6xq1#
试试这个:
kwvwclae2#
我发现的是基于OpenCV 3.2,但我猜它应该仍然有效。
您需要使用的函数是
cv2.face.createLBPHFaceRecognizer()
。(https://www.superdatascience.com/opencv-face-recognition/)由于没有提供代码,这就是我现在所能告诉你的。