Simple webcam controlled game using Teachable Machine model.
Live demo is available here.
The default trained model has the following gestures supported:
Install the dependencies...
cd svelte-app
npm install
...then start with
npm run dev
Navigate to localhost:5000. You should see your app running.
- Capture images for two classes: NOTHING and JUMP. Make sure you have named them correctly, otherwise the game won't work as expected.
- Train the model.
- Export your trained model with the "Upload (shareable link)" option.
- Copy your sharable link.
- Navigate to the app.
- Paste your sharable link into the input field and click "Start".
- You should be able to control the character with "JUMP" gesture of your choice.