Skip to main content

Picamera Websocket for Teachable Machine

How to use

  1. plug in camera
  2. setup camera
  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@<raspberry-ip> -L 8080:<raspberry-ip>: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
    ?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

Release files for teachable-pi-websocket 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for teachable-pi-websocket 0.0.1
File Size Uploaded
teachable_pi_websocket-0.0.1.tar.gz 2.4 kB Details

Release files / teachable_pi_websocket-0.0.1.tar.gz

Download URL teachable_pi_websocket-0.0.1.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
80ddc79f92357019ded2aeb7c34098f267cd5d07b2fc6e4fa55a7afe1fd42762
BLAKE2b-256 checksum
How to use checksums
849f119f9ead8c56022f82fb9c721dc63dd1f72071d44322036ef7f4d2d3dcea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page