解决:AttributeError: module ‘mediapipe.python.solutions.face_mesh‘ has no attribute ‘FACE_CONNECTIONS‘

使用MediaPipe中的面网格 Media Face Mesh做人脸面部检测调用电脑摄像头或读取电脑端的视频时出现问题:AttributeError: module ‘mediapipe.python.solutions.face_mesh’ has no attribute 'FACE_CONNECTIONS’的解决方法。

问题见下:
在这里插入图片描述
出现以上问题的主要原因是:FACE_CONNECTIONS 被重命名为 FACE_CONTOURS,只需将代码中的FACE_CONNECTIONS修改为FACE_CONTOURS即可正常运行,见下:
在这里插入图片描述
以上就是使用MediaPipe中的面网格 Media Face Mesh做人脸面部检测调用电脑摄像头或读取电脑端的视频时出现问题:AttributeError: module ‘mediapipe.python.solutions.face_mesh’ has no attribute 'FACE_CONNECTIONS’的解决方法,希望能帮助到你,多多支持,谢谢!

猜你喜欢

转载自blog.csdn.net/qq_40280673/article/details/125537519