Skip to content

Real-time human detection, tracking and counting using MobileNet SSD

Notifications You must be signed in to change notification settings

amhsirak/human-monitoring-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Human Monitoring System

Real-time human detection, tracking and counting using MobileNet SSD and Centroid Tracking.

  • Use case: Counting the number of people in stores/buildings/shopping malls etc., in real-time.
  • Sending an alert to the staff if the people are way over the limit.
  • Automating features and optimising real-time stream for better performance (with threading).
  • Acts as a measure towards footfall analysis.
  • Compatible with IP cameras and web cameras.

Results

people

night

Features

  • Real Time Alert: If selected, an email alert in real-time is sent.
  • Scheduler: Automatic scheduler to run the software at your desired time.
  • Timer: To stop the software after a certain time.
  • Simple Log Maintainer: Logs all data at end of the day with information including time and number of people.
  • Threading: Removes OpenCV's internal buffer and thus reduces lag/increases fps in real-time stream.

All these features can be easily turned on/off in lib/config.pyfile.

Screenshots

Email Alert

email

Simple Log

log

How To Use

  • Install all dependencies
pip install -r requirements.txt
  • To run on a test video file
python main.py --prototxt mobilenet_ssd/MobileNetSSD_deploy.prototxt --model mobilenet_ssd/MobileNetSSD_deploy.caffemodel --input videos/example.mp4
  • To run on IP camera / Web camera

For web camera, set url = 0

python main.py --prototxt mobilenet_ssd/MobileNetSSD_deploy.prototxt --model mobilenet_ssd/MobileNetSSD_deploy.caffemodel

Run On Your Local Machine

  • Fork the repository
  • Clone the repository
git clone https://github.com/karishmashuklaa/human-monitoring-system.git

🦄🦄🦄🦄🦄