How rahulgulabaji/sentinel-x works
SENTINEL-X turns surveillance video into anomaly and object-tracking results, then supports operator-led incident response. The primary workflow runs from video submission through asynchronous analysis to incident review; dispatch remains an explicit operator action. The graph also preserves responder/GPS sharing, AI summaries, notifications, and audit capabilities. Some route and storage wiring is not excerpted, so uncertain links are omitted; README-documented relationships are cited there.
Main entry points: main.py FastAPI application · analysis_service.py Analysis orchestration · SingleCameraView.tsx Video analysis view · responders.py Responder and duty APIs
Components 28
Operator workspace
- Application workspace
frontend/src/App.jsx - Video analysis view
frontend/src/components/terminal/SingleCameraView.tsx - Job polling
frontend/src/lib/useJobPolling.ts - HTTP client
frontend/src/api/client.ts - AI Copilot
frontend/src/components/dashboard-panel/AiCopilotPanel.jsx - Evidence timeline
frontend/src/components/terminal/TemporalEvidenceTimeline.tsx
Video intelligence
- FastAPI application
backend/app/main.py - Analysis API
backend/app/api/routes/analysis.py - Analysis orchestration
backend/app/services/analysis_service.py - Anomaly pipeline
backend/app/inference/final_demo_inference.py - I3D backbone
backend/app/inference/pytorch_i3d.py - YOLO API
backend/app/api/routes/yolo.py - YOLO job service
backend/app/services/yolo_job_service.py - YOLO detection and tracking
backend/app/inference/yolo26_service.py
Incident response
- Incident management
backend/app/api/routes/incidents.py - Dispatch and preview
backend/app/api/routes/dispatch.py - SMS gateway
backend/app/services/sms_gateway.py - Responder and duty APIs
backend/app/api/routes/responders.py - Duty sessions
backend/app/services/duty_session_service.py - Secure share links
backend/app/api/routes/share.py - Incident summaries
backend/app/services/grok_summary_service.py - SMS configuration
backend/app/api/routes/notifications.py - Audit API
backend/app/api/routes/audit.py
Application persistence
- Job persistence
backend/app/repositories/mongo_job_repository.py - Share sessions
backend/app/repositories/share_session_repository.py - Responder records
backend/app/repositories/responder_repository.py - Audit log
backend/app/repositories/audit_repository.py
Other components
- Operator
Connections 32
- Operator → Application workspace: uses
README.md - Application workspace → Video analysis view: renders
- Video analysis view → HTTP client: submits jobs
frontend/src/components/terminal/SingleCameraView.tsx - Video analysis view → Job polling: polls status
frontend/src/components/terminal/SingleCameraView.tsx - Video analysis view → Evidence timeline: shows evidence
frontend/src/components/terminal/SingleCameraView.tsx - HTTP client → Analysis API: requests analysis
- HTTP client → YOLO API: requests tracking
- FastAPI application → Analysis API: registers
backend/app/main.py - FastAPI application → YOLO API: registers
backend/app/main.py - FastAPI application → Incident management: registers
backend/app/main.py - FastAPI application → Dispatch and preview: registers
backend/app/main.py - FastAPI application → Responder and duty APIs: registers
backend/app/main.py - FastAPI application → Secure share links: registers
backend/app/main.py - FastAPI application → SMS configuration: registers
backend/app/main.py - FastAPI application → Audit API: registers
backend/app/main.py - Analysis API → Analysis orchestration: runs jobs
- Analysis orchestration → Anomaly pipeline: runs inference
backend/app/services/analysis_service.py - Anomaly pipeline → I3D backbone: extracts features
backend/app/inference/final_demo_inference.py - Analysis orchestration → Job persistence: stores job state
- Analysis orchestration → Incident management: creates incidents
README.md - YOLO API → YOLO job service: runs jobs
- YOLO job service → YOLO detection and tracking: runs detection
backend/app/services/yolo_job_service.py - Dispatch and preview → SMS gateway: sends alerts
README.md - Dispatch and preview → Responder and duty APIs: targets officer
README.md - Responder and duty APIs → Duty sessions: tracks duty
- Duty sessions → Share sessions: creates sessions
backend/app/services/duty_session_service.py - Secure share links → Share sessions: uses sessions
- Responder and duty APIs → Responder records: persists roster
- Incident management → Incident summaries: offers summaries
README.md - AI Copilot → Incident summaries: queries incidents
README.md - Audit API → Audit log: queries log
- Analysis orchestration → Audit log: records completion
backend/app/services/analysis_service.py