Android Application of Traffic Density Visualization Based on Vehicle Speed

7 Abstract This paper presents a system to display traffic density in real time based on speed of vehicles on the main roads in the city of Denpasar. With this application, users who are in a vehicle can get the density of roads information. The software will run on the Android platform created with the help of Google maps with visualization density of roads are being reviewed. Measurement of vehicle speed using the frame difference method, so the computational process can be run quickly and in real time. The trial results of this paper, user (vehicle speed measurement) produces the same data as the data is received by the client (viewer visualization) with the display format is the name of the location, vehicle speed, date and time data retrieval.

Abstract -This paper presents a system to display traffic density in real time based on speed of vehicles on the main roads in the city of Denpasar.With this application, users who are in a vehicle can get the density of roads information.The software will run on the Android platform created with the help of Google maps with visualization density of roads are being reviewed.Measurement of vehicle speed using the frame difference method, so the computational process can be run quickly and in real time.The trial results of this paper, user (vehicle speed measurement) produces the same data as the data is received by the client (viewer visualization) with the display format is the name of the location, vehicle speed, date and time data retrieval.

VI. INTRODUCTION 2
Based on the Central Statistics Agency (BPS), since 2010, the growth of vehicle ownership in Denpasar reached 11 percent per year.Meanwhile, the growth of an adequate road network has not increased significantly [1].This will bring a problem for traffic systems that exist today, such as congestion, pollution, street crime, and others.To overcome these problems, it is time for Indonesia to apply better technologies in the fields of traffic, the ITS (Intelligent Transportation System).
ITS is no longer a new technology, but it is the application of technologies that already exist in the field of electronics, computer, and telecommunications [2].Although there are still a lot of research done for various purposes, for example to reduce bottlenecks, transportation management eficiency, and get information.However, many developed countries are implementing these technologies, including the United States, Japan, Canada, South Korea and Australia.One of the technologies applied in ITS is a measurement of the speed of vehicles using a video camera (in this case the smartphone camera).Cameras will be installed at a certain position on the road to obtain streaming video [3] that will be processed as digital image to measure the speed of the vehicle as the information density of traffic on these roads.

VII. VEHICLE'S SPEED ALGORITHM
The following is a general overview of traffic density visualization system that will be created, as shown in Fig. 1.Smartphone 1 and 2 is referred to as a user and used to detect the speed of each vehicle passing through roads, and calculate the speed of the vehicle.

Android Application of Traffic Density Visualization Based on Vehicle Speed
Widyadi Setiawan 1 , I Nyoman Budiastra 2 , and Sri Andriati Asri that can open this application so that the client who was in the vehicle can monitor roads with the density of information in the form of vehicle speed on roads that are being reviewed.By looking at the information density on these roads, are expected to have useful information for road users so that they can decide whether to pass or not these roads.
The following is an algorithm to calculate the speed of the vehicle using the smartphone camera inputs in real time.In calculating the vehicle speed, the steps are as follows: 1. Preparation of hardware devices and software.

VIII. RESULT
This section will discuss the results of the test program to display results in the form of information such as the name of the location, average speed, date and time on receiver (client).Measurements made by the user on a moving vehicle, the user gets the results of measurements, such as vehicle speed.Data sent by the user in the form of location information, speed and time measurement speed.Here is an example of the speed of data retrieval results performed by the user as shown in Fig. 2.  Seen from Fig. 2, the measured speed of applications is 18.03 kph.The information obtained by the user through the stages of measurements of vehicle speed will be sent to the recipient (client) via G-talk.The format is sent by the user to the recipient (client) such as location (longitude and latitude), the name of the location, vehicle speed, date and time.With the delivery of these results, the display on the receiver (client) will appear in the format sent from the user as shown in Fig. 3

IX. DISCUSSION
From Testing has been done on the vehicle speed measurement applications the user can generate the vehicle speed with the use of frame difference method as a primary function to generate the value of the vehicle speed.Applications on the client also has to show the data sent from the user in accordance with the specified formats, such as location, name of the location, vehicle speed data, date and time data retrieval.
From the application of this research still has a lot of disadvantages compared to other similar applications.This application can only show the speed of vehicles in one vehicle, while for the reality of congestion expected by society that can determine the density of traffic on a location by knowing the average speed of the vehicle at that location.
The development of this application can be described as follows.Measurement of the speed of each vehicle will get the speed of all vehicles passing through a road section then searched the average speed.The information density of roads in the form of average speed at a certain time on the road can be used to detect congestion on the location of these roads.The average speed is in higher states, initiate these road not in traffic, or vice versa if lower, the condition is jammed.The use of color can also be added to improve the readability of the information.Like red for congested road conditions, yellow for road conditions rather dense and green for smooth road conditions.It can also add features that provide an alternative way faster if the discovery of congestion on major roads to avoid congestion.In applications can also be added video streaming and photo information in order to know in real time conditions on these roads.And you can also add features latest info which can provide information that is happening around locations such as accidents, congestion, and the weather at the time.For the next development focuses on producing adequate quantities of data, especially during the peak hour in the morning and evening.

2 . 5 .
Making Process Video on every street 3. Perform pre-processing process[4]: a. Input video.b.Each Red Green Blue (RGB) frame converted into Gray scale frame c.Use median filter to remove noise on every frame.4. Perform the segmentation process[5]:a.Put the output of the pre-processing.b.Input into the process frame difference.c.Calculate of difference frame to perform the identification phase of the object changes.Conducting the process of feature extraction[6] as follow:a.Put the output of the segmentation process.b.Conducting the process of tracking the position of an object by using the center point of the object.c.Tracking begins from the initial position to the end position of moving objects.6.To measure the speed with formula: distance equal to six.Number of frame and fps' value according to specification of streaming video.

Fig. 5 .
Fig. 5. Display measurement test results from the first user Fig. 5 is a view of the result of the location where the user take measurements at different locations.The first user in West Tantular Street and the second user is on Tjut Nyak Dien Street with client positions in the Tantular Street.Then it will be measured so as to show the results that will appear on the Google map receiver (client).The results obtained from Fig. 5, the data that appears in the client application is its location: pointing longitude and latitude, the location name: Tjut Nyak Dien Street, vehicle speed: 17.35 kph, the data retrieval date: December 26, 2016 and the time of data collection: 12:43 hours local time.