How kunalrpawar/aqua-sentinel works
This is an underwater image-restoration and monitoring web application. The principal workflow begins with an uploaded image or video, passes through enhancement and/or threat analysis, and presents processed results; the README also describes live streams, history, analytics, and reporting. The sampled Flask entry point imports the processing, metrics, video, database, alert, heatmap, and report subsystems. Several implementation files were not sampled, so links to those capabilities rely on the README or are left unverified.
Main entry points: app.py Flask application · model_processor.py Model processor · detector.py Threat detection · video_processor.py Video processor
Components 17
Application interface
- Flask application
webapp/app.py - Desktop launcher
electron/main.js
Image and video processing
- Model processor
webapp/model_processor.py - Video processor
webapp/video_processor.py - Physics restoration
physics_enhancement/physics_model.py
Detection and analytics
- Threat detection
threat_detection/detector.py - Distance estimation
threat_detection/distance_estimator.py - Detection explanations
threat_detection/explainability.py - Detection visualization
threat_detection/visualizer.py - Metrics calculator
webapp/metrics_calculator.py - Alert system
webapp/alert_system.py - Heatmap generator
webapp/heatmap_generator.py
History and reporting
- Result history
webapp/database_config.py - PDF reports
webapp/pdf_report_generator.py
Enhancement models
- EUVP enhancement
uie_euvp/models.py - Super-resolution
super-resolution
Other components
- User
Connections 19
- User → Flask application: submits media
- Desktop launcher → Flask application: launches backend
electron/main.js - Flask application → Model processor: invokes processing
webapp/app.py - Flask application → Metrics calculator: requests metrics
webapp/app.py - Flask application → Video processor: routes video
webapp/app.py - Flask application → Result history: uses storage
webapp/app.py - Flask application → PDF reports: generates reports
webapp/app.py - Flask application → Alert system: uses alerts
webapp/app.py - Flask application → Heatmap generator: uses heatmaps
webapp/app.py - Model processor → Physics restoration: may apply restoration
- Model processor → EUVP enhancement: may select model
- User → Video processor: provides live video
- Flask application → Threat detection: may request detection
- Threat detection → Distance estimation: estimates distance
- Threat detection → Detection explanations: may explain detections
- Threat detection → Detection visualization: may visualize detections
- Model processor → Super-resolution: may upscale images
- User → Result history: views history
- User → Metrics calculator: views analytics