SlideShare a Scribd company logo
TRAFFIC
CONTROLLING
SYSTEM USING
RASPBERRY PI
Syed Umaid Ahmed
Talha Ashraf
Farah Kareem
TRAFFIC CONGESTION
 Traffic congestion and an irregularity of traffic laws are the
major problems of our system that needs to be addressed
 Traffic congestion is a result of mismanagement of the
traffic system
OUR CONSIDERATION
 The consideration of traffic lights for controlling traffic
congestion, can play an important role in the traffic
management system .
 It can decrease vehicle accidents.
 Our project is Raspberry Pi based shall revitalize the existing
system with some innovation.
 It counts the number of vehicles on a two-way road which
helps us to calculate the density of the vehicles on that
particular road, which in turn possibly gets us an idea to
manage the traffic management system.
PROCEDURE
 This system capable of detecting motion of the vehicles
along with their speeds on a two-way road using Raspberry
Pi model 3B.
 Our model is programmed with the help of Python
programming language and it uses OpenCV library that
provides webcam to the microprocessor for image
processing.
 It uses video streaming that detects fast moving vehicles
and tracks their motional activity.
LIVE STREAMING OPEN
CV
VEHICLE COUNTING SPEED TRACKING
Tracking Motion
Activity
Horizontal Lines for
roads
Image Processing
Records Image date
& time
CSV file & WEB
database
In Selected Area
Restricted Motion
Photo with Speed
Captured
Directions of wrong way going cars are
noted
Detect largest moving
Object
Bar Graph of all Speeds
SQL, WEB and CSV
database
Mobile Notifications
USB WebcamRaspberry Pi 3
METHODOLOGY
 System is designed for getting images from the webcam
where moving objects in the video are framed and
processed.
 A vehicle is considered as a rectangular shape. To identify
each vehicle, a rectangular shape of known dimension is
drawn on the street so as to align the vehicle on that
particular rectangle on the road.
 Whenever a vehicle passes, An OpenCV background
segmentation algorithm (Mixture of Gaussians Segmenter,
BackgroundSubtractorMOG2) is run.
 We decided to track entering or leaving Activity when they cross
a vertical or horizontal center line.
 At first, it was a simple counter but now it also allows for options
to take an image and update a csv file.
 You can add more features if you are familiar with python
programming.
MAIN IDEA: IMPLEMENTATION
OF CONCEPT # 1
Enter: 0 Leave: 0
Enter: 1 Leave: 0
 On passing the vertical or horizontal lines (both modes are available)
the counter value is changed.
 On passing of a single vehicle or more the camera also captured the
image and save it in its database.
 On a two way road, it can notify about the heavy traffic on any route
where the system is installed.
 When the vehicles on the road side increases it will generate an
automatic notification.
 The notification is linked to the command of the signal.
 Through a set of loops we can calculate the density of traffic on both
sides of the roads.
 As per the notification the signal timer is adjusted using seven
segment display counter.
 The whole process is automated. There is no need of human
intervention in it.
Image Processing
(Vehicle Counter)
Density
Calculation
Signal Timer
Adjustment
Testing Picture of Vehicle Counter
MAIN IDEA: IMPLEMENTATION
OF CONCEPT # 2
 The system not only track entering or leaving Activity when they cross
the area, but it also records the location and movement.
 At first, it was a simple counter but now it also allows for options to
detect if intruder is on wrong way.
 The database recorded indicates the movement of a car from right to
left and left to right.
 If there is a one-way road, it will generate a notification to traffic
controller for breaking of rules.
Enter: 0 Leave: 0
Right to Left
 Here we have attached the screenshot of readings of the vehicle
movement
MAIN IDEA: IMPLEMENTATION OF
CONCEPT # 3
 The system also measures the speed of a moving vehicle in a certain
area.
 At first, it was a simple counter and movement indicator but now it can
measure the speed of vehicles using opencv and image processing.
 The image of every vehicle with time and date stamp is recorded on a
web database
 There is also the bar graph plot to indicate the highest speed
 The system is capable of generating alerts in all such cases
 We track the x,y coordinates of the largest moving object in the camera
view above a minimum pixel area. Motion detection is restricted
between y_upper, y_lower, x_left, x_right variables (road or area of
interest). If a track is longer than track_len_trig variable then average
speed will be calculated and a speed photo will be taken and saved in
media/images.
RESULT
 The bar graph shows the data collected after
