Next Article in Journal
ZnO Composite Graphene Coating Micro-Fiber Interferometer for Ultraviolet Detection
Next Article in Special Issue
A Multi-task Learning Model for Daily Activity Forecast in Smart Home
Previous Article in Journal
Active Player Detection in Handball Scenes Based on Activity Measures
Previous Article in Special Issue
Recognition of Daily Activities of Two Residents in a Smart Home Based on Time Clustering
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

IoT Smart Parking System Based on the Visual-Aided Smart Vehicle Presence Sensor: SPIN-V

by
Luis F. Luque-Vega
1,*,
David A. Michel-Torres
1,
Emmanuel Lopez-Neri
1,
Miriam A. Carlos-Mancilla
1 and
Luis E. González-Jiménez
2
1
Centro de Investigación, Innovación y Desarrollo Tecnológico CIIDETEC-UVM, Universidad del Valle de México, Tlaquepaque, Jalisco 45601, Mexico
2
Department of Electronics Systems and Computing, ITESO AC, Tlaquepaque, Jalisco 45604, Mexico
*
Author to whom correspondence should be addressed.
Sensors 2020, 20(5), 1476; https://doi.org/10.3390/s20051476
Submission received: 21 February 2020 / Revised: 5 March 2020 / Accepted: 6 March 2020 / Published: 8 March 2020
(This article belongs to the Special Issue Sensors for Societal Automation)

Abstract

:
Humanity is currently experiencing one of the short periods of transition thanks to novel sensing solutions for smart cities that bring the future to today. Overpopulation of cities demands the development of solid strategic plannings that uses infrastructure, innovation, and technology to adapt to rapid changes. To improve mobility in cities with a larger and larger vehicle fleet, a novel sensing solution that is the cornerstone of a smart parking system, the smart vehicular presence sensor (SPIN-V, in its Spanish abbreviation), is presented. The SPIN-V is composed of a small single-board computer, distance sensor, camera, LED indicator, buzzer, and battery and devoted to obtain the status of a parking space. This smart mobility project involves three main elements, namely the SPIN-V, a mobile application, and a monitoring center, working together to monitor, control, process, and display the parking space information in real-time to the drivers. In addition, the design and implementation of the three elements of the complete architecture are presented.

1. Introduction

Nowadays, several applications in scientific areas such as medicine, agriculture, social sciences, and computer sciences, as well as non-scientific areas, such as government, society, and industry, among others, have been boosted by the implementation of Internet of things (IoT) techniques. IoT is expressed in diverse areas that are classified according to the problems that can be solved, e.g., those in health, agriculture, networks, cities, and sports, among others. Future sensing solutions will be embedded in large automation systems, such as smart factories, buildings, and cities.
Some of the current solutions are focused on the implementation of smart cities solutions. Smart cities is a concept that allows integrating technologies into a community intending to make life easier with minimal effort. These are the result of the need to guide our lives toward sustainability. The initiatives of smart and sustainable cities do not have to be seen as a model of a distant and unattainable future, but as a necessity to the current reality to face the challenges of the current societies, where information and communication technologies (ICT) would play a crosscutting role as articulating tools that guarantee a better result and, where appropriate, facilitate social cohesion, security, and sustainability [1].
Smart cities use infrastructure, innovation, and technology for adapting the changes brought about by the overpopulation of cities and thus contribute to the reduction of carbon dioxide emissions, decreasing energy consumption, and promoting economic, social, and environmental development. One of the first steps to be implemented to upgrade the traditional cities to become smart cities is smart parking [2].
Many cities around the world have already started implementations of smart parking projects, making life easier. Intelligent parking helps drivers to efficiently and effectively search for parking spaces through information and communication technology [3]. In addition, intelligent parking spaces are systems that optimize the way of parking, either by streamlining the process or by reducing the space required. This proposal seeks to implement an attitude of respect towards the environment [4].
Many proposals are working on this approach. Some of them require using the global positioning system (GPS) to know the available locations (e.g., [5]). Other works focus on making reservations without ensuring the space availability (e.g., [6,7]). In this work, a new parking system is presented.
The proposed system is composed of three elements. The first is the development of an Intelligent Vehicular Presence Sensor (SPIN-V, in its Spanish abbreviation) installed in parking spaces, which stores, processes, and notifies the state of a parking space. The second is the intelligent parking system (SEI-UVM, in its Spanish abbreviation); it is available through a mobile application to monitor and manage parking spaces and also allows users to make reservations of any available space. The third is a monitoring center that gathers information about the complete system, users, and SPIN-V sensors. A case of study of the sensor functionality is presented and compared with the existing ones. In the next section, some of the most representatives proposals in this area are presented.

2. Related Works

