How charansaiburra/campusheild works
CampusShield is a campus CCTV security platform: operators use a React dashboard to manage cameras, members, restricted zones, and security activity, while a FastAPI backend exposes authenticated APIs and AI/video modules support monitoring and face verification. The graph shows the documented product areas, sampled API registration and UI routing, plus the vision runtime and substantial Supervision toolkit modules. Several route implementations and the stream processor were not excerpted, so their internal behavior and data flow are not inferred.
Main entry points: stream_processor.py Video stream processing · v1 Versioned API routes · core.py Detection data model · enrollment_service.py Member enrollment
Components 34
Operator dashboard
- Dashboard shell
frontend/src/App.tsx - Member management
frontend/src/pages/MembersPage.tsx - API client
frontend/src/services/api.ts
API and services
- FastAPI application
backend/app/main.py - Versioned API routes
backend/app/api/v1 - Authentication
services/auth_service.py - Member enrollment
services/enrollment_service.py - Event handling
services/event_service.py - Alert handling
services/alert_service.py - Notifications
services/notification_service.py - SQL database
db/database.py - Domain records
db/models.py
AI monitoring
- Video stream processing
ai_engine/pipeline/stream_processor.py - Video input
ai_engine/pipeline/video_source.py - Person detection
ai_engine/detection/person_detector.py - Face detection
ai_engine/detection/face_detector.py - Object tracking
ai_engine/tracking/tracker.py - Face embeddings
ai_engine/face/face_embedder.py - Face verification
ai_engine/face/face_verifier.py - Zone detection
ai_engine/zones/zone_detector.py - Crowd detection
ai_engine/crowd/crowd_detector.py
Vision toolkit
- Detection data model
supervision/detection/core.py - Geometry primitives
supervision/geometry/core.py - Detection utilities
supervision/detection/utils.py - Overlap filtering
supervision/detection/overlap_filter.py - Sliced inference
supervision/detection/tools/inference_slicer.py - Detection annotators
supervision/annotators/core.py - Annotator base
supervision/annotators/base.py - Color utilities
supervision/draw/color.py - Image utilities
supervision/utils/image.py - Detection datasets
supervision/dataset/core.py - Classifications
supervision/classification/core.py - Keypoint data
supervision/keypoint/core.py
Other components
- Security operator
Connections 37
- Security operator → Dashboard shell: uses dashboard
README.md - Dashboard shell → Member management: renders
frontend/src/App.tsx - Dashboard shell → API client: calls identity API
frontend/src/App.tsx - Dashboard shell → FastAPI application: sends API requests
- FastAPI application → Versioned API routes: registers routers
backend/app/main.py - Versioned API routes → Authentication: uses authentication
backend/app/api/v1/auth.py - Versioned API routes → Member enrollment: handles enrollment
- Versioned API routes → Event handling: handles events
- Versioned API routes → Alert handling: handles alerts
- Versioned API routes → Notifications: handles notifications
- SQL database → Domain records: creates schema
db/database.py - Member enrollment → SQL database: uses database
services/enrollment_service.py - Member enrollment → Domain records: uses records
services/enrollment_service.py - Member enrollment → Face embeddings: generates embeddings
services/enrollment_service.py - Member enrollment → Face detection: detects faces
services/enrollment_service.py - Event handling → SQL database: uses database
services/event_service.py - Event handling → Domain records: uses records
services/event_service.py - Face verification → SQL database: uses database
ai_engine/face/face_verifier.py - Face verification → Domain records: uses records
ai_engine/face/face_verifier.py - Video stream processing → Face detection: calls detector
ai_engine/pipeline/stream_processor.py - Video stream processing → Person detection: calls detector
ai_engine/pipeline/stream_processor.py - Video stream processing → Object tracking: calls tracker
ai_engine/pipeline/stream_processor.py - Video stream processing → Face embeddings: calls embedder
ai_engine/pipeline/stream_processor.py - Video stream processing → Face verification: calls verifier
ai_engine/pipeline/stream_processor.py - Video stream processing → Video input: reads video
- Detection data model → Geometry primitives: uses geometry
supervision/detection/core.py - Detection data model → Detection utilities: uses utilities
supervision/detection/core.py - Detection data model → Overlap filtering: uses filtering
supervision/detection/core.py - Sliced inference → Detection data model: merges detections
supervision/detection/tools/inference_slicer.py - Sliced inference → Overlap filtering: filters overlaps
supervision/detection/tools/inference_slicer.py - Sliced inference → Image utilities: crops images
supervision/detection/tools/inference_slicer.py - Detection annotators → Annotator base: extends base
supervision/annotators/core.py - Detection annotators → Detection data model: annotates detections
supervision/annotators/core.py - Detection annotators → Color utilities: uses colors
supervision/annotators/core.py - Detection datasets → Detection data model: stores annotations
supervision/dataset/core.py - Classifications → Detection datasets: supports datasets
supervision/dataset/core.py - Keypoint data → Detection utilities: uses detection utilities
supervision/keypoint/core.py