# RoadGuard AI

> Spotting potholes in live video before they wreck your suspension

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

2026 · Product

🏆 Finalist — Smart India Hackathon 2026

Runs sub-second YOLOv11 inference on serverless CPU to catch potholes on road feeds, grade severity, estimate repair costs, and fire off maintenance reports automatically.

## What it does

- Engineered for **< 1s live inference latency** on scale-to-zero serverless CPU container infrastructure.
- Solves MJPEG buffer bloat via **ZeroBufferFrameGrabber**, draining camera frames continuously and streaming ~15 FPS WebSockets.
- Pairs custom-trained **YOLOv11 with ByteTrack** at imgsz=416 behind an inference semaphore to eliminate duplicate detections.
- Automatically compiles sharp context crops into a **PDF maintenance report** dispatched via Gmail SMTP upon session completion.

## Built with

YOLOv11, ByteTrack, FastAPI, Next.js, TypeScript, Supabase, Azure Container Apps

- [Demo](https://road-guard-ai-lake.vercel.app)
- [Repo](https://github.com/tusharsingh-sde/RoadGuardAI)

## Screenshots

![RoadGuard AI 1](https://tushar-is-a-dev-portfolio.vercel.app/work/roadguard-ai-1.webp)

![RoadGuard AI 2](https://tushar-is-a-dev-portfolio.vercel.app/work/roadguard-ai-2.webp)

![RoadGuard AI 3](https://tushar-is-a-dev-portfolio.vercel.app/work/roadguard-ai-3.webp)

![RoadGuard AI 4](https://tushar-is-a-dev-portfolio.vercel.app/work/roadguard-ai-4.webp)
