An advanced computer vision system for real-time person counting on escalators using YOLOv8 Nano, OpenCV, zone-based detection, and advanced tracking techniques.
- Detects and tracks people on escalators in real-time
- Uses YOLOv8 Nano for fast and efficient object detection
- Tracks individuals using the SORT algorithm
- Displays bounding boxes and ID labels for each tracked person
- Applies zone-based detection to focus only on specific escalator region for accurate count.
- YOLOv8 Nano – Lightweight object detection
- SORT Tracker – Simple real-time object tracking
- OpenCV + CvZone – Image processing and video handling
- Zone-based ROI Masking – Only detect within defined region
- Load video and resize to 640×360
- Apply region-based mask to filter non-escalator areas
- Use YOLOv8 to detect only 'person' class
- Use SORT to track each person across frames
- Show unique ID and bounding box per person in real-time
pip install ultralytics opencv-python numpy cvzoneadd sort.py or use a pip-based SORT library.
python yolo.pyTested on 1080p escalator video input.
- Malls & Airports – Escalator usage monitoring
- Metro Stations – Real-time crowd flow analysis
- Smart Infrastructure – People counting systems
EscaCount/
├── person_counter.py
├── mask.png
├── video.mp4
├── requirements.txt
└── README.md
“Because real-time person tracking should be both smart and scalable.”

