Classifying webcam input with DoodleNet.
At first, I wanted to implement PoseNet + webcam classified with DoodleNet, but between implementing PoseNet into the DoodleNet sketch and actually using PoseNet to draw so that users could see themselves drawing and then send just the drawing with a white background for DoodleNet consumption, I was not able to complete this task.
Instead, I opted to just use webcam input in the DoodleNet sketch. The classifier is triggered by mousePressed. Once the user clicks, the object detected is displayed and the screen freezes momentarily, before fading back to the webcam displayed.
https://editor.p5js.org/matthewli/sketches/j1FbUq8X2