How taegaori/aegisvision works
AegisVision is a drone-detection MLOps application: training and experiment history feed a FastAPI inference and monitoring backend, which persists detections and audit events and serves a React operations dashboard. The principal user workflow is browser dashboard → image/video detection request → validation and model inference → threat classification and persistence → displayed results or alerts. The graph also preserves training, model information, metrics, authentication, and monitoring capabilities described in the README. Some subsystem links are based on README documentation because their implementation files were not sampled.
Main entry points: main.py FastAPI application · App.tsx Dashboard shell · api.ts API client · model_manager.py Model manager
Components 34
Operations dashboard
- Dashboard shell
frontend/src/App.tsx - Image detection
frontend/src/pages/Detect.tsx - Video detection
frontend/src/pages/Video.tsx - Operations dashboard
frontend/src/pages/Dashboard.tsx - Alert list
frontend/src/pages/Alerts.tsx - Training history
frontend/src/pages/Training.tsx - Model information
frontend/src/pages/ModelInfo.tsx - API client
frontend/src/lib/api.ts
API and security
- FastAPI application
main.py - Authentication
core/security.py - Login endpoint
routers/auth.py - Prediction endpoints
routers/predict.py - Video endpoint
routers/video.py - Model endpoints
routers/model.py - Training history endpoint
routers/training.py - Metrics endpoints
routers/metrics.py - Alerts endpoint
routers/alerts.py - Defense metrics endpoint
routers/defense_metrics.py - Health endpoint
routers/health.py
Detection and alerts
- Upload validation
services/upload_validation.py - Image inference
services/inference.py - Video inference
services/video_inference.py - Detection persistence
services/detection_service.py - Threat classification
services/threat_service.py
Persistence and monitoring
- Database connection
database.py - Detection records
models/detection.py - Audit middleware
middleware/audit_log.py
Model lifecycle
- Model manager
services/model_manager.py - Experiment history
services/training_service.py - Model training
drone_train.py - Multiclass training
multiclass_train.py
Other components
- Operator
- YOLO model
- MLflow tracking
Connections 48
- Operator → Dashboard shell: uses
- Dashboard shell → Image detection: routes to
frontend/src/App.tsx - Dashboard shell → Video detection: routes to
frontend/src/App.tsx - Dashboard shell → Operations dashboard: routes to
frontend/src/App.tsx - Dashboard shell → Alert list: routes to
frontend/src/App.tsx - Dashboard shell → Training history: routes to
frontend/src/App.tsx - Dashboard shell → Model information: routes to
frontend/src/App.tsx - Image detection → API client: calls
- Video detection → API client: calls
- Operations dashboard → API client: calls
- Alert list → API client: calls
- Training history → API client: calls
- Model information → API client: calls
- API client → FastAPI application: requests
- FastAPI application → Login endpoint: registers
main.py - FastAPI application → Prediction endpoints: registers
main.py - FastAPI application → Video endpoint: registers
main.py - FastAPI application → Model endpoints: registers
main.py - FastAPI application → Training history endpoint: registers
main.py - FastAPI application → Metrics endpoints: registers
main.py - FastAPI application → Alerts endpoint: registers
main.py - FastAPI application → Defense metrics endpoint: registers
main.py - FastAPI application → Health endpoint: registers
main.py - FastAPI application → Audit middleware: registers
main.py - FastAPI application → Database connection: creates tables
main.py - FastAPI application → Authentication: configures security
main.py - Login endpoint → Authentication: creates token
routers/auth.py - Login endpoint → Database connection: gets session
routers/auth.py - Prediction endpoints → Upload validation: validates upload
routers/predict.py - Prediction endpoints → Image inference: requests inference
routers/predict.py - Prediction endpoints → Detection persistence: saves results
routers/predict.py - Video endpoint → Video inference: processes video
routers/video.py - Video inference → Model manager: gets model
services/video_inference.py - Image inference → Model manager: uses model
- Model manager → YOLO model: loads weights
services/model_manager.py - Detection persistence → Threat classification: classifies threat
services/detection_service.py - Detection persistence → Detection records: writes detections
services/detection_service.py - Detection persistence → Model manager: reads model path
services/detection_service.py - Model endpoints → Model manager: reads model info
routers/model.py - Training history endpoint → Experiment history: gets history
routers/training.py - Experiment history → MLflow tracking: queries runs
services/training_service.py - Model training → MLflow tracking: records experiments
- Multiclass training → MLflow tracking: records experiments
- Metrics endpoints → Detection records: reads metrics
routers/metrics.py - Alerts endpoint → Detection records: queries alerts
routers/alerts.py - Defense metrics endpoint → Detection records: aggregates detections
- Health endpoint → Model manager: checks model
routers/health.py - Audit middleware → Database connection: opens session
middleware/audit_log.py