OpenCv人脸识别问题

bgibtngc  于 2023-10-24  发布在  其他
关注(0)|答案(2)|浏览(161)

我在OpenCv中得到一个错误-
cv2.face has no attribute create LBPHFaceRecognizer
我已经安装了OpenCv contrib Python
Python 3.6版
OpenCv 3.4版

py49o6xq

py49o6xq1#

试试这个:

recognizer = cv2.face.LBPHFaceRecognizer_create()
kwvwclae

kwvwclae2#

我发现的是基于OpenCV 3.2,但我猜它应该仍然有效。
您需要使用的函数是cv2.face.createLBPHFaceRecognizer()。(https://www.superdatascience.com/opencv-face-recognition/
由于没有提供代码,这就是我现在所能告诉你的。

相关问题