How abhinash2006/sih_proj works
Drone-VGGT turns drone video or image sequences into selected frames, metric 3D geometry, and disaster-response intelligence. The principal workflow proceeds from video preparation through geometry and depth validation to perception, spatial interpretation, incident handling, and rescue reporting. The repository also exposes an interactive Gradio dashboard and a CLI pipeline. The README documents several subsystem relationships whose implementation was not sampled; those are cited as documentation rather than presented as inspected call paths.
Main entry points: frame_selector.py Frame Selection · reconstruction.py Point Reconstruction · yolo_detector.py Object Detection · person_fusion.py Person Fusion
Components 30
Video Ingestion
- Video Processing
src/video_processor.py - Frame Selection
src/frame_selector.py
3D Reconstruction
- VGGT Inference
src/vggt_inference.py - Monocular Depth
src/depth_anything_v2.py - Depth Alignment
src/depth_alignment.py - Depth Consistency
src/depth_consistency.py - Depth Confidence
src/depth_confidence.py - Point Reconstruction
src/reconstruction.py - Point Cloud Filtering
src/pointcloud_filter.py - Mesh Generation
src/mesh_utils.py
Disaster Perception
- Object Detection
src/yolo_detector.py - Aerial Classification
src/aerial_classifier.py - Flood Analysis
src/flood_analyzer.py - Water Segmentation
src/disaster_inspection/segmentation.py - Damage Detection
src/disaster_inspection/damage_detection.py - Hazard Detection
src/disaster_inspection/hazard_detection.py - Multi-frame Tracking
src/disaster_inspection/tracking.py
Rescue Intelligence
- 3D Projection
src/disaster_inspection/geo_projection.py - 3D Point Lookup
src/point_lookup.py - Spatial Context
src/spatial_context.py - Person Fusion
src/person_fusion.py - Rescue Targets
src/rescue_target.py - Rescue Risk
src/rescue_risk.py - Incident Management
src/disaster_inspection/incident_manager.py - Rescue Reports
src/disaster_inspection/report_generator.py
User Interfaces
- Gradio Dashboard
app.py - Pipeline CLI
scripts/run_pipeline.py - 3D Scene Outputs
src/output/output_manager.py
Other components
- Responder
- Drone Video
Connections 38
- Responder → Gradio Dashboard: uses
- Drone Video → Video Processing: provides footage
- Gradio Dashboard → Video Processing: prepares frames
app.py - Pipeline CLI → Video Processing: prepares frames
scripts/run_pipeline.py - Video Processing → Frame Selection: supplies candidates
- Frame Selection → VGGT Inference: infers geometry
- Frame Selection → Monocular Depth: estimates depth
- Monocular Depth → Depth Alignment: aligns depth
- Depth Alignment → Depth Consistency: checks consistency
- Depth Consistency → Depth Confidence: scores confidence
- VGGT Inference → Point Reconstruction: builds point cloud
- Depth Confidence → Point Cloud Filtering: gates points
- Point Reconstruction → Point Cloud Filtering: filters points
- Point Reconstruction → Mesh Generation: generates mesh
- Frame Selection → Object Detection: detects objects
- Object Detection → Multi-frame Tracking: tracks detections
- Object Detection → Aerial Classification: validates classes
- Frame Selection → Flood Analysis: analyzes flooding
- Flood Analysis → Water Segmentation: segments water
src/disaster_inspection/segmentation.py - Frame Selection → Damage Detection: detects damage
- Frame Selection → Hazard Detection: detects hazards
- Multi-frame Tracking → 3D Projection: projects detections
- VGGT Inference → 3D Point Lookup: provides point maps
app.py - Object Detection → 3D Point Lookup: provides detections
app.py - Flood Analysis → Spatial Context: provides flood context
- 3D Projection → Person Fusion: localizes targets
- Spatial Context → Person Fusion: adds context
- Person Fusion → Rescue Targets: validates targets
src/person_fusion.py - Person Fusion → Rescue Risk: assesses priority
src/person_fusion.py - Damage Detection → Incident Management: records incidents
- Hazard Detection → Incident Management: records incidents
- Rescue Risk → Rescue Reports: informs priorities
- Incident Management → Rescue Reports: supplies incidents
- Point Reconstruction → 3D Scene Outputs: exports scene
- Rescue Targets → 3D Scene Outputs: adds rescue markers
- Gradio Dashboard → 3D Scene Outputs: shows results
- Pipeline CLI → 3D Scene Outputs: writes results
scripts/run_pipeline.py - Rescue Reports → Responder: delivers report