Skip to content

About

AI-powered mobile urban intelligence platform that transforms public transport fleets into mobile sensing units for real-time road, traffic, and waterlogging detection.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

🚌 FleeVision — AI Urban Sensing

AI-Powered Urban Sensing for safer Indian cities. Turning public-transport cameras into intelligent urban sensing units.

Next.js TypeScript Tailwind License

🎯 Overview

FleeVision is a Smart India Hackathon–style dashboard that uses AI (YOLOv11 + ByteTrack + OCR) to detect urban issues from public-transport dashcam feeds. It supports 8 Indian cities, 12 moving buses per city, and 5 detection categories.

Pipeline

REAL IMAGE/VIDEO → AI DETECTION → MARKED FRAME → CONFIDENCE → LOCATION → INCIDENT

✨ Features

5 AI Detection Categories

Category What it detects Example
🟠 Road Defects Potholes, waterlogging, road damage Pothole — 94%
🔵 Traffic Density Vehicle count + per-type (car/bus/truck/motorcycle) Very High Traffic — 87% · 37 veh
🟣 Missing Signs Faded zebra crossings, missing traffic signs, worn lane markings Missing Zebra — 91%
🟢 Pedestrians People counting with crowd-level classification High Crowd — 88% · 24 ppl
🔴 Hit & Run Vehicle collision + number plate OCR + tracking ID Possible Hit & Run — 84% · #V01 · JK-01-AB-1234

Multi-City Fleet Map

  • 8 Indian cities: 🏔️ Srinagar · 🏛️ Delhi · 🌊 Mumbai · 💻 Bengaluru · 🏖️ Chennai · 🕌 Hyderabad · 🌉 Kolkata · 🎓 Pune
  • 12 buses per city, each with Front/Left/Right/Rear cameras
  • Buses actually move along real city routes (animated every 1.5s)
  • Distinct SVG icons: bus markers, landmark markers (train/market/hospital/etc.), incident markers
  • Category filter: show All / Defects / Traffic / Signs / People / Hit & Run
  • Search bar with landmark + bus suggestions
  • Click bus → camera selector + latest detection thumbnail + driver details
  • Click incident marker → evidence dialog with real photo

Detection Studio (3 tabs)

  1. Live Detection — simulated live feed + "Run real AI snapshot" (webcam)
  2. Image Detection — upload or pick from 16 real samples → auto-detection
  3. Video Upload — upload MP4/WebM → extract 3 frames → detect each frame

Other Pages

  • Dashboard — 5 summary cards with severity chips, live preview, hit & run alerts
  • Detection History — filterable table, click View → evidence dialog with real photo + bbox
  • Analytics — bar/pie/timeline charts for all 5 categories
  • Settings — GLM API key management, confidence threshold, category toggles
  • Login/Signup — demo credentials: demo@fleevision.ai / demo1234

📁 Project Structure

FleeVision/
├── frontend/              # 📱 Client-side code
│   └── README.md          #   Components, pages, store, hooks
├── backend/               # ⚙️ Server-side code
│   └── README.md          #   AI engines, API routes, security
├── shared/                # 🔀 Shared types + data
│   └── README.md          #   Types, cities, fleet data
├── src/
│   ├── frontend/          # Frontend source (components, store, hooks)
│   ├── backend/           # Backend source (VLM engine, mock engine, security)
│   ├── lib/               # Shared source (types, cities, fleet, utils)
│   ├── app/               # Next.js routes + API endpoints
│   │   ├── page.tsx       # Root route (login or dashboard)
│   │   ├── layout.tsx     # Root layout (fonts, CSS, toasters)
│   │   └── api/           # 9 API route files
│   └── components/ui/     # 48 shadcn UI components
├── public/
│   └── samples/           # 23 real road/traffic photos (DEMO data)
├── scripts/               # Download + reorganization scripts
└── package.json

🚀 Quick Start

# Install dependencies
bun install

# Start dev server (auto-starts on port 3000)
# The dev server runs automatically in the sandbox

# Open the app
# Login with demo credentials:
#   Email:    demo@fleevision.ai
#   Password: demo1234

🔑 GLM API Key (Optional — for real AI inference)

Without a key, the system uses the built-in z-ai VLM (GLM-5V-turbo). To use your own GLM key:

  1. Get a key from open.bigmodel.cn
  2. Open the app → Settings → AI Model Configuration
  3. Paste the key → Save
  4. All detections now route through your GLM Vision API

🛠 Tech Stack

Layer Technology
Framework Next.js 16 (App Router)
Language TypeScript 5
Styling Tailwind CSS 4 + shadcn/ui
State Zustand
Maps Leaflet + OpenStreetMap
Charts Recharts
Animations Framer Motion
AI Model GLM-5V-turbo (z-ai VLM SDK)
Icons Lucide

🎨 Design

  • Palette: Dark navy sidebar (#0F1F3A), white main area, blue accents (#2563EB)
  • Category colors: Orange (defects), Blue (traffic), Purple (signs), Teal (pedestrians), Red (hit & run)
  • Severity indicators: Green = safe, Orange = moderate, Red = critical
  • Rounded cards with subtle shadows
  • DEMO DATA badge clearly separates simulated vs real AI detections

📸 Sample Images

23 real road/traffic photos included in public/samples/:

  • Potholes (×3), Waterlogging (×2), Traffic (×3), Missing signs (×3), Collisions (×3), Dashcam views (×2), Pedestrians (×7)

📜 License

MIT — Free for hackathon and educational use.

🏆 Smart India Hackathon

Built for the Smart India Hackathon — pilot deployment in Srinagar, Jammu & Kashmir.

About

AI-powered mobile urban intelligence platform that transforms public transport fleets into mobile sensing units for real-time road, traffic, and waterlogging detection.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages