Call for Paper - April 2023 Edition
IJCA solicits original research papers for the April 2023 Edition. Last date of manuscript submission is March 20, 2023. Read More

PCB Defect Detection, Classification and Localization using Mathematical Morphology and Image Processing Tools

International Journal of Computer Applications
© 2014 by IJCA Journal
Volume 87 - Number 9
Year of Publication: 2014
Malge P. S.
Nadaf R. S.

Malge P S. and Nadaf R S.. Article: PCB Defect Detection, Classification and Localization using Mathematical Morphology and Image Processing Tools. International Journal of Computer Applications 87(9):40-45, February 2014. Full text available. BibTeX

	author = {Malge P. S. and Nadaf R. S.},
	title = {Article: PCB Defect Detection, Classification and Localization using Mathematical Morphology and Image Processing Tools},
	journal = {International Journal of Computer Applications},
	year = {2014},
	volume = {87},
	number = {9},
	pages = {40-45},
	month = {February},
	note = {Full text available}


An automated visual printed circuit board (PCB) inspection is an approach used to counter difficulties occurred in human's manual inspection that can eliminates subjective aspects and then provides fast, quantitative, and dimensional assessments. Various concentrated work on detection of defects on printed circuit boards (PCBs) have been done, but it is also crucial to classify these defects in order to analyze and identify the root causes of the defects. This project proposes a PCB defect detection and classification system using a morphological image segmentation algorithm and simple the image processing theories. However, besides the need to detect the defects, it is also essential to classify and locate these defects so that the source and location of these defects can be identified. Based on initial studies, some PCB defects can only exist in certain groups. Thus, it is obvious that the image processing algorithm could be improved by applying a segmentation exercise. This project uses template and test images of single layer, bare, grayscale computer generated PCBs.


  • R. Heriansyah, S. A. R AI-Attas, and M. M. Ahmad Zabidi,'Segmentation of PCB Images into Simple Generic Patterns usingMathematical Morphology and Windowing Technique', CoGRAMMMelaka, Malaysia 2002
  • N. K. Khalid. 'An Image Processing Approach Towards Classification of Defects on Printed Circuit Board', Projek Sarjana Muda, Universiti Teknologi Malaysia, 2007.
  • M. Moganti, F. Ercal, C. H. Dagli, and S. Shunekawa, 'Automatic PCB Inspection Agorithm: A Survey', 1996, 63. No. 2.
  • T. Taniguchi, D. Kacprzak, S. Yamada, M. Iwahara, and T. Miyogashi, 'Defect Detection on Printed Circuit Board by using Eddy-Current Technique and Image Processing', 101 Press, 2000
  • Wen-Yen Wu, Mao-Jiun J. Wang and Chih-Ming Liu, 'Automated Inspection of Printed Circuit Board Through Machine Vision', Computers in Industry, 28 (1996) pp. I03-III.
  • Z. Ibrahim, S. A. R AI-attas and Z. Aspar, 'Analysis of the WaveletBased Image Difference Algorithm for PCB Inspection', in proceedings of SICE, Osaka, Japan, 2002
  • Z. Ibrahim, S. A. R AI-attas, Z. Aspar and M. M. Mokji 'PerformanceEvaluation of Wavelet-based PCB Defect Detection and Localization Algorithm', in proceedings of ICIT, 2002, Bangkok, Thailand
  • Z. lbrahim, S. A. R AI-attas and Z. Aspar, 'Coarse Resolution Defect Localization Algorith for an Automated Visual PCB Inspection', Jurnal Teknologi, 37(D) Dis. 2002: 79-92
  • R. Heriansyah. 'Classification of Defect on Bare PCB using Neural Network Technique', Masters Thesis, Universiti Teknologi Malaysia. 2004.
  • D. M. Tsai and B. T. Lin, 'Defect Detection of Gold-Plated Surfaces on PCBs Using Entropy', Int J. Adv Manuf Technol (2002) 20:420-428
  • K. Chomsuwan, S. Yamada and M. Iwahara,' Improvement on Defect Detection Performance of PCB Inspection Based on ECT Technique With Multi-SV-GMR Sensor', IEEE Transaction on Magnetics vol. 43, no. 6, June 2007.
  • F. Wang, X. Li and G. Xu, 'The PCB Defect Inspection System Design Based on Lab Windows/CVI', International Conference on Industrial Mechatronics and Automation, ICIMA, 2009.