After setting up the Raspberry Pi + BerryIMU as detailed in the Installation section, we can finally run our gesture classifier! 💪
In order to run it, simply write the command below:
python classifier.py
This will then prompt the home screen of the classifier as seen below:
/$$$$$$$ /$$ /$$$$$$$ /$$ /$$ /$$
| $$__ $$ |__/ | $$__ $$ | $$| $$ |__/
| $$ \ $$ /$$$$$$ /$$ /$$ /$$ /$$$$$$$ | $$ \ $$ /$$$$$$ /$$$$$$ /$$$$$$$| $$ /$$$$$$ /$$ /$$$$$$
| $$$$$$$ /$$__ $$| $$ | $$| $$| $$__ $$| $$ | $$ /$$__ $$ /$$__ $$ /$$__ $$| $$ /$$__ $$ | $$ /$$__ $$
| $$__ $$| $$ \__/| $$ | $$| $$| $$ \ $$| $$ | $$| $$ \ $$| $$ \ $$| $$ | $$| $$| $$$$$$$$ | $$| $$ \ $$
| $$ \ $$| $$ | $$ | $$| $$| $$ | $$| $$ | $$| $$ | $$| $$ | $$| $$ | $$| $$| $$_____/ | $$| $$ | $$
| $$$$$$$/| $$ | $$$$$$/| $$| $$ | $$| $$$$$$$/| $$$$$$/| $$$$$$/| $$$$$$$| $$| $$$$$$$ /$$| $$| $$$$$$/
|_______/ |__/ \______/ |__/|__/ |__/|_______/ \______/ \______/ \_______/|__/ \_______/|__/|__/ \______/
What is your username?
⚠️ Warning! ⚠️ The terminal will also prompt you to enter your username (see above), so make sure you log into the room before attempting to connect to the Raspberry Pi!
Are you using a button? [y/n]
⚠️ Another Warning! ⚠️ After entering your username, the classifier will ask you if you are using a button (see above), so make sure you answer with y if you are using the drawing tool, or n if you are just using the Raspberry Pi 🥧 and BerryIMU!
Now that the gesture classifier is running, we can finally make it detect our gestures! Here is a list of gestures that an artist or guesser can perform to activate different power-ups whenever certain conditions are satisfied.