Play with this demo here:
alistairmcclymont.com/experiments/lemon
This work was produced during the creation of this collaborative artwork between Alistair McClymont and John Fass:
alistairmcclymont.com
It works using Image Classification from the ml5js JavaScript machine learning framework.
Heavily influenced by Daniel Shiffman's great tutorials here: https://youtu.be/jmznx0Q1fP0 a tutorial about this will be coming soon...