How sam-eer12/vigilai-survillance-project works
VigilAI supports dataset preparation, YOLO training, camera-based detection, and model evaluation, exposed through a Python command-line entry point and a Flask API. The React UI organizes these operations into dashboard, training, detection, and evaluation screens. The combined trainer prepares an eight-class dataset from multiple sources. Several frontend-to-API connections are likely but not fully visible in the excerpts, so those links are marked unverified rather than asserted as source-confirmed calls.
Main entry points: App.tsx Web app routes · vigilai.py VigilAI runtime · api.ts API client · Detection.tsx Detection screen
Components 14
Web interface
- Web app routes
vigilai-ui/src/App.tsx - Dashboard
vigilai-ui/src/pages/Index.tsx - Training screen
vigilai-ui/src/pages/Training.tsx - Detection screen
vigilai-ui/src/pages/Detection.tsx - Evaluation screen
vigilai-ui/src/pages/Evaluation.tsx - API client
vigilai-ui/src/lib/api.ts
API service
- Flask endpoints
flask_api.py
Detection runtime
- VigilAI runtime
vigilai.py
Training and evaluation
- Combined dataset prep
train_combined_model.py - YOLO trainer
train_combined_model.py - Model evaluation
vigilai.py - Trained weights
Other components
- Operator
- Camera feed
Connections 17
- Operator → Web app routes: uses
- Web app routes → Dashboard: routes to
vigilai-ui/src/App.tsx - Web app routes → Training screen: routes to
vigilai-ui/src/App.tsx - Web app routes → Detection screen: routes to
vigilai-ui/src/App.tsx - Web app routes → Evaluation screen: routes to
vigilai-ui/src/App.tsx - Dashboard → API client: requests status
- Training screen → API client: starts training
- Detection screen → API client: controls detection
- Detection screen → Flask endpoints: loads stream
- Evaluation screen → API client: requests evaluation
- Flask endpoints → VigilAI runtime: invokes
flask_api.py - Flask endpoints → Camera feed: captures frames
- VigilAI runtime → Trained weights: loads weights
- VigilAI runtime → Model evaluation: evaluates model
vigilai.py - Combined dataset prep → YOLO trainer: prepares data for
train_combined_model.py - YOLO trainer → Trained weights: trains weights
- VigilAI runtime → YOLO trainer: uses combined trainer
vigilai.py