SlideShare a Scribd company logo
2
Most read
3
Most read
4
Most read
© 2023, IRJET | Impact Factor value: 8.226 | ISO 9001:2008 Certified Journal | Page 37
Helmet and License Plate Detection using Machine Learning
Mr. Meeravali Shaik1, V Uday Kiran2, K Vineeth3, CH Sudheer4
1 Assistant Professor, Dept. Of Computer Science and Engineering, SNIST, Hyderbad, 501301, India
2,3,4B.Tech Scholars , Dept. Of Computer Science and Engineering, SNIST, Hyderbad, 501301, India
---------------------------------------------------------------------***---------------------------------------------------------------------
Abstract - Over the years, the number of motorcycle
accidents has been rising quickly in many nations. More
than 37 million individuals in India ride two wheels. To
ensure road safety, a mechanism for the automatic
identification of helmet use must be developed. As a
result, a unique object detection model that can recognise
motorcycle riders is developed utilising a machine
learning-based approach. When a rider without a helmet
is spotted, the licence plate is retrieved, and an optical
character recognition system is used to identify the
licence plate number.Using a webcam or a CCTV as input,
this application can be used in real-time.
Key Words: Automatic License Plate Recognition (ALPR),
Deep Neural Network (DNN), Helmet Detection, Machine
Learning, Mean Average Precision (mAP), Optical
Character Recognition (OCR), You Only Look Once
(YOLO).
1. INTRODUCTION
Helmets are the primary piece of safety gear for
motorcycle riders. The motorcycle rider is protected from
accidents by the helmet. Although wearing a helmet is
required in many nations, some motorcycle riders choose
not to wear one or wear one inappropriately. Numerous
studies in traffic analysis have been conducted in recent
years, including those on vehicle detection and
categorization and helmet detection. Computer vision
technologies, such as background and foreground image
detection to segment the moving objects in a scene and
image descriptors to extract features, were used to
develop intelligent traffic systems. To classify the items,
computational intelligence technologies such as machine
learning algorithms are also used.
Machine learning (ML) is the area of artificial intelligence
where a trained model uses inputs from the training
phase to operate autonomously. In order to generate
predictions or choices, machine learning algorithms
create a mathematical model using sample data, referred
to as "training data," and are also utilised in object
identification applications. Therefore, a Helmet detection
model can be put into use by training with a certain
dataset. This helmet detection model makes it simple to
identify riders without helmets. The rider's licence plate
is clipped out and saved as an image based on the
recognised classes.An optical character recognition (OCR)
model is given this image, recognises the text, and
outputs the licence plate number as machine-encoded
text. Additionally, a Webcam can be used to implement it.
The goal of this study is to create a system that uses CCTV
cameras to enforce helmet use. The created system tries to
alter risky behaviours, hence lowering accident frequency
and severity.
2. RELATED WORK
The issue of helmet detection has been addressed in a
number of ways during the past few years. In, the authors
employ a background subtraction technique to identify
and distinguish between moving vehicles. Additionally,
they classified human heads with helmets and without
helmets using Support Vector Machines (SVM). In, Silva et
al. suggested a hybrid descriptor model based on
geometric shape and texture data to automatically identify
motorcycle riders without helmets. They combined the
Hough transform with SVM to find the motorcyclist's head.
They also add a multi-layer perception model for the
classification of distinct items to their work from [10].
A circular arc detection technique based on the Hough
transform is used by Wen et al. They used it on the
surveillance system to detect helmets. The flaw in this
research is that they rely solely on geometric cues to
determine whether a safety helmet is present in the set.
Finding helmets requires more than just geometrical
traits.suggests a computer vision system with the goal of
partially detecting and segmenting motorcycles. Utilizing a
helmet detecting device, the presence of a helmet confirms
the presence of a motorcycle. The edges are computed on
the potential helmet region in order to identify the
existence of the helmet. It employs the Canny edge
detector.
A system to detect moving objects using a k-NN classifier
placed over a motorcycle rider's head to categorise a
helmet was proposed by Waranusat et al. These models
had a cap on the degree of precision that could be attained
and were based on statistical data from photographs.
The accuracy of categorization has continued to increase
with the development of neural networks and deep
learning models. A convolutional neural network (CNN)
based approach for object classification and detection was
introduced by Alex et al. Despite using CNN, they have
poor accuracy in detecting helmets due to restrictions on
helmet colour and the presence of several riders on a
single biker.
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 10 Issue: 06 | Jun 2023 www.irjet.net p-ISSN: 2395-0072
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 10 Issue: 06 | Jun 2023 www.irjet.net p-ISSN: 2395-0072
© 2023, IRJET | Impact Factor value: 8.226 | ISO 9001:2008 Certified Journal | Page 38
3. PROPOSED METHODOLOGY
Accuracy and speed are essential for real-time helmet
detection. As a result, the You Only Look Once (YOLO)
DNN model was selected. Modern, real-time object
detecting technology is used by YOLO.
YOLOv3 is significantly faster and more accurate than the
previous YOLO versions. In contrast to R-CNN systems,
which require thousands of evaluations for a single
image, it also makes predictions with a single network
assessment. It is incredibly quick, outpacing R-CNN and
Fast R-CNN by more than 1000 times and 100 times,
respectively.
The art of finding examples of a particular class, such as
animals, humans, and many more, in an image or video is
known as object detection. Using pretrained object
detection models, the Pre-Existing Object Detection API
makes it simple to detect objects. However, these models
identify a number of objects that are useless to us; as a
result, a bespoke object detector is required to identify
the required classes.
Five objects must be found in order to conduct helmet
detection and number plate recognition and extraction.
Helmet, No Helmet, Motorbike, Person (Sitting on the
Bike), and License Plate are the objects.
It is necessary to develop a unique object detection
model that can find these items. As a Dataset, a set of
photos with the objects from the classes that need to be
recognised are employed. The custom model is then
All of the collected photos are fed with their annotations
during the training process. Using ground truth from the
necessary classes, the model retrieves the features of each
class from each image. We employ a deep learning classifier
based on convolutional neural networks for extracting the
characteristics and storing them in order to recognise those
features in additional photos.
3.1 Helmet Detection
The YOLOv3 model receives the tagged photos as input to train
for the specific classes. The model is loaded using the weights
produced during training. After that, an image is provided as
input. All five of the training classes are detected by the model.
We learn about the guy riding the motorcycle from this. We can
quickly determine the rider's other class details if they are not
wearing a helmet. The licence plate can be extracted using
this.
3.2 License Plate Extraction
The linked person class is identified once the helmetless
rider has been located. This is accomplished by determining
whether or not the no helmet class' coordinates fall inside
the person class. Similar proceduresare used to identify the
corresponding motorcycle and licence plate. The licence
plate is cropped and saved as a new image after the
coordinates are located.
trained using this dataset. Once trained, the model can
be used to find these unique objects.
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 10 Issue: 06 | Jun 2023 www.irjet.net p-ISSN: 2395-0072
3.3 License Plate Recognition
An optical character recognition (OCR) model is given the
extracted licence plate. The OCR extracts the recognised
strings from the machine-encoded text after identifying
the text in the provided image. A list of anticipated licence
plate numbers together with a confidence level are output
by the OCR module. The confidence value conveys how
confident the system is in correctly identifying the
provided licence plate. Then, for later use, the licence
plate identified with the greatest confidence value is
saved in a text file.
4. REAL TIME IMPLEMENTATION
4.1 Using Webcam
The camera can be utilised as an input tool to get image
frames for real-time object detection. Since we are
utilising the YOLOv3-tiny model, the processing speed is
up to 220 frames per second.
4.2 Using IP Webcam for Mobile
Instead of using the webcam, a mobile camera can be
used as the input. As a mobile device can be carried and
can viewthings from various perspectives, this can create
a lot of opportunities. A further benefit is that this can all
be done in real-time. This means that the footage can be
obtained from a handheld device as well as from CCTV
footage. Additionally, the close-up mobile video can
provide a number plate that is sharper and easier to read
so that the OCR can output an exact number.
5. RESULTS
Instead of using the webcam, a mobile camera can be used as
the input. As a mobile device can be carried and can view
things from various perspectives, this can create a lot of
opportunities. A further benefit is that this can all be done in
real-time. This means that the footage can be obtained from
a handheld device as well as from CCTV footage.
Additionally, the close-up mobile video can provide a
number plate that is sharper and easier to read so that the
OCR can output an exact number.
© 2023, IRJET | Impact Factor value: 8.226 | ISO 9001:2008 Certified Journal | Page 39
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 10 Issue: 06 | Jun 2023 www.irjet.net p-ISSN: 2395-0072
The graphic below displays a few samples of the input
image and the item detector
From the output of the object detector, the code retrieves the
licenceplate. The code used to retrieve licence plates only pulls
information from motorbikes whose riders are not wearing
helmets and discards the information from motorbikes
whose riders are wearing helmets.
With an accuracy of upto 85%, the OCR model can find
and identify any licence plates that are visible in an image.
In the accompanying figure, a recognized licence plate is
displayed as an example.
6. CONCLUSION
According to the data shown above, it is clear that YOLO
object detection is ideally suited for real-time processing
and was successful in accurately classifying and localizing
all object classes. The suggested end-to-end model was
successfully constructed and has all the necessary
components to be automated and deployed for
monitoring. A variety of strategies are used to extract the
licence plates, some of which are created to handle the
majority of situations while taking into account various
scenarios like numerous riders operating without
helmets. All of the software and libraries utilized in our
project are open source, making them very adaptable and
affordable. The initiative was primarily created to address
the issue of ineffective traffic management. So, in
conclusion, we can claim that if implemented by any
traffic management departments, it will facilitate and
speed up their work.
REFERENCES
[1] Viola and Jones, “Robust Real-time Object
Detection”,IJCV 2001.
[2] Navneet Dalal and Bill Triggs, “Histogram of
orientedgradients for human detection”.
[3] Ross, Jeff, Trevor and Jitendra “Rich feature Hierarchy
for Accurate object Detection”.
© 2023, IRJET | Impact Factor value: 8.226 | ISO 9001:2008 Certified Journal | Page 40
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 10 Issue: 06 | Jun 2023 www.irjet.net p-ISSN: 2395-0072
[4] Shaoqing Ren, Kaiming He, Ross Girshick, Jian Sun,
“FastR-CNN” (Submitted on 4 Jun 2015 (v1), last revised 6
Jan 2016 (this version, v3)).
[5] Joseph Redmon, Ali Farhadi, “YOLO9000: Better,
Faster,Stronger”, University of Washington, Allen Institute
Of AI.
[6] Joseph Redmon, Ali Farhadi, “YOLOv3: An
Incremental Improvement”, University of Washington,
Allen Institute ofAI.
[6] Wei Liu, Dragomir Anguelov, Dumitru Erhan,
Christian Szegedy, Scott Reed, Cheng – Yang Fu, Alexander
C. Berg, “SSD: Single Shot MultiBox Detector”.
[7] A. Adam, E. Rivlin, I. Shimshoni, and D. Reinitz,
“Robust real-time unusual event detection using multiple
fixed- location monitors,” IEEE Transactions on Pattern
Analysis and Machine Intelligence, vol. 30, no. 3, pp. 555–
560, March2008.
[8] AlexeyAB,
https://github.com/AlexeyAB/darknet#requirements.
[9] C.-Y. Wen, S.-H. Chiu, J.-J. Liaw, and C.-P. Lu,
“The safety helmet detection for atm’s surveillance
system via the modified hough transform,” in IEEE
37th Annual International Carnahan Conference on
Security Technology., 2003, pp. 364–369.
[10] C.-C. Chiu, M.-Y. Ku, and H.-T. Chen,
“Motorcycle detection and tracking system with occlusion
segmentation,” in WIAMIS ’07, USA, 2007
[11] A. Hirota, N. H. Tiep, L. Van Khanh, and N.
Oka, Classifying Helmeted and Non-helmeted Motorcyclists.
Cham: Springer International Publishing, 2017, pp. 81–86.
© 2023, IRJET | Impact Factor value: 8.226 | ISO 9001:2008 Certified Journal | Page 41

