Lumen
Smart.Private.Green.
The problem Lumen solves
🔆 Lumen — The Problem It Solves
Campus buildings and institutional spaces hemorrhage energy every day - lights blazing in empty lecture halls, ACs running in vacant labs, fans humming in deserted corridors - simply because there's no intelligent system watching. Lumen solves this by repurposing the CCTV cameras already installed in these spaces, transforming them into a real-time occupancy intelligence layer using YOLOv11 AI person detection. Rather than requiring expensive smart-sensor retrofits or manual intervention from facility managers, Lumen continuously scans each room, detects whether people are actually present, and automatically triggers appliance ON/OFF commands (lights, fans, AC) through smart relays - all without storing or transmitting any identifiable footage, thanks to its privacy-first "Ghost Mode" that renders only skeletal stick-figure outlines. Facility admins get a live dashboard showing occupancy counts, appliance states, and a historical Waste Event Log that tracks every time energy was saved - turning invisible waste into measurable, actionable data. Whether it's a university trying to cut its electricity bill, a school aiming to reduce its carbon footprint, or a corporate campus optimizing after-hours energy use, Lumen makes energy efficiency automatic, auditable, and camera-agnostic - working with built-in webcams, USB cameras, or IP/RTSP streams right out of the box, with zero dependency on cloud services or external infrastructure.
Challenges we ran into
🧱 Challenges I Ran Into
One of the trickiest hurdles we hit early on was getting the CV microservice to reliably open camera sources across different hardware setups. OpenCV's VideoCapture behaves inconsistently depending on the backend (DSHOW vs FFMPEG vs ANY), and on some machines the webcam would silently fail to open — returning no error, just an empty frame — causing the entire audit cycle to crash silently. We solved this by implementing a backend waterfall strategy: the detector now tries CAP_FFMPEG, then CAP_DSHOW, then CAP_ANY in sequence, and if all fail, the backend gracefully falls back to mock occupancy data so the UI never breaks. Another significant challenge was decoupling the system from hard infrastructure dependencies — the original design required MongoDB and an MQTT broker, which made local demos nearly impossible without a full DevOps setup. We refactored the backend to auto-detect missing services at startup and switch to an in-memory mock mode, keeping every feature functional for demos while printing clear diagnostic logs. On the frontend, achieving a consistent glassmorphism dark-mode aesthetic across all pages (Live Auditor, Room Management, Analytics, Settings) without Tailwind utility conflicts required carefully authoring a custom CSS design system with CSS variables and backdrop-filter layers, since many Tailwind utilities don't compose cleanly with glassmorphic backgrounds. Finally, managing the "ghost feed" privacy pipeline — rendering MediaPipe skeletal overlays onto a canvas without leak
Technologies used
