Edited RTPC Final
Edited RTPC Final
BACHELOR OF TECHNOLOGY
IN
INFORMATION TECHNOLOGY
Submitted by
YALLAMANDA. ESWAR ([Link]:22NE1A1291)
TURLAPATI. APARNA ([Link]:23NE5A1201)
TANNIRU. HARIPRIYA ([Link]:22NE1A12B5)
MANDA. JOBABU ([Link]:22NE1A1282)
Associate Professor
2022-2026
TIRUMALA ENGINEERING COLLEGE
CERTIFICATE
This is to certify that the project report entitled ― PEOPLE COUNTING SYSTEM USING
DEEP LEARNING AND COMPUTER VISION is the Bonafide work done by
[Link] (22NE1A1291), T. APARNA (23NE5A1201), T. HARIPRIYA (22NE1A12B5),
[Link] (22NE1A1282) in partial fulfillment of the requirements for the award of
“Bachelor of Technology” degree in the Department of IT from J.N.T.U. KAKINADA
during the year 2022 - 2026 under our guidance and supervision and worth of acceptance of
requirements of the university
Associate Professor
ACKNOWLEDGEMENT
We express our deep felt gratitude to our HOD [Link] RAJU [Link], PhD
and [Link] Kumar [Link], [Link](PhD) coordinator of the project for
extending their encouragement. Their profound knowledge and willingness
have been a constant source of inspiration for us throughout the project work.
PROJECT ASSOCIATES
Y. ESWAR 22NE1A1291
T. APARNA 23NE5A1201
T. HARIPRIYA 22NE1A12B5
M. JOBABU 22NE1A1282
DECLARATION
We here by declare that the project entitled “People Counting System Using Deep
Learning and Computer Vision” submitted for the “Department of Information
Technology”. This is our original work and the project has not formed the basis for the
award of any degree, associateship and fellowship or any other similar titles and no part
of it has been published or sent for publication at the time of submission.
By
Y. ESWAR (22NE1A1291)
T. APARNA (23NE5A1201)
T. HARIPRIYA (22NE1A12B5)
M. JOBABU (22NE1A1282)
ABSTRACT
ABSTRACT:
The rapid growth of urbanization and public infrastructure has increased the need for
intelligent surveillance and monitoring systems. Manual methods of counting people are
time-consuming, error-prone, and unsuitable for real-time environments. This project
presents a People Counting System using Deep Learning and Computer Vision
techniques to automatically detect and count people from live webcam feeds as well as
recorded video footage.
The proposed system employs a YOLO (You Only Look Once)- based deep learning
object detection model to identify human presence in video frames efficiently.
Unlike traditional approaches that rely on handcrafted features, background subtraction,
or heavy tracking algorithms, this system uses an end-to-end convolutional neural
network that learns robust features directly from data. A detection-first strategy with
frame-wise counting
is adopted, and temporal smoothing is applied to reduce fluctuations in the people count
caused OUTPUT
The system is implemented using Python, OpenCV, and a deep learning framework,
and it requires only a single standard RGB camera for operation. It is designed to be
lightweight, scalable, and suitable for real-time deployment on general-purpose
computers. The proposed solution can be effectively used in applications such as smart
surveillance, crowd monitoring, occupancy analysis, and public safety. This project
demonstrates how modern deep learning techniques can be leveraged to build practical,
efficient, and reliable real-time people counting systems for real-world environments.
INDEX
Page
S. No Contents
No
1 Introduction 1–2
3 System Analysis 6 – 10
4 System Design 11 – 20
5 Implementation 21 – 30
6 Result Analysis 31 - 33
7 Output Screenshots 34 – 40
8 Conclusion 41 – 42
9 Future Enhancements 43 – 45
10 Bibliography 46 - 47
Chapter - 1
INTRODUCTION
1
INTRODUCTION:
The rapid growth of urbanization and public infrastructure has increased the need for
intelligent surveillance and monitoring systems. Manual methods of counting people are
time-consuming, error-prone, and unsuitable for real-time environments. This project
presents a People Counting System using Deep Learning and Computer Vision
techniques to automatically detect and count people from live webcam feeds as well as
recorded video footage.
The proposed system employs a YOLO (You Only Look Once)- based deep learning
object detection model to identify human presence in video frames efficiently.
Unlike traditional approaches that rely on handcrafted features, background subtraction
heavy tracking algorithms, this system uses an end-to-end convolutional neural network
learns robust features directly from data. A detection-first strategy with frame-wise count
is adopted, and temporal smoothing is applied to reduce fluctuations in the people count
by occlusion or partial visibility.
The system is implemented using Python, OpenCV, and a deep learning framework,
and it requires only a single standard RGB camera for operation. It is designed to be
lightweight, scalable, and suitable for real-time deployment on general-purpose
computers. The proposed solution can be effectively used in applications such as smart
surveillance, crowd monitoring, occupancy analysis, and public safety. This project
demonstrates how modern deep learning techniques can be leveraged to build practical,
efficient, and reliable real-time people counting systems for real-world environments.
2
Chapter - 2
LITERATURE SURVEY
3
[Link] Author Title year Publication Description
Improved YOLO by
enhancing detection
Redom accuracy and speed.
YOLO9000:
2 &
Demonstrated the ability
Better, Faster, 2017 IEEECVPR to detect multiple object
Farhadi Stronger classes efficiently, making
it suitable for surveillance
applications
Improved YOLO
YOLOv4: arXiv architecture with
3 Wojke et al. Optimal Speed 2021 better
performance.
4
Detailed Explanation of Literature Survey
People counting systems are important for monitoring crowd movement in places such as
shopping malls, railway stations, educational institutions, and offices. Traditional manual
counting methods are time-consuming and less accurate. Therefore, automated systems
using computer vision and deep learning techniques are developed to improve efficiency
and reliability.
5
Chapter - 3
SYSTEM ANALYSIS
6
System Analysis is an important phase in the project where the current system is studied,
problems are identified, and a better solution is proposed. It helps in understanding how
the system should function and what improvements are needed.
Limitations in Detail:
1. Dependence on manual monitoring, which increases workload and leads to human
errors.
2. Limited accuracy in crowded environments, especially when multiple people move
together.
3. Restricted coverage area, as sensor-based systems work only at entry and exit
points. Sensitivity to lighting conditions, shadows, and background variations.
4. Difficulty handling overlapping people (occlusion problem).
5. Lack of real-time analytics and remote monitoring support.
6. Limited scalability for large-area and multi-camera surveillance systems.
2. The detected persons are tracked frame by frame using tracking algorithms to
maintain identity and avoid duplicate counting.
3. The system counts people by analyzing their movement across a predefined virtual
line to determine entry and exit.
7
4. The counted data is displayed on a live dashboard and stored in a database for future
monitoring and analysis.
Detail:
Tracking algorithms help count multiple people even when they move together or overlap.
The system can monitor large spaces such as malls, railway stations, campuses, and
offices. Helps control overcrowding and enhances surveillance in public places.
Data Storage and
Analysis Reduce human
effort
3.3 System Requirements (Detailed)
System requirements define the necessary hardware and software resources required to run
the Real-Time People Counting System efficiently.
Hardware Requirements
Processor: Minimum Intel i3 or equivalent processor required for smooth execution of
video processing and detection algorithms
• RAM: At least 4GB RAM recommended for handling real-time frame processing and
object detection
• Storage: Required for storing datasets, trained models, and recorded counting data
• Camera: Webcam or CCTV camera for capturing real-time video input
• Display Device: Monitor required to visualize detection results and dashboard output
Software Requirements
Operating System: Compatible with Windows, Linux, or macOS
• Programming Language: Python (preferred for computer vision and deep learning tasks)
Libraries:
OpenCV – For video processing and frame extraction
NumPy – For numerical computations
YOLO / TensorFlow / PyTorch – For person detection model
Pandas – For storing and managing counting data
Development Tools: VS Code, PyCharm, Jupyter Notebook, Notepad
3.4 Analysis
This section describes the internal working process of the people counting system step by
step.
Step-by-Step Workflow
1 Input Stage
The system captures real-time video using webcam or CCTV camera
2 Frame Extraction Stage
Video stream is converted into multiple frames o Frames are processed continuously for
analysis
3 Person Detection Stage
Deep learning model detects human presence in each frame o Bounding boxes are created
around detected persons
8
4 Object Tracking Stage
Tracking algorithm follows detected persons across frames o Prevents duplicate counting
of the same person
5 Counting Stage
People crossing a predefined virtual line are counted o Entry and exit counts are updated
automatically
6 Output Stage
Total people count is displayed on screen o Data is stored for monitoring and analysis
3.5 Algorithms
The system uses multiple algorithms to ensure efficient detection and counting performance
9
3.6.3 Economic Feasibility
Low development cost using open-source tools
• No expensive hardware required
• Maintenance cost is minimal
• Suitable for small-scale and large-scale deployment
Detailed Steps
Frame Extraction
Converts video stream into individual frames for processing
Image Resizing
Adjusts frame size for faster detection processing
Noise Reduction
Removes unwanted disturbances from frames
Object Detection Preparation
Enhances image clarity for accurate detection
Bounding Box Generation
Identifies detected persons using rectangular boxes
Frame Normalization
Improves image consistency for better model performance
10
Chapter - 4
DESIGN
11
Class Diagram
The Class Diagram represents the structure of the Real-Time People Counting System by
showing system classes, their attributes, methods, and relationships. It explains how
different modules interact to perform detection and counting operations.
Classes in the System
1. Video Stream Handler Methods:
Capture Video() – Captures video input from webcam or CCTV Extract Frames() –
Converts video into frames for processing
Role:
Handles video input and prepares frames for further analysis.
2. Person Detector
Methods:
Load Model() – Loads trained deep learning model Detect Persons() – Detects people
from video frames
Role:
Responsible for detecting human presence using deep learning algorithms such as YOLO.
3. Object
Tracker Methods:
Initialize Tracker() – Initializes tracking process
Track Movement() – Tracks detected persons across frames
Role:
Tracks individuals to avoid duplicate counting and maintain identity consistency.
4. People Counter Methods:
Count Entry() – Counts people entering monitored area
Count Exit() – Counts people exiting monitored area Update Total Count() – Updates
overall people count
Role:
Core component responsible for counting people based on movement direction.
5. Database Manager Methods:
Store Count Data() – Stores counting data
Retrieve History() – Retrieves previous records
Relationships Between Classes:
Video Stream Handler → Person Detector (Frames are sent for detection)
Person Detector → Object Tracker (Detected persons are tracked)
Object Tracker → People Counter (Tracked movement used for counting)
People Counter → Database Manager (Count stored for future use)
Summary:
The Class Diagram shows a modular architecture, where each class has a specific
responsibility, making the system easy to maintain and scalable.
12
Fig no : 4.1.1 Class Diagram
13
4.2 Use Case Diagram:
The Use Case Diagram represents the interaction between the user and the Real-Time
People Counting System. It shows how the administrator monitors and controls the
system while the system performs automatic detection and counting operations.
Actor
• Admin/User – The person who interacts with the system to monitor people count through
the dashboard interface
Use Cases
1. Start Camera Monitoring
User starts the surveillance system to capture live video from the camera
2. Detect People
System detects people automatically from video frames using deep learning models
3. Track Movement
System tracks the movement of detected persons across frames to maintain identity
4. Count People
System updates entry and exit count when a person crosses the predefined counting
line
5. View Live Count
User monitors real-time people count through the dashboard interface
6. Store Count Data
System stores people counting information for future analysis and reporting
Relationships
• The Admin/User interacts with monitoring and viewing system results
• “Count People” includes:
1DetectPeople
2TrackMovement
3 Update Count Data
Summary:
This diagram clearly explains how the user interacts with the system dashboard while the
system automatically performs video capture, detection, tracking, counting, and data
storage operations. It represents the overall functionality provided by the Real-Time
People Counting System.
14
Start
System
Detect
User
People
Display
Count
15
4.3 Activity Diagram
The Activity Diagram shows the workflow of the system step-by-step from video capture
to people counting and display of results.
Flow of Activities
Start
Start Camera Monitoring
System captures live video from webcam or CCTV camera
Extract Frames
Video stream is converted into frames for processing
Detect People
Deep learning model detects people from each frame
Track Movement
System tracks detected persons across frames
Decision : Crossed Counting Line?
System checks whether the detected person crossed the predefined virtual counting line
Two Possible Flows
If Yes
Update People Count
Store Count Data
Display Updated Count
Continue Monitoring
If No
Continue Monitoring
Return to Detection Stage
Key Features
• Shows decision-making using a condition (line crossing detection)
• Clearly represents continuous monitoring workflow
• Explains how entry and exit counting is performed automatically
Summary
This diagram explains how the system operates internally from start to end by capturing
video, detecting people, tracking movement, counting entries/exits, and displaying results
on the monitoring dashboard.
16
Fig no : 4.3.1 Activity diagram
17
4.4 Component Diagram
The Component Diagram represents the physical architecture of the system and shows
how different components interact to perform people detection, tracking, counting, and
monitoring operations.
Components in the System
1. User Interface
• Displays real-time people count
• Allows user to monitor system output through dashboard
2. Video Capture Module
• Captures live video input from webcam or CCTV camera
• Sends video frames to detection module for processing
3. Person Detection Module
• Detects people from captured video frames using deep learning models such as YOLO
• Sends detected person data to tracking module
4. Object Tracking Module
• Tracks movement of detected persons across frames
• Helps prevent duplicate counting errors
5. People Counting Module
• Counts entry and exit of people based on movement direction
• Updates total number of people present
6. Storage System
• Stores counted data for future reference
• Maintains history records for monitoring and analysis
Interactions
• User Interface → Video Capture Module
• Video Capture Module → Person Detection Module
• Person Detection Module → Object Tracking Module
• Object Tracking Module → People Counting Module
• People Counting Module → Storage System
Summary
This diagram shows how different modules of the Real-Time People Counting System are
connected and how video data flows from capture to detection, tracking, counting, and
storage. It represents the modular architecture of the system, which improves efficiency,
scalability, and maintainability.
18
4.5 Sequence Diagram
The Sequence Diagram represents how different components of the Real-Time People
Counting System interact with each other over time to perform people detection and
counting operations.
It shows the step-by-step communication between the User, Camera Module, Detection
Module, Tracking Module, Counting Module, and Display Module.
Flow of Interaction
1. Start Monitoring
The process begins when the user starts the system for monitoring people movement.
2. Capture Video Frames
The Camera Module continuously captures frames from:
• Webcam
or
• Recorded video file
These frames are forwarded to the detection module.
3. Detect People using YOLOv5
The Detection Module processes each captured frame and:
• Identifies objects in the frame
• Filters only the person class
• Draws bounding boxes around detected
persons This step uses the YOLOv5 deep
learning model.
4. Send Detected Persons to Counting Module
After detection:
• Bounding box coordinates are extracted
• Person objects are forwarded to counting module
5. Count Number of People
The Counting Module:
• Counts detected bounding boxes
• Removes false detections
• Updates total people count
6. Send Count Data to Display Module
The updated count value is sent to the display module for visualization.
7. Display Live People Count
The Display Module:
• Draws bounding boxes
• Displays live people count on screen
• Shows processed video output window
Key Features of Sequence Diagram
• Shows interaction between system modules step-by-step
• Explains execution order of operations
• Represents real-time processing workflow
• Helps understand communication between components clearly
Summary
The Sequence Diagram explains how the Real-Time People Counting System processes
video input step-by-step from capturing frames to detecting people and displaying the live
count on the screen. It illustrates the interaction between system components and ensures
smooth real-time monitoring functionality
19
Sta�Meritor g
Capt�eVideo::-r res
Sen�Detectec Persons
ShowLive eopleCount
20
Chapter - 5
IMPLEMENTATION
21
The Implementation phase is where the designed Real-Time People Counting System is
developed using programming languages, deep learning frameworks, and computer vision
techniques. In this phase, different modules such as video capture, person detection,
tracking, and counting are integrated to build a complete working system.
22
5. People Counting Module
• Counts entry and exit of people based on movement
Functions:
• Detect line crossing events
• Update total people count
• Maintain entry/exit statistics
6. Output Display Module
• Displays processed output to the user
Features:
• Show live people count on screen
• Display bounding boxes
• Show tracking IDs
7. Storage Module
• Stores counting results for analysis and reporting
Functions:
• Save count data in files or database
• Maintain history logs
5.3 Step-by-Step Implementation Process
Camera captures live video input
Video frames are sent to preprocessing module Frames
are passed to person detection module Detected
persons are tracked across frames
System checks whether a person crosses counting line People
count is updated automatically
Output is displayed on the monitoring screen
Count data is stored for future reference
5.4 Tools and Technologies Used
Category Tools / Technologies
Programming Language Python
Computer Vision Library OpenCV
Deep Learning Model YOLO
Tracking Algorithm Centroid Tracking / Deep SORT
IDE VS Code / PyCharm/Command Prompt
Operating System Windows / Linux / macOS
5.5 Code Structure (Basic Overview)
The project is organized into multiple modules:
• video_capture.py → Captures video frames
• [Link] → Frame preprocessing
• person_detection.py → Detects people using YOLO
• [Link] → Tracks detected persons
• [Link] → Counts entry and exit
• [Link] → Displays output on screen
• [Link] → Integrates all modules
23
• Avoiding duplicate counting errors
• Maintaining tracking accuracy across frames
• Handling lighting and camera angle variations
• Processing video frames in real time efficiently
5.7 Testing During Implementation
• Unit testing for each module
• Integration testing for complete system workflow
• Accuracy testing for people detection
• Performance testing for real-time processing
• Output verification using sample video datasets
24
SOURCE CODE
25
DESCRIPTION OF YOLO MODEL:
Arguments received: ['yolo']. Ultralytics 'yolo' commands use the following
syntax: yolo TASK MODE ARGS
Where TASK (optional) is one of ['classify', 'detect', 'pose', 'segment', 'obb']
MODE (required) is one of ['val', 'benchmark', 'export', 'track', 'train', 'predict']
ARGS (optional) are any number of custom 'arg=value' pairs like 'imgsz=320' that
See all ARGS at [Link] or with 'yolo cfg'
1. Train a detection model for 10 epochs with an initial learning_rate of 0.01yolo
train data=[Link] model=[Link] epochs=10 lr0=0.01
2. Predict a YouTube video using a pretrained segmentation model at image size 320:
yolo predict model=[Link] source='[Link]
imgsz=320
1. Purpose
- The message is a usage guide for the YOLO (You Only Look Once) command-
line interface
(CLI).
- It appears when 'yolo' is run without correct arguments or in the wrong format.
2. Command Syntax
- YOLO commands follow the structure: yolo TASK MODE ARGS where:
TASK (optional) – Type of computer vision task: ['classify', 'detect', 'pose', 'segment',
'obb'] MODE (required) – Action to perform: ['train', 'predict', 'val', 'benchmark', 'export',
'track']
ARGS (optional) – Additional parameters in 'key=value' format to override defaults
Examples: imgsz=640, epochs=10, lr0=0.01
26
source='[Link] imgsz=320 - Validate a
pretrained detection model:
yolo val model=[Link] data=[Link] batch=1 imgsz=640 - Export a
YOLO model to ONNX format: yolo export
model=[Link] format=onnx imgsz=224,128 - Use built-in
Ultralytics “solutions”:
yolo solutions count source="path/to/video.mp4" - Special utility
commands: yolo help, yolo checks, yolo version, yolo settings, yolo cfg
5. Key Points
- TASK specifies the vision problem type.
- MODE specifies what YOLO should do (train, predict, validate, etc.).
- ARGS are optional custom parameters to fine-tune the behavior.
- YOLO CLI provides ready-to-use solutions and utility commands for convenience.
SOURCE CODE:
import cv2 import torch
model = [Link]('ultralytics/yolov5', 'yolov5s') [Link] = 0.5
PERSON_CLASS = 0
cap = [Link](0)
while True:
ret, frame = [Link]() if not ret: break
frame = [Link](frame, (640, 480))
results = model(frame) detections = [Link][0]
boxes = []
for *box, conf, cls in detections:
if int(cls) == PERSON_CLASS and conf > 0.5:
x1, y1, x2, y2 = map(int, box)
width = x2 - x1 height = y2 - y1
# remove false detections if width < 100 or height < 100:
continue
[Link]([x1, y1, x2, y2])
count = len(boxes)
for (x1,y1,x2,y2) in boxes: [Link](frame,(x1,y1),(x2,y2),(0,255,0),2)
[Link](frame, f"People Count: {count}",
(20,40),
cv2.FONT_HERSHEY_SIMPLEX,
1,(0,0,255),2)
[Link]("People Counter", frame)
if [Link](1) == 27: break
[Link]()
[Link]()
27
Overall Explanation – YOLOv5 Real-Time People Counting (Webcam)
1. Import Libraries
- cv2: OpenCV for video capture, frame processing, drawing, and display - torch:
PyTorch for loading and running the YOLOv5 model
3. Initialize Webcam
- [Link](0) opens the default camera
- Checks if frames can be read successfully
5. Filter Detections
- Keep only detections with class ID 0 (person)
- Only consider boxes with confidence > 0.5
- Ignore very small boxes (width or height < 100) to reduce false positives
7. Display Video
- Show the processed frame in a window titled "People Counter"
8. Exit Condition
- Break the loop if the ESC key (ASCII 27) is pressed
9. Release Resources
- Release the webcam using [Link]()
- Close all OpenCV windows using [Link]()
Key Features:
- Real-time people detection and counting
28
- Visual feedback with bounding boxes and count
- Reduces false positives using confidence and size filtering
- Runs continuously until manually stopped
SOURCE CODE:
import cv2
import torch
model = [Link]('ultralytics/yolov5', 'yolov5n') [Link] = 0.3
PERSON_CLASS = 0
cap = [Link]("smart.mp4")
if not [Link]():
print("Error: Could not open video.")
exit()
frame_skip = 2
frame_count = 0
while True:
ret, frame = [Link]() if not ret: break
frame_count += 1 if frame_count % frame_skip != 0:
continue
frame = [Link](frame, (640, 360))
results = model(frame)
detections = [Link][0] count
=0
for *box, conf, cls in detections:
if int(cls) == PERSON_CLASS:
count += 1
x1,y1,x2,y2 = map(int, box) [Link](frame,
(x1,y1),(x2,y2),(0,255,0),2) [Link](frame, f"People
Count: {count}", (20,40),
cv2.FONT_HERSHEY_SIMPLEX, 1,(0,0,255),2)
[Link]("People Counter", frame)
if [Link](1) == 27:
break
[Link]()
[Link]()
29
- [Link]("smart.mp4") opens the video file for processing
- Checks if the video file is successfully opened; exits with an error if not
4. Frame Skipping
- frame_skip = 2: Process every 2nd frame to reduce computation and speed
up processing
- frame_count keeps track of current frame index
6. Object Detection
- Pass the frame to YOLOv5 model
- Get detections in xyxy format: [x1, y1, x2, y2, confidence, class]
7. Count and Draw People
- Initialize count = 0 for current frame - Iterate through detections:
- Check if detected object is a person (class ID 0)
- Increment count for each valid person
- Draw a green bounding box around each detected person
9. Exit Condition
- Break the loop if the ESC key (ASCII 27) is pressed
Key Features:
- Real-time people detection and counting from video files
- Uses frame skipping to improve performance
- Displays bounding boxes and total people count on frames
- Efficient and lightweight by using 'yolov5n' model
30
Chapter - 6
RESULT ANALYSIS
31
6.1 Overview of Results
The system was tested with different types of inputs such as:
Live camera feed (webcam)
Recorded videos of different lengths and resolutions
6.2 Performance Analysis Accuracy
Detects humans with high precision using YOLOv5.
Properly filters false positives using bounding box size thresholds.
Minor detection errors may occur in extremely crowded scenes or occlusions.
Detection Quality
Bounding boxes are correctly drawn around each detected
person. Real-time feedback is displayed on the video frame.
Supports adjustable confidence threshold for fine-tuning detection.
Processing Time
Live feed: Very fast; near real-time processing (depends on GPU/CPU).
Recorded videos: Moderate processing time depending on resolution and frame skipping.
Performance improves with lower frame resolution or frame skipping.
Efficiency
Reduces manual monitoring effort.
Enables real-time crowd analysis and reporting.
Handles multiple people efficiently even in moderately crowded environments.
6.3 Output Evaluation
The output was evaluated based on the following parameters:
Parameter Observation
Detection Accuracy High
Bounding Box Quality Clear and precise
Real-Time Update Smooth and responsive
Speed Adjustable via frame skipping
User Satisfaction High
TestCase
ID Input Type Expected Output Actual Result Status
TC2 Multiple people Count matches actual Count matches actual Pass
TC3 Crowded scene Accurate bounding boxes Some overlapping boxes Pass
TC4 Video with motion blur Detect major objects Detected most people Pass
32
6.5 Advantages Observed
• Real-time detection and counting of people.
• Reduces manual monitoring effort.
• Visual output with bounding boxes enhances user understanding.
• User-friendly system that can work with live and recorded videos.
• Can support security, crowd management, and analytics use cases.
33
Chapter - 7
OUTPUT SCREENS
34
7. Screenshots and Workflow for People Counting System
7.1 Types of Screenshots
Included Input Screen
Displays the interface where the system receives the video input. Can be a live webcam
feed or a recorded video file.
Description:
The user provides the video source (camera or video file). This is the starting point of the
people counting process.
Video Processing Screen
Shows the frame being processed in real-time.
Description:
The system reads each video frame and prepares it for detection by YOLOv5.
35
Fig no: 7.1.1 Input screen
36
Detection Screen
Displays the bounding boxes around detected people.
Shows real-time detection results.
Description:
The YOLOv5 model identifies humans in the frame and filters false positives based on
confidence and bounding box size.
Counting Screen
Shows the current count of detected people overlaid on the video frame.
Description:
The system calculates and displays the total number of people detected in the frame in
realtime.
Output Screen (Visualization)
Displays the processed video with:
Green bounding boxes around detected people People count displayed at the top-left corner
Description:
The user can observe the system’s detection results and count in real-time.
Summary / Export Screen
If supported, this screen shows recorded results or analytics.
Description:
Users can save the processed video with bounding boxes or export people count data for
analysis.
37
Fig no : 7.1.2 Video processing screen
38
Fig no : 7.1.3 Output screen
39
7.2 Explanation of Workflow Using Screenshots
User provides video input → (Input Screenshot)
System reads and preprocesses each frame → (Video Processing Screenshot)
YOLOv5 detects people in frames → (Detection Screenshot)
Bounding boxes drawn and people counted → (Counting & Output Screenshot)
Results displayed in real-time with count overlay → (Output Screenshot)
40
Chapter - 8
CONCLUSION
41
The Real-Time People Counting System is a successful implementation of modern
computer vision technologies, including Artificial Intelligence (AI) and YOLOv5
object detection, to automatically detect and count people in live or recorded video
streams.
System Effectiveness
Efficient – Processes video frames quickly for real-time detection.
Reliable – Produces consistent detection results across different environments.
User-Friendly – Easy to set up and use without advanced technical knowledge.
Scalable – Can be extended for multiple cameras or integration with analytics platforms.
Overall Impact
The People Counting System provides a practical solution for automatic occupancy
monitoring and crowd analysis. It has applications in:
Security and surveillance
Retail and shopping centers
Smart buildings and offices
Event management and public spaces
Final Statement
In conclusion, the project demonstrates how AI-powered computer vision can enhance
safety, monitoring, and operational efficiency. The Real-Time People Counting System is
a practical and innovative solution that automates human detection and counting, making
crowd management and surveillance more effective and accessible.
42
Chapter - 9
FUTURE ENHANCEMENT
43
The Future Enhancement section describes possible improvements and additional features
that can be added to the Real-Time People Counting System to make it more advanced,
efficient, and user-friendly.
44
Integration with IoT Devices
Connect with smart lighting, HVAC, or access control systems
Enable automation based on real-time occupancy
45
Chapter - 10
BIBLIOGRAPHY
46
References
47