In this section, some of the most representatives proposal in this area are described.
In [8], an architecture for smart parking is proposed employing a mobile application connected to the cloud. The system provides parking facilities in real-time and users are able to reserve places and make payments before arriving at the parking space. There exist other systems that use wireless communication to reserve places and recommendations of nearest parking spaces through the global positioning system (GPS) [5]. The system transmits the availability of spaces every 2 min. If all parking spaces are occupied, no actions are considered; in the other case, any user is able to reserve a place within 2 km of their location. The GPS coordinates are available for any smartphone; then, the user receives a message with directions. The application requires a WiFi connection and no action is performed if there is a car parked in every parking spot.
An intelligent parking algorithm is presented in [6], which calculates the optimal parking space for the user based on the distance of trajectory and time. It should be noted that the system does not have the reservation service and is subject to the availability of the space at that time. On the other hand, in the smart parking system proposed in [7], the authors presented the management of parking spaces in real-time using the cloud as a means of communication and a database. The system has a mobile application to make space reservations and an ultrasonic sensor placed on the ground connected via Ethernet.
A novel parking system designed for smart cities is proposed in [9]. The system is connected to the cloud, and the guidance function is based on the Ant Colony Optimization algorithm (ACO) to calculate the shortest path between two points, the user and the available space. The authors did not present any application. There exist some proposals which focus their efforts on the available technologies for smart parking spaces. In [10], sensors, technologies, and interfaces are used to collect and display real-time parking occupancy information. Some applications are compared with this proposal and the results show that the parking occupancy sometimes cannot be displayed due too few connected users to the application. The authors explained that all the existing smart parking technologies and applications are not suitable for open parking lots due to varying environmental conditions and high expenditure.
These current smart parking systems allow parking a vehicle quickly and efficiently. However, they require special infrastructure that is expensive in terms of installation, time, and money. The preceding raises an area of innovation opportunity in the automation of private parking lots looking for practicality in its installation, modularity, and design, which may trigger the introduction of new business models.

3. National Observatory of Smart Environments OBNiSE

Research centers, universities, and industries have gathered efforts to collaborate on technological developments and projects. The focus of this proposal is educational institutions. Universities have undertaken projects with industry and government.
This section presents the first element of the proposal, the monitoring center located at the largest university in Mexico. The Universidad del Valle de México (UVM) [11] is the largest private university in Mexico, which considers research as one of the keys of education; with over 30 campuses around Mexico; 179 , 073 high school, master and university students; 8726 teachers; more than 60 researchers; 200 , 000 graduate students; and 5974 administration staff (UVM, 2018), it was responsible for the creation of the Research Center of Investigation, Innovation and Technological Development (CIIDETEC-UVM Centro de Investigación, Innovación y Desarrollo Tecnológico (UVM) in Spanish) in 2009.
CIIDETEC-UVM as a research center has the National Observatory of Intelligent Environments (OBNiSE) from where various investigations and projects are carried out. The objective of OBNiSE is integrating strategies, methods, methodologies, prototypes, and, in turn, monitoring the behavior of new systems and devices connected to an internal network to provide an integrated system and services. The observatory is the place where the SEI-UVM system is installed and it allows the monitoring, control, and supervision of the functionality, creation, and development of the system. The explanation of the system is presented in the next section.

4. Smart Parking System Prototype

4.1. Smart Parking System SEI-UVM

The proposed SEI-UVM is a smart parking system that is devoted to private parking lots and composed of three main elements: the SPIN-V, a mobile application, and a monitoring center (see Figure 1). Each parking space is equipped with a SPIN-V located in the middle of the backend of parking spaces. The mobile application is available for the user/driver to control and reserve a parking space while the monitoring center can be operated by the owner of the private parking lots to manage and control the parking spaces and the reservations. The information shared by the app is stored in a database and observed by the monitoring center at OBNiSE. All the information is sent from the SPIN-V to the cloud. In addition, the exchange of information is available through WiFi protocol communication.

4.2. Network Architecture of the Smart Parking System SEI-UVM

