How manisharavindh/raven works
RAVEN assesses road video or live-camera footage, turning visual defects into tracked events with location and image evidence, then saving survey data and reports for review in a dashboard. The CLI and API each assemble or control the processing pipeline; the processor coordinates frame analysis and event enrichment. The dashboard presents detections, maps, evidence, and video. The README gives only the product name, so several subsystem details and browser-to-API connections are supported by source-index references or remain unverified; dashed edges indicate the latter.
Main entry points: main.py CLI runner · processor.py Video processor · server.py API server · App.jsx Dashboard app
Components 24
Pipeline control
- CLI runner
src/raven/main.py - API server
src/raven/api/server.py - Configuration
src/raven/config.py - Frame reader
src/raven/video/reader.py - Video processor
src/raven/video/processor.py - Frame buffer
src/raven/video/frame_buffer.py
Visual analysis
- YOLO detection
src/raven/detection/yolo_detector.py - Road segmentation
src/raven/detection/segmenter.py
Event enrichment
- Event tracking
src/raven/tracking/tracker.py - GPS simulation
src/raven/geolocation/simulator.py - Road network
src/raven/geolocation/road_network.py - Map matching
src/raven/geolocation/map_matcher.py - Evidence capture
src/raven/evidence/capture.py
Survey records
- JSON export
src/raven/storage/json_store.py - SQLite database
src/raven/storage/database.py - Report generation
src/raven/reports/generator.py
Dashboard
- Dashboard app
dashboard/src/App.jsx - Defect table
dashboard/src/components/DefectTable.jsx - Map viewer
dashboard/src/components/MapViewer.jsx - Evidence viewer
dashboard/src/components/EvidenceViewer.jsx - Video feed
dashboard/src/components/VideoFeed.jsx - Telemetry socket
dashboard/src/hooks/useTelemetrySocket.js - Video socket
dashboard/src/hooks/useVideoSocket.js
Other components
- Operator
Connections 40
- Operator → CLI runner: runs survey
src/raven/main.py - Operator → API server: controls pipeline
src/raven/api/server.py - CLI runner → Configuration: loads settings
src/raven/main.py - CLI runner → Frame reader: opens source
src/raven/main.py - CLI runner → Video processor: configures pipeline
src/raven/main.py - CLI runner → YOLO detection: configures detection
src/raven/main.py - CLI runner → Road segmentation: configures segmentation
src/raven/main.py - CLI runner → Event tracking: configures tracking
src/raven/main.py - CLI runner → GPS simulation: configures location
src/raven/main.py - CLI runner → Evidence capture: configures capture
src/raven/main.py - CLI runner → JSON export: configures export
src/raven/main.py - CLI runner → Report generation: configures reports
src/raven/main.py - Video processor → Frame reader: reads frames
src/raven/video/processor.py - Video processor → YOLO detection: detects defects
src/raven/video/processor.py - Video processor → Road segmentation: filters road
src/raven/video/processor.py - Video processor → Event tracking: updates events
src/raven/video/processor.py - Video processor → GPS simulation: adds positions
src/raven/video/processor.py - Video processor → Evidence capture: captures images
src/raven/video/processor.py - Video processor → Frame buffer: streams frames
src/raven/video/processor.py - Video processor → JSON export: saves events
src/raven/video/processor.py - Video processor → Report generation: generates report
src/raven/video/processor.py - GPS simulation → Road network: uses road data
src/raven/geolocation/simulator.py - GPS simulation → Map matching: uses map matching
- JSON export → SQLite database: writes detections
src/raven/storage/json_store.py - Report generation → SQLite database: finalizes session
src/raven/reports/generator.py - API server → Configuration: loads settings
src/raven/api/server.py - API server → Video processor: controls pipeline
src/raven/api/server.py - API server → SQLite database: queries records
src/raven/api/server.py - API server → Frame buffer: streams frames
src/raven/api/server.py - API server → JSON export: serves exports
src/raven/api/server.py - API server → Report generation: serves reports
src/raven/api/server.py - Dashboard app → Defect table: renders defects
dashboard/src/App.jsx - Dashboard app → Map viewer: renders map
dashboard/src/App.jsx - Dashboard app → Evidence viewer: renders evidence
dashboard/src/App.jsx - Dashboard app → Video feed: renders video
dashboard/src/App.jsx - Dashboard app → Telemetry socket: uses telemetry
dashboard/src/App.jsx - Video feed → Video socket: uses video socket
dashboard/src/components/VideoFeed.jsx - Dashboard app → API server: requests survey data
- Telemetry socket → API server: receives updates
- Video socket → API server: receives stream