More Related Content

PPTX
SPEECH BASED EMOTION RECOGNITION USING VOICE
PDF
Sensor Cloud
PPT
Silverlight
PPTX
Android app development ppt
PPTX
Automatic number-plate-recognition
PPTX
Load runner & win runner
PPT
Android Media player
PPSX
Face recognition technology - BEST PPT
SPEECH BASED EMOTION RECOGNITION USING VOICE
Sensor Cloud
Silverlight
Android app development ppt
Automatic number-plate-recognition
Load runner & win runner
Android Media player
Face recognition technology - BEST PPT

What's hot (20)

PDF
Helmet Detection using Machine Learning
DOC
Data analyst resume
PPTX
Android application development ppt
PPT
Face Detection and Recognition System
PPTX
HAND GESTURE RECOGNITION.ppt (1).pptx
PPTX
Internship Presentation 1 Web Developer
PPTX
Task programming
PPTX
Virtual Private Networks (VPN) ppt
PDF
Human activity recognition
PPTX
Keymanagement of ipsec
PPTX
Hand Gesture Recognition Using OpenCV Python
PPTX
Goals of protection
PPTX
Mind reading computer ppt
PPTX
face detection
PPTX
PARADIGM SHIFT IN HUMAN COMPUTER INTERACTION
PPTX
Face recognition using neural network
PPTX
Graphical password authentication
DOCX
human activity recognization using machine learning with data analysis
PPT
Taxonomy for bugs
PPTX
Digital watermarking
Helmet Detection using Machine Learning
Data analyst resume
Android application development ppt
Face Detection and Recognition System
HAND GESTURE RECOGNITION.ppt (1).pptx
Internship Presentation 1 Web Developer
Task programming
Virtual Private Networks (VPN) ppt
Human activity recognition
Keymanagement of ipsec
Hand Gesture Recognition Using OpenCV Python
Goals of protection
Mind reading computer ppt
face detection
PARADIGM SHIFT IN HUMAN COMPUTER INTERACTION
Face recognition using neural network
Graphical password authentication
human activity recognization using machine learning with data analysis
Taxonomy for bugs
Digital watermarking
Ad

