From b31a2829061eff4875497e5bff53db2a2b414e9e Mon Sep 17 00:00:00 2001 From: Yatharth Shah <34169423+yatharth9@users.noreply.github.com> Date: Mon, 23 May 2022 14:16:34 +0530 Subject: [PATCH] Removed AttributeError by updating changed Attribute Name https://github.com/google/mediapipe/issues/2448 In Mediapipe, they have renamed FACE_CONNECTIONS to FACE_CONTOURS. This PR replaces the old Attribute Name with the new Attribute Name. --- headPoseEstimation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/headPoseEstimation.py b/headPoseEstimation.py index ba93897..96e2613 100644 --- a/headPoseEstimation.py +++ b/headPoseEstimation.py @@ -123,7 +123,7 @@ mp_drawing.draw_landmarks( image=image, landmark_list=face_landmarks, - connections=mp_face_mesh.FACE_CONNECTIONS, + connections=mp_face_mesh.FACEMESH_CONTOURS, landmark_drawing_spec=drawing_spec, connection_drawing_spec=drawing_spec) @@ -134,4 +134,4 @@ break -cap.release() \ No newline at end of file +cap.release()