π Try this Example
View the complete source code on GitHub. Steps to run:- Install fal:
- Authenticate:
- Clone the demos repo and install dependencies:
- Run the backend (local dev):
- Run the frontend:
myuser/myapp/webrtc).
Deploy to fal
To host the backend, deploy the app and use the resulting endpoint in the UI:your-username/your-app/webrtc.
How it works
- The browser streams your webcam to the app in real-time (WebRTC transport).
- The backend runs YOLO on each frame and draws detection boxes.
- The annotated stream is sent back to the browser over the same connection.