ml5 cdn
<script src="https://unpkg.com/ml5@latest/dist/ml5.min.js"></script>
ml5 cdn
<script src="https://unpkg.com/ml5@latest/dist/ml5.min.js"></script>
how to use ml5.js
// Step 1: Create an image classifier with MobileNet
const classifier = ml5.imageClassifier("MobileNet", onModelReady);
// Step 2: select an image
const img = document.querySelector("#myImage");
// Step 3: Make a prediction
let prediction = classifier.predict(img, gotResults);
// Step 4: Do something with the results!
function gotResults(err, results) {
console.log(results);
// all the amazing things you'll add
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us