Similar to Helmet and License Plate Detection using Machine Learning (20)

PDF
IRJET- A Deep Learning based Approach for Automatic Detection of Bike Rid...
PDF
Safety Helmet Detection in Engineering and Management
PDF
TRAFFIC RULES VIOLATION DETECTION SYSTEM
PDF
IRJET - A Cascade Classifier based Approach on Enhanced Safety of Motorcy...
PDF
Vision-Based Motorcycle Crash Detection and Reporting Using Deep Learning
DOCX
project report for engineering studfents
PPTX
project ppt.pptx
PPTX
Project Proposal Project Proposal Project Proposal Project Proposal
PPTX
helmet and number plate detection power point
PDF
HELMET DETECTION USING ARTIFICIAL INTELLIGENCE
PDF
Stay Awake Alert: A Driver Drowsiness Detection System with Location Tracking...
PDF
Vigilance: Vehicle Detector and Tracker
PDF
Automatic Detection of Unexpected Accidents Monitoring Conditions in Tunnels
PDF
Real-Time Automated Overspeeding Detection and Identification System
PDF
Distracted Driver Detection
PDF
Object Detection for Autonomous Cars using AI/ML
PDF
IRJET- Computerized Vehicle Foyer and Outlet Monitoring System using Deep Lea...
PPTX
No Helmet Detection With Automatic NPR
PDF
HELMET DETECTION ON TWO-WHEELER RIDERS USING MACHINE LEARNING
PDF
AUTONOMOUS SELF DRIVING CARS
IRJET- A Deep Learning based Approach for Automatic Detection of Bike Rid...
Safety Helmet Detection in Engineering and Management
TRAFFIC RULES VIOLATION DETECTION SYSTEM
IRJET - A Cascade Classifier based Approach on Enhanced Safety of Motorcy...
Vision-Based Motorcycle Crash Detection and Reporting Using Deep Learning
project report for engineering studfents
project ppt.pptx
Project Proposal Project Proposal Project Proposal Project Proposal
helmet and number plate detection power point
HELMET DETECTION USING ARTIFICIAL INTELLIGENCE
Stay Awake Alert: A Driver Drowsiness Detection System with Location Tracking...
Vigilance: Vehicle Detector and Tracker
Automatic Detection of Unexpected Accidents Monitoring Conditions in Tunnels
Real-Time Automated Overspeeding Detection and Identification System
Distracted Driver Detection
Object Detection for Autonomous Cars using AI/ML
IRJET- Computerized Vehicle Foyer and Outlet Monitoring System using Deep Lea...
No Helmet Detection With Automatic NPR
HELMET DETECTION ON TWO-WHEELER RIDERS USING MACHINE LEARNING
AUTONOMOUS SELF DRIVING CARS
Ad

