You are on page 1of 4

The Design of a Crowd Density Checker App in

Android with People Localization Using the GPS


from the Mobile Device

Roland Szabo
Applied Electronics Department
Faculty of Electronics,
Telecommunications and Information
Technologies, Politehnica University
Timisoara, Romania
roland.szabo@upt.ro

Abstract—The aim of this work focuses on checking the they are interested in. The main contribution of the author is
density of people in a certain place. The idea behind is based on actually creating the app in Android.
the fact that almost every person has a mobile device with
GPS, so getting the coordinated from the mobile device, can get II. PROBLEM FORMULATION
the coordinates of the person owning it. The coordinates can be The task is to create a mobile app which can count people
placed on a map and united them in clusters, to know the
in some place.
number of persons in a specific place. The app can useful to
avoid big crowds of not. Sometimes it is needed to avoid big There were many solutions to do this. The best method is
crowds of people when going shopping or in traffic. Other to use a GPS system. Nowadays almost every mobile device
times it is not needed to avoid big crowds, because where many has GPS, so to gather data from all of the devices and show
people are, something is happening, big sales, good concerts or them on a map it can be a task of a very useful mobile app.
good mood in a bar. The mobile app is based on the fact that everywhere there is
a mobile phone, there is a person, so gathering the GPS
Keywords—coordinate measuring machines, density
coordinates of as many mobile devices as possible can locate
estimation robust algorithm, Global Positioning System, mobile
applications, simultaneous localization and mapping.
the coordinates of those people. There more people have the
app installed, the more accurate can become. The app could
I. INTRODUCTION be even more useful if it would be added as an extension to
an app which is already installed on almost any mobile
Crowd density it was always desired information to be device, for example as an extension of Facebook or any
known, not only by officials, but by any person. similar app, where the user can chose if it shares his location
If it is needed to go to shopping and it is needed to avoid or not.
big crowds in a desired shop.
III. PROBLEM SOLUTION
It is needed to avoid big traffic jams.
This mobile device application can show the quantity of
It is needed to go to a bar and it is needed to avoid or not individuals in a specific place. The number in the blue circle
many people. shows the quantity of individuals in a specific place. The
number shows the quantity of clients which has the
Some people would wish to have wings to fly in a application installed on their mobile device.
specific place or to have a spy camera and see the quantity of
individuals in a chosen place. The application saves the coordinates of every client to a
database, amid the time the application is installed on the
Some would wonder how it's the most ideal approach to mobile device. To reduce false positives the application
keep away from enormous traffic jams, or huge groups in a likewise saves the Android ID for every client to a database,
chosen place or it is truly needed to see huge groups of while the application is installed on the mobile device, along
people in a certain place. these lines the location of a current client it's simply
Nowadays with all the tech gadgets the task is easier and refreshed. The Android ID is saved in a database in hidden
there is no need for the person to grow wings and fly in order mode, it's not uncovered. The location of every client is
to check the crowd in certain place. unveiled, however in a specific way, no one will realize who
is in an exact place, and just they will realize that in that
The most ideal approach is to utilize a mobile device place it's at least one people.
application which can distinguish the quantity of individuals
in a chosen place utilizing GPS. Everybody has a mobile The application constantly tracks and logs the location
device with GPS support; however no one has a mobile and Android ID (hidden) of the user’s mobile device, even
device application to gather the information from the area when not utilizing the application. In the event that the user
does not agree with this, if it's not a problem, the application

978-1-7281-9513-1/20/$31.00 ©2020 IEEE

Authorized licensed use limited to: Miami University Libraries. Downloaded on June 15,2021 at 08:01:12 UTC from IEEE Xplore. Restrictions apply.
can be always uninstalled. Not long after the application is On Fig. 2 it can be seen a zoomed map. The zoomed map
uninstalled, all the information (location and Android ID) of changes the cluster of people from the blue circle in
a particular client is erased from the database, to reduce false individual shown by red pins.
positives.
If clicking on any of the red pins, it can show the address
While utilizing the application, the location of the of the person sharing his location.
considerable number of clients' in the database is shown on a
Google map. Along these lines every client can realize what The map also shows traffic activity in the region, green
number of individuals is in a chosen place. meaning no traffic and red meaning big traffic.