implementation of our project, showing the number of
vehicles passing hour by hour in a day.
 It shows the testing of the algorithm on different images
processed for tracking and counting vehicle extracted from
the video made by our webcam place on the road.
 This will incorporate us the calculation of the speed of
vehicles passing along the road, with their time and date of
passing.
 Here we have attached the screenshot of readings of the vehicle
movement

More Related Content

Similar to Efficient Traffic Control System Presentation

Vehicle counting for traffic management
Vehicle counting for traffic management Vehicle counting for traffic management
Vehicle counting for traffic management ADEEBANADEEM
 
IRJET- Artificial Intelligence Based Smart Traffic Management System using Vi...
IRJET- Artificial Intelligence Based Smart Traffic Management System using Vi...IRJET- Artificial Intelligence Based Smart Traffic Management System using Vi...
IRJET- Artificial Intelligence Based Smart Traffic Management System using Vi...IRJET Journal
 
Running head MOTION SENSOR SYSTEM IN PARKING LOTS AND GARAGES .docx
Running head MOTION SENSOR SYSTEM IN PARKING LOTS AND GARAGES .docxRunning head MOTION SENSOR SYSTEM IN PARKING LOTS AND GARAGES .docx
Running head MOTION SENSOR SYSTEM IN PARKING LOTS AND GARAGES .docxglendar3
 
Running head MOTION SENSOR SYSTEM IN PARKING LOTS AND GARAGES .docx
Running head MOTION SENSOR SYSTEM IN PARKING LOTS AND GARAGES .docxRunning head MOTION SENSOR SYSTEM IN PARKING LOTS AND GARAGES .docx
Running head MOTION SENSOR SYSTEM IN PARKING LOTS AND GARAGES .docxtodd581
 
IRJET- Time To Cross – Traffic Light Control System using Image Processing
IRJET-  	  Time To Cross – Traffic Light Control System using Image ProcessingIRJET-  	  Time To Cross – Traffic Light Control System using Image Processing
IRJET- Time To Cross – Traffic Light Control System using Image ProcessingIRJET Journal
 
Cloud Based Autonomous Vehicle Navigation
Cloud Based Autonomous Vehicle NavigationCloud Based Autonomous Vehicle Navigation
Cloud Based Autonomous Vehicle NavigationWilliam Smith
 
IRJET- Simulation based Automatic Traffic Controlling System
IRJET- Simulation based Automatic Traffic Controlling SystemIRJET- Simulation based Automatic Traffic Controlling System
IRJET- Simulation based Automatic Traffic Controlling SystemIRJET Journal
 
License plate extraction of overspeeding vehicles
License plate extraction of overspeeding vehiclesLicense plate extraction of overspeeding vehicles
License plate extraction of overspeeding vehicleslambanaveen
 
water resources
water resourceswater resources
water resourcesunliya
 
AI IN VEHICLE COUNTING (1).pptx
AI IN VEHICLE COUNTING (1).pptxAI IN VEHICLE COUNTING (1).pptx
AI IN VEHICLE COUNTING (1).pptxYash670955
 
Accident Avoidance by using Road Sign Recognition System
Accident Avoidance by using Road Sign Recognition SystemAccident Avoidance by using Road Sign Recognition System
Accident Avoidance by using Road Sign Recognition SystemIRJET Journal
 
parking space counter [Autosaved] (2).pptx
parking space counter [Autosaved] (2).pptxparking space counter [Autosaved] (2).pptx
parking space counter [Autosaved] (2).pptxAlbertDaleSteyn
 
Iaetsd literature review on traffic signal control system based on
Iaetsd literature review on traffic signal control system based onIaetsd literature review on traffic signal control system based on
Iaetsd literature review on traffic signal control system based onIaetsd Iaetsd
 
traffic jam detection using image processing
traffic jam detection using image processingtraffic jam detection using image processing
traffic jam detection using image processingMalika Alix
 
Smart Traffic Monitoring System based on vehicle counts.
Smart Traffic Monitoring System based on vehicle counts.Smart Traffic Monitoring System based on vehicle counts.
Smart Traffic Monitoring System based on vehicle counts.IRJET Journal
 
PROJECTS CENTER IN TAMBARAM MAASTECH-ECE PROJECTS TAMBARAM
PROJECTS CENTER IN TAMBARAM MAASTECH-ECE PROJECTS TAMBARAMPROJECTS CENTER IN TAMBARAM MAASTECH-ECE PROJECTS TAMBARAM
PROJECTS CENTER IN TAMBARAM MAASTECH-ECE PROJECTS TAMBARAMASHOKKUMAR RAMAR
 