The SEI-UVM can be used as a management and control system of private parking lots, in which the availability of parking spaces are shown in real-time to the driver/user through a mobile app. In this app, the user is able to enter a profile and register the vehicle’s license plate, monitor the available parking spaces up-to-the-minute, reserve a parking space, and obtain different route recommendations to get to the parking lot. On the other hand, the SPIN-V involves a distance sensor to detect the entry of a vehicle to the parking space, a camera to take an image of the vehicle’s plate, and an LED indicator and buzzer to inform the status of the parking space. Moreover, the information on the occupation of the parking spaces is displayed in real time to the monitoring center that ensures 24/7 functionality.
The proposed network architecture of the smart parking system SEI-UVM is depicted in Figure 2. Moreover, a more detailed explanation about the performance of the complete smart parking system is carried out below.
When a new vehicle arrives and is sensed by the proximity distance sensor of the SPIN-V, it takes an image of the vehicle’s plate and performs an image processing algorithm to convert from image to text. Then, the plate’s number is sent to the assignation manager at the monitoring center. The description of the process and an example explanation are presented in Section 5.
A parking space can be in one of the following statuses: FREE, OCCUPIED, BOOKED, HOLD, and WAIT. The app shows users what status each parking space is inside the parking lot. Each status has a defined LED color assignation. Figure 3 shows a state diagram and its corresponding transitions.
FREE Nocolor, OCCUPIED NoLight, BOOKED Yellow, HOLD Red, WAIT FlashingYellow.
The initial state of a parking space is FREE. If the driver/user has the app on his/her phone or they are willing to download it to use the SEI-UVM, he/she will receive the parking availability in real-time. Then, the user/driver can decide between booking a parking space through the app or looking for a parking space traditionally. If the driver/user book a parking space by the app, the chosen parking space status changes to BOOKED. He/she has to travel to the location of the parking space. When he/she arrives with his/her car to the parking space, the status of the SPIN-V changes to OCCUPIED and, when the car leaves, the state changes to FREE. When a difficulty is presented such as another driver enters a parking space with status BOOKED, the SPIN-V sensor will take some actions to always ensure the availability of the system.
The general process and the actions considered when a driver/user is looking for a parking space is depicted in Figure 4. Whether a user looks for a space to park, two scenarios can be possible. (1) The user has the application. (2)The user does not have the application. If the user already has the app, then looks for an available space, the user can find one, is able to reserve the space, arrive at the space, and then leave the space FREE. (2) If a user does not have the app, then the user is able to download the app or look for a space traditionally. The complete process with exceptions is shown in Figure 4.
This work considers the three main scenarios presented above, during or after the interaction with the mobile application. It is considered that a user/driver only can make a reservation when a space state is FREE. The cases are details below.
  • Scenario 1: Make a reservation/park in the booked parking space. The driver/user sets a reservation via the app/ Through the app, a requirement to the assignation manager in the monitoring center is sent. The SPIN-V LED (SpinV:LEDInd) of the reserved parking space is set to yellow. When the SPIN-V distance sensor (SpinV:Sensor) detects the arrival of a new vehicle, it takes the vehicle plate image with the SPIN-V Camera (SpinV:Camera), and internally gets the text from the image vehicle plate (see Figure 5), which is sent to the assignation manager and stored. The cloud informs the monitor service of the new parked vehicle and validates if the image plate is equal to the reservation, confirming to the reservation owner via app if it is correct, and the user confirms its arrival. Finally, the SPIN-V LED is set off and the state of the parking lot is set to OCCUPIED. The parking space remains in this state until the user leaves, when the state of the parking lot changes to FREE state until a new reservation or arrival is executed. Figure 6 depicts the sequential diagram of the process in Scenario 1.
  • Scenario 2: Make a reservation/someone else parked in the booked parking space. The scenario two is divided into two situations. One of them is when someone else parked in the space but leaves the space. The other is someone else parked in the space and the car has not left the space. In both cases, the user/driver makes a reservation via the app and sends the requirement to the assignation manager. The SpinV:LEDInd of the reserved parking space is set to yellow, thus, when the SpinV:Sensor detects a new vehicle, it takes the vehicle plate image with the SpinV:Camera, and internally gets the text of the image vehicle plate, which is sent to the assignation manager and stored. The cloud informs the monitor service of this new parked vehicle and validates if the image plate is equal to the reservation; if it is not confirmed, the monitoring center sends a message alert to the SPIN-V and the SpinV:LEDInd is set to flashing yellow and the SPIN-V buzzer (SpinV:Buzz) sounds. Then, the following can happen.
    Scenario 2a. The car leaves the space. The status of the parking space is set to OCCUPIED, the SpinV:Buzz sounds for 5 min or until the car leaves the space. If the car leaves the space, the parking space state returns to BOOKED, SpinV:Buzz off, and SpinV:LEDInd is set to yellow, until the reserved parking space is set to FREE by the main user. Figure 7 presents the process.
    Scenario 2b. The car does not leave the space. The status of the parking space is set to OCCUPIED, the SpinV:Buzz sounds for 5 min. If the car does not leave the space, the monitoring center has an agreement with a towing service to which it will send an alert to remove the intruder car. In the parking space, there will be an announcement with the towing services for the driver. The driver who makes the reservation is reassigned to another parking space. Finally, the state is set to WAIT for a defined time, after which it changes to FREE. Figure 8 presents the process.
  • Scenario 3: No reserve/park in the parking space. This scenario is divided into two possible cases. One is when the user does not make a reservation but has the app. The other is when the user does not make a reservation and does not have the app. In both cases, if the parking space is FREE, SpinV:LEDInd is off, and the driver/user arrives at the parking space. The SpinV:Sensor detects the vehicle, the SpinV:Camera takes the vehicle’s plate image, changes the image to text, and sends the text to the assignation manager to be stored. The cloud informs the monitor service of this new parked vehicle. The next actions are decided according to the scenarios explained below.
    Scenario 3a. No reserve/the driver has the app. If the user has the app, then the monitoring center, more specifically the assignation manager, will send the user a notification asking if he want to reserve the space, and then the SPIN-V status changes to OCCUPIED until the user leaves the space, when it changes its status to FREE. Figure 9 presents the process.
    Scenario 3b. No teserve/the driver does not have the app. If the user does not have the app, the user will find a sign with the app information to download and make the reservation. If the user downloads the app, he/she can follow Scenario 3a. In the other case, if the user will be in the parking space for a short time and decides not to download the app, then the user should ask the parking administrator at the establishment for a parking ticket or provisional permit. The assignation manager then should be notified to change the status to OCCUPIED. Figure 10 presents the process.
