https://github.com/lukaskirner/teachable-pi-websocket
Picamera websocket for Teachable Machine
https://github.com/lukaskirner/teachable-pi-websocket
pi picamera python3 teachable-machine websocket
Last synced: about 1 year ago
JSON representation
Picamera websocket for Teachable Machine
- Host: GitHub
- URL: https://github.com/lukaskirner/teachable-pi-websocket
- Owner: lukaskirner
- License: mit
- Created: 2020-01-17T21:42:23.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-17T23:18:50.000Z (over 6 years ago)
- Last Synced: 2024-09-09T11:01:24.134Z (almost 2 years ago)
- Topics: pi, picamera, python3, teachable-machine, websocket
- Language: Python
- Homepage:
- Size: 2.93 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Picamera Websocket for Teachable Machine
## How to use
1. plug in camera
2. setup camera
- offical [Documentation](https://www.raspberrypi.org/documentation/configuration/camera.md)
3. clone this repo to your home directory
4. install python dependencies
```
pip3 install -r requirements.txt
```
5. open SSH tunnel to your raspberry
```
ssh pi@ -L 8080::8080
```
6. run python script
```
python3 server.py
```
7. visit Teachable Machine
- to collect images via the network append the following code to the [link](https://teachablemachine.withgoogle.com/train/image?network=true)
```
?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 port `8080`
- press **connect**
- now you cann add images to the class by pressing the **record** button