An AI-powered real-time surveillance system that integrates:
- π§ Human detection
- π€Έ Pose-based behavior analysis
- πͺ Hazardous object (weapon) detection
- π Speed and motion estimation
All combined into a live monitoring dashboard for intelligent surveillance.
This project demonstrates building a real-time AI system with backend integration and automated decision-making, aligned with production AI workflows.
-
π₯ Real-time video streaming (Webcam)
-
π§ Human detection using YOLOv8
-
π€Έ Pose estimation using MediaPipe
-
π¨ Fall detection & abnormal behavior detection
-
π Running / high-speed movement detection
-
πͺ Hazardous object detection (knife, tools, etc.)
-
π Speed estimation using motion tracking
-
π Live dashboard with alerts and system stats
-
π Alert logging system
-
π Data storage:
- Pose sequences
- Alerts
- Reports
- Python 3.10 (recommended via Anaconda)
- Flask (Backend + API)
- OpenCV (Video processing)
- YOLOv8 (Ultralytics)
- MediaPipe (Pose estimation)
- NumPy, Pandas, Scikit-learn
- HTML, CSS, JavaScript (Frontend)
EnhancedSmartSurveillance/
β
βββ app.py
βββ object_detector.py
βββ speed_estimator.py
βββ label_generator.py
βββ knife.yaml
β
βββ templates/
β βββ index.html
β
βββ static/
β
βββ data/
β βββ pose_sequences/
β βββ alerts/
β βββ reports/
β
βββ models/
β
βββ requirements.txt
βββ README.md
git clone https://github.com/payaldongre/EnhancedSmartSurveillance.git
cd EnhancedSmartSurveillanceconda create --prefix ./env python=3.10
conda activate ./envpip install -r requirements.txtpip install torch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1 --extra-index-url https://download.pytorch.org/whl/cpu# Navigate to project folder
cd EnhancedSmartSurveillance
# Activate environment
conda activate ./env
# Run application
python app.pyAfter running, open:
- Local:
http://localhost:5000
- Same network (optional):
http://<your-ip-address>:5000
Example:
http://192.168.1.5:5000
| Endpoint | Description |
|---|---|
/ |
Dashboard |
/video_feed |
Live video stream |
/api/stats |
System statistics |
/api/alerts |
Alert logs |
/api/weapon_detections |
Weapon alerts |
/api/behavior_history |
Behavior tracking |
/api/test_alert |
Trigger test alert |
/api/clear_alerts |
Reset alerts |
- YOLOv8-based detection
- Normal activity
- Abnormal behavior
- Running detection
- Fall detection
-
Detects:
- Knife
- Tools / objects
-
Triggers alerts when near a person
-
Motion tracking across frames
-
Based on:
- Pixel displacement
- Pose normalization
- Temporal smoothing
- Python 3.10 recommended (avoid 3.13)
- Webcam must be available
- Close other apps using camera
π YOLO weights will be downloaded automatically on first run.
-
Start the system and open dashboard
-
Try:
- Fast movement β running detection
- Sudden fall β fall detection
- Object in hand β weapon detection
- ESP32-CAM integration
- Multi-camera support
- Cloud deployment
- SMS / Email alerts
- Database integration
- Payal Dongre
- Priyanka Jadhav
A real-time intelligent surveillance system combining:
- Object detection
- Pose estimation
- Behavior analysis
- Motion tracking
into a unified monitoring solution.
Note: Large files, model weights, and environment folders are excluded using
.gitignorefor efficient repository management.






