I’m working on a project and I want to find only lips keypoint, and I’m using mediapipe and p5.js, so can anyone tell me how can I find only the lips keypoints and place some object on the lips.
for now, I’m getting the whole face mash and the code looks like this
faceMash = function () {
stroke(0);
strokeWeight(3);
beginShape(POINTS);
for (let i = 0; i < detections.multiFaceLandmarks[0].length; i++) {
let x = detections.multiFaceLandmarks[0][i].x * width;
let y = detections.multiFaceLandmarks[0][i].y * height;
vertex(x, y);
}
endShape();
};
detections
is a javascript object that contains key points