More from IRJET Journal (20)

PDF
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
PDF
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
PDF
Kiona – A Smart Society Automation Project
PDF
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
PDF
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
PDF
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
PDF
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
PDF
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
PDF
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
PDF
BRAIN TUMOUR DETECTION AND CLASSIFICATION
PDF
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
PDF
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
PDF
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
PDF
Breast Cancer Detection using Computer Vision
PDF
Auto-Charging E-Vehicle with its battery Management.
PDF
Analysis of high energy charge particle in the Heliosphere
PDF
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
PDF
Auto-Charging E-Vehicle with its battery Management.
PDF
Analysis of high energy charge particle in the Heliosphere
PDF
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
Kiona – A Smart Society Automation Project
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
BRAIN TUMOUR DETECTION AND CLASSIFICATION
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
Breast Cancer Detection using Computer Vision
Auto-Charging E-Vehicle with its battery Management.
Analysis of high energy charge particle in the Heliosphere
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
Auto-Charging E-Vehicle with its battery Management.
Analysis of high energy charge particle in the Heliosphere
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...

Recently uploaded (20)

PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
DOCX
573137875-Attendance-Management-System-original
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PDF
Digital Logic Computer Design lecture notes
PPTX
Geodesy 1.pptx...............................................
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
Safety Seminar civil to be ensured for safe working.
PDF
PPT on Performance Review to get promotions
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPT
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
573137875-Attendance-Management-System-original
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
UNIT 4 Total Quality Management .pptx
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Digital Logic Computer Design lecture notes
Geodesy 1.pptx...............................................
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
Safety Seminar civil to be ensured for safe working.
PPT on Performance Review to get promotions
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Operating System & Kernel Study Guide-1 - converted.pdf
R24 SURVEYING LAB MANUAL for civil enggi
Model Code of Practice - Construction Work - 21102022 .pdf
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
bas. eng. economics group 4 presentation 1.pptx
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...