Control of Traffic Signals by AI based Image Processing
Control of Traffic Signals by AI based Image ProcessingControl of Traffic Signals by AI based Image Processing
Control of Traffic Signals by AI based Image ProcessingIRJET Journal
 

Similar to Efficient Traffic Control System Presentation (20)

Vehicle counting for traffic management
Vehicle counting for traffic management Vehicle counting for traffic management
Vehicle counting for traffic management
 
IRJET- Artificial Intelligence Based Smart Traffic Management System using Vi...
IRJET- Artificial Intelligence Based Smart Traffic Management System using Vi...IRJET- Artificial Intelligence Based Smart Traffic Management System using Vi...
IRJET- Artificial Intelligence Based Smart Traffic Management System using Vi...
 
Running head MOTION SENSOR SYSTEM IN PARKING LOTS AND GARAGES .docx
Running head MOTION SENSOR SYSTEM IN PARKING LOTS AND GARAGES .docxRunning head MOTION SENSOR SYSTEM IN PARKING LOTS AND GARAGES .docx
Running head MOTION SENSOR SYSTEM IN PARKING LOTS AND GARAGES .docx
 
Running head MOTION SENSOR SYSTEM IN PARKING LOTS AND GARAGES .docx
Running head MOTION SENSOR SYSTEM IN PARKING LOTS AND GARAGES .docxRunning head MOTION SENSOR SYSTEM IN PARKING LOTS AND GARAGES .docx
Running head MOTION SENSOR SYSTEM IN PARKING LOTS AND GARAGES .docx
 
IRJET- Time To Cross – Traffic Light Control System using Image Processing
IRJET-  	  Time To Cross – Traffic Light Control System using Image ProcessingIRJET-  	  Time To Cross – Traffic Light Control System using Image Processing
IRJET- Time To Cross – Traffic Light Control System using Image Processing
 
Cloud Based Autonomous Vehicle Navigation
Cloud Based Autonomous Vehicle NavigationCloud Based Autonomous Vehicle Navigation
Cloud Based Autonomous Vehicle Navigation
 
IRJET- Simulation based Automatic Traffic Controlling System
IRJET- Simulation based Automatic Traffic Controlling SystemIRJET- Simulation based Automatic Traffic Controlling System
IRJET- Simulation based Automatic Traffic Controlling System
 
License plate extraction of overspeeding vehicles
License plate extraction of overspeeding vehiclesLicense plate extraction of overspeeding vehicles
License plate extraction of overspeeding vehicles
 
Traffic PPT.pptx
Traffic PPT.pptxTraffic PPT.pptx
Traffic PPT.pptx
 
water resources
water resourceswater resources
water resources
 
N010428796
N010428796N010428796
N010428796
 
AI IN VEHICLE COUNTING (1).pptx
AI IN VEHICLE COUNTING (1).pptxAI IN VEHICLE COUNTING (1).pptx
AI IN VEHICLE COUNTING (1).pptx
 
Accident Avoidance by using Road Sign Recognition System
Accident Avoidance by using Road Sign Recognition SystemAccident Avoidance by using Road Sign Recognition System
Accident Avoidance by using Road Sign Recognition System
 
parking space counter [Autosaved] (2).pptx
parking space counter [Autosaved] (2).pptxparking space counter [Autosaved] (2).pptx
parking space counter [Autosaved] (2).pptx
 
Iaetsd literature review on traffic signal control system based on
Iaetsd literature review on traffic signal control system based onIaetsd literature review on traffic signal control system based on
Iaetsd literature review on traffic signal control system based on
 
traffic jam detection using image processing
traffic jam detection using image processingtraffic jam detection using image processing
traffic jam detection using image processing
 
Smart Traffic Monitoring System based on vehicle counts.
Smart Traffic Monitoring System based on vehicle counts.Smart Traffic Monitoring System based on vehicle counts.
Smart Traffic Monitoring System based on vehicle counts.
 
PROJECTS CENTER IN TAMBARAM MAASTECH-ECE PROJECTS TAMBARAM
PROJECTS CENTER IN TAMBARAM MAASTECH-ECE PROJECTS TAMBARAMPROJECTS CENTER IN TAMBARAM MAASTECH-ECE PROJECTS TAMBARAM
PROJECTS CENTER IN TAMBARAM MAASTECH-ECE PROJECTS TAMBARAM
 
