Git Commits
scratch commits 4
ohnsh/scratch-
5:58 pm — John Sherrell <dev@ohn.sh>
yolo demo: switching to live camera stream now works. Rebuilt as a React component. Swapped old <UserMedia> component for useUserMedia custom hook. It kind of works on my iPhone 15 Pro, but lots of room for improvement.
-
10:51 am — John Sherrell <dev@ohn.sh>
yolo demo: based on a tip from edge devtools, setting `willReadFrequently` flag for canvas rendering context created in VideoProcessor. Helps the browser optimize by storing bitmap on CPU when it's frequently read back into JavaScript (we're doing it 10 times per second).
-
12:43 am — John Sherrell <dev@ohn.sh>
Merge branch 'yolo'
-
12:40 am — John Sherrell <dev@ohn.sh>
Now importing onnxruntime-web via CDN to prevent vite bundling a giant WASM runtime that exceeds the asset size limit on Cloudflare Workers. Created typescript module declaration shim that references types in the still-installed npm package.