Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions examples/javascript/BodyPix/BodyPix_Webcam/sketch.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ async function setup() {
// create a canvas to draw to
canvas = createCanvas(width, height);
ctx = canvas.getContext('2d');
// get the video
video = await getVideo();
// load bodyPix with video
bodypix = await ml5.bodyPix(options)
// get the video
video = await getVideo();

}

// when the dom is loaded, call make();
Expand Down Expand Up @@ -86,4 +87,4 @@ function createCanvas(w, h){
canvas.height = h;
document.body.appendChild(canvas);
return canvas;
}
}