xxxxxxxxxx
23
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)
}
function draw() {
background(220);
image(myVideo, 0, 0, width, height)
}