设计了五组件架构——Web 仪表板、超级管理员面板、移动伴侣应用、Streaming Orchestrator 微服务和 Cloudflare Worker HLS 边缘代理。
使用 React 构建了 Web 仪表板,支持多摄像头实时网格(支持多达 15 个摄像头布局)、拉取式流生命周期、低延迟模式和 AI 事件轮询反馈。
为 RTSP/IP 摄像头实现了注册功能,支持帧率 (FPS) 控制、区域定义、健康监控和 RTSP URL 缓存以实现更快的流启动。
设计并开发了 Streaming Orchestrator FastAPI 微服务,支持 MediaMTX 生命周期管理、自动扩展 DigitalOcean droplet 配置、缓冲区池和流再平衡。
交付了 Cloudflare Worker 边缘代理,用于 HLS 播放列表和片段缓存,并具有适当的 CORS 以支持跨域浏览器播放。
提供了全部 8 种 AI 事件类型(人物、游荡、入侵、运动、车辆、PPE、安全、区域活动),并带有边界框快照标注和严重性评分。
构建了多渠道警报系统,通过电子邮件、SMS、Twilio 上的 WhatsApp,以及 Slack、Teams、Zapier、Make.com 和 n8n webhook 集成发送警报。
实现了 Stripe 订阅引擎——五种套餐等级、托管结账、计费门户、webhooks、试用管理以及带有升级提示的摄像头数量限制强制执行。
创建了分析套件,涵盖人物、车辆、安全风险评估、摄像头和区域指标,并支持按需报告生成。
提供了移动伴侣应用体验——getUserMedia 设备摄像头流式传输、二维码配对、移动优化实时网格和现场警报分类。
添加了英语和希伯来语的国际化支持,包括在所有面向客户的界面中提供完整的 RTL 布局支持。
一个完整的云监控管道,从 RTSP 摄像头摄入到多渠道警报,具有实时 AI 事件检测、自动扩展流媒体基础设施和边缘缓存的低延迟播放。
MicrocosmWorks designed AwareCam with a pull-based stream lifecycle that only activates streaming when a viewer requests it, with TTL-based automatic shutdown. AI event detection runs on the cloud side where the auto-scaling MediaMTX orchestrator processes streams, analyzing frames for 8 event types including person detection, loitering, and zone intrusion. The Cloudflare Worker edge proxy caches HLS segments to reduce origin bandwidth, while bounding-box annotation snapshots are stored rather than full video, minimizing storage costs.
MicrocosmWorks delivered 8 AI event types: person detection, loitering, intrusion zone violation, motion detection, vehicle detection, PPE compliance, safety hazard, and zone activity monitoring. Each event includes bounding-box snapshot annotation and severity scoring that feeds into the alerting engine. The system supports configurable detection sensitivity thresholds and zone definitions per camera, allowing operators to reduce false positives in their specific environment.
MicrocosmWorks built an event-driven alerting pipeline that routes AI detections to configured channels based on event type and severity. Email and SMS alerts go through Twilio, WhatsApp notifications use the Twilio WhatsApp Business API, and Slack and Microsoft Teams receive webhook-formatted alerts. Additionally, Zapier, Make.com, and n8n webhook integrations allow operators to connect AwareCam alerts to any downstream workflow system.
MicrocosmWorks engineered the Streaming Orchestrator as a FastAPI microservice that manages MediaMTX server lifecycle with auto-scaling DigitalOcean droplet provisioning. When camera load exceeds a server's capacity, the orchestrator spins up additional streaming nodes, distributes cameras across the pool using buffer-based load balancing, and rebalances streams when nodes are added or removed. The entire provisioning and scaling process is automatic and transparent to end users.
MicrocosmWorks implemented 5-tier Stripe subscription billing with camera-limit enforcement at the API level. Each plan tier permits a specific maximum number of registered cameras, and the system blocks camera registration attempts that would exceed the limit while showing upgrade prompts. The subscription engine handles hosted checkout, billing portal access, webhook-driven plan changes, trial management, and organization-level billing for multi-tenant deployments.