Back to Projects Python · FastAPI · OpenCV · WebRTC · PWA

RoomCam: Live Demo

Try the motion-detection idea behind RoomCam right here in your browser. Use your camera or a simulated one, change the settings, and watch the alert a phone would receive.

About this demo. This is a simplified browser version of the detection step. The real RoomCam runs on a laptop with Python and OpenCV, sends alerts with Web Push, and streams live video to the phone with WebRTC. Here everything runs in your browser: no video is recorded, uploaded or sent anywhere.
Stopped SIMULATED CAMERA
Settings
Changed area now: 0.0%
Phone (simulated)
No alerts yet
Event log
Start a camera to begin.
How the detection works
  1. Each frame is shrunk to 160×90 and turned to grayscale.
  2. It is compared with a slowly updating background image.
  3. Pixels that changed more than the sensitivity threshold are counted inside the chosen zone.
  4. An alert fires only after several frames in a row confirm the motion, and then waits before the next one.