i
ii
table of contents
1.0 Getting Started
1.1 Introduction 1
1.2 Hardware Specification 2
1.3 Software Specification 2
1.4 System Requirements 2
1.5 Arduino Uno Component 3
1.6 Setting up TPCM 4
1.7 Setting up TPCM Database 7
2.0 General Information
2.1 System Overview 9
3.0 System Summary
3.1 System Configuration 10
4.0 Using the System
4.1 Running the system 12
iii
1.0 GETTING STARTED
1.1 Introduction
Nowadays, traffic congestion becomes a big concern. High
traffic volume more than capacity of urban systems, results in
environmental problems, especially air and sound pollutions. This
motivated the researchers to develop a system that correlates the
air quality and the traffic level situation of the main roads of Iloilo
City. The researchers utilized an aerial drone, attached to it is a
camera that provides data about the traffic level situation and air
quality sensors to collect data about air quality. The researchers col-
lect the traffic and air quality from a specific area at a specific time.
The system analyzes correlates and maps the gathered data both
from the drone and air quality sensors, and graphically presented
through a histogram. The information is presented through a color
coding scheme which corresponds on how heavy the traffic is and
how polluted the area is.
In summary, the system is efficient, accurate enough, and
functions as intended to. Its interface is easy to understand and
can be manipulated by the intended users with ease. Since the
system itself has met and successfully operated its functions, and
can process data in a significantly short time. Thus, with a little bit
more fine-tuning, the system is ready to be a part of any city’s traffic
system.
1
1.0 GETTING STARTED
1.2 Hardware Specifications
The hardware includes camera attached to the drone, Ardu-
ino Uno, laptop, and air quality sensors such as MQ7 and MQ135.
1.3 Software Specifications
The software specification describes the requirements of
the system with regards to its software. Thus, the software was
developed using Visual Studio and for the sensor components we
used Arduino Uno. In developing the system, the researchers used
visual basic as the sole programming language.
1.4 System Requirements
Visual Studio 2012, MySQL Admistrator, MySQL GUI and
MySQL Connector, Windows 7 x32 bit.
2
1.0 GETTING STARTED
1.5 Arduino Uno Components
3
1.0 GETTING STARTED
1.6 Setting up TPCM
1. First, Click setup.exe to install graphs for reporting.
2. Next, click OK button
4
1.0 GETTING STARTED
3. Click computer icon to install TPCM reporting.
4. Select TPCM Reporting, then click Continue.
5
1.0 GETTING STARTED
5. Click Yes to all.
6. Lastly, click OK.
6
1.0 GETTING STARTED
1.7 Setting up TPCM Database
1. Click Restore.
2. Next, click Open Backup File.
7
1.0 GETTING STARTED
3. Then, Select the corresponding database.
4. Lastly, click Start Restore.
8
2.0 GENERAL INFORMATION
2.1 Systems Overview
In today’s time, traffic congestion in urban areas is exponen-
tially increasing. A simple but accurate method of traffic counting
comprises people manually counting vehicles. They may stand at
the side of the road, or, more commonly watch a video of the road
and count from that. In tests manual vehicle counting was 99% ac-
curate. With manual count a small sample of data is taken - typically
over less than a day - and results are extrapolated for the rest of the
year or season. Obviously, manual counting is labor intensive. Sys-
tems are now available that will automatically analyze the video pic-
tures as cars are passing underneath, detecting cars with a similar
accuracy to that of people watching the video. This vehicle counting
method has several advantages over other automatic systems. It is
cost-effective as it can count in many directions at once: only one
camera is needed for several lanes or exits at a junction.
The growing number of vehicles is directly proportional to
the worsening air pollution. To measure air quality, cities use devic-
es are usually expensive and not easily available.
The similarity of the study with the proposed system is to monitor
the level situation of the traffic.
The researchers utilized an aerial drone, attached to it is a
camera that provides data about the traffic level situation and air
quality sensors to collect data about air. The researchers collect the
traffic and air quality from a specific area in a specific time. The sys-
tem analyzes correlates and maps the gathered data both from the
drone and air quality sensors, and graphically presented through a
histogram (bar graph and line graph). The information is presented
through a color coding scheme which corresponds on how heavy
the traffic is and how polluted the area is. This information can be
represented such as; green for light traffic, orange for moderate
and red for heavy traffic. For pollution; green for light pollution,
yellow for moderate and red for concentrated pollution.
9
3.0 SYSTEM SUMMARY
3t.1 System Configuration
The architectural design shows the structure and process of
gathering data using camera and air quality sensors, specifically MQ
7 and MQ135 that are attached to aerial drone. The gathered data
are stored in the database and the traffic data are processed using
video processing. The system analyzes and calculates the pollution
particles then the system correlates the traffic data and air quality
from the calculated data. Lastly, the server displays the result.
10
3.0 SYSTEM SUMMARY
3.1 System Configuration
11
4.0 USING THE SYSTEM
4.1 Running the system
1.Log in section for the users
2.Homepage of the system.
12
4.0 USING THE SYSTEM
3.Click Manage Location.
4. After clicking manage location, location box will appear
13
5. After choosing the location, you can now change the traffic
level and have the option to save or delete.
6. After closing manage location, it will return to homepage.
Then, click Load Traffic Data.
14
4.0 USING THE SYSTEM
7. Then, Load Traffic Data box will appear. Here the user will
select date, time and location.
8. Click Open File.
15
4.0 USING THE SYSTEM
9. After clicking open file, select corresponding video. Then click
Open.
10. After selecting traffic data, the system will count the number
of cars. After counting, “end of video” message will appear on
the text box. And lastly, click Save.
16
4.0 USING THE SYSTEM
11. After saving, the results will appear.
12. After closing Load Traffic Data, it will return to homepage.
Then, click Load Traffic Data.
17
4.0 USING THE SYSTEM
13. After clicking, Load Pollution box will appear. Here, the user
will choose a location.
14. Next, click Browse Pollution File.
18
4.0 USING THE SYSTEM
15. After clicking Browse Pollution File, select the corresponding
pollution file. Then click Open.
16, After selecting pollution data, the data will appear on the list
box. And lastly, click Save.
19
4.0 USING THE SYSTEM
17. After saving, a message box will appear confirming the data
is succesfully saved.
18. After closing Load Pollution data box, it will return to the
homepage. Then, the user will select Date and Time.
20
4.0 USING THE SYSTEM
19. After selecting date and Time, click Generate & View.
20. After clicking, legends will appear on each correspoding loca-
tions, indicating the traffic level situation and pollution level.
21
4.0 USING THE SYSTEM
21. To view Histogram, click the Histogram radio button.
22. After clicking, under All Locations, the user will select the
range of time, time of day, and the type of graph. Then click
GENERATE.
22
4.0 USING THE SYSTEM
23. After clicking, the correlated results in all location is present-
ed through a line graph.
24. To access histogram per site, the user will select the range
of time, location, time of day, and the type of graph. Then click
GENERATE.
23
4.0 USING THE SYSTEM
25. After clicking, the correlated results per site is presented
through a line graph.
25. Click Print to print the graph.
24
ABOUT THE RESEARCHERS
Shaun Marte A. Magno
Bachelor of Science in Information Technology
[email protected] Shara T. Malaga
Bachelor of Science in Information Technology
[email protected]
Alyson Nicole L. Minerva
Bachelor of Science in Information Technology
[email protected] Camille D. Medez
Bachelor of Science in Information Technology
[email protected]
Aljon S. Estember
Bachelor of Science in Information Technology
[email protected]
25
Disclaimer
This software project and its corresponding documentation
entitled, “Traffic and Air Pollution Correlation Mapping using Ae-
rial Drone” is submitted to the College of Information and Com-
munications Technology, West Visayas State University, in partial
fulfillment of the requirements for the degree, Bachelor of Science
in Information Technology. It is the product of our own work, ex-
cept where indicated in the text.
We hereby grant the College of Information and Communi-
cations Technology permission to freely use, reproduce, or distrib-
ute publicly paper and electronic copies of this software project and
its corresponding documentation in whole or in part, provided that
we are acknowledged.
Aljon S. Estember Shaun Marte A. Magno
Shara T. Malaga Camille D. Medez
Alyson Nicole L. Minerva
April 2018
26