Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Abstract—In highly populated cities, finding available car [5]. The accuracy in detecting empty parking areas is the
parking slots is time consuming and may cause severe traffic main challenge for smart parking systems.
congestions at the parking entrance. Therefore, a smart
parking system with automated car detection is required so Based on the aforementioned problem and challenges,
that the car drivers would have minimum effort and time to implementation of a smart parking system with experimental
access the available parking location. This paper presents an study is necessary. In this paper, we discuss the application
implementation of image processing based smart parking of Haar-Cascade algorithm for detecting vehicles objects and
system using Haar-Cascade method. The aim of this project is empty spaces in the parking area using an application on
to develop a smart parking system on a single-board computer smartphone. We also investigate experimentally the
and a camera installed at a parking area. The image processing influence of parking distance and different camera view
for car detection is performed on Raspberry Pi interfaced with angles to the accuracy of the detection. Our framework
the Firebase cloud platform through an API. The system posts envisions the use of camera and system will be sent data
the data to the Firebase channel, enabling an Internet of using the WiFi module on Raspberry to firebase cloud and
Things (IoT) based parking system. A mobile application is then displayed in smartphone application that has been made.
developed for visualization and hence the data is accessible Delivery of parking area slots using applications on
through the car driver’s phone. The system was tested at a smartphones in real time is expected to facilitate reading and
simple parking lot with a line of car slots. The experimental support digital systems that are currently growing rapidly
results with different condition of parking areas and different
such as Internet of Things (IoT).
camera view angles are discussed in the paper.
(a) (b)
Fig. 3. Architecture of the implemented smart parking system
Fig. 2. Illustration of Haar method for car detection: a) Single Haar b) 2
and 3 rectangle Haar applied to car detection
Raspberry Pi because the provided features are in accordance
C. AdaBoost Learning Algorithm with the need for making this prototype. The Raspberry Pi 3
model B design is based around the Broadcom BCM2837
Our training data obtained from parking lots can be used
SoC (System-on-a-Chip), which has embedded QuadCore
with many classifiers. We use the algorithm proposed by
ARM processors with a clock speed of 900 MHz, Dual Band
previous researchers Viola and Jones because of its success
wireless LAN, GPU VideoCore IV, and 1 Gigabyte RAM.
in many detection tasks [8]. Viola and Jones use features
The camera used to carry out the image acquisition process is
such as Haar, integral images, Adaboost and cascade
Pi Camera, which is a special camera designed for Raspberry
structures within their framework. Adaboost is used to select
Pi minicomputers. With a small size, the Raspberry Pi
the most relevant classifiers. The main idea of the AdaBoost
camera module can be used to take high definition quality
algorithm is to create a strong classifier as a linear
images with 8 MP quality supporting 1080p 30fps video
combination of a simple weak classifier [9]. The single Haar
resolution, 720p 60 fps and VGA90, can work on all
feature can represent a simple weak classifier. The input for
Raspberry Pi models connected to CSI ports [12].
AdaBoost is a training set where
represents the sample (in our case cars) and represents
the possible evaluation (the positive samples are marked as III. IMPLEMENTATION OF THE SMART PARKING SYSTEM
1, the negative samples has 0). This algorithm works in a
repetitive way and changes the importance of data at each A. System Architecture
step. Finally, AdaBoost chooses efficient features based on Architecture of the implemented smart parking area
the lowest errors and it creates strong classifiers using linear monitoring system is shown in Fig. 3. It consists of a
combinations of weak classifiers [10]. For the car detection Camera, a Raspberry Pi, a Firebase Database Cloud
process, we use the feature extraction scheme described Computing platform, and a user side mobile application. The
above, implemented through OpenCV. By using these basic subsystems are interconnected with wired and wireless
features, it is possible to create an effective classification interfaces, as well as the internet connectivity. The structure
cascade that can quickly detect vehicles with high accuracy. of our system is explained in more detail as follows.
223
Fig. 5. The open parking lot sample used in the experiment
224
(a) (a)
(b)
(b)
(c) (c)
Fig. 6. A single car detection result with the camera positioned at high Fig. 7. A single car detection result with the camera positioned at low
elevation and different view angles: (a) view from left, (b) view from elevation and different view angles: (a) view from left, (b) view from
center, dan (c) view from right center, dan (c) view from right
225
responds the request and forwarded the message to the
TABLE I. EXPERIMENTAL RESULTS FOR DIFFERENT VIEW ANGLES AND Firebase Cloud Messaging server. Subsequently, the Firebase
DISTANCE BETWEEN CARS Cloud Messaging server replies the message to the mobile
app user so that the app get the requested data in the form of
Number of Number of string which is visualized on the app. Fig. 9 exhibits the user
No Variable Accuracy
car parked car detected interface of the app with the information of car parking
Single car viewed from condition. This condition is obtained when the parking lot is
1 1 1 100%
top left fully occupied by multiple cars as in the case shown in Fig.
8. In this case, the camera and Raspberry Pi on the site
Single car viewed from
2
top center
1 1 100% process and send the car detection result to the Firebase
cloud server. The data in Firebase server can be accessed as
Single car viewed from requested automatically by the mobile application. When the
3 1 1 100%
top right parking lot is full, the parking slots A1 to A8 are depicted
Single car viewed from with a picture of cars meaning that the corresponding parking
4 1 1 100%
bottom left slots are being occupied. The detection result suits the actual
Single car viewed from condition in the parking area.
5 1 1 100%
bottom center
Single car viewed from V. CONCLUSION
6 1 1 100%
bottom right A smart parking system has been implemented and
Multiple cars with discussed in this paper. The system is based on image
7
different gap distance
8 10 80%
processing using Haar-Cascade method and supports the IoT
and shadows under the concept by making the data available on internet using
cars Firebase platform and also accessible through a mobile
application. The main findings are related to the car detection
using Haar-Cascade method. It is found that the single car
detection with different view angles using Haar Cascade
method does not influence the detection capability. The car is
always detectable from any view angle. However, when
multiple cars are parked and the gap distance between cars is
seen too close by the camera, the detection becomes less
accurate. Two cars may be detected as one car. Furthermore,
the shadows under the cars may cause detection errors as the
color pattern is similar to the car’s windshield.
For future works, the data transfer from Firebase to the
mobile application using the MIT Inventor could be
developed further supporting more user-friendly interface
and more rich information. Most importantly, the car
detection method should be improved to avoid detection
errors associated with the gap between cars and the shadows
formed around the cars.
226
[8] P. Viola and M. Jones, “RaPid object detection using a boosted
cascade of simple features”, Proceedings of the 2001 IEEE Computer
Society Conference on Computer Vision and Pattern Recognition.
CVPR pp. I-511-I-518 vol.1. 2001.
[9] Y. Freund and R. E. SchaPire. “A Short Introduction to Boosting”.
Journal of Japanese Society for Artificial Intelligence, 14(5):771-780,
September 1999.
[10] Radovan Fusek, Karel Mozdren, Milan Surkala and Eduard Sojka.
“AdaBoost for Parking Lot Occupation Detection”. Ostrava
university. Unpublished.
[11] Wu-Jeng Li, Chiaming Yen, You-Sheng Lin, Shu-Chu Tung, and
ShihMiao Huang, “JustIoT internet of things based on the firebase
real-time database”. IEEE journal. 2018.
[12] Monica Chillaron, Larisa Dunai, Guillermo Peris Fajarnes, and Ismael
Lengua. “ Face Detection and Recognition Application for Android”.
IECON. 2015.
[13] Divyesh Zanzmeriya, and Ankita Panara. “Implementation of
Industrial Automation Systems using Raspberry Pi by IOT with
Firebase”. International Research Journal of Engineering and
Technology. Vol 5, issue 5. 2018.
[14] Xie, Benjamin, Isra Shabir, and Hal Abelson. "Measuring the
Usability and Capability of App Inventor to Create Mobile
Applications." 2015 ACM SIGPLAN Conference on Systems,
Programming, Languages and Applications: Software for Humanity
SPLASH. October 2015.
[15] “Blockly | Google Developers,” Google. [Online]. Available:
https://developers.google.com/blockly/. [Accessed: 30-Jan-2019].
227