The application works better if there are more clients The zoomed map has also two new functions.
who have the application installed, on the grounds that more One of them is “Directions” whit the curved arrow in the
clients choose to share their location. blue background, which can computed distances and show
On Fig. 1 it can be seen the app with a Google map directions between two points on the map.
clustering the users of the app in a blue circle. This way it The other is the Google Maps icon, which can take the
can be seen the people density a certain place. user to the Google Maps app.
The more users have the app installed don their mobile The crowd density checker works the following way:
device, to more accurate can be. The app first opens the map each person’s location (who chooses to share their location)
of the user’s location, with the density of people in his is uploaded on a database anonymously, than the app reads
location, but it can be also searched (in the search text box) the locations of all people from the database and shows them
other locations on the map to search people density. on a Google map in clusters.
The app has a button to change the map to satellite mode This way it can be seen how many persons are in certain
(map button in white circle) and a button to get back to place, based on a fact that almost any persona has a mobile
current location on the map (location button in white circle), device with GPS and as many people as possible installed the
due to the fact that the map can change after a search. app.

Fig. 1. Clustering people counted from the same location. Fig. 2. Zooming in and seeing peoples location separately.

Authorized licensed use limited to: Miami University Libraries. Downloaded on June 15,2021 at 08:01:12 UTC from IEEE Xplore. Restrictions apply.
On Fig. 3 it can be seen the map with a cluster of people
in satellite mode.
The satellite mode and normal map mode can be toggled
with the map button with white circle background.
Satellite view can help see locations better, especially
when zoomed.
The satellite view has also the live traffic overlaid.
In satellite view mode the search is possible, to find
clusters of people in other locations too.
The current location button with white circle background
is also functional in order to back get to the current location
after search, when the map will be shifted.

Fig. 4. Searching for other locations on the map.

On Fig. 5 it can be seen the search drop down list with


search suggestions of actual location on the map, where even
the country is indicated of all suggested cities.
The search has also a back button to return to the maps
and a clear button to clear all contents of the textbox by
tapping on the “X” sign.
If the suggestions are many, it can be scrolled among
them and it can be chosen the best matching item.
When the user taps on one of the items it automatically
fills-in the search box and the map shift to the searched
location.
Fig. 3. Viewing map in satellite view. If there are users having the crowd density app installed,
than the map will show clusters of people in blue circles.
On Fig. 4 it can be seen the search box of the map. This way, after zooming, the user will know which places to
avoid or not, due to the fact that there are big crowds.
The search has also an exit function which can be
accessed with the left arrow. The app needs GPS and internet connectivity via Wi-Fi
or Mobile data, due to the fact that it uses Google Maps.
The search is actually a “Fragment” which can include
the Google Maps search in our Android app. The app does not work in offline mode; it cannot
download Google Maps and use them in offline mode and
The search “Fragment” can make auto complete and also cannot upload or download people location form the
search suggestions with Google Search Engine, way better server.
than any self made search for Google Maps.

