Identify The Parts of Automobile (Object Identification) On Raspberry Pi (LIT2021032)
Identify The Parts of Automobile (Object Identification) On Raspberry Pi (LIT2021032)
Abstract—Object identification in automobiles is critical for ap- tasks. The Raspberry Pi is widely known for its affordabil-
plications in autonomous driving and intelligent vehicle systems, ity and has been used in various applications ranging from
ensuring safety and enhancing operational efficiency. Despite the education to industrial automation . Its adaptability makes it
advances in this field, there is a need for affordable and accessible
solutions to deploy object identification models in real-time on an excellent platform for deploying machine learning models
resource-constrained devices. This paper addresses this gap by in real-world scenarios, especially where cost constraints are
utilizing a Raspberry Pi to identify automobile parts, leveraging significant.
its low cost and versatility for edge computing.
In this research, we leverage the capabilities of the Rasp-
The Raspberry Pi (RPi) is a small single-board computer berry Pi to perform object identification tasks in automobiles.
that is widely used in a variety of applications. This proposed
work uses peripheral devices and the Raspberry Pi to identify By utilizing TensorFlow Lite, a lightweight version of Tensor-
products in the automotive industry. The Raspberry Pi is ideal Flow designed for mobile and embedded devices, we optimize
for real-time applications, particularly those involving image machine learning models to run efficiently on the Raspberry
and video processing. Despite its slower performance compared Pi . This process involves training algorithms to recognize
to a personal computer, it provides all necessary features and specific automobile parts and converting these models to a
capabilities while using less power. The Raspberry Pi has
numerous applications, including education, home automation, format that TensorFlow Lite can execute effectively.[1]
gaming, robotics, and computer vision. This paper describes We detail the methodology for setting up the Raspberry
a novel approach to identifying automobile products using the
Raspberry Pi version 4.
Pi, including the software and hardware requirements, and
the process of training and optimizing the machine learning
models. Furthermore, we implement these models on the
Raspberry Pi and conduct a series of experiments to evaluate
I. I NTRODUCTION their performance and accuracy. The experiments focus on the
CCURATE object identification in automobiles is essen- trade-offs between processing speed and precision, providing
A tial for advancing autonomous driving and intelligent
vehicle systems. These systems rely on the ability to detect
insights into the practical feasibility of deploying such systems
in real-time applications.
and classify various automobile components, such as tires, Our findings demonstrate that the Raspberry Pi can effec-
lights, and license plates, which are crucial for navigation, tively perform object identification in automobiles, achieving a
maintenance, and safety. For instance, autonomous vehicles balance between cost and performance. This research provides
must recognize traffic signals and other vehicles’ components a practical, cost-effective solution for deploying real-time
to make informed decisions on the road. Similarly, intelligent object identification models on low-cost hardware, making
maintenance systems can identify wear and tear on parts, advanced automotive systems more accessible and promoting
prompting timely repairs and enhancing vehicle longevity . wider adoption of intelligent vehicle technologies.
Despite the significant advancements in machine learning
and computer vision, deploying real-time object identifica-
II. L ITERATURE R EVIEW
tion models on resource-constrained devices poses consider-
able challenges. High-performance computing resources are Various computer vision systems have been developed to
typically required to run these models efficiently, but such detect regions of interest in vehicle images, particularly within
resources are often expensive and not practical for widespread the domain of Intelligent Transportation Systems (ITS). These
deployment in consumer vehicles . Therefore, finding an systems frequently employ Artificial Intelligence techniques
affordable and accessible solution for this task is of paramount for pattern recognition, contributing significantly to advance-
importance. ments in ITS applications. One notable technique, proposed
The Raspberry Pi emerges as a promising candidate to by Viola and Jones[2], is the Cascade of Boosted Classifiers
address these challenges due to its low cost, versatility, and (CBC). This method has been effectively utilized to detect
sufficient computational power for many edge computing faces, wheels, rear views of cars, and license plates, among
other features[3][4][5]. CBC works by combining a series of
weak classifiers to quickly discard areas without the features of
2
interest, allowing complex classifiers to concentrate on promis- insert the microSD card into the Raspberry Pi and connect
ing regions. The simplicity and speed of feature evaluation in the camera module to its dedicated port. Then, connect the
CBC make it suitable for real-time applications. monitor via HDMI and attach the keyboard and mouse through
USB ports. Finally, power up the Raspberry Pi with the power
In addition to ITS, automatic vision systems have been
supply and complete the initial setup on the Raspbian OS,
implemented to inspect final products on assembly lines.
including enabling the camera interface.
These systems necessitate techniques that can simultaneously
locate multiple reference points and regions of interest.[6][7]
The use of templates is a popular approach in this context.
Templates encompass semantic information about the problem
domain and involve translating a template over the image while
utilizing similarity measures to determine the correct position.
Similarity measures often rely on Euclidean distance, Mean
Square Error, cross-correlation functions, and probabilistic
functions.
In this study, machine learning algorithms are employed
to detect car parts, leveraging Raspberry Pi as the primary
hardware platform. The Raspberry Pi, a small single-board
computer, is ideal for real-time image processing applications
due to its affordability, low power consumption, and sufficient
computational capabilities for running optimized machine
learning models. The methodology includes using a proba-
bilistic function to calculate the likelihood that each detected Fig. 1. Hardware setup image
car part is correctly located, based on pre-defined templates
known as geometrical models. These geometrical models store
semantic information about the expected positions of features B. Software installation
in a car image. If any features are missing, the combination The software installation on the Raspberry Pi involves
of geometrical models and probabilistic techniques enables the several steps to prepare the device for object identification
system to infer their positions. tasks. First, the Raspbian OS is installed on the microSD card
The CBC technique’s efficiency and the practicality of using tools like Balena Etcher. Once the Raspberry Pi boots
using templates in assembly line inspections provide a solid up, Python and essential libraries are installed via the terminal.
foundation for the proposed method. By integrating these OpenCV is set up for image processing, and TensorFlow Lite
established techniques with modern machine learning algo- is installed to run the machine learning models efficiently on
rithms and leveraging the Raspberry Pi’s capabilities, this the RPi. This setup ensures that the Raspberry Pi is equipped
research aims to create a robust and cost-effective solution for with the necessary software to capture, process, and analyze
real-time automobile part detection. This approach not only images of automobile parts.
enhances the accuracy and reliability of part detection but
also ensures that the system can be deployed in diverse and
resource-constrained environments, demonstrating significant
potential for broader applications in smart manufacturing and
maintenance.
Fig. 5. True positive, false positive and false negative detections for 12
features of interest over the testing set of 30 vehicles
Fig. 6. True positive, false positive and false negative detections for 12
features of interest over the testing set of 30 vehicles
ACKNOWLEDGMENT
R EFERENCES
[1] Z.-Q. Zhao, P. Zheng, S. tao Xu, and X. Wu, “Object detection with deep
learning: A review,” 2019.
[2] V. Paul and J. Michael, “Rapid object detection using a boosted cascade
of simple features.” Conference on Computer Vision and Pattern Recog-
nition, 1:1-9, 2001.
[3] A. Ofer and M. T. Mohan, “Camera based vehicle detection, tracking,
and wheel baseline estimation approach,” The 7th International IEEE
Conference on Intelligent Transportation Systems, pp, 2004.
[4] G. T. Trivedi Mohan Manubhai and M. Joel, “Looking-in and looking-
out of a vehicle: Computer-vision-based enhanced vehicle safety,” IEEE
Transactions on Intelligent Transportation Systems, 2007.
[5] L. H. Fung Yu-fai and E. M. Fikret, “Image processing application in toll
collection,” IAENG International Journal of Computer Science, 2006.
[6] L. Y.-C. Kim Seong-Min and L. Seong-Cheol, “Vision based automatic
inspection system for nuts welded on the support hinge,” SICE-ICASE
International Joint Conference, 2006.
[7] A. A. Agarwal Shivani and R. Dan, “Learning to detect objects in images
via a sparse, part-based representation.” IEEE Transactions on Pattern
Analysis and Machine Intelligence, 2004.