Despite the scenario, when the Spin-V sensor detects that the vehicle is leaving the parking space, the SpinV:Camera takes the vehicle plate image, and then the plate vehicle text is sent to the cloud, which informs the monitor of the leaving vehicle to change the SPIN-V to status FREE.
There is an exception when an administrator to the monitoring center needs to make some changes, maintaining or reconfiguring one or more spaces. In these case, it can directly change the status of the space(s) from the monitoring center, the SpinV:LEDInd is set to red, and the SPIN-V status changes to HOLD (see Figure 11).
All the sequence diagrams show the object interactions arranged in time, including the objects and classes involved in the scenarios and the sequence of messages exchanged between the objects needed to carry out the functionality of the three scenarios. These diagrams can be associated with the use case realizations in the logical view of the proposed system.

4.3. Design and Implementation of the IoT Sensor SPIN-V

The proposed system considers the design and development of the IoT based sensor SPIN-V, which is the mainstay of the smart parking system (SEI-UVM) and represents the first multi-disciplinary project carried out at the National Observatory of Smart Environments.
According to the logical view of the smart parking system SEI-UVM, the design considerations for the SPIN-V IoT sensor should contemplate the modularity, as well as the reduction in time and economic investment in the installation and maintenance, which give the IoT sensor the flexibility to offer several business models that could be applied for commercial and residential uses (see Figure 12).

4.3.1. Design of the IoT Sensor SPIN-V

The SPIN-V is designed to be implemented with the following components: the Raspberry Pi 3 electronic card, an HC-SR04 ultrasonic sensor, the Pi v2 camera, a LED strip, a buzzer, and a battery. The description of each of the components is shown below.
  • The Raspberry Pi is a small computer that consists of a motherboard on which a processor, graphics chip, and RAM is mounted. It is responsible for controlling the sensors, the led indicator, and the Pi Camera, as well as managing the communication between the overall system and the cloud services, so that the system can read and write data on them.
  • An ultrasonic sensor HC-SR04 allows us to measure distances thanks to its two transducers, a piezoelectric emitter and a receiver. The emitter emits pulses of ultrasound at a frequency of 40 KHz; if an object is found, the sound waves will bounce. The amount of time it takes for the wave to return determines the distance. The sensor is used to sense the presence of a vehicle in a parking space.
  • A Pi V2 camera, which offers high-speed, high-sensitivity images, is used to identify automobile plates.
  • A LED strip is used in the physical system of the SPIN-V to indicate to the driver the status of the parking space. Within the secondary elements of the SPIN-V is the battery that is the power source for the Raspberry Pi.
  • A buzzer is an electroacoustic transducer that produces a continuous sound or buzzing of the same tone (usually acute) and it serves as a signaling or warning mechanism.
  • A battery electrochemical cell that transforms chemical energy into electricity powers all the components.
The connection diagram of the components of the SPIN-V is shown in Figure 13.

4.3.2. Design of the Vision and Proximity System for the IoT Sensor SPIN-V

Vision systems are based on digital sensors within industrial cameras with optics specialized in acquiring images, so that hardware and software can process, analyze, and measure different characteristics to make decisions.
The Pi V2 camera is capable of performing automatic control functions with high-performance OmniBSI technology (high sensitivity, low cross talk, and low noise). As mentioned above, it is used to take the license plates of the car, when the presence of a car is detected in the parking space.
To define the best position and orientation of the Pi camera, it is necessary to take into account the following concepts in order to get the best the field of view of the camera. The fundamental parameters for the imaging system are as follows [12]:
  • Field of Vision (FOV) is the visible area of an object.
  • Working Distance (WD) is the distance from the front of the lenses to the object.
  • Resolution is the minimum size of the characteristic of the object.
  • Depth of Field (PC) is the maximum depth of the object that can be kept fully focused.
  • Sensor Size is the size of the area of a camera sensor, normally specified in the horizontal dimension.
To obtain the field of view of the camera, it is necessary to define the designed parameter of the working distance WD = 1 m and perform calculations based on the following specifications of the Pi v2 camera:
  • Vertical field of view vAFOV = 48.8 ° .
  • Horizontal field of view hAFOV = 62.2 ° .
  • Camera resolution: 3280 × 2464 px.
The angular field of view (AFOV) is defined in degrees. The calculations of the image field of vision using the vAFOV of the Pi camera (Figure 14) are as follows:
tan ( 0.5 ( vAFOV ) ) = 0.5 vFOV WD
Clearing vFOV and replacing the premises, we have
vFOV = 100 0.5 tan ( 0.5 ( 48.8 ° ) ) = 90.7 cm
Now, we do the same thing using the hAFOV and obtain
hFOV = 100 0.5 tan ( 0.5 ( 62.2 ° ) ) = 120.6 cm
Calculating the resolution in pixels per meter (PPM), we have
hPPM = hPixeles hFOV = 3280 px 1.206 m 2719 px / m
vPPM = vPixeles vFOV = 2464 px 0.907 m 2716 px / m
To know the ideal location of the ultrasonic sensor, the field of vision calculations were carried out in the same way as in Equation (1) to Equation (5) considering the sensor specifications:
  • Vertical field of view vAFOV S D = 15 ° .
  • Horizontal field of view hAFOV S D = 15 ° .
