0

我试图在我的程序中使用 '''cv2.face.LBPHFaceRecognizer_create()''' 但这个错误来自AttributeError: module 'cv2.cv2' has no attribute 'face' on pycharm。我已经安装了此功能所需的所有以下库,但仍然没有解决方案。我是pycharm windows 10上的这个程序。

4

1 回答 1

0

做:

pip install opencv-contrib-python

然后再试一次。这对我有用

于 2021-05-19T18:23:04.303 回答