Picamera Websocket for Teachable Machine
How to use
- plug in camera
- setup camera
- offical Documentation
- clone this repo to your home directory
- install python dependencies
pip3 install -r requirements.txt
- open SSH tunnel to your raspberry
ssh pi@<raspberry-ip> -L 8080:<raspberry-ip>:8080
- run python script
python3 server.py
- visit Teachable Machine
- to collect images via the network append the following code to the link
?network=true
- now three options for uploading images show up.
- Wecam
- Upload
- Network <-- that is what you want
- use the configured websocket address
localhost
and the port8080
- press connect
- now you cann add images to the class by pressing the record button