2024-09-28 17:29:24 发布
网友
我在OpenCv中遇到一个错误-
cv2.face has no attribute create LBPHFaceRecognizer
我已经安装了OpenCv contrib Python
Python 3.6版
OpenCv 3.4版
我发现的是基于opencv3.2的,但我想它应该仍然有效。在
您需要使用的函数是cv2.face.createLBPHFaceRecognizer()。 (https://www.superdatascience.com/opencv-face-recognition/)
cv2.face.createLBPHFaceRecognizer()
因为没有提供代码,所以我现在只能告诉你。在
试试这个:
recognizer = cv2.face.LBPHFaceRecognizer_create()
我发现的是基于opencv3.2的,但我想它应该仍然有效。在
您需要使用的函数是
cv2.face.createLBPHFaceRecognizer()
。 (https://www.superdatascience.com/opencv-face-recognition/)因为没有提供代码,所以我现在只能告诉你。在
试试这个:
相关问题 更多 >
编程相关推荐