From 53777f43706f828317685e2f0e9a1bb0145c6374 Mon Sep 17 00:00:00 2001 From: amcc Date: Mon, 13 May 2024 07:36:04 +0100 Subject: [PATCH] remove unused code --- mediaPipe/poseLandmarks/sketch.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/mediaPipe/poseLandmarks/sketch.js b/mediaPipe/poseLandmarks/sketch.js index 93b227f..8a5c77f 100644 --- a/mediaPipe/poseLandmarks/sketch.js +++ b/mediaPipe/poseLandmarks/sketch.js @@ -37,18 +37,12 @@ function draw() { // each person contains an array of positions of each body part person.forEach((part, partIndex) => { // get the lerped position for detected body parts - const x = lerpLandmarks[personIndex][partIndex].x; const y = lerpLandmarks[personIndex][partIndex].y; - // draw a circle on each body part - // non lerped - // fill(255); - // circle(...getFlipPos(part), 10); + // unlerped positions are part.x and part.y + // circle(part.x * capture.width, part.y * capture.height, 10); - // lerped - fill("cyan"); - // circle(...getFlipPos(l[index]), 10); circle(x, y, 10); }); });