How 2k25cse2513722-maker/techexpo works
CampusVision AI combines campus occupancy monitoring with a face-recognition and attendance workflow. The documented flow is camera capture → person/face analysis → backend telemetry and annotated frames → dashboard; the backend also serves authentication, room and corridor status, timetable checks, alerts, and reports. The sampled source confirms detection uploads and several backend/database interactions. README describes some capabilities whose implementation details were not sampled, so those subsystems are shown without speculative internal wiring.
Main entry points: main.py API and workflows · dashboard.js Dashboard polling · detect.py YOLO detection · face_engine.py Face recognition
Components 19
Capture and Recognition
- YOLO detection
detect.py - Face recognition
face_engine.py
Campus Backend
- API and workflows
main.py - Live AI state
ai_state.py - Room occupancy
main.py - Corridor density
main.py - Timetable checks
main.py - Alerts and audit
main.py - Role authentication
main.py - Student enrollment
main.py - Attendance
main.py
Persistent Data
- Campus database
database.py - Known face images
known_faces
Dashboard
- Login interface
templates/login.html - Dashboard interface
templates/dashboard.html - Dashboard polling
static/js/dashboard.js - 3D visualization
static/js/three-viz.js
Other components
- Camera
- Campus user
Connections 22
- Camera → YOLO detection: provides frames
- YOLO detection → Face recognition: analyzes faces
- Face recognition → Known face images: loads images
- Face recognition → Campus database: looks up students
- YOLO detection → API and workflows: posts counts and frames
- Campus user → Login interface: opens portal
- Login interface → API and workflows: submits credentials
- API and workflows → Role authentication: checks session
- Role authentication → Campus database: reads users
- Campus user → Dashboard interface: views dashboard
- Dashboard interface → Dashboard polling: loads scripts
- Dashboard polling → API and workflows: polls APIs
- Dashboard polling → API and workflows: requests camera controls
- API and workflows → Live AI state: reads detection state
- API and workflows → Campus database: reads and writes campus data
- API and workflows → Room occupancy: serves room telemetry
- API and workflows → Corridor density: serves corridor status
- API and workflows → Timetable checks: serves schedule checks
- API and workflows → Alerts and audit: serves alerts and logs
- API and workflows → Student enrollment: handles enrollment
- API and workflows → Attendance: records attendance
- Dashboard polling → 3D visualization: updates visualization