Control of Traffic Signals by AI based Image Processing
Control of Traffic Signals by AI based Image ProcessingControl of Traffic Signals by AI based Image Processing
Control of Traffic Signals by AI based Image Processing
 
A017430110
A017430110A017430110
A017430110
 

More from Syed Umaid Ahmed

Soch sy aagay (Beyond the Imagination)
Soch sy aagay (Beyond the Imagination)Soch sy aagay (Beyond the Imagination)
Soch sy aagay (Beyond the Imagination)Syed Umaid Ahmed
 
Raspberry Pi Introductory Lecture
Raspberry Pi Introductory LectureRaspberry Pi Introductory Lecture
Raspberry Pi Introductory LectureSyed Umaid Ahmed
 
Questions of an Atheist (Urdu Article) !
Questions of an Atheist (Urdu Article) ! Questions of an Atheist (Urdu Article) !
Questions of an Atheist (Urdu Article) ! Syed Umaid Ahmed
 
Muzaffar on the grounds of NED
Muzaffar on the grounds of NEDMuzaffar on the grounds of NED
Muzaffar on the grounds of NEDSyed Umaid Ahmed
 
Hajjaj Bin Yousuf Par Ek Nazar
Hajjaj Bin Yousuf Par Ek NazarHajjaj Bin Yousuf Par Ek Nazar
Hajjaj Bin Yousuf Par Ek NazarSyed Umaid Ahmed
 
Lover of Sayyidi Rasool Ullah & Traitor Ta'seer
Lover of Sayyidi Rasool Ullah & Traitor Ta'seerLover of Sayyidi Rasool Ullah & Traitor Ta'seer
Lover of Sayyidi Rasool Ullah & Traitor Ta'seerSyed Umaid Ahmed
 
YOUM-E-MILAD-UN-NABI EID KYUN??
YOUM-E-MILAD-UN-NABI EID KYUN??YOUM-E-MILAD-UN-NABI EID KYUN??
YOUM-E-MILAD-UN-NABI EID KYUN??Syed Umaid Ahmed
 

More from Syed Umaid Ahmed (8)

Soch sy aagay (Beyond the Imagination)
Soch sy aagay (Beyond the Imagination)Soch sy aagay (Beyond the Imagination)
Soch sy aagay (Beyond the Imagination)
 
Raspberry Pi Introductory Lecture
Raspberry Pi Introductory LectureRaspberry Pi Introductory Lecture
Raspberry Pi Introductory Lecture
 
Mu'sharay k qaatil
Mu'sharay k qaatilMu'sharay k qaatil
Mu'sharay k qaatil
 
Questions of an Atheist (Urdu Article) !
Questions of an Atheist (Urdu Article) ! Questions of an Atheist (Urdu Article) !
Questions of an Atheist (Urdu Article) !
 
Muzaffar on the grounds of NED
Muzaffar on the grounds of NEDMuzaffar on the grounds of NED
Muzaffar on the grounds of NED
 
Hajjaj Bin Yousuf Par Ek Nazar
Hajjaj Bin Yousuf Par Ek NazarHajjaj Bin Yousuf Par Ek Nazar
Hajjaj Bin Yousuf Par Ek Nazar
 
Lover of Sayyidi Rasool Ullah & Traitor Ta'seer
Lover of Sayyidi Rasool Ullah & Traitor Ta'seerLover of Sayyidi Rasool Ullah & Traitor Ta'seer
Lover of Sayyidi Rasool Ullah & Traitor Ta'seer
 
YOUM-E-MILAD-UN-NABI EID KYUN??
YOUM-E-MILAD-UN-NABI EID KYUN??YOUM-E-MILAD-UN-NABI EID KYUN??
YOUM-E-MILAD-UN-NABI EID KYUN??
 

Recently uploaded

Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdfKamal Acharya
 
Hall booking system project report .pdf
Hall booking system project report  .pdfHall booking system project report  .pdf
Hall booking system project report .pdfKamal Acharya
 
Arduino based vehicle speed tracker project
Arduino based vehicle speed tracker projectArduino based vehicle speed tracker project
Arduino based vehicle speed tracker projectRased Khan
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdfKamal Acharya
 
Pharmacy management system project report..pdf
Pharmacy management system project report..pdfPharmacy management system project report..pdf
Pharmacy management system project report..pdfKamal Acharya
 
