Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
A
MINOR PROJECT REPORT
Submitted in partial fulfillment of the requirements
for the degree of
BACHELOR OF ENGINEERING
in
COMPUTER SCIENCE & ENGINEERING
By
GROUP NO. : 3
Monu Vishwakarma 0187CS161061
Ranjan Kumar 0187CS161081
Sachin Kushwah 0187CS161088
Sonali Kharka 0537CS161044
Sourabh Gond 0187CS161106
Under the guidance of
Dr. Rajeev Kumar Gupta
(Associate Professor)
Apr-2019
Department of COMPUTER SCIENCE & ENGINEERING
Sagar Institute of Science & Technology (SISTec)
Bhopal (M.P.)
An ISO 9001:2008 Certified Institution
Approved by AICTE, New Delhi & Govt. of M.P.
Affiliated to Rajiv Gandhi Proudyogiki Vishwavidyalaya, Bhopal (M.P.)
Sagar Institute of Science & Technology (SISTec), Bhopal
Department of COMPUTER SCIENCE & ENGINEERING
Bhopal (M.P.)
Apr-2019
CERTIFICATE
I hereby certify that the work which is being presented in the B.E. Minor Project Report
entitled Design and Development of Traffic and Accident Management Software, in partial
fulfillment of the requirements for the award of the degree of Bachelor of Engineering in
Computer Science & Engineering and submitted to the Department of Computer Science &
Engineering, Sagar Institute of Science & Technology (SISTec), Bhopal (M.P.) is an authentic
record of my own work carried out during the period from Jan-2019 to Apr-2019 under the
supervision of Dr. Rajeev Kumar Gupta Associate Professor.
The content presented in this project has not been submitted by me for the award of any other
degree elsewhere.
Signature
Monu Vishwakarma 0187CS161061
Ranjan Kumar 0187CS161081
Sachin Kushwah 0187CS161088
Sonali Kharka 0537CS161044
Sourabh Gond 0187CS161106
This is to certify that the above statement made by the candidate is correct to the best of my
knowledge.
Date:
TABLE OF CONTENTS
Abstract i
Acknowledgement ii
List of tables iii
List of figures iv
List of abbreviations v
Chapter 1 Introduction 1
1.1 About Project 2
1.2 Project Objectives 2
Chapter 2 Software & Hardware Requirements 5
Chapter 3 Problem Description 6
Chapter 4 Literature Survey 7
Chapter 5 Software Requirements Specification 9
5.1 Functional Requirements 9
5.2 Non-Functional Requirements 11
Chapter 6 Software Design 12
6.1 Use Case Diagram 13
6.2 Table Structure 13
6.3 ER Diagram 15
Chapter 7 Testing 16
ABSTRACT
Our Project is a desktop based application which is helpful to reduce the involved risk, it is
highly desirable for bike-riders to use helmet. In this application we propose an approach for
automatic detection of bike-riders without helmet using surveillance videos in real time. The
proposed approach first detects bike riders from surveillance video using background
subtraction. Then it determines whether bike-rider is using a helmet or not by using Machine
Learning.
The proposed approach for real-time detection of bike-riders without helmet which work in two
phases. In the first phase, we detect a bike-rider in the video frame. In the second phase, we
locate the head of the bike-rider and detect whether the rider is using helmet or not.
In this Project, there are 2 main actors or users who are performing the tasks in between them.
The first actor is ADMIN, who is responsible for managing rules and regulations and the person
who is violating the rules or not wear helmet, admin produce challan (fine) to particular person.
The second actor is DRIVER, the person who is riding bike or driving car. If driver or the person
who is riding bike should be caught and he have to pay the fine.
This Project was developed to reduce the traffic and accident due to violation, easy to identify
driver without helmet. Helping in traffic management.
If this idea can be deployed by the traffic and accident management, it will reduce accident and
people will follow the rules and regulation. This will also save the time required to produce
challan.
And these application is for safety of bike riders and to reduce accident.
i
SISTec/BE/CS/2019/MINOR/03
ACKNOWLEDGEMENT
No Volume of words is enough to express my gratitude towards my guide Dr. Rajeev Gupta,
Associate professor and my project coordinator Prof. Stuti Saxena, Department of Computer
Science and Engineering, who has been very concerned and has added all the material essential
for the preparation of this project report. I wish to express my sincere gratitude to Dr. Swati
Saxena, Vice-principal and Prof. Ujjwal Nigam, Head of Department for providing us an
opportunity to do our project work on “Design and Development of Traffic and Accident
Management Software”. This project bears the imprint of many people.
I would also like to thank the staff members and my colleagues who were always there for the
need of the hour and provided with all the help and facilities, which I required, for the
completion of the project work.
ii
SISTec/BE/CS/2019/MINOR/03
LIST OF TABLES
iii
SISTec/BE/CS/2019/MINOR/03
LIST OF FIGURES
iv
SISTec/BE/CS/2019/MINOR/03
LIST OF ABBREVIATIONS
v
SISTec/BE/CS/2019/MINOR/03
CHAPTER- 1
INTRODUCTION
1.1 INTRODUCTION
Smart Traffic Management is a system where centrally-controlled traffic and accident and
sensors keep track of the people who are violating the traffic rules. Installing camera on all the
signal will help us to find the drivers who are not following traffic signals.
In “Traffic and accident Management software” each set of traffic lights will have
communication equipment that can be used to transmit (anonymous) vehicle data, either from
ANPR cameras or Bluetooth detectors, and CCTV feeds (where appropriate). When passing by
the camera, ANRPget a photo of the vehicle‟s number plate, registering it on an images
database, with date, hour and camera information, allowing a lot of consults and a more
effective traffic management.
After that the software will implement some deep learning on the images stored on the database
and will generate its output. After that the officer who is appointed to look after the video, will
generate report on behalf of the output of the software and will send it to the victims
“Traffic and Accident Management Software” is an electronic way of managing traffic via a
desktop driven application and some camera. The advantage of smart Traffic over the traditional
“traffic system” is that it will reduces human intervention in traffic signal, it will reduce accident
leading to harsh driving of the bikers and other vehicles.
However, in order to adopt such automation solutions certain challenges need to be addressed:
1
SISTec/BE/CS/2019/MINOR/03
2) Occlusion: In real life scenarios, the dynamic objects usually occlude each other due to which
object of interest may only be partially visible.
4) Environment: Natural conditions might be affect the our system for further methodology.
2
SISTec/BE/CS/2019/MINOR/03
1.4.1.1 PYTHON_TKINTER
Python offers multiple options for developing GUI (Graphical User Interface). Out of all the
GUI methods, tkinter is most commonly used method. It is a standard Python interface to the Tk
GUI toolkit shipped with Python. Python with tkinter outputs the fastest and easiest way to
create the GUI applications. Creating a GUI using tkinter is an easy task.
To create a tkinter:
Creating a GUI application using Tkinter is an easy task. All you need to do is perform the
following steps −
3
SISTec/BE/CS/2019/MINOR/03
1.4.2.1 MySQL
MYSQL is the most popular Open Source Relational SQL database management system.
MYSQL is one of the best RDBMS being used for developing web-based software
applications.
A database is a separate application that stores a collection of data. Each database has one
or more distinct APIs for creating, accessing, managing, searching and replicating the
data it holds.
Relational Database Management System (RDBMS) is a software that:
Enables you to implement a database with tables, columns and indexes.
Guarantees the Referential Integrity between rows of various tables.
Updates the indexes automatically.
Interprets an SQL query and combines information from various table.
MYSQL uses a standard form of the well-known SQL data language.
MYSQL works on many operating systems and with many languages including PHP,
PERL, C, C++, JAVA, etc.
MYSQL works very quickly and works well even with large data sets.
4
SISTec/BE/CS/2019/MINOR/03
CHAPTER- 2
SOFTWARE AND HARDWARE REQUIREMENT
SOFTWARE: -
Software: - Software used for Coding, Hosting and Database are given below:
For Developing:
Anaconda: This is World Most popular Python/R Data Science Platform
Python 3.7.2
For Database:
MYSQL
HARDWARE: -
1. Processor : 2.8 GHZ or above
2. RAM : 4 GB or above
3. HDD : 512 GB or above
5
SISTec/BE/CS/2019/MINOR/03
CHAPTER-3
PROBLEM DESCRIPTION
3.1 PROBLEM
In India more than 37 million people are using two motorcycles. Since usage is high, accident
percentage of two wheelers are also high compared to four wheelers. The impacts of these
accidents are more dangerous when the driver involves in a high speed accident without wearing
helmet. Government has made it a punishable offense to ride a bike without helmet and have
adopted manual strategies to catch the violators. But, sometimes bikers without helmet not
caught by officers.
CHAPTER-4
LITERATURE SURVEY
4.1 INTRODUCTION
A literature survey or a literature review in a project report is that section which shows the
various analyses and research made in the field of your interest and the results already
published, taking into account the various parameters of the project and the extent of the project.
All computer scientists who have done work in or are interested in traffic management found
it very difficult because India is a country with the second largest road network in the world. Out
of the total stretch of 5.4 million km of road network, almost 97,991 km is covered by national
highways.
Traffic and accident management system requires lots of investment. In 2017, Miami-Dade has
invested $130 million for the second phase of the project, to expand the cameras to most of the
3,000 intersections in the county over five years. The project is funded by a half-percent sales
tax for transportation that voters approved in a 2002 referendum.
The main aim is to line up the sequence of green lights on U.S. 1 so that rush-hour commuters
can drive through a maximum number of intersections without causing excessive waits at cross
streets.
“You want cars to get the green, start moving, start approaching that intersection and have the
green pop up so you don‟t have to stop,” said Frank Aira, chief of Miami-Dade‟s Traffic Signals
Division. “You get a platoon of cars, and you want to move them as far as you can before it‟s
necessary for them to stop.”
Cameras and other sensors calculate vehicle speed and car counts at intersections, and that data
helps the computer decide whether the current timing schedule looks ideal. If not, the computer
will tweak the schedule for the next cycle of red lights and green lights running through the
intersection. With “adaptive” signals, an intersection can experience four or five adjustments in
a minute.
Aira said the current county system only gives computers the option to change the durations of
green and red lights, not their order in an intersection‟s traditional cycle.
There‟s also the issue of cross-street waits. The computer system‟s prime directive is to speed
travel time where there‟s the most demand for crossing the intersection — that is, the busiest
direction for traffic. Every time a light stays green for northbound traffic on U.S. 1 in the
7
SISTec/BE/CS/2019/MINOR/03
morning, another light needs to remain red. That could lead to longer than usual backups on side
streets that cross U.S. 1 in an effort to move as many vehicles as possible during peak times.
Installing the first wave of equipment throughout the year led to concerns of new red-light
cameras, enforcement devices banned by Miami-Dade, Miami and other cities. While the
county‟s police command center can take over the traffic cameras for surveillance during
emergencies, they‟re not used for any ticketing purposes, Aira said.
Even so, the electronic eye has motorists taking notice.
“There is a psychological effect to seeing it,” Aira said, saying the lights with cameras are
seeing fewer vehicles “blocking the box” by getting stuck in intersections when traffic doesn‟t
move after a light turns red. “People behave better.”
8
SISTec/BE/CS/2019/MINOR/03
CHAPTER-5
SOFTWARE REQUIREMENTS SPECIFICATION
9
SISTec/BE/CS/2019/MINOR/03
The user interaction sequences may vary from one invocation to the another depending on
some conditions.
These different interaction sequences capture the different scenarios.
To accurately describe a functional requirement, all the different scenarios that may occur
must be accurately described.
R.1 LOGIN:
Description:
The login function first check the username and password if both are correct then the output is
redirect to the home page, otherwise it generate errors.
Input:
Username
Password
10
SISTec/BE/CS/2019/MINOR/03
11
SISTec/BE/CS/2019/MINOR/03
CHAPTER-6
SOFTWARE DESIGN
6.1 USE CASE DIAGRAM
INTRODUCTION
The use case model for any system consists of a set of use cases.
The use cases represent the different ways in which a system can be used by the users.
The use cases correspond to the high-level functional requirements.
The use cases partition the system behavior into transactions, such that each transaction
performs some useful action from the user‟s point of view. Each transaction to complete,
may involve multiple message exchanges between the user and the system.
A simple way to find all the use cases of a system is to ask the question “What all can the user
do by using the system?”
REPRESENTATION OF USE CASES
A use case model is documented by drawing a use case diagram and writing an
accompanying text elaborating the drawing.
Use case diagram
Each use case is represented by an ellipse.
The name of the use case is written inside the ellipse.
The use cases should be named from the users‟ perspective.
All the ellipses (i.e. use cases) of a system are enclosed within a rectangle which represents
the system boundary.
The name of the system being modeled appears inside the rectangle.
Actor: An actor is a role played by a user with respect to the system use.
12
SISTec/BE/CS/2019/MINOR/03
SURVEILLANCE RECORD
6.3 ER DIAGRAM
The entity Relationship Diagram (ERD) depicts the relationship between the data objects.
The ERD is the notation that is used to conduct the date modeling activity the attributes
of each data
Object noted is the ERD can be described resign a data object descriptions.
The set of primary components that are identified by the ERD are
Data object
Relationships
Attributes
Various types of indicators.
The primary purpose of the ERD is to represent data objects and their relationships.
14
SISTec/BE/CS/2019/MINOR/03
15
SISTec/BE/CS/2019/MINOR/03
CHAPTER-7
TESTING
7.1 INTRODUCTION
Testing is the process of detecting errors. Testing performs a very critical role for quality
assurance and for ensuring the reliability of software. The results of testing are used later on
during maintenance also.
16
SISTec/BE/CS/2019/MINOR/03
Acceptance
Testing
Client Needs
System Testing
Integration Testing
Unit Testing
is first done on modules, independent of one another to locate errors. This enables to detect
errors. Through this error resulting from interaction between modules initially avoided.
18
SISTec/BE/CS/2019/MINOR/03
This is a unit testing method where a unit will be taken at a time and tested thoroughly at a
statement level to find the maximum possible errors. I tested step wise every piece of code,
taking care that every statement in the code is executed at least once. The white box testing is
also called Glass Box Testing.
I have generated a list of test cases, sample data which is used to check all possible
combinations of execution paths through the code at every module level.
This testing method considers a module as a single unit and checks the unit at interface and
communication with other modules rather getting into details at statement level. Here the module
will be treated as a block box that will take some input and generate output. Output for a given
set of input combinations are forwarded to other modules.
Test cases that reduced by a count that is greater than one, the number of additional test cases
that much be designed to achieve reasonable testing.
Test cases that tell us something about the presence or absence of classes of errors, rather than an
error associated only with the specific test at hand.
19
SISTec/BE/CS/2019/MINOR/03
CHAPTER-8
INTERFACE SCREENSHOTS
LOGIN PAGE
A screenshot of Login Page (fig 8.1) of application Traffic and Accident Management System.
Here a user can login and use the application further.
20
SISTec/BE/CS/2019/MINOR/03
A screenshot of User information updation page (fig 8.2) of application Traffic and Accident
Management System. Here a user can change the username and password.
21
SISTec/BE/CS/2019/MINOR/03
HOME PAGE
A screenshot of Home page (fig 8.3) of application Traffic and Accident Management System.
Here a user can sees livestreaming of footage.
22
SISTec/BE/CS/2019/MINOR/03
A screenshot of Tabular data view page (fig 8.4) of application Traffic and Accident
Management System. Here a user can view the data according to provided attributes.
23
SISTec/BE/CS/2019/MINOR/03
A screenshot of Graph page (fig 8.5) of application Traffic and Accident Management System.
Here a user can vizualize the data in form of graph.
24
SISTec/BE/CS/2019/MINOR/03
HELP PAGE
A screenshot of Help page (fig 8.6) of application Traffic and Accident Management System.
25
SISTec/BE/CS/2019/MINOR/03
ABOUT PAGE
A screenshot of About page (fig 8.7) of application Traffic and Accident Management System.
Here the user can know about the system how the system work.
26
SISTec/BE/CS/2019/MINOR/03
CHAPTER-9
DEPLOYMENT
Installing on Windows
1. Download the Anaconda installer.
2. Optional: Verify data integrity with MD5 or SHA-256.
3. Double click the installer to launch.
4. Click Next.
5. Read the licensing terms and click “I Agree”.
6. Select an install for “Just Me” unless you‟re installing for all users (which requires
Windows Administrator privileges) and click Next.
7. Select a destination folder to install Anaconda and click the Next button.
27
SISTec/BE/CS/2019/MINOR/03
9. Choose whether to register Anaconda as your default Python. Unless you plan on
installing and running multiple versions of Anaconda, or multiple versions of Python,
accept the default and leave this box checked.
10. Click the Install button. If you want to watch the packages Anaconda is installing, click
Show Details.
11. Click the Next button.
12. After a successful installation you will see the “Thanks for installing Anaconda” dialog
box:
28
SISTec/BE/CS/2019/MINOR/03
13. If you wish to read more about Anaconda Cloud and how to get started with Anaconda,
check the boxes “Learn more about Anaconda Cloud” and “Learn how to get started with
Anaconda”. Click the Finish button.
29
SISTec/BE/CS/2019/MINOR/03
REFERENCES
RESEARCH PAPERS
1. Kunal Dahiya, Dinesh Singh, C Krishna Mohan (2016) „Automatic Detection of Bike-Riders
without Helmet using Surveillance Videos in Real Time‟, Dinesh Singh.
30
SISTec/BE/CS/2019/MINOR/03
A
Accuracy Percentage of correct predictions made by the model.
The Area Under the ROC curve is the probability that a classifier will be
more confident that a randomly chosen positive example is actually positive
than that a randomly chosen negative example is positive.
B
Bar Chart Bar charts are a type of graph that are used to display and compare the
numbers, frequency or other measures (e.g. mean) for different discrete
categories of data. They are used for categorical variables.
Binary Variable Binary variables are those variables which can have only two unique values.
For example, a variable “Smoking Habit” can contain only two values like
“Yes” and “No”.
C
Classification Predicting a categorical output (e.g. yes or no?, blue, green or red?).
Classification The lowest probability value at which we‟re comfortable asserting a positive
Threshold classification. For example, if the predicted probability of being diabetic is >
50%, return True, otherwise return False.
31
SISTec/BE/CS/2019/MINOR/03
D
Database (abbreviated as DB) is an structured collection of data. The
Database
collected information is organized in a way such that it is easily accessible
by the computer. Databases are built and managed by using database
programming languages. The most common database language is SQL.
DataFrame is a 2-dimensional labeled data structure with columns of
DataFrame
potentially different types. You can think of it like a spreadsheet or SQL
table, or a dict of Series objects. DataFrame accepts many different kinds of
input:
E
The purpose of evaluation metric is to measure the quality of the statistical /
Evaluation Metrics
machine learning model. For example, below are a few evaluation metrics
1. AUC
2. ROC score
3. F-Score
4. Log-Loss
F
Points which are actually true but are incorrectly predicted as false. For
False Negative example, if the problem is to predict the loan status. (Y-loan approved, N-
loan not approved). False negative in this case will be the samples for which
loan was approved but the model predicted the status as not approved.
Points which are actually false but are incorrectly predicted as true. For
False Positive example, if the problem is to predict the loan status. (Y-loan approved, N-
loan not approved). False positive in this case will be the samples for which
loan was not approved but the model predicted the status as approved.
F-score evaluation metric combines both precision and recall as a measure of
F-Score effectiveness of classification. It is calculated in terms of ratio of weighted
importance on either recall or precision as determined by β coefficient.
F measure = 2 x (Recall × Precision) / ( β² × Recall + Precision )
N
Normalization is the process of rescaling your data so that they have the
Normalization same scale. Normalization is used when the attributes in our data have
varying scales.
Numpy NumPy is the fundamental package for scientific computing with Python
33
SISTec/BE/CS/2019/MINOR/03
34