niconielsen32 / ComputerVision

987 stars 596 forks source link

fix(headPoseEstimation): Rename attribute name according to changes in mediapipe library. #18

Open xmajzel opened 2 years ago

xmajzel commented 2 years ago

Mediapipe library has renamed attribute name, causing following error:

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

Resources:

xmajzel commented 2 years ago

Alternatively FACEMESH_CONTOURS attribute can be used, see attached photos for differences bellow.

FACEMESH_CONTOURS: FACEMESH_CONTOURS

FACEMESH_TESSELATION: FACEMESH_TESSELATION

xmajzel commented 2 years ago

@niconielsen32