fundamentals of drawing and isometric and orthographic projection
fundamentals of drawing and isometric and orthographic projectionfundamentals of drawing and isometric and orthographic projection
fundamentals of drawing and isometric and orthographic projectionjeevanprasad8
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxR&R Consult
 
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical EngineeringC Sai Kiran
 
Natalia Rutkowska - BIM School Course in Kraków
Natalia Rutkowska - BIM School Course in KrakówNatalia Rutkowska - BIM School Course in Kraków
Natalia Rutkowska - BIM School Course in Krakówbim.edu.pl
 
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data StreamKIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data StreamDr. Radhey Shyam
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacksgerogepatton
 
Online blood donation management system project.pdf
Online blood donation management system project.pdfOnline blood donation management system project.pdf
Online blood donation management system project.pdfKamal Acharya
 
Top 13 Famous Civil Engineering Scientist
Top 13 Famous Civil Engineering ScientistTop 13 Famous Civil Engineering Scientist
Top 13 Famous Civil Engineering Scientistgettygaming1
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdfAhmedHussein950959
 
Digital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdfDigital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdfAbrahamGadissa
 
Laundry management system project report.pdf
Laundry management system project report.pdfLaundry management system project report.pdf
Laundry management system project report.pdfKamal Acharya
 
Online resume builder management system project report.pdf
Online resume builder management system project report.pdfOnline resume builder management system project report.pdf
Online resume builder management system project report.pdfKamal Acharya
 
NO1 Pandit Amil Baba In Bahawalpur, Sargodha, Sialkot, Sheikhupura, Rahim Yar...
NO1 Pandit Amil Baba In Bahawalpur, Sargodha, Sialkot, Sheikhupura, Rahim Yar...NO1 Pandit Amil Baba In Bahawalpur, Sargodha, Sialkot, Sheikhupura, Rahim Yar...
NO1 Pandit Amil Baba In Bahawalpur, Sargodha, Sialkot, Sheikhupura, Rahim Yar...Amil baba
 
Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industriesMuhammadTufail242431
 

Recently uploaded (20)

Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
 
Hall booking system project report .pdf
Hall booking system project report  .pdfHall booking system project report  .pdf
Hall booking system project report .pdf
 
Arduino based vehicle speed tracker project
Arduino based vehicle speed tracker projectArduino based vehicle speed tracker project
Arduino based vehicle speed tracker project
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
 
Pharmacy management system project report..pdf
Pharmacy management system project report..pdfPharmacy management system project report..pdf
Pharmacy management system project report..pdf
 
fundamentals of drawing and isometric and orthographic projection
fundamentals of drawing and isometric and orthographic projectionfundamentals of drawing and isometric and orthographic projection
fundamentals of drawing and isometric and orthographic projection
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
 
Natalia Rutkowska - BIM School Course in Kraków
Natalia Rutkowska - BIM School Course in KrakówNatalia Rutkowska - BIM School Course in Kraków
Natalia Rutkowska - BIM School Course in Kraków
 
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data StreamKIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
Online blood donation management system project.pdf
Online blood donation management system project.pdfOnline blood donation management system project.pdf
Online blood donation management system project.pdf
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
Top 13 Famous Civil Engineering Scientist
Top 13 Famous Civil Engineering ScientistTop 13 Famous Civil Engineering Scientist
Top 13 Famous Civil Engineering Scientist
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
Digital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdfDigital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdf
 
Laundry management system project report.pdf
Laundry management system project report.pdfLaundry management system project report.pdf
Laundry management system project report.pdf
 
Online resume builder management system project report.pdf
Online resume builder management system project report.pdfOnline resume builder management system project report.pdf
Online resume builder management system project report.pdf
 
NO1 Pandit Amil Baba In Bahawalpur, Sargodha, Sialkot, Sheikhupura, Rahim Yar...
NO1 Pandit Amil Baba In Bahawalpur, Sargodha, Sialkot, Sheikhupura, Rahim Yar...NO1 Pandit Amil Baba In Bahawalpur, Sargodha, Sialkot, Sheikhupura, Rahim Yar...
NO1 Pandit Amil Baba In Bahawalpur, Sargodha, Sialkot, Sheikhupura, Rahim Yar...
 
Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industries
 