The following results are obtained:
vFOV S D = 26.33 cm
hFOV S D = 26.33 cm
Then, the field of view of both sensors is shown in Figure 15.

5. Results

Implementation of the Vision System for the IoT Sensor SPIN-V

Once all components of the SPIN-V were defined, the bases for the raspberry pi, the camera pi, and the ultrasonic sensor were designed using SolidWorks and 3D printed. It is worth mentioning that the sensor’s base mount was designed based on the previous inclination calculations. Once the electronic integration was carried out, the prototype of the SPIN-V was obtained (see Figure 16).
To evaluate the performance of the SPIN-V, it was mounted in the back end of a parking space at the Universidad del Valle de México campus Guadalajara Sur (Figure 17).
Once that SPIN-V was mounted at the height established by the design parameters, an image was obtained, as shown in Figure 18.
The firmware of the SPIN-V was programmed in Python, using the Python 3 Idle, which is installed at the factory with the Raspian Operating System on the Raspberry Pi 3. Several programming languages can be used on the Raspberry Pi. The Python language was chosen for the following reasons: it is simple, fast, flexible, ordered, portable, and with a variety of libraries included in the code.
For the license plate recognition, the image was processed to retrieve a string of characters corresponding to the license plate. First, the image was captured and loaded. Then, two operations were performed in the original image, a background subtraction and text detection.
The former permits the algorithm the segmentation of the car by defining and discarding the background. This was done as in [13] by defining a model for the background I b g ( x , y ) , which is an image captured when there was no moving objects on the scene. Then, a binary foreground mask I f g ( x , y ) was calculated as a subtraction between the current image I ( x , y ) and the background model I b g ( x , y ) and a threshold operation as follows
I f g ( x , y ) = 255 if | I ( x , y ) I b g ( x , y ) | t h 0 otherwise .
The threshold value t h is defined to eliminate high frequency noise in the resulting image generated by variations in the light conditions of the scene.
The latter permits detecting zones in the original image that contains text-like patterns, which are defined as Regions of Interest (ROI). It was implemented based on the EAST (An Efficient and Accurate Scene Text) [14] detector, which is a highly accurate deep learning text detector in natural scene images. Its implementation in the OpenCV library [15] consists of a pre-trained deep learning model that receives the original image and generates a list of position and orientation for all the text-like regions detected in the image. For a detailed explanation of this model implementation, please refer to [16]. As it is common to encounter several texts-like zones on the back end of an automobile, a filtering stage must be implemented to select the ROI of interest and discard the others. Once the ROI is stored using the text detector and background subtraction stages, it can be located based on the size and position of the detected ROIs relative to the segmented car.
After that, the retrieved ROI is used as the input of an Optical Character Recognition (OCR) algorithm implemented by the Tesseract API [17]. This API is an open-source deep-learning OCR engine. It was originally developed at Hewlett Packard and is currently developed and maintained by Google. Finally, the output of the OCR function is defined as the string of characters of the license plate. The overall process is depicted in the diagram of Figure 19 and it is composed of standard digital image and computer vision functions which are included in the OpenCV library [15]. The algorithm was also implemented on the Raspberry Pi computer of the proposed system.
The complete system was evaluated using the mobile app, the SPIN-V, and the monitoring center. Moreover, three SPIN-V were mounted at the university to test the performance of the complete architecture (see Figure 20). The performance of the overall system was evaluated, obtaining satisfactory results. In this regard, Figure 21 shows the license plate identification results for different types of vehicles during different environment conditions. The images were captured using the SPIN-V sensor mounted at the university; hence, they only show automobiles and motorcycles. It can be noted that, despite drastic changes in environment illumination, size, position, and orientation of the plate, the identification was carried out correctly. Moreover, the response time of the overall solution was evaluated, resulting in an average of 6 s for execution of the whole system’s functionality including the following stages: the database reading and writing, sensor measurement and conditioning, image capturing and processing, and user’s mobile app updating.

6. Discussion

This novel sensing solution of the SPIN-V as a cornerstone of the SEI-UVM has been designed and developed as a compact device and adaptable to different environments since it can be used without the need for an expensive infrastructure installation, unlike the solutions of the current guided systems. The three main elements of the SEI-UVM working together in the proposed architecture open the possibilities to bring business, product development, marketing, and sales together, improving innovative product management.
It should be noted that the sensing solution of the SPIN-V was made with the integration of sensors in the market; the energy consumption is not optimized in this version and it will be added in future work. More advanced technologies in terms of power consumption have to be taken into account for the second version of the SPIN-V. Besides, a service provider for the Internet of Things (IoT) such as Sigfox should be considered to connect the SPIN-V with the digital universe.
Furthermore, some issues related to the effectiveness of the license plate identification algorithm should be improved. For instance, the sensitivity of the proposed solution to environmental light conditions must be considered throughout the implementation of the algorithm, as well as during the positioning of the camera and the overall system. Situations such as occlusions or direct exposure to sunlight must be handled properly by the system. On the other hand, despite the robustness of the text detection algorithm, high perspective distortion must be avoided as it can prevent the system from the text detection.

