Coding Challenge #122: Quick, Draw!
In this multi-part coding challenge, I take a closer look at the Quick, Draw! dataset and create a simple node API to "replay" drawings of rainbows and cats using p5.js. Code: https://thecodingtrain.com/challenges/122-quick-draw
πΉοΈ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/HyRPosF07
Other Parts of this Challenge:
πΊ Quick, Draw! Part 2: https://youtu.be/EcRK6oFddPQ
π₯ Next video: https://youtu.be/7gNzMtYo9n4?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
References:
π Quick, Draw! The Data: https://quickdraw.withgoogle.com/data
πΎ sketch-rnn: https://magenta.tensorflow.org/sketch-rnn-demo
πΎ Quick, Draw! Web Component: https://opensource.googleblog.com/2018/11/introducing-web-component-and-data-api-for-quick-draw.html
π Quick, Draw! API: https://github.com/googlecreativelab/quickdraw-dataset
Videos:
π₯ Doodle Classifier: https://www.youtube.com/watch?v=pqY_Tn2SIVA&list=PLRqwX-V7Uu6Zs14zKVuTuit6jApJgoYZQ
π₯ What is JSON?: https://www.youtube.com/watch?v=_NFkzw6oFtQ
π₯ Building an API with Node: https://www.youtube.com/watch?v=P-Upi9TMrBk
Live Stream Archive:
π΄ Coding Train Live 161: https://youtu.be/v8lm5XZ2V6M?t=4041s
Related Coding Challenges:
π #128 SketchRNN Snowflakes with ml5.js: https://youtu.be/pdaNttb7Mr8
π #153 Interactive Drawing with SketchRNN: https://youtu.be/ZCXkvwLxBrA
Timestamps:
0:00 Introducing today's topics: the Quick, Draw! dataset
2:48 The data is the pixel paths with timing information
4:53 ndjson files
6:58 Download a simplified ndjson file
9:26 Install express and ndjson packages
12:12 Run the server
13:03 Make an express server
14:45 Pick a random drawing
16:05 Have server host a p5 sketch
18:02 Write a function to load the drawing
19:28 Loop through all the paths in the drawing
24:22 Animate the drawing
27:33 Loop through points within the strokes
29:30 Connect the points
32:12 Reset the strokeIndex to zero to draw a new cat
32:22 Enjoy a whole bunch of cats!
Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound
π Website: http://thecodingtrain.com/
πΎ Share Your Creation! https://thecodingtrain.com/guides/passenger-showcase-guide
π© Suggest Topics: https://github.com/CodingTrain/Suggestion-Box
π‘ GitHub: https://github.com/CodingTrain
π¬ Discord: https://thecodingtrain.com/discord
π Membership: http://youtube.com/thecodingtrain/join
π Store: https://standard.tv/codingtrain
ποΈ Twitter: https://twitter.com/thecodingtrain
πΈ Instagram: https://www.instagram.com/the.coding.train/
π₯ Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
π p5.js: https://p5js.org
π p5.js Web Editor: https://editor.p5js.org/
π Processing: https://processing.org
π Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct
This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecodingtrain.com/issues/new
#quickdraw #machinelearning #doodleclassifiers #sketchrnn #p5js #nodejs #javascript
Other Videos By The Coding Train
Other Statistics
Quick, Draw! Statistics For The Coding Train
At present, The Coding Train has 102,070 views spread across 4 videos for Quick, Draw!, and about 5 hours worth of Quick, Draw! videos were uploaded to his channel. This is less than 0.54% of the total video content that The Coding Train has uploaded to YouTube.