in our system to make it possible for it to accomplish
the tasks we had in mind.
The TensorFlow library was the driving force of
all machine learning activities we planned; this is
because it allows the model to learn what we want
from a huge collection of PCB images. That way, our
ai could easily identify some defects and continually
perfect its defect identifying capabilities. We utilized
the OPENCV library for image processing tasks. The
OPENCV will assist in bringing useful tools for
image manipulation into our preprocessing efforts.
Filtering and edge detection methods make the
images of better quality before analysis by the ai.
TensorFlow and OPENCV were added to enhance the
capabilities of our system regarding instant feedback
on defect detection. From the hardware perspective,
our generative ai-based PCB tester is built around a
raspberry pi 4b+ with the arm cortex a72 processer as
the processing unit. It is small yet powerful and
capable of processing real-time images, along with ai
computation. This will enable us to form a
harmonious whole by effectively integrating these
components.
To download high-resolution images required to
detect any faults, we have the camera module v2. In
that camera, the resolution is so good; hence it will be
possible for us to download the images of the printed
circuit boards in which even small fault is detectable.
For training our ai model with various faults, images
in high definition are very crucial for the purpose. The
user-friendly touch screen display comes with our
generative ai-based PCB tester, which can be easily
integrated with the raspberry- pi. The interface of this
system is developed to be simple and practical so that
users, the operators, can easily get things done in the
system. One of the impressive features of this display
is that it depicts its results in real time while
inspection is underway.
Real time results during inspections, is one of the
features of the display. The instant feedback of
images after they are captured and analysed is what
operators will see in case defects are detected. This
real-time information allows them to quickly decide
what action needs to be taken next—be it reworking
a PCB or specific quality-related issues. Overall, the
touchscreen display dramatically enhances the
usability of our PCB tester. It simplifies the tasks
facing the operators while managing the inspections,
thereby enhancing quality production in the PCB
manufacturing process. There will be improvements
in the system itself, and future dataset growth will see
newer types of defects that might evolve at the
production stage. Improvement of our algorithms
regarding accuracy levels and processing times is also
something to which we are committed. We also
foresee, in the future, adding new functionalities such
as predictive maintenance features for manufacturers
whereby they can predict problems before it happens.
In this paper, we detail the methodologies behind
generative ai approach through describing the image
preprocessing techniques and detection algorithms
that we used. We also discuss some of the issues we
have faced in development and how our system can
be smoothly integrated into any manufacturing
process. Our aim is to demonstrate that this advanced
testing solution will significantly increase the
efficiency of defect detection even in images of very
low quality, thus promoting the production of more
reliable electronic components.
2 RELATED WORK
In recent years, various methods have emerged for
detecting faults in printed circuit boards (PCBs).
Initially, the process relied on manual inspections
using magnifying tools. Unfortunately, this method
was often insufficient because small defects were
difficult to spot. This challenge led the industry to
explore image processing systems that utilize
technology for more effective fault detection. These
image processing systems work by capturing a
photograph of the PCB being inspected and
comparing it to a reference image of a perfect PCB.
This comparison makes it easier to identify any
discrepancies or faults that might be missed during
manual inspections. A major advantage of this
approach is its speed; it can quickly detect a variety
of defects. (Rao, Abhinav, et al. , 2024), (Raj, and,
Sajeena, 2018).
Recent studies have produced outstanding
advances in PCB flaw identification by using
different methods. A certain study looked at the use
of artificial neural networks (ANN) and resistance
analysis. Researchers were able to distinguish
between crucial characteristics such as traces and
contacts and probable flaws using thinning methods
and clustering approaches. This method relates the
trace current shifts to fault features, it boosting both
visual and electrical investigations, which assists in
properly spotting issues even tiny issues. (Lee, and,
Kim, 2021), (Thomas, Sutar, et al. , 2017), (Cheng
and Liu, 2022)
Research also involves a small scanning parts of
PCB images to detect the PCB defects. This method
is flood-filling, k-means clustering, and statistical
analysis to focus on specific components. By
analysing these smaller sections, it increases