How yasaswivenkat/sentinel_vision works
SentinelVision is a surveillance operations console: camera/video analysis produces incidents, which operators review, acknowledge, search, and turn into forensic reports. The backend also exposes zone configuration, analytics, live MJPEG feeds, video upload, and WebSocket telemetry; the React dashboard presents these workflows. The source index confirms the principal API, vision, persistence, and UI modules. Some endpoint internals were not excerpted, so their documented capabilities are represented without speculative implementation links.
Main entry points: App.tsx Operations dashboard · useStore.ts Console state · models.py Application database · incidents.py Incident API
Components 21
SOC Console
- Operations dashboard
frontend/src/App.tsx - Console state
frontend/src/store/useStore.ts - Camera viewer
frontend/src/components/VideoPlayer.tsx - Incident list
frontend/src/components/IncidentList.tsx - Analytics charts
frontend/src/components/AnalyticsChart.tsx - Zone manager
frontend/src/components/ZoneManager.tsx - Forensic viewer
frontend/src/components/ForensicModal.tsx
Backend API
- Camera & stream API
backend/app/api/endpoints/cameras.py - Incident API
backend/app/api/endpoints/incidents.py - Zone API
backend/app/api/endpoints/zones.py - Video upload API
backend/app/api/endpoints/video_upload.py - Analytics API
backend/app/api/endpoints/analytics.py - Live event socket
backend/app/api/websockets.py
Video Intelligence
- Vision engine
backend/app/cv/engine.py - Spatial rules
backend/app/cv/spatial.py
Persistence & Reports
- Application database
backend/app/db/models.py - Database sessions
backend/app/db/session.py - API data schemas
backend/app/schemas/incident.py - Forensic AI & search
backend/app/services/gemini_service.py - Runtime settings
backend/app/core/config.py
Other components
- SOC operator
Connections 31
- SOC operator → Operations dashboard: uses
README.md - Operations dashboard → Console state: initializes
frontend/src/App.tsx - Operations dashboard → Camera viewer: renders
frontend/src/App.tsx - Operations dashboard → Incident list: renders
frontend/src/App.tsx - Operations dashboard → Analytics charts: renders
frontend/src/App.tsx - Operations dashboard → Zone manager: renders
frontend/src/App.tsx - Operations dashboard → Forensic viewer: renders
frontend/src/App.tsx - Camera viewer → Console state: reads
frontend/src/components/VideoPlayer.tsx - Incident list → Console state: reads
frontend/src/components/IncidentList.tsx - Analytics charts → Console state: reads
frontend/src/components/AnalyticsChart.tsx - Zone manager → Console state: reads
frontend/src/components/ZoneManager.tsx - Forensic viewer → Console state: reads
frontend/src/components/ForensicModal.tsx - Console state → Camera & stream API: fetches cameras
frontend/src/store/useStore.ts - Console state → Incident API: fetches incidents
frontend/src/store/useStore.ts - Zone manager → Zone API: saves zones
frontend/src/components/ZoneManager.tsx - Operations dashboard → Live event socket: receives events
frontend/src/App.tsx - Camera & stream API → Vision engine: uses
backend/app/api/endpoints/cameras.py - Video upload API → Vision engine: analyzes video
backend/app/api/endpoints/video_upload.py - Vision engine → Spatial rules: uses rules
backend/app/cv/engine.py - Live event socket → Vision engine: processes camera frames
backend/app/api/websockets.py - Live event socket → Application database: stores incidents
backend/app/api/websockets.py - Incident API → Application database: reads and updates
backend/app/api/endpoints/incidents.py - Incident API → Forensic AI & search: requests reports and search
backend/app/api/endpoints/incidents.py - Incident API → Live event socket: broadcasts resolutions
backend/app/api/endpoints/incidents.py - Camera & stream API → Application database: uses camera records
backend/app/api/endpoints/cameras.py - Zone API → Application database: manages zones
backend/app/api/endpoints/zones.py - Analytics API → Application database: queries metrics
backend/app/api/endpoints/analytics.py - Database sessions → Runtime settings: reads database settings
backend/app/db/session.py - Database sessions → Application database: creates sessions
backend/app/db/session.py - Incident API → API data schemas: validates responses
backend/app/api/endpoints/incidents.py - Forensic AI & search → Runtime settings: reads AI settings
backend/app/services/gemini_service.py