7. Materials and Methods

The manuscript describes the three main elements of the SEI-UVM. The process to build a SPIN-V could be followed by a reader with an engineering background in terms of hardware. Regarding the software, the code is intuitive and the program in Python is provided. Moreover, the mobile application has been developed in Android Studio and the .apk file is also provided. In this paper, the web application in which the monitor center displays the parking spaces in real-time is not shown because the graphical user interface is still in progress.

8. Conclusions

An integral solution of intelligent mobility is presented, which was implemented in a university campus outdoor car parking, aiming to reduce the search time for outdoor parking in times of greater road congestion within the campus.
The proposed architecture of the solution of the SEI-UVM is divided into three main blocks: SPIN-V, the mobile app, and the monitoring center (OBNiSE), where the key piece is the SPIN-V IoT sensor. It is designed as a compact device that can be adaptable to different environments and does not need an expensive infrastructure installation. In addition, it allows solving the challenges of non-vision systems (individual vehicle control through the reading of the text of the vehicle license plate) and in particular the advantage over visual systems as the infrastructure installation cost is much lower, since it does not require of a wiring system. In addition, the text recognition process of the plate is carried out in the SPIN-V device then only the text is upload to the cloud instead of an image or video. In summary, the SEI-UVM allows distributing the reserve management to the users and it is able to gather more information and communication with the user. Finally, the OBNiSE provides the management of the parking spaces status to be consumed by the mobile app.
This implementation gave way to the implementation of concepts of a smart city on campus, towards the construction of a Smart Campus, which would allow evaluating strategies in a system with the same complexity of a big city, but in a environment of greater control, before implementing it in a traditional city or a smart city. This proposal is framed as part of the university’s strategy to support the government’s interest in transforming the city of Guadalajara as the first smart city in Mexico [18].
As a result, future work will be focused on establishing the replication strategy in a smart city such as Guadalajara and assessing the scalability of the proposal, validating the scalability and interoperability properties, key elements necessary for the implementation of solutions in a smart city [19,20]. In addition, work will be done on the development of intelligent prediction algorithms to be implemented as a Software as a Service (SaaS) in OBNiSE, to be consumed by the mobile app, and optimize search results and services for the user.

Author Contributions

Conceptualization, L.F.L.-V.; methodology, L.F.L.-V., E.L.-N., and M.A.C.-M.; software, D.A.M.-T.; validation, D.A.M.-T., L.F.L.-V., and E.L.; formal analysis, L.E.G.-J.; investigation, D.A.M.-T., L.F.L.-V., and E.L.; resources, E.L. and L.F.L.-V.; data curation, M.A.C.-M., E.L.-N., and L.E.G.-J.; writing—original draft preparation, L.F.L.-V., D.A.M.-T., and M.C; writing—review and editing, L.F.L.-V., D.A.M.-T., E.L.-N., M.A.C.-M., and L.E.G.-J.; visualization, M.A.C.-M., L.F.L.-V., and L.G,; supervision, L.F.L.-V. and E.L.-N.; project administration, L.F.L.-V.; and funding acquisition, L.F.L.-V. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by UVM Vice-rectory for Research with the Seed Fund and the Mexican National Council of Science and Technology CONACYT for scholarships 227601 and 366999.

Acknowledgments

We thank the engineering colleagues Héctor A. Pérez Sanchéz, Edward U. Benítez Rendón, Juan R. Miranda-Flores, Jesús A. Sáenz-Navarro, and José F. Vázquez-Durand, who have been collaborating in the development of the SPIN-V.

Conflicts of Interest

The authors declare no conflict of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript, or in the decision to publish the results.

Abbreviations

The following abbreviations are used in this manuscript.
ACOAnt Colony Optimization
AFOVAngular Field of View
APIApplication Program Interface
CIIDETEC-UVMCentro de Investigación, Innovación y Desarrollo Tecnológico, UVM
EASTAn efficient and Accurate Scene Text
FOVField of Vision
GPSGlobal Positioning System
hFOVHorizontal Field of View
hPPMHorizontal Pixel Per Meter
IoTInternet of Things
ICTInformation and communication Technology
LEDLight-Emitting Diode
OBNISEObservatorio Nacional Digital de Smart Environments
OCROptical Character Recognition
PCDepth of Field
RAMRandom Access Memory
Rasperri PIReduced Programmable computer
ROIRegions of interest
SaaSSoftware as a Service
SEI-UVMSmart Parking System of Universidad del Valle de Mexico
SPIN-VSmart Vehicular Presence Sensor
UVMUniversidad del Valle de México
vFOVVertical Field of View
vPPMVertical Pixel Per Meter
WDWorking Distance

