Last Friday I visited an Amsterdam high school developer night, where students could experience all sorts of cool tech. I hosted a workshop on machine learning. Students learned to train their robot to recognize and find groceries! And you can build it too.
If you haven’t followed the introduction to machine learning yet, be sure to check it out first. In this project, the robot is trained to recognize various categories of groceries, such as strawberries, broccoli, or cake.
When you try this project, be sure to train your own model with pictures of your own items (toy groceries or otherwise), otherwise the robot won’t recognize anything.
The program is very simple, as shown below. It receives the value of the category for the best match, and uses it to decide whether it's the broccoli.