Skip to content

Commit 39cd596

Browse files
tlsaegerbomanimc
authored andcommitted
Posenet instead of facemesh in the comments
Hey there, in the comments of this example posenet is mentioned instead of facemesh. I adjusted accordingly, needs to be changed in the web editor as well. Cheers! Tom
1 parent 1835be4 commit 39cd596

File tree

1 file changed

+5
-5
lines changed
  • examples/p5js/Facemesh/Facemesh_Image

1 file changed

+5
-5
lines changed

examples/p5js/Facemesh/Facemesh_Image/sketch.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function setup() {
1515
frameRate(1); // set the frameRate to 1 since we don't need it to be running quickly in this case
1616
}
1717

18-
// when the image is ready, then load up poseNet
18+
// when the image is ready, then load up facemesh
1919
function imageReady() {
2020
facemesh = ml5.facemesh(modelReady);
2121

@@ -24,18 +24,18 @@ function imageReady() {
2424
});
2525
}
2626

27-
// when poseNet is ready, do the detection
27+
// when facemesh is ready, do the detection
2828
function modelReady() {
2929
console.log("Model ready!");
3030
facemesh.predict(img);
3131
}
3232

33-
// draw() will not show anything until poses are found
33+
// draw() will not show anything until the face is found
3434
function draw() {
3535
if (predictions.length > 0) {
3636
image(img, 0, 0, width, height);
3737
drawKeypoints();
38-
noLoop(); // stop looping when the poses are estimated
38+
noLoop(); // stop looping when the face is estimated
3939
}
4040
}
4141

@@ -44,7 +44,7 @@ function drawKeypoints() {
4444
for (let i = 0; i < predictions.length; i += 1) {
4545
const keypoints = predictions[i].scaledMesh;
4646

47-
// Draw facial keypoints.
47+
// Draw keypoints.
4848
for (let j = 0; j < keypoints.length; j += 1) {
4949
const [x, y] = keypoints[j];
5050

0 commit comments

Comments
 (0)