Efficient Traffic Control System Presentation

  • 1. TRAFFIC CONTROLLING SYSTEM USING RASPBERRY PI Syed Umaid Ahmed Talha Ashraf Farah Kareem
  • 2. TRAFFIC CONGESTION  Traffic congestion and an irregularity of traffic laws are the major problems of our system that needs to be addressed  Traffic congestion is a result of mismanagement of the traffic system
  • 3. OUR CONSIDERATION  The consideration of traffic lights for controlling traffic congestion, can play an important role in the traffic management system .  It can decrease vehicle accidents.  Our project is Raspberry Pi based shall revitalize the existing system with some innovation.  It counts the number of vehicles on a two-way road which helps us to calculate the density of the vehicles on that particular road, which in turn possibly gets us an idea to manage the traffic management system.
  • 4. PROCEDURE  This system capable of detecting motion of the vehicles along with their speeds on a two-way road using Raspberry Pi model 3B.  Our model is programmed with the help of Python programming language and it uses OpenCV library that provides webcam to the microprocessor for image processing.  It uses video streaming that detects fast moving vehicles and tracks their motional activity.
  • 5. LIVE STREAMING OPEN CV VEHICLE COUNTING SPEED TRACKING Tracking Motion Activity Horizontal Lines for roads Image Processing Records Image date & time CSV file & WEB database In Selected Area Restricted Motion Photo with Speed Captured Directions of wrong way going cars are noted Detect largest moving Object Bar Graph of all Speeds SQL, WEB and CSV database Mobile Notifications USB WebcamRaspberry Pi 3
  • 6. METHODOLOGY  System is designed for getting images from the webcam where moving objects in the video are framed and processed.  A vehicle is considered as a rectangular shape. To identify each vehicle, a rectangular shape of known dimension is drawn on the street so as to align the vehicle on that particular rectangle on the road.  Whenever a vehicle passes, An OpenCV background segmentation algorithm (Mixture of Gaussians Segmenter, BackgroundSubtractorMOG2) is run.
  • 7.  We decided to track entering or leaving Activity when they cross a vertical or horizontal center line.  At first, it was a simple counter but now it also allows for options to take an image and update a csv file.  You can add more features if you are familiar with python programming. MAIN IDEA: IMPLEMENTATION OF CONCEPT # 1 Enter: 0 Leave: 0
  • 8. Enter: 1 Leave: 0  On passing the vertical or horizontal lines (both modes are available) the counter value is changed.  On passing of a single vehicle or more the camera also captured the image and save it in its database.  On a two way road, it can notify about the heavy traffic on any route where the system is installed.
  • 9.  When the vehicles on the road side increases it will generate an automatic notification.  The notification is linked to the command of the signal.  Through a set of loops we can calculate the density of traffic on both sides of the roads.  As per the notification the signal timer is adjusted using seven segment display counter.  The whole process is automated. There is no need of human intervention in it. Image Processing (Vehicle Counter) Density Calculation Signal Timer Adjustment
  • 10. Testing Picture of Vehicle Counter
  • 11. MAIN IDEA: IMPLEMENTATION OF CONCEPT # 2  The system not only track entering or leaving Activity when they cross the area, but it also records the location and movement.  At first, it was a simple counter but now it also allows for options to detect if intruder is on wrong way.  The database recorded indicates the movement of a car from right to left and left to right.  If there is a one-way road, it will generate a notification to traffic controller for breaking of rules. Enter: 0 Leave: 0 Right to Left
  • 12.  Here we have attached the screenshot of readings of the vehicle movement
  • 13. MAIN IDEA: IMPLEMENTATION OF CONCEPT # 3  The system also measures the speed of a moving vehicle in a certain area.  At first, it was a simple counter and movement indicator but now it can measure the speed of vehicles using opencv and image processing.  The image of every vehicle with time and date stamp is recorded on a web database  There is also the bar graph plot to indicate the highest speed  The system is capable of generating alerts in all such cases  We track the x,y coordinates of the largest moving object in the camera view above a minimum pixel area. Motion detection is restricted between y_upper, y_lower, x_left, x_right variables (road or area of interest). If a track is longer than track_len_trig variable then average speed will be calculated and a speed photo will be taken and saved in media/images.
  • 14. RESULT  The bar graph shows the data collected after implementation of our project, showing the number of vehicles passing hour by hour in a day.  It shows the testing of the algorithm on different images processed for tracking and counting vehicle extracted from the video made by our webcam place on the road.  This will incorporate us the calculation of the speed of vehicles passing along the road, with their time and date of passing.
  • 15.  Here we have attached the screenshot of readings of the vehicle movement