References

  1. Alvarado-López, R.A. Ciudad inteligente y Sostenible: Hacia un Modelo de Innovación Inclusiva. PAAKAT: Revista de tecnología y sociedad 2017, 7, 13. [Google Scholar] [CrossRef]
  2. Alharbi, A.; Alotaibi, B.; Baatya, M.; Jastania, Z.; Meccawy, M. A Smart Parking Solution for Jeddah City. Int. J. Comput. Appl. Technol. 2017, 171, 4–9. [Google Scholar] [CrossRef]
  3. Hassoune, K.; Dachry, W.; Moutaouakkil, F.; Medromi, H. Smart Parking Systems: A Survey. In Proceedings of the 11th International Conference on Intelligent Systems: Theories and Applications (SITA), Mohammedia, Morocco, 19–20 October 2016. [Google Scholar]
  4. González, R. Twenergy. 2014. Available online: Https://twenergy.com/a/estacionamiento-inteligente-1346 (accessed on 22 February 2020).
  5. Orrie, O.; Silva, B.; Hancke, G.P. A Wireless Smart Parking System. In Proceedings of the 41st Annual Conference of the IEEE Industrial Electronics Society (IECON), Yokohama, Japan, 9–12 Novomber 2015; pp. 4110–4114. [Google Scholar]
  6. Hsu, C.W.; Shih, M.H.; Huang, H.Y.; Shiue, Y.C.; Huang, S.C. Verification of Smart Guiding System to Search for Parking Space via DSRC Communication. In Proceedings of the 12th International Conference on ITS Telecommunications, Taipei, Taiwan, 5–8 Novomber 2012; pp. 77–81. [Google Scholar]
  7. Karthi, M.; Preethi, H. Smart Parking with Reservation in Cloud based Environment. In Proceedings of the 2016 IEEE International Conference on Cloud Computing in Emerging Markets, Bangalore, India, 19–21 October 2016; pp. 164–167. [Google Scholar]
  8. Khanna, A.; Anand, R. IoT based Smart Parking System. In Proceedings of the 2016 International Conference on Internet of Things and Applications (IOTA), Pune, India, 22–24 January 2016; pp. 266–270. [Google Scholar]
  9. Wang, M.; Dong, H.; Li, X.; Song, L.; Pang, D. A Novel Parking System Designed for Smart Cities. In Proceedings of the 2017 Chinese Automation Congress (CAC), Jinan, China, 20–22 October 2017; pp. 3429–3434. [Google Scholar]
  10. Paidi, V.; Fleyeh, H.; Hakansson, J.; Nyberg, R.G. Smart Parking Sensors, Technologies and Applications for Open Parking Lots: A Review. IET Intel. Transport Syst. 2018, 12, 735–741. [Google Scholar] [CrossRef]
  11. Universidad del Valle de Mexico (UVM). Available online: Https://uvm.mx/nuestra-universidad (accessed on 22 February 2020).
  12. Hollows, G. Imaging Optics Fundamentals. 2014. Available online: Https://www.edmundoptics.com/resources/application-notes/imaging (accessed on 22 February 2020).
  13. Vacavant, A.; Chateau, T.; Wilhelm, A.; Lequièvre, L. A Benchmark Dataset for Outdoor Foreground/Background Extraction. In Computer Vision-ACCV 2012 Workshops; Park, J.I., Kim, J., Eds.; Springer: Berlin/Heidelberg, Germany, 2013; pp. 291–300. [Google Scholar]
  14. Zhou, X.; Yao, C.; Wen, H.; Wang, Y.; Zhou, S.; He, W.; Liang, J. EAST An Efficient and Accurate Scene Text Detector. Published in arXiv: 1704.03155v2. 2017. Available online: https://arxiv.org/abs/1704.03155 (accessed on 22 February 2020).
  15. Python OpenCV library. Available online: https://pypi.org/project/opencv-python/ (accessed on 22 February 2020).
  16. Deep Learning based Text Detection Using OpenCV (C++/Python). Available online: Https://www.learnopencv.com/deep-learning-based-text-detection-using-opencv-c-python/ (accessed on 22 February 2020).
  17. Tesseract API v2. Available online: https://tesseract.mx/docs/api#Introduccion (accessed on 22 February 2020).
  18. Notimex. Guadalajara busca ser la primera ciudad inteligente de México. El Universal. 2018. Available online: Https://xurl.es/6e42o (accessed on 22 February 2020).
  19. Novais, P.; Lloret, J.; Chamoso, P.; Carneiro, D.; Navarro, E.; Omatu, S.; Valdeolmillos, D.; Mezquita, Y.; Ludeiro, A.R. Sensing as a Service: An Architecture Proposal for Big Data Environments in Smart Cities. Adv. Intell. Syst. Comput. 2019, 97–104. [Google Scholar]
  20. Brutti, A.; De Sabbata, P.; Frascella, A.; Gessa, N.; Ianniello, R.; Novelli, C.; Pizzuti, S.; Ponti, G. Smart City Platform Specification: A Modular Approach to Achieve Interoperability in Smart Cities. In The Internet of Things for Smart Urban Ecosystems; Springer: Cham, Switzerland, 2019; pp. 25–50. [Google Scholar]
