Today you will build an image model in Teachable Machine that can recognise rock, paper and scissors hand gestures from your webcam.
You will create three classes, add your own example images, train the model, test it live, improve it when it gets something wrong, and export a link to use later.
Before you start: what do you think the computer needs to see in order to tell rock, paper and scissors apart?
Keep the start short. Devices on Teachable Machine, cameras ready. Optional predict: ask what the computer needs to see to tell the three gestures apart, and park one or two ideas to revisit in make sense. Do not open any saved project; this lesson begins fresh. Then move straight into the build.
In this lesson, you will create an image model using Google's Teachable Machine to recognise rock, paper and scissors hand gestures.
Google's Teachable Machine is a tool that allows you to create machine learning models. You'll train the model to recognize different hand gestures for rock, paper, and scissors.
In another lesson in this course we will use the model to build an AI Rock, Paper, Scissors game.
Read the goal aloud: three gesture classes, train, test, and later use the model in a game. Stress that today's product is the trained model and its link, not a finished game. Pair students if that is your routine.
First we need to open the Google's Teachable Machine website to create our model.
Click on the Get Started button.
Model Get Started on the board. Watch for blocked sites or students landing on the wrong tool. Circulate until every device is on the Teachable Machine start screen.
Click on the Image Project button to create a new image model project, and then click on the Standard image model option.
This will bring you to the screen where we can create our classes for our image model.
In an AI image model, a class is a category that the model can recognize. For example, in our rock, paper, scissors game, we will have three classes: rock, paper, and scissors. The AI will learn to recognize images of each class and be able to tell them apart.
Model choosing Image Project and Standard image model. Ask: what is a class in this tool? (A category the model will learn to recognise.) Check pairs are on the class editor before renaming.
There will be two classes already added to your model called 'Class 1' and 'Class 2'.
Add a third class by clicking on the 'Add a class' button and then rename your classes to:
Ensure three classes named Rock, Paper and Scissors with consistent spelling. Common bug: leaving Class 1 or Class 2 unchanged, which confuses testing later. Differentiation: support renames first; extension pairs can already plan varied hand poses.
You're previewing this lesson. Get full access to this lesson and hundreds more — each one ready to teach, with interactive activities, printable resources and pupil progress tracking built in.