Skip to content

ChrisFajardo-TRI/hackathon2022

Repository files navigation

Playing with PyScript

Web Client App

  • Serve from this directory with python -m http.server
  • Take a webcam image and try some image segmentation
  • Supports Progressive Web App (Can install as Desktop App or Save to Home Screen on iOS) and caching.

Notes

  • iOS needs HTTPS to use webcam (I used ngrok to serve)
  • JS for webcam because opencv cv2.VideoCapture() doesn't work

Promising

  • Scientific Python in Browser
  • Served as static site, runs on client
  • Multi OS support

Flaws

  • Slow load
  • Packages
    • not all supported or work correctly (requests, pyTorch)
    • separately compiled and maintained
    • no version choices
  • Little docs

References

PyScript

Python

JavaScript

About

TRI CSI hackathon 8/2/2022 to 8/3/2022

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published