How yash2006kr/trinetra-ai works
Trinetra AI is a modular CCTV surveillance suite: users select a camera and surveillance domain in the dashboard, then view processed live video and alerts. The documented runtime spans camera capture, object detection and domain analysis, alert/event handling, and dashboard delivery. The tree and README establish additional capabilities, but most gateway, frontend, and shared-runtime source was not sampled, so uncertain internal call wiring is omitted.
Main entry points: live_processor.py Live processor · main.py API gateway · pipeline.py Highway rules · main.jsx React dashboard
Components 21
Monitoring interface
- React dashboard
SmartVision-AI-Surveillance-Suite/frontend/src/main.jsx - API gateway
SmartVision-AI-Surveillance-Suite/api_gateway/main.py
Video processing
- Camera manager
SmartVision-AI-Surveillance-Suite/shared_core/stream_manager/camera_manager.py - Live processor
SmartVision-AI-Surveillance-Suite/shared_core/vision/live_processor.py - YOLO detector
SmartVision-AI-Surveillance-Suite/shared_core/ai_models/yolo_detector.py
Surveillance domains
- Highway rules
SmartVision-AI-Surveillance-Suite/highway_surveillance/pipeline.py - Traffic management
SmartVision-AI-Surveillance-Suite/traffic_management - City security
SmartVision-AI-Surveillance-Suite/smart_city_security - Retail analytics
SmartVision-AI-Surveillance-Suite/retail_analytics - Industrial safety
SmartVision-AI-Surveillance-Suite/industrial_safety - Smart parking
SmartVision-AI-Surveillance-Suite/smart_parking - Railway surveillance
SmartVision-AI-Surveillance-Suite/railway_surveillance - Campus security
SmartVision-AI-Surveillance-Suite/campus_security - Home security
SmartVision-AI-Surveillance-Suite/home_security - Wildlife monitoring
SmartVision-AI-Surveillance-Suite/wildlife_monitoring
Events and persistence
- Alert engine
SmartVision-AI-Surveillance-Suite/shared_core/alert_engine/alerts.py - Event recorder
SmartVision-AI-Surveillance-Suite/shared_core/recording_engine/event_recorder.py - Data repository
SmartVision-AI-Surveillance-Suite/shared_core/database/repository.py - Mongo repository
SmartVision-AI-Surveillance-Suite/shared_core/database/mongo_repository.py
Shared platform
- Notification providers
SmartVision-AI-Surveillance-Suite/shared_core/notifications/providers.py
Other components
- Operator
Connections 21
- Operator → React dashboard: operates
- React dashboard → API gateway: API and live stream
- API gateway → Camera manager: camera control
- Camera manager → Live processor: video frames
- Live processor → YOLO detector: detect objects
- Live processor → Highway rules: analyze detections
- Live processor → Traffic management: analyze detections
- Live processor → City security: analyze detections
- Live processor → Retail analytics: analyze detections
- Live processor → Industrial safety: analyze detections
- Live processor → Smart parking: analyze detections
- Live processor → Railway surveillance: analyze detections
- Live processor → Campus security: analyze detections
- Live processor → Home security: analyze detections
- Live processor → Wildlife monitoring: analyze detections
- Highway rules → Alert engine: dispatch alerts
- Highway rules → Data repository: save alerts
- Data repository → Mongo repository: persist data
- Alert engine → Notification providers: notify
- Live processor → Event recorder: record events
- API gateway → React dashboard: live updates