Now that your model is trained and tested we can integrate it with a game of Rock, Paper, Scissors! The game demonstrates how to use the predicted label from the model to trigger events.

First, navigate to the Lobe Adafruit Kit folder:

cd ~
cd lobe-adafruit-kit

Run the Python program with the following command:

python3 lobe-rock-paper-scissors.py

Play the Game!

Click the BrainCraft button. This starts a countdown -- make your hand gesture and the Pi will take a photo at the end of the countdown.

The screen displays the Pi's choice and then displays a winner!

This guide was first published on Mar 31, 2021. It was last updated on Mar 31, 2021.

This page (Play Rock, Paper, Scissors) was last updated on Mar 30, 2021.

Text editor powered by tinymce.