Authorized licensed use limited to: Miami University Libraries. Downloaded on June 15,2021 at 08:01:12 UTC from IEEE Xplore. Restrictions apply.
If no internet connection is detected, a warning is shown Further enhancement can be made, to port the app on
in a “Toast” message. other platforms too, like iOS, not only on Android, this way
to have a bigger coverage of people’s location.
This appit is one good way to track big crowds, because
GPS implants are not yet welcomed.
REFERENCES
[1] Alberto Torres Angonese, Paulo Fernando Ferreira Rosa, “Integration
of People Detection and Simultaneous Localization and Mapping
Systems for an Autonomous Robotic Platform,” XIII Latin American
Robotics Symposium and IV Brazilian Robotics Symposium
(LARS/SBR), 2016, pp. 251–256.
[2] Kuo-Hua Lo, Jen-Hui Chuang, “View-invariant measure of line
correspondence and its application in people localization,” 19th IEEE
International Conference on Image Processing, 2012, pp. 1985–1988.
[3] Chun-Chieh Hsu, Hua-Tsung Chen, Wen-Jiin Tsai,Suh-Yin Lee,
“Fast multi-view people localization using a torso-high reference
plane,” IEEE Visual Communications and Image Processing (VCIP),
2017, pp. 1–4.
[4] Alberto Torres Angonese, Paulo Fernando Ferreira Rosa, “Multiple
people detection and identification system integrated with a dynamic
simultaneous localization and mapping system for an autonomous
mobile robotic platform,” International Conference on Military
Technologies (ICMT), 2017, pp. 779–786.
[5] Yen-Shuo Lin, Hua-Tsung Chen, Jen-Hui Chuang, “An efficient
probabilistic occupancy map-based people localization approach,”
Visual Communications and Image Processing (VCIP), 2015, pp. 1–4.
[6] Kuo-Hua Lo, Jen-Hui Chuang, “Vanishing point-based line sampling
for efficient axis-based people localization,” 18th IEEE International
Conference on Image Processing, 2011, pp. 521–524.
[7] YassenDobrev, Martin Vossiek, Denys Shmakov, “A bilateral 24
GHz wireless positioning system for 3D real-time localization of
people and mobile robots,” IEEE MTT-S International Conference on
Microwaves for Intelligent Mobility (ICMIM), 2015, pp. 1–4.
[8] Kuo-Hua Lo, Chih-Jung Wang, Jen-Hui Chuang,Hua-Tsung Chen,
“Acceleration of vanishing point-based line sampling scheme for
people localization and height estimation via 3D line sampling,”
Proceedings of the 21st International Conference on Pattern
Recognition (ICPR), 2012, pp. 2788–2791.
[9] Chin-Wei Liu,Hua-Tsung Chen, Kuo-Hua Lo, Chih-Jung Wang, Jen-
Hui Chuang, “Accelerating Vanishing Point-Based Line Sampling
Scheme for Real-Time People Localization,” IEEE Transactions on
Circuits and Systems for Video Technology, vol. 27 (3), 2017, pp.
409–420.
Fig. 5. Searching for New York on the map. [10] ÁkosUtasi,CsabaBenedek, “A Bayesian Approach on People
Localization in Multicamera Systems,” IEEE Transactions on Circuits
IV. CONCLUSION and Systems for Video Technology, vol. 23 (1), 2013, pp. 105–115.
In this work it was presentedan app where the people’s [11] Percy W. Lovon-Ramos, Yessica Rosas-Cuevas, Claudia Cervantes-
Jilaja, Maria Tejada-Begazo, Raquel E. Patiño-Escarcina, Dennis
location is mapped.This app is based on the fact almost any Barrios-Aranibar, “People Detection and Localization in Real Time
person on the globe owns a smartphone with GPS function during Navigation of Autonomous Robots,” XIII Latin American
and if the phone is located, the person owning it is located Robotics Symposium and IV Brazilian Robotics Symposium
too. (LARS/SBR), 2016, pp. 239–244.
[12] Yen-Shuo Lin,Kuo-Hua Lo, Hua-Tsung Chen, Jen-Hui Chuang, “VP-
It is useful to know where is a bigger crowd, this way to transform: A novel vanishing point-based image transform for
avoid or not bigger crowds. It is useful to be avoided if the enhancement of people localization,” IEEE International Conference
app user is in a hurry, like avoiding crowds in supermarkets on Multimedia and Expo (ICME), 2013, pp. 1–6.
or even traffic jams. Sometimes it is needed to not avoid [13] Yen-Shuo Lin, Kuo-Hua Lo, Hua-Tsung Chen, Jen-Hui Chuang,
crowds, because good concerts or good pubs have big “Vanishing Point-Based Image Transforms for Enhancement of
Probabilistic Occupancy Map-Based People Localization,” IEEE
crowds. Transactions on Image Processing, vol. 23 (12), 2014, pp. 5586–5598.
With this app it can be checked the density of people on [14] He Li, Lai Zhijian, “The study and implementation of mobile GPS
the whole globe, the only need is to be installed by as many navigation system based on Google Maps,” International Conference
on Computer and Information Application, 2010, pp. 87–90.
users as possible. This can be done if the app is made as an
[15] Nitesh M Tarbani, A.S. Alvi, “Use of global positioning system
extension of an already installed app (like Facebook) or to be (GPS) to track movement of mobile node in proxy mobile Internet
installed on the phone by default (to be included in the protocol version 6(PMIPv6),” International Conference on Advances
Android distribution). in Computer Engineering and Applications, 2015, pp. 808–811.
[16] Raj Kishen Moloo, Varun Kumar Digumber, “Low-Cost Mobile GPS
Tracking Solution,” International Conference on Business Computing
and Global Informatization, 2011, pp. 516–519.

Authorized licensed use limited to: Miami University Libraries. Downloaded on June 15,2021 at 08:01:12 UTC from IEEE Xplore. Restrictions apply.

You might also like