xxxxxxxxxx
32
let handPose;
let myVideo;
let myResults;
function setup() {
createCanvas(640, 480);
myVideo = createCapture(VIDEO);
myVideo.size(width, height);
myVideo.hide();
handPose = ml5.handpose();
handPose.detectStart(myVideo, gotResults);
}
function gotResults(results) {
console.log(results);
myResults = results;
}
function draw() {
image(myVideo, 0, 0, width, height);
if (myResults) {
drawKeyPoints();
}
}
// Here are the functions for drawing your selected key points!
// Need to find a way to get to this link and still have custom selected Keypoints. Perhaps, just need to paste in.
// ---------------------------------------