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
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!
Page last edited March 08, 2024
Text editor powered by tinymce.