How atom-games/diplom_safary_eye works
Diplom is a camera-based weapon-detection and alerting system with an Angular management interface, an Express API, and a separate Python detection service. Users configure detection modules and subscribers; the detector retrieves camera frames, produces detections, and posts results to subscribed listeners. The backend tracks module state and can notify associated phone subscribers through UltraMsg. The graph reflects sampled source and the listed tree; router wiring and several controller implementations are absent, so uncertain links are omitted.
Main entry points: app.js Express application · neyro_controller.js Detection module handlers · app.module.ts Angular app · main.py Frame detection
Components 15
Web client
- Angular app
Diplom/client/src/app/app.module.ts - Authentication UI
Diplom/client/src/app/service/auth-service.ts - Module management
Diplom/client/src/app/service/neyros.service.ts - Listener management
Diplom/client/src/app/Views/admin_panel_listeners/admin_panel_listeners.component.ts
Backend API
- Express application
Diplom/app.js - Authentication handlers
Diplom/controllers/auth.js - Detection module handlers
Diplom/controllers/neyro_controller.js - Subscriber handlers
Diplom/controllers/listeners_controller.js - Camera handlers
Diplom/controllers/camera_controls.js
Detection service
- Frame detection
Diplom_v_01/main.py - Detection engine
Diplom_v_01
Application state
- SQLite state
Diplom/controllers/database_controller.js
Other components
- Operator
- Camera device
- UltraMsg service
Connections 19
- Operator → Angular app: uses
- Angular app → Authentication UI: invokes
- Angular app → Module management: invokes
- Angular app → Listener management: renders
- Authentication UI → Express application: HTTP requests
- Module management → Express application: HTTP requests
- Listener management → Express application: HTTP requests
- Express application → Authentication handlers: routes
- Express application → Detection module handlers: routes
- Express application → Subscriber handlers: routes
- Express application → Camera handlers: routes
- Authentication handlers → SQLite state: queries
- Detection module handlers → SQLite state: reads and writes
- Subscriber handlers → SQLite state: reads and writes
- Detection module handlers → UltraMsg service: sends alerts
- Frame detection → Camera device: fetches frames
- Frame detection → Detection engine: runs detection
- Frame detection → Detection module handlers: posts detections
- Detection module handlers → Frame detection: subscribes callback