PCB Faults Detection Using Image Processing
PCB Faults Detection Using Image Processing
ABSTRACT
This paper reviews the digital image processing for PCB fault detection by using MATLAB software. In this project
we are implementing different algorithms in sequentional manner with GUI. In this process we are giving two
input images one to be inspected for errors i.e. layout of circuit which is implemented on PCB and other one is
reference image or standard image of PCB. After these process we can obtained numbers of faults in any respect
like hole, Breakout etc. it helps to detect the fault at primary stage of designing. Hence to improve the image
quality of compared image we use sharpened process, so we get sharpen images and fault can be detected easily
and it is fast and accurate .it reduce the manufacturing cost of PCB
Keywords: Matlab, image processing toolbox, GUI toolbox, PCB database etc.
I. INTRODUCTION
Nowadays machine vision inspection process is necessary in manufacturing industry .In printed circuit board
(PCB) there are many defect ,misalignment and disjoint of connection .vision or visual is generally the largest
cost of PCB .in order to reduce the cost of manufacturing caused by defect there is need of develop of new
software for PCB inspection .there are three process 1)Fault detection 2) fault location 3) fault classification
this process is done before mounting of electronics and electrical component .currently there are many
algorithms for fault detection by using image processing.There are many other fault such as overetching
,underetching and spurious metal. there are three stages have been proposed as shown in Fig.1
V. METHODOLOGY
1) GRAY SCALE IMAGE
As we know images are made of pixel and pixel contain of binary value 0 or 1 it called bi-level image. The gray
scale image can have values between 0 to 255, it have shading in this value (i.e in between black and white). In
our project we are using we are converting the color image into gray scale image. So that it is easier to proceed
for further process by using rgb2gry function we are elementating the problesm and saturated the informations so
that image should be process properly.
2) FILTERED IMAGE
filtering means implantation of an image it is used to smoothing the image between each pixel and reduce noise
for image ,filtering is used as convolution filter between the images. In image processing it used to enchance the
image to its best form. In our project we are using this function to remove noise from the image to get clear
image. This function filters the image according to given dimension and shape so that it can differentiate
between noise and required image.
3) EDGE DETECTION
It is an image processing technique that is used to find out the boundaries of object within the image, it uses
segmentations and data extractions from the image. there are many algorithm such as sobel,canny ,prewitt etc. by
applying this edge detection it reduces the large data into a specified edges so that the faults can be found
easily.In our project thgese function are used to specific the edges of the PCB,so that we it is comapared to
reference image it can find out faults easily. We are using the canny edge detection for smoothing the imageand
detected edges should be close to real edges.
4) SHARPENED IMAGE
This algorithm is used to sharpen the edges of the images, so that it is more convenient to find to increased the
contrast of the original image.sharpening is used to enchance the line structural in an image.out the faults it can
be applied to gray scale image. This uses piece wise liner transformation.
Enhanced image = original image + line structural
We are using this function for sharpened the image obtained form edge detectection image to get rectified image.
5) THRESHOLD IMAGE
It is one the simplest segmentation method; we used this for region separation of image based on intensity of that
image. Here object pixel and background pixel are differentiate with the help of threshold, which are assign
values from 0 to 255.In thresholding archaeologically image to binarized image. The main propose of
thresholding is to extract those pixels from the image which represented an object like holes, lines etc.
We are using these function for getting the output from previous stage ,as this function compares the object with
pixels it will gives us the exact output of image.
6) EX-ORING
The ex-oring process required both images i.e is input images and reference image have same sizes in pixel. The
ex-or operation shows the faults inspected by comparing both the images.
This function helps to give final output by ex-oring pixel by pixel of images and gives specified defects on image
by highlighting it.
VIII. RESULT
IX. CONCLUSION
A new era of computers network or in electronics devices PCB is the main components. In mass productions the
manufacturing cost of PCB is cheaper therefore there should not be any error and that is why we are designing
the software which detects the fault of PCB at preliminary stage so we can reduce the manufacturing cost and
testing cost.
X. FUTURE SCOPE
There are many convenitent methods to detect the faults of PCB. And our method is one of them so there are
some new methods or improvements should be developed to convert the system in real time system. Future
works content of specified the faults of PCB and it also gives the number of specified fault in PCB.
REFERENCES
[1]. Sonal Kaushik, Javed Ashraf, AutomaticPCB Defect Detection Using Image Subtraction Method, International Journal Of
Computer Science And Network (IJCSN), Volume 1, Issue 5, October 2012.
[2]. Ajay Pal Singh Chauhan, Sharat Chandra Bhardwaj, Detection Of Bare PCB Defects By Image Subtraction Method Using Machine
VisionIEEE World Congress On Engineering, Vol 2 WCE, July 6 2011
[3]. S. H. Indera Putera and Z. Ibrahim Printed Circuit Board Defect Detection Using Mathematical Morphology and MATLAB Image
Processing Tools, ICINT 2010, Shanghai, China, 2010.
[4]. Jagadish.S.Jakati1 & Sidramayya S Matad, Belagavi, Visweswaraiah Technological University, India, PCB defect detection based on
pattern matching and segmentation algorithm, IJARCCE, Vol. 3, Issue 9, September 2014.
[5]. Noor Khafifah Khalid, Zuwairie Ibrahim, And Mohamad Shukri Zainal Abidin, Universiti Teknologi Malaysia, IJSSST, Vol. 9, No. 2,
May 2008, An Algorithm To Group Defects On Printed Circuit Board For Automated Visual Inspection
[6]. Fabiana R. Leta, Flvio F. Feliciano & Flavius P. R. Martins, COMPUTER VISION SYSTEM FOR PRINTED CIRCUIT BOARD
INSPECTION ABCM Symposium Series in Mechatronics - Vol. 3 - pp.623-632 Copyright 2008.
[7]. Chapman, Stephen J., MATLAB Programming for Engineers, Brooks Cole, 2001.
PAPER SUBMITTED BY