Helmet and License Plate Detection using Machine Learning

  • 1. © 2023, IRJET | Impact Factor value: 8.226 | ISO 9001:2008 Certified Journal | Page 37 Helmet and License Plate Detection using Machine Learning Mr. Meeravali Shaik1, V Uday Kiran2, K Vineeth3, CH Sudheer4 1 Assistant Professor, Dept. Of Computer Science and Engineering, SNIST, Hyderbad, 501301, India 2,3,4B.Tech Scholars , Dept. Of Computer Science and Engineering, SNIST, Hyderbad, 501301, India ---------------------------------------------------------------------***--------------------------------------------------------------------- Abstract - Over the years, the number of motorcycle accidents has been rising quickly in many nations. More than 37 million individuals in India ride two wheels. To ensure road safety, a mechanism for the automatic identification of helmet use must be developed. As a result, a unique object detection model that can recognise motorcycle riders is developed utilising a machine learning-based approach. When a rider without a helmet is spotted, the licence plate is retrieved, and an optical character recognition system is used to identify the licence plate number.Using a webcam or a CCTV as input, this application can be used in real-time. Key Words: Automatic License Plate Recognition (ALPR), Deep Neural Network (DNN), Helmet Detection, Machine Learning, Mean Average Precision (mAP), Optical Character Recognition (OCR), You Only Look Once (YOLO). 1. INTRODUCTION Helmets are the primary piece of safety gear for motorcycle riders. The motorcycle rider is protected from accidents by the helmet. Although wearing a helmet is required in many nations, some motorcycle riders choose not to wear one or wear one inappropriately. Numerous studies in traffic analysis have been conducted in recent years, including those on vehicle detection and categorization and helmet detection. Computer vision technologies, such as background and foreground image detection to segment the moving objects in a scene and image descriptors to extract features, were used to develop intelligent traffic systems. To classify the items, computational intelligence technologies such as machine learning algorithms are also used. Machine learning (ML) is the area of artificial intelligence where a trained model uses inputs from the training phase to operate autonomously. In order to generate predictions or choices, machine learning algorithms create a mathematical model using sample data, referred to as "training data," and are also utilised in object identification applications. Therefore, a Helmet detection model can be put into use by training with a certain dataset. This helmet detection model makes it simple to identify riders without helmets. The rider's licence plate is clipped out and saved as an image based on the recognised classes.An optical character recognition (OCR) model is given this image, recognises the text, and outputs the licence plate number as machine-encoded text. Additionally, a Webcam can be used to implement it. The goal of this study is to create a system that uses CCTV cameras to enforce helmet use. The created system tries to alter risky behaviours, hence lowering accident frequency and severity. 2. RELATED WORK The issue of helmet detection has been addressed in a number of ways during the past few years. In, the authors employ a background subtraction technique to identify and distinguish between moving vehicles. Additionally, they classified human heads with helmets and without helmets using Support Vector Machines (SVM). In, Silva et al. suggested a hybrid descriptor model based on geometric shape and texture data to automatically identify motorcycle riders without helmets. They combined the Hough transform with SVM to find the motorcyclist's head. They also add a multi-layer perception model for the classification of distinct items to their work from [10]. A circular arc detection technique based on the Hough transform is used by Wen et al. They used it on the surveillance system to detect helmets. The flaw in this research is that they rely solely on geometric cues to determine whether a safety helmet is present in the set. Finding helmets requires more than just geometrical traits.suggests a computer vision system with the goal of partially detecting and segmenting motorcycles. Utilizing a helmet detecting device, the presence of a helmet confirms the presence of a motorcycle. The edges are computed on the potential helmet region in order to identify the existence of the helmet. It employs the Canny edge detector. A system to detect moving objects using a k-NN classifier placed over a motorcycle rider's head to categorise a helmet was proposed by Waranusat et al. These models had a cap on the degree of precision that could be attained and were based on statistical data from photographs. The accuracy of categorization has continued to increase with the development of neural networks and deep learning models. A convolutional neural network (CNN) based approach for object classification and detection was introduced by Alex et al. Despite using CNN, they have poor accuracy in detecting helmets due to restrictions on helmet colour and the presence of several riders on a single biker. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 10 Issue: 06 | Jun 2023 www.irjet.net p-ISSN: 2395-0072
  • 2. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 10 Issue: 06 | Jun 2023 www.irjet.net p-ISSN: 2395-0072 © 2023, IRJET | Impact Factor value: 8.226 | ISO 9001:2008 Certified Journal | Page 38 3. PROPOSED METHODOLOGY Accuracy and speed are essential for real-time helmet detection. As a result, the You Only Look Once (YOLO) DNN model was selected. Modern, real-time object detecting technology is used by YOLO. YOLOv3 is significantly faster and more accurate than the previous YOLO versions. In contrast to R-CNN systems, which require thousands of evaluations for a single image, it also makes predictions with a single network assessment. It is incredibly quick, outpacing R-CNN and Fast R-CNN by more than 1000 times and 100 times, respectively. The art of finding examples of a particular class, such as animals, humans, and many more, in an image or video is known as object detection. Using pretrained object detection models, the Pre-Existing Object Detection API makes it simple to detect objects. However, these models identify a number of objects that are useless to us; as a result, a bespoke object detector is required to identify the required classes. Five objects must be found in order to conduct helmet detection and number plate recognition and extraction. Helmet, No Helmet, Motorbike, Person (Sitting on the Bike), and License Plate are the objects. It is necessary to develop a unique object detection model that can find these items. As a Dataset, a set of photos with the objects from the classes that need to be recognised are employed. The custom model is then All of the collected photos are fed with their annotations during the training process. Using ground truth from the necessary classes, the model retrieves the features of each class from each image. We employ a deep learning classifier based on convolutional neural networks for extracting the characteristics and storing them in order to recognise those features in additional photos. 3.1 Helmet Detection The YOLOv3 model receives the tagged photos as input to train for the specific classes. The model is loaded using the weights produced during training. After that, an image is provided as input. All five of the training classes are detected by the model. We learn about the guy riding the motorcycle from this. We can quickly determine the rider's other class details if they are not wearing a helmet. The licence plate can be extracted using this. 3.2 License Plate Extraction The linked person class is identified once the helmetless rider has been located. This is accomplished by determining whether or not the no helmet class' coordinates fall inside the person class. Similar proceduresare used to identify the corresponding motorcycle and licence plate. The licence plate is cropped and saved as a new image after the coordinates are located. trained using this dataset. Once trained, the model can be used to find these unique objects.
  • 3. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 10 Issue: 06 | Jun 2023 www.irjet.net p-ISSN: 2395-0072 3.3 License Plate Recognition An optical character recognition (OCR) model is given the extracted licence plate. The OCR extracts the recognised strings from the machine-encoded text after identifying the text in the provided image. A list of anticipated licence plate numbers together with a confidence level are output by the OCR module. The confidence value conveys how confident the system is in correctly identifying the provided licence plate. Then, for later use, the licence plate identified with the greatest confidence value is saved in a text file. 4. REAL TIME IMPLEMENTATION 4.1 Using Webcam The camera can be utilised as an input tool to get image frames for real-time object detection. Since we are utilising the YOLOv3-tiny model, the processing speed is up to 220 frames per second. 4.2 Using IP Webcam for Mobile Instead of using the webcam, a mobile camera can be used as the input. As a mobile device can be carried and can viewthings from various perspectives, this can create a lot of opportunities. A further benefit is that this can all be done in real-time. This means that the footage can be obtained from a handheld device as well as from CCTV footage. Additionally, the close-up mobile video can provide a number plate that is sharper and easier to read so that the OCR can output an exact number. 5. RESULTS Instead of using the webcam, a mobile camera can be used as the input. As a mobile device can be carried and can view things from various perspectives, this can create a lot of opportunities. A further benefit is that this can all be done in real-time. This means that the footage can be obtained from a handheld device as well as from CCTV footage. Additionally, the close-up mobile video can provide a number plate that is sharper and easier to read so that the OCR can output an exact number. © 2023, IRJET | Impact Factor value: 8.226 | ISO 9001:2008 Certified Journal | Page 39
  • 4. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 10 Issue: 06 | Jun 2023 www.irjet.net p-ISSN: 2395-0072 The graphic below displays a few samples of the input image and the item detector From the output of the object detector, the code retrieves the licenceplate. The code used to retrieve licence plates only pulls information from motorbikes whose riders are not wearing helmets and discards the information from motorbikes whose riders are wearing helmets. With an accuracy of upto 85%, the OCR model can find and identify any licence plates that are visible in an image. In the accompanying figure, a recognized licence plate is displayed as an example. 6. CONCLUSION According to the data shown above, it is clear that YOLO object detection is ideally suited for real-time processing and was successful in accurately classifying and localizing all object classes. The suggested end-to-end model was successfully constructed and has all the necessary components to be automated and deployed for monitoring. A variety of strategies are used to extract the licence plates, some of which are created to handle the majority of situations while taking into account various scenarios like numerous riders operating without helmets. All of the software and libraries utilized in our project are open source, making them very adaptable and affordable. The initiative was primarily created to address the issue of ineffective traffic management. So, in conclusion, we can claim that if implemented by any traffic management departments, it will facilitate and speed up their work. REFERENCES [1] Viola and Jones, “Robust Real-time Object Detection”,IJCV 2001. [2] Navneet Dalal and Bill Triggs, “Histogram of orientedgradients for human detection”. [3] Ross, Jeff, Trevor and Jitendra “Rich feature Hierarchy for Accurate object Detection”. © 2023, IRJET | Impact Factor value: 8.226 | ISO 9001:2008 Certified Journal | Page 40
  • 5. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 10 Issue: 06 | Jun 2023 www.irjet.net p-ISSN: 2395-0072 [4] Shaoqing Ren, Kaiming He, Ross Girshick, Jian Sun, “FastR-CNN” (Submitted on 4 Jun 2015 (v1), last revised 6 Jan 2016 (this version, v3)). [5] Joseph Redmon, Ali Farhadi, “YOLO9000: Better, Faster,Stronger”, University of Washington, Allen Institute Of AI. [6] Joseph Redmon, Ali Farhadi, “YOLOv3: An Incremental Improvement”, University of Washington, Allen Institute ofAI. [6] Wei Liu, Dragomir Anguelov, Dumitru Erhan, Christian Szegedy, Scott Reed, Cheng – Yang Fu, Alexander C. Berg, “SSD: Single Shot MultiBox Detector”. [7] A. Adam, E. Rivlin, I. Shimshoni, and D. Reinitz, “Robust real-time unusual event detection using multiple fixed- location monitors,” IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 30, no. 3, pp. 555– 560, March2008. [8] AlexeyAB, https://github.com/AlexeyAB/darknet#requirements. [9] C.-Y. Wen, S.-H. Chiu, J.-J. Liaw, and C.-P. Lu, “The safety helmet detection for atm’s surveillance system via the modified hough transform,” in IEEE 37th Annual International Carnahan Conference on Security Technology., 2003, pp. 364–369. [10] C.-C. Chiu, M.-Y. Ku, and H.-T. Chen, “Motorcycle detection and tracking system with occlusion segmentation,” in WIAMIS ’07, USA, 2007 [11] A. Hirota, N. H. Tiep, L. Van Khanh, and N. Oka, Classifying Helmeted and Non-helmeted Motorcyclists. Cham: Springer International Publishing, 2017, pp. 81–86. © 2023, IRJET | Impact Factor value: 8.226 | ISO 9001:2008 Certified Journal | Page 41