Aegis
An AI surveillance system that watches camera feeds, recognises watchlisted faces and weapons, and sends GPS-tagged alerts to operators in real time.
- Year
- 2026
- Role
- Full-stack and computer vision
- Context
- Final-year project
- Type
- AI & ML
- Stack
- Python, FastAPI, YOLOv8, OpenCV, React 19, Vite, PostgreSQL, Leaflet
The problem
A camera sees everything and tells almost no one. Frames scroll past, and a watchlisted face or someone loitering at a gate is easy to miss. When something is noticed, operators still need the clip, the place and an alert they can act on.
Aegis answers one question in real time: who or what is on this camera right now, should we care, and where exactly is it?
How it works
Every frame goes through a six-stage pipeline:
- Detection of people, vehicles and weapons with YOLOv8.
- Tracking across frames (Deep SORT / ByteTrack).
- Recognition of watchlisted faces against encodings stored in the database.
- Behaviour checks such as loitering, pose and number-plate reading.
- Analytics: heatmaps, dwell time and line crossings.
- Output: on-screen HUD, evidence snapshots and alerts.
A notification hub fans every critical event out to the database, an audit log, WebSockets and optional webhooks, so one failing channel never loses an alert. Each alert carries the camera's GPS position and a map link.
The operator dashboard
A React command centre shows live video, ranked alerts, a map of incidents and a capture basket that grabs a zoomed still of the subject every few seconds while a red alert is active. Watchlist hits can require human review before anything is sent outside the system.
Engineering
- FastAPI backend with PostgreSQL in production and SQLite for zero-setup demos.
- Webcam, video file, RTSP and multi-camera sources from one YAML config.
- 200+ automated tests (unit and integration) with ruff and pytest in CI.
- Evidence with chain of custody, incidents, reports and DVR segments.
What I learned
The model is the easy part. The hard part is everything after detection: deciding what deserves an alert, making sure it reaches someone, and keeping a record that holds up later.
Next project
ComputePulse →