# HazardLens

> Live CCTV monitoring for fire, smoke, and crowd surges

The page: https://tushar-is-a-dev-portfolio.vercel.app/work/hazardlens

2026 · System

🏆 Finalist — Microsoft Build With Bharat 1.0

Runs dual YOLOv8 models over decoupled MJPEG streams to catch fire, smoke, or sudden crowd build-ups in real time and fire off alerts before things escalate.

## What it does

- Decouples **native MJPEG streaming (12-15 FPS)** from Streamlit via a single-port Nginx reverse proxy.
- Runs dual YOLOv8 models concurrently on CPU for **fire/smoke detection** (conf >= 0.85) and crowd density tracking.
- Zero-buffer FFmpeg ingestion connecting live phone cameras through **Cloudflare quick tunnels**.
- Dispatches **Hindi neural voice alerts** via Edge-TTS and instant incident notifications via Resend email.

## Built with

YOLOv8, OpenCV, Streamlit, Nginx, Edge-TTS, Resend, Docker, Azure Container Apps, Pytest

- [Demo](https://hazardlens.agreeablesky-0ffa5750.centralindia.azurecontainerapps.io)
- [Repo](https://github.com/tusharsingh-sde/HazardLens)

## Screenshots

![HazardLens 1](https://tushar-is-a-dev-portfolio.vercel.app/work/hazardlens-1.webp)

![HazardLens 2](https://tushar-is-a-dev-portfolio.vercel.app/work/hazardlens-2.webp)

![HazardLens 3](https://tushar-is-a-dev-portfolio.vercel.app/work/hazardlens-3.webp)