Figure 1. Smart parking system SEI-UVM.
Figure 1. Smart parking system SEI-UVM.
Sensors 20 01476 g001
Figure 2. Network architecture of the SEI-UVM.
Figure 2. Network architecture of the SEI-UVM.
Sensors 20 01476 g002
Figure 3. State diagram of the SPIN-V sensor at parking lots.
Figure 3. State diagram of the SPIN-V sensor at parking lots.
Sensors 20 01476 g003
Figure 4. Flow diagrams that represent the user/driver process.
Figure 4. Flow diagrams that represent the user/driver process.
Sensors 20 01476 g004
Figure 5. Conversion from image to text.
Figure 5. Conversion from image to text.
Sensors 20 01476 g005
Figure 6. Sequence diagram of Scenario 1. Reserve/arrive to the booked parking space.
Figure 6. Sequence diagram of Scenario 1. Reserve/arrive to the booked parking space.
Sensors 20 01476 g006
Figure 7. Sequence diagram of Scenario 2a. Reserve/someone else park in the space and the car leaves the space.
Figure 7. Sequence diagram of Scenario 2a. Reserve/someone else park in the space and the car leaves the space.
Sensors 20 01476 g007
Figure 8. Sequence diagram of Scenario 2b. Reserve/someone else park in the space and the car does not leave the space.
Figure 8. Sequence diagram of Scenario 2b. Reserve/someone else park in the space and the car does not leave the space.
Sensors 20 01476 g008
Figure 9. Sequence diagram of Scenario 3a. There is no reservation, a car arrives to the space, and the user/driver has the app.
Figure 9. Sequence diagram of Scenario 3a. There is no reservation, a car arrives to the space, and the user/driver has the app.
Sensors 20 01476 g009
Figure 10. Sequence diagram of Scenario 3b. There is no reservation, a car arrives to the space, and the user/driver does not have the app.
Figure 10. Sequence diagram of Scenario 3b. There is no reservation, a car arrives to the space, and the user/driver does not have the app.
Sensors 20 01476 g010
Figure 11. Sequence diagram when an administrator changes the status of one or more spaces to make an adjustment to sensors.
Figure 11. Sequence diagram when an administrator changes the status of one or more spaces to make an adjustment to sensors.
Sensors 20 01476 g011
Figure 12. SPIN-V installed in the back end of the parking space for either commercial or residential use.
Figure 12. SPIN-V installed in the back end of the parking space for either commercial or residential use.
Sensors 20 01476 g012
Figure 13. Connection diagram SPIN-V.
Figure 13. Connection diagram SPIN-V.
Sensors 20 01476 g013
Figure 14. FOV Camera Pi V2.
Figure 14. FOV Camera Pi V2.
Sensors 20 01476 g014
Figure 15. Field of view of both sensors.
Figure 15. Field of view of both sensors.
Sensors 20 01476 g015
Figure 16. SPIN-V IoT Sensor prototype.
Figure 16. SPIN-V IoT Sensor prototype.
Sensors 20 01476 g016
Figure 17. SPIN-V sensor mounted in the back end of the parking space.
Figure 17. SPIN-V sensor mounted in the back end of the parking space.
Sensors 20 01476 g017
Figure 18. Image captured with the SPIN-V.
Figure 18. Image captured with the SPIN-V.
Sensors 20 01476 g018
Figure 19. Diagram of the license plate recognition algorithm.
Figure 19. Diagram of the license plate recognition algorithm.
Sensors 20 01476 g019
Figure 20. Three SPIN-V Installed in UVM.
Figure 20. Three SPIN-V Installed in UVM.
Sensors 20 01476 g020
Figure 21. License plate identification results for different environmental conditions.
Figure 21. License plate identification results for different environmental conditions.
Sensors 20 01476 g021

Share and Cite

MDPI and ACS Style

Luque-Vega, L.F.; Michel-Torres, D.A.; Lopez-Neri, E.; Carlos-Mancilla, M.A.; González-Jiménez, L.E. IoT Smart Parking System Based on the Visual-Aided Smart Vehicle Presence Sensor: SPIN-V. Sensors 2020, 20, 1476. https://doi.org/10.3390/s20051476

AMA Style

Luque-Vega LF, Michel-Torres DA, Lopez-Neri E, Carlos-Mancilla MA, González-Jiménez LE. IoT Smart Parking System Based on the Visual-Aided Smart Vehicle Presence Sensor: SPIN-V. Sensors. 2020; 20(5):1476. https://doi.org/10.3390/s20051476

Chicago/Turabian Style

Luque-Vega, Luis F., David A. Michel-Torres, Emmanuel Lopez-Neri, Miriam A. Carlos-Mancilla, and Luis E. González-Jiménez. 2020. "IoT Smart Parking System Based on the Visual-Aided Smart Vehicle Presence Sensor: SPIN-V" Sensors 20, no. 5: 1476. https://doi.org/10.3390/s20051476

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop