نظام ذكي لاكتشاف وعدّ الأشخاص في وسائل النقل العامة
Person Detection and Counting System for Public Transport
This project is a real-time person detection and counting system designed for public transportation.
It uses YOLO-based object detection to accurately identify and count passengers boarding buses,
helping improve capacity management and operational efficiency.
Project Overview
The system leverages advanced computer vision and deep learning techniques to detect and count people
entering a bus in real time. By using YOLO object detection and tracking individuals across frames,
the system ensures accurate passenger counting without duplication.
Key Features
YOLO-Based Person Detection
- 🧍 Detects people in real-time video streams.
- ⚡ Uses YOLOv8 trained on the COCO dataset for high accuracy.
Passenger Counting Logic
- 📏 Counts passengers when they cross a predefined horizontal line.
- 🔁 Prevents double counting using tracking logic.
Real-Time Processing
- 🎥 Processes video frames efficiently in real time.
- 🖥️ Displays detected people and total count on screen.
Unique Person Tracking
- 🆔 Tracks individuals using bounding box properties.
- ✅ Ensures each person is counted only once.
Customizable Detection
- 🧩 Can be extended to detect other objects from the COCO dataset.
- ⚙️ Easily adaptable to different environments and camera angles.
Technology Stack
- 🐍 Programming Language: Python
- 🎥 Computer Vision: OpenCV
- 🧠 Object Detection: YOLOv8
- 📊 Dataset: COCO
- 🖥️ Development Environment: VS Code / Jupyter
Use Cases
- 🚌 Public Transport – Monitor passenger flow in buses.
- 📈 Capacity Management – Optimize bus schedules and routes.
- 🏙️ Smart Cities – Analyze peak travel times and usage patterns.
- 🛡️ Safety Compliance – Ensure passenger limits are respected.
Conclusion
The person detection and counting system provides an accurate and efficient solution for monitoring
passenger flow in public transportation. By utilizing YOLO-based detection and real-time tracking,
the system enhances transport management, improves safety, and supports data-driven decision making.