How deeprasarkar007-glitch/dristi works
DRISTI combines an optical vehicle-detection service, ESP32 telemetry, and mission-control dashboards. The operator workflow is to view camera predictions and sensor readings, correlate them into safety status, and use the GIS mine-corridor view for context. The repository contains two dashboard implementations: the Vite glass HUD and a separate Next.js control panel. The README documents the API and product capabilities; source excerpts confirm selected calls and UI composition, but do not expose every telemetry or GIS implementation detail.
Main entry points: main.py FastAPI Service · App.tsx Glass HUD App · GlassCommandCenter.tsx Glass Command Center · UnifiedCommandCenter.tsx Next.js Command Center
Components 19
Mission Control UIs
- Glass HUD App
mainframe/src/App.tsx - Glass Command Center
mainframe/src/components/GlassCommandCenter.tsx - Glass Navigation
mainframe/src/components/GlassNavbar.tsx - Video Backdrop
mainframe/src/components/BackgroundVideo.tsx - Next.js Command Center
frontend/components/UnifiedCommandCenter.tsx - Mine GIS View
vantage/index.html
Optical Detection
- Glass Webcam Detector
mainframe/src/components/GlassWebcamDetector.tsx - Webcam Detector
frontend/components/WebcamDetector.tsx - FastAPI Service
backend/app/main.py - Frame Inference
backend/app/model_service.py - API Schemas
backend/app/schemas.py
Sensor Telemetry
- Glass Telemetry HUD
mainframe/src/components/GlassTelemetryDashboard.tsx - Telemetry Dashboard
frontend/components/TelemetryDashboard.tsx - ESP32 Sensor Node
sender_esp.ino - ESP32 Receiver
receiver_esp.ino - Latest Telemetry
backend/app/main.py
Model and GIS Data
- Classifier Training
model_training/train_dumper_truck_classifier.ipynb - Saved Model Artifacts
backend/saved_model/class_names.json
Other components
- Mine Operator
Connections 22
- Mine Operator → Glass HUD App: uses
README.md - Glass HUD App → Glass Command Center: renders
mainframe/src/App.tsx - Glass HUD App → Glass Navigation: renders
mainframe/src/App.tsx - Glass HUD App → Video Backdrop: renders
mainframe/src/App.tsx - Glass Command Center → Glass Webcam Detector: renders
mainframe/src/components/GlassCommandCenter.tsx - Glass Command Center → Glass Telemetry HUD: renders
mainframe/src/components/GlassCommandCenter.tsx - Glass Navigation → FastAPI Service: checks health
mainframe/src/components/GlassNavbar.tsx - Glass Webcam Detector → FastAPI Service: posts frames
mainframe/src/components/GlassWebcamDetector.tsx - FastAPI Service → Frame Inference: runs inference
backend/app/main.py - FastAPI Service → API Schemas: formats responses
backend/app/main.py - Classifier Training → Saved Model Artifacts: produces artifacts
README.md - Frame Inference → Saved Model Artifacts: loads artifacts
- Mine Operator → Next.js Command Center: uses
README.md - Next.js Command Center → Webcam Detector: renders
frontend/components/UnifiedCommandCenter.tsx - Next.js Command Center → Telemetry Dashboard: renders
frontend/components/UnifiedCommandCenter.tsx - Webcam Detector → FastAPI Service: posts frames
frontend/components/WebcamDetector.tsx - ESP32 Sensor Node → ESP32 Receiver: sends telemetry
- ESP32 Receiver → FastAPI Service: updates telemetry
README.md - FastAPI Service → Latest Telemetry: reads and writes
backend/app/main.py - Glass Telemetry HUD → FastAPI Service: uses telemetry API
README.md - Telemetry Dashboard → FastAPI Service: uses telemetry API
README.md - Mine Operator → Mine GIS View: views mine corridors
README.md