NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Automated Parking Space Detection Using Convolutional Neural Networks

Julien Nyambal, Richard KleinarXiv 2021 · DOI

Abstract

Finding a parking space nowadays becomes an issue that is not to be neglected, it consumes time and energy. We have used computer vision techniques to infer the state of the parking lot given the data collected from the University of The Witwatersrand. This paper presents an approach for a real-time parking space classification based on Convolutional Neural Networks (CNN) using Caffe and Nvidia DiGITS framework. The training process has been done using DiGITS and the output is a caffemodel used for predictions to detect vacant and occupied parking spots. The system checks a defined area whether a parking spot (bounding boxes defined at initialization of the system) is containing a car or not (occupied or vacant). Those bounding box coordinates are saved from a frame of the video of the parking lot in a JSON format, to be later used by the system for sequential prediction on each parking spot. The system has been trained using the LeNet network with the Nesterov Accelerated Gradient as solver and the AlexNet network with the Stochastic Gradient Descent as solver. We were able to get an accuracy on the validation set of 99% for both networks. The accuracy on a foreign dataset (PKLot) returned as well 99%.

Introduction

Finding a parking spot is a universal frustration that wastes time, fuel, and patience. While "smart" parking lots exist, they typically rely on ultrasonic or infrared sensors installed at every single stall. These hardware-heavy solutions are expensive to install, difficult to maintain, and often fail in outdoor environments where they lack a roof for mounting. This research addresses these challenges by utilizing computer vision to transform existing security camera feeds into actionable data, creating a software-based system that can automatically classify the status of every spot without requiring new ground-level infrastructure.

Methodology

System Pipeline

The researchers developed a pipeline that moves from raw video to individual spot classification. The process begins with image preprocessing, where barrel distortion from the camera lens is corrected and images are resized to a standard format.

The system architecture flowchart illustrates the pipeline from initial frame processing to final classification.

Spot Definition and Classification

At the initialization of the system, a user defines the boundaries of each parking spot. These coordinates (x-min, x-max, y-min, y-max) are saved in a JSON format. This allows the system to "crop" the video into small patches—one for each parking space—for sequential prediction.

The coordinate system used to define the bounding boxes for individual parking spots within the frame.

CNN Architectures

The system utilizes two primary neural network architectures:

  • AlexNet: A deeper, more complex network known for high accuracy in image classification.
  • LeNet: A shallower, faster network that requires fewer computational resources.

Training was conducted using the Caffe framework and NVIDIA DIGITS, experimenting with different solvers such as Stochastic Gradient Descent (SGD) and Nesterov Accelerated Gradient (NAG).

Datasets

The study utilized two primary data sources to ensure both local relevance and global robustness:

  • Wits University Dataset: A custom dataset consisting of 782 images captured over a working week at the University of the Witwatersrand.
  • PKLot Dataset: A large, widely recognized benchmark dataset used to test the robustness of the model on a foreign parking environment.

Results and Discussion

Both AlexNet and LeNet achieved a staggering 99% accuracy on the validation set. Crucially, the system maintained this 99% accuracy when tested on the external PKLot dataset, confirming that the features learned by the CNN (such as chassis shapes and asphalt textures) are highly generalizable and resilient to "noise" like oil leaks or pedestrians.

While AlexNet was slightly more accurate in specific stress tests (95.49%), LeNet (93.64%) proved significantly faster and required less memory, making it a strong candidate for deployment on lower-power hardware. AlexNet paired with the NAG solver was particularly effective for high-precision requirements.

Conclusion

This research validates that deep learning can successfully replace physical sensors for parking management. By using CNNs for automatic feature extraction, the system provides a scalable, cost-effective alternative to hardware-heavy solutions. Future work will focus on addressing occlusion issues (where large vehicles block the view of other spots) and integrating the detection system into a user-facing interface to direct drivers to available spots in real-time.

Summary updated

BibTeX
@misc{nyambal2021automated,
  author = {Julien Nyambal and Richard Klein},
  title = {{Automated Parking Space Detection Using Convolutional Neural Networks}},
  year = {2021},
  eprint = {2106.07228},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.07228},
}
Figure