{"slug": "stream-edge-ai-vision-to-any-browser-via-webrtc", "title": "Stream Edge AI Vision to Any Browser via WebRTC", "summary": "A new project demonstrates streaming AI-annotated video from Seeed Studio's reCamera edge device to any browser via WebRTC, using on-device YOLO11n object detection, RTSP video output, and MQTT for detection data. A lightweight PC-side WebRTC bridge fuses the results and serves them with sub-second latency, enabling integration into custom dashboards, multi-camera walls, and remote inspection systems without plugins.", "body_md": "What if your edge camera's video stream could reach any browser — with zero plugins, ultra-low latency, and live AI inference overlays — all at once?\n\nThis project demonstrates how to \"free\" the video stream from the reCamera — converting it from a standalone vision device into a video source that any web system can integrate. On-device YOLO11n object detection runs on the reCamera, the encoded video is pushed out via RTSP, and the AI detection boxes travel alongside via MQTT. A lightweight PC-side WebRTC bridge (built with OpenCV + aiortc) fuses the inference results onto the video frames and serves them as a WebRTC stream that plays directly in the browser — no plugins, no extra apps.\n\nMost edge cameras lock their video stream inside a proprietary app or a single desktop client. But in real-world deployments, you want to embed that stream into your own dashboard, aggregate multiple cameras on one page, or access the feed remotely across different networks. It takes the reCamera's RTSP output and bridge it to WebRTC — the same technology behind Google Meet and Discord — so the live, AI-annotated video plays in any modern browser with sub-second latency.\n\n- 🎥 Intelligent Surveillance & Security Monitoring — Embed live, AI-annotated camera feeds into your existing security dashboard; WebRTC's NAT traversal enables cross-network access without a VPN.\n\n- 🏭 Remote Inspection & Diagnostics — Technicians view the reCamera's live feed with detected objects from any browser, anywhere — ideal for factory floors and hard-to-reach deployments.\n\n- 🖥️ Multi-Camera Video Aggregation Walls — Display multiple reCamera streams on a single web page to build a multi-channel monitoring wall.\n\n- 📊 Custom Web Dashboards & IoT Platform Integration — Treat the reCamera as a standard video source and pipe its AI-annotated stream into your IoT platform or management system.\n\nBuild Instructions**Step 1 — Set Up the reCamera**\n\n- 1. Follow the official\n[reCamera Getting Started](https://wiki.seeedstudio.com/recamera_getting_started/)guide to complete basic configuration. - 2. Power the device and connect it to your network (same LAN as the PC).\n- 3. Open a browser and go to http://192.168.42.1, then log in to the Node-RED workspace.\n\nIf you can see the Node-RED workflow editor, setup is complete.\n\n**Step 2 — Configure the RTSP Streaming Workflow**\n\nThis demo is built from four Node-RED nodes on the reCamera: Camera, Stream, Model, and MQTT out.\n\n**2.1 Import & Configure the Camera Node**\n\nDrag the Camera node from the left palette into the workspace and double-click to configure it. Set resolution, frame rate, and other parameters as needed.\n\n**2.2 Import & Configure the Stream Node**\n\nDrag the Stream node into the workspace, select the RTSP protocol, and configure the stream address and port. The default reCamera RTSP stream address is:\n\n**2.3 Import the Model Node**\n\nDrag the Model node into the workspace, click Device, and select the YOLO11n Detection model.\n\n**2.4 Import the MQTT Out Node**\n\nDrag the MQTT out node into the workspace and set the MQTT broker address (your PC's IP) and the topic used to communicate with the server (yolo11n_result).\n\n**Step 3 — Deploy the WebRTC Bridge on the PC**\n\nThe WebRTC bridge runs on the PC. It receives the RTSP stream and MQTT messages, fuses the inference results onto the video, and repackages everything as WebRTC for browser playback.\n\nClone or download the [RTSP-to-WebRTC repository](https://github.com/hunter5299/Node-Red-project/tree/main/rtsp_to_webrtc) , then install and the Python dependencies:\n\nbashcd rtsp_to_webrtcpip install -r requirements.txtpython server.py --source rtsp://admin:admin@192.168.42.1:554/live --port 8080**Step 4 — Run the Demo**\n\n- 1. Ensure the reCamera's RTSP streaming workflow is deployed and running.\n- 2. Ensure the PC-side server.py is started and running.\n- 3. Open a browser on the PC and go to http://localhost:8080.\n- 4. Select the protocol (RTSP) and enter the reCamera's RTSP stream address (pre-filled by default).\n- 5. Click \"Start Playback\".\n\n- The reCamera's RTSP stream supports 1–2 concurrent connections by default. If another program (e.g., VLC) is already connected, the WebRTC service may fail to receive the stream. Close other RTSP clients before running the demo.\n\n- If aiortc installation fails, ensure the Microsoft C++ Build Tools (Windows) or gcc/make (Linux) are installed.\n\n- If the server log shows a non-existing PPS error, this means a keyframe has not yet arrived — this is normal and will auto-recover once the next keyframe arrives (~1 second).\n\n- To change the server port, use `python server.py --port <port>`.\n\n- If video latency is high, check network bandwidth and ensure a stable connection between the PC and the reCamera.\n\n[Read more](javascript:void(0))", "url": "https://wpnews.pro/news/stream-edge-ai-vision-to-any-browser-via-webrtc", "canonical_source": "https://www.hackster.io/zxj/stream-edge-ai-vision-to-any-browser-via-webrtc-4af4b6", "published_at": "2026-06-18 01:33:03+00:00", "updated_at": "2026-06-19 13:40:58.068007+00:00", "lang": "en", "topics": ["computer-vision"], "entities": ["reCamera", "Seeed Studio", "YOLO11n", "RTSP", "WebRTC", "MQTT", "Node-RED", "aiortc"], "alternates": {"html": "https://wpnews.pro/news/stream-edge-ai-vision-to-any-browser-via-webrtc", "markdown": "https://wpnews.pro/news/stream-edge-ai-vision-to-any-browser-via-webrtc.md", "text": "https://wpnews.pro/news/stream-edge-ai-vision-to-any-browser-via-webrtc.txt", "jsonld": "https://wpnews.pro/news/stream-edge-ai-vision-to-any-browser-via-webrtc.jsonld"}}