ml5.js: Classifying Drawings with DoodleNet
ML5 Beginners Guide Lesson #9.1
Quick, draw! In this video, I demonstrate how to use the DoodleNet pre-trained machine learning model to classify drawings of cats, strawberries, and other common doodles in JavaScript (with p5.js and ml5.js).
Topics
- 0:00 - Introduction! About DoodleNet
- 1:35 - Code! doodleClassifier
- 3:24 - Try! console logging results
- 4:31 - Code! resultsDiv and loop classification
- 6:51 - Try! drawing a cat
- 8:17 - Code! make it work with video
- 8:59 - Try! draw a strawwwberrrry
- 9:11 - Code! add threshold
- 9:44 - Try! thicker pen
- 10:26 - Try! threshold on/off
- 10:51 - Try! it daring me to draw a snowman
- 11:13 - Wrap up!
Community Contributions
It seems like there haven't been made any variations based on this lesson by the community yet. Be the first and add your own! If you don't know how, take a look at this guide.
Links discussed in this lesson
Videos discussed in this lesson
- Quick, Draw! - Coding Challenge #122 by The Coding Train
- Shape Classifier with ml5.js - Coding Challenge #158 by The Coding Train