vision/pc_vision/models/teachable/README.md

21 lines
833 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 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)