vision/pc_vision/models/teachable
Jake 71645fc5ca streaming, comms, and basic image processing app 2026-07-17 14:52:46 +08:00
..
README.md streaming, comms, and basic image processing app 2026-07-17 14:52:46 +08:00
labels.txt streaming, comms, and basic image processing app 2026-07-17 14:52:46 +08:00

README.md

Teachable Machine export folder

Collect samples in the viewer first (Class + Save sample / P key),

then upload pc_vision/samples/Ball and .../Background into TM classes.

1. Go to https://teachablemachine.withgoogle.com/ → Image Project

2. Create classes, e.g. "Ball" and "Background"

3. Train, then Export Model → Tensorflow → Keras

4. Unzip and copy these two files into THIS folder:

keras_model.h5

labels.txt

5. In the viewer: Method → Teachable Machine (or click Load TM model…)

Tips for kids workshops:

- Take 3050 photos of the ball from different angles / distances

- Take 3050 background photos of the floor / room without the ball

- Retrain whenever lighting or the ball changes, then overwrite these files

Needs: pip install tensorflow (or tensorflow-cpu)