Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
amcc committed May 13, 2024
1 parent e7bee9b commit 53777f4
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions mediaPipe/poseLandmarks/sketch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});
Expand Down

0 comments on commit 53777f4

Please sign in to comment.