r/computervision • u/jasonheecs • 1h ago
Showcase Training machine learning models to recognize fruits
Enable HLS to view with audio, or disable this notification
As a beginner learner in machine learning, I trained a couple of machine learning models to recognize fruit and turned them into a web app that runs entirely in the browser: https://fruitlens.app
You point your phone's camera at some fruit and it draws a box around each piece, names it, and shows its nutrition facts. Everything runs in your browser, so inference is done client side
There are two models. A YOLO26s detector finds anything that looks like fruit, then a MobileNetV3 classifier tries to work out what fruit it is
I wrote up the details here: https://blog.jasonhee.com/training-machine-learning-models-to-recognize-fruits/
If you try it, I'd really like to know what it gets wrong. Screenshots of failures help the most. I'd also like to hear how well it runs on your phone, since I've only tested it on a handful of devices.