AI Vision · Full Stack · Real-time

AI Security Monitoring Platform

A security-monitoring course project. FastAPI and YOLOv5 analyse images and videos; Spring Boot turns results into alerts, stores them in MySQL and sends updates through WebSocket to Web and HarmonyOS clients.

Security monitoring dashboard
5Core admin views
6 TypesBusiness alert rules
≈ 2sWatch-folder scan cycle
3 ClientsWeb · OpenAPI · HarmonyOS

Screenshots

The admin interface includes a monitoring dashboard and login page, served as static files by Spring Boot.

Monitoring dashboard: online devices, pending alerts and the live alert feed
The dashboard summarises online devices, pending alerts, total alerts and AI events, with a WebSocket-refreshed live alert feed below showing the detected class and confidence for each entry.
Platform login page
The login page. Signing in with a platform account opens the campus security view shown above.

From detection to response

Every step from “what the model saw” to a completed response preserves state and visual evidence.

Image & Video Analysis

Network images, uploads and sampled video frames are supported, with multi-frame results merged into one event.

YOLO Inference

COCO and fire/smoke models cover people, vehicles, objects, animals, smoke and flames.

Rule Mapping

Detected classes become domain alerts such as intrusion, crowding, fire, vehicle or object anomalies.

Live Broadcast

WebSocket updates are emitted after the database transaction commits, keeping screens consistent.

Response State Machine

Alerts move from pending to in progress to closed, with invalid repeat actions rejected.

Evidence Archive

Annotated detections and video contact sheets remain attached to their alert records.

The alert journey

Manual submissions and the ai-watch folder share the same backend workflow.

01 · Input

Field Media

Image URL, uploaded file, or watched image/video.

02 · Vision

FastAPI + YOLO

Inference, annotation and frame aggregation.

03 · Rules

Spring Boot

Mapping, validation and transaction control.

04 · Data

MySQL 8

Devices, alerts, states and evidence.

05 · Delivery

WebSocket

Live events reach every connected console.

Traceable detections

Operators can review the boxes behind an alert instead of trusting an opaque result.

YOLO person detections in a classroom
A contact sheet of annotated video samples, stored as evidence with the generated alert.

HarmonyOS client

The mobile client combines ArkWeb with device-aware interaction and native sharing.

ArkTS + ArkWeb

Connect by LAN address with navigation, loading progress and demo-session sign-in.

Grip Awareness

The floating action control adapts to left- or right-hand holding status.

HarmonyShare

Tap-to-share and air gestures transfer a controlled demo session to nearby devices.

Technology

A coordinated browser, business, vision, data and device stack.

Java 17Spring Boot 3.3MyBatis-PlusMySQL 8Vue 3WebSocketPythonFastAPIYOLOv5OpenCVArkTSArkWebDocker Compose
Back to projects