본문 바로가기
ERROR

AttributeError: module 'mediapipe.python.solutions.holistic' has no attribute 'FACE_CONNECTIONS'

by ram_ 2023. 3. 4.

 

FACEMESH_TESSELATION으로 바꿔주었더니 정상출력 되었다.


I just looked into the sourcecode at https://github.com/google/mediapipe/blob/master/mediapipe/python/solutions/holistic.py

FACE_CONNECTIONS seems to be renamed/replaced by FACEMESH_TESSELATION.

Just changing that name in the code should work.

PS: If you want just the outlines of the face, it's now FACEMESH_CONTOURS

https://stackoverflow.com/questions/69095372/attributeerror-module-mediapipe-python-solutions-holistic-has-no-attribute-f

 

AttributeError: module 'mediapipe.python.solutions.holistic' has no attribute 'FACE_CONNECTIONS'

need help this is my code: import mediapipe as mp mp_drawing = mp.solutions.drawing_utils # Drawing helpers mp_holistic = mp.solutions.holistic # Mediapipe Solutions cap = cv2.VideoCapture(0) #

stackoverflow.com