xxxxxxxxxx
23
let classifier;
let img;
function setup() {
createCanvas(400, 400);
classifier = ml5.imageClassifier('MobileNet', modelReady);
img = dog.jpg
img.elt.crossOrigin = 'Anonymus';
classifier.predict(img, processResults);
}
function processResults(err, data){
print (err);
print(data);
}
function modelReady (){
print('Model Be READYY!');
}
function draw() {
background(220);
}