xxxxxxxxxx
18
let classifier;
let video;
function preload() {
classifier = ml5.imageClassifier("MobileNet");
}
function setup() {
createCanvas(640, 400);
video = createCapture(VIDEO);
video.hide();
classifier.classifystart(VIDEO)
}
function draw() {
background(220);
image(video,0,0);
}