How shahzadhussain2005/gatewatch-cv-application-for-multi-lane-anrp works
GateWatch is a multi-lane ANPR control dashboard. Operators view passage and lane summaries, inspect a lane’s annotated feed or passage log, and can submit a frame for live inference. The backend runs vehicle/plate detection and OCR, exposes inference and Lane 4 streaming endpoints, and serves live passages; the frontend presents those results alongside demo-derived summaries. The excerpts establish the API and most frontend calls, but not every backend route-to-engine detail, so uncertain links are omitted.
Main entry points: App.tsx Dashboard Shell · inference.ts Inference Client · Overview.tsx Overview · LaneDetail.tsx Lane Detail
Components 23
Dashboard UI
- Dashboard Shell
src/App.tsx - Overview
src/components/Overview.tsx - Lane Detail
src/components/LaneDetail.tsx - Passage Log
src/components/PassageLog.tsx - Frame Inference
src/components/LiveInfer.tsx - Lane Live View
src/components/Lane4Live.tsx - Navigation
src/components/Sidebar.tsx - MJPEG Feed
src/components/LaneMjpegFeed.tsx - Lane Preview Poller
src/hooks/useLane4Preview.ts - Stat Cards
src/components/StatCard.tsx - Inference Client
src/services/inference.ts
Inference API
- FastAPI Routes
backend/main.py - Lane Stream Adapter
backend/lane_stream.py
Detection Engines
- Model Configuration
backend/config.py - Frame Detection
backend/inference.py - Lane 4 Engine
backend/vehicle_pipeline.py - YOLO Weights
models/best.pt - Plate Weights
models/number-plate-yolo26s.pt
Passage Analytics
- Live Passage Records
backend/main.py - Summary Calculations
src/data/demoData.ts - Display Formatting
src/utils/format.ts - Domain Types
src/types.ts
Other components
- Operator
Connections 30
- Operator → Dashboard Shell: uses
README.md - Dashboard Shell → Navigation: renders
src/App.tsx - Dashboard Shell → Overview: renders
src/App.tsx - Dashboard Shell → Lane Detail: renders
src/App.tsx - Dashboard Shell → Passage Log: renders
src/App.tsx - Dashboard Shell → Inference Client: polls passages
src/App.tsx - Dashboard Shell → Summary Calculations: summarizes
src/App.tsx - Overview → Summary Calculations: calculates charts
src/components/Overview.tsx - Overview → Lane Preview Poller: requests preview
src/components/Overview.tsx - Overview → MJPEG Feed: renders feeds
src/components/Overview.tsx - Overview → Stat Cards: renders cards
src/components/Overview.tsx - Lane Detail → MJPEG Feed: renders feed
src/components/LaneDetail.tsx - Lane Detail → Stat Cards: renders cards
src/components/LaneDetail.tsx - Lane Detail → Display Formatting: formats values
src/components/LaneDetail.tsx - Passage Log → Display Formatting: formats values
src/components/PassageLog.tsx - Frame Inference → Inference Client: submits frames
src/components/LiveInfer.tsx - Lane Live View → Inference Client: fetches inference
src/components/Lane4Live.tsx - Lane Preview Poller → Inference Client: uses API base
src/hooks/useLane4Preview.ts - Inference Client → FastAPI Routes: calls endpoints
src/services/inference.ts - FastAPI Routes → Frame Detection: runs frame inference
backend/main.py - FastAPI Routes → Lane Stream Adapter: controls stream
backend/main.py - Lane Stream Adapter → Lane 4 Engine: delegates
backend/lane_stream.py - Frame Detection → Model Configuration: loads configured weights
backend/config.py - Lane 4 Engine → Model Configuration: uses lane settings
backend/vehicle_pipeline.py - Frame Detection → YOLO Weights: loads vehicle model
- Frame Detection → Plate Weights: loads plate model
- FastAPI Routes → Live Passage Records: serves live records
README.md - Dashboard Shell → Live Passage Records: polls live records
src/App.tsx - Summary Calculations → Domain Types: uses domain types
src/data/demoData.ts - Inference Client → Domain Types: returns typed data
src/services/inference.ts