Skip to content

Latest commit

 

History

History
44 lines (36 loc) · 1.62 KB

README.md

File metadata and controls

44 lines (36 loc) · 1.62 KB

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