ML-Based Next-Generation Vision System for Bare PCB Defect Detection
Surface defects on bare printed circuit boards (PCBs), such as scratches, solder-mask misalignment over pads and mask peeling, affect board reliability, yet manual inspection is slow and varies from one inspector to another. This paper presents a machine-learning-based vision system that combines classical image preprocessing with deep-learning object detection to localise selected surface defects on bare PCBs. A dataset of 344 mobile-phone images covering three PCB layouts was annotated in Label Studio with three classes: Scratch, Mask on Pad (MP) and Mask Peel-Off (MF). Every captured image is first processed with OpenCV through BGR-to-HSV conversion, HSV-based segmentation, erosion and dilation, boundary detection, cropping, perspective correction and resizing to a standard resolution. The standardised board image is then passed to a YOLO26n detector trained for 100 epochs on a laptop CPU at an image size of 1280 × 1280 pixels. A Flask-based web application, PCB Vision, ties the workflow together and reports bounding boxes, class labels, confidence scores, severity labels, geometric measurements, Pareto analysis, process-feedback suggestions, annotated images and PDF inspection reports. In a demonstration inspection the system displayed 98 defect regions (65 MP, 21 MF and 12 Scratch) with a recorded end-to-end processing time of 2.1403 s. The work shows how preprocessing, defect localisation and reporting can be integrated into a single prototype; a quantitative evaluation on the held-out test subset is left for future work.
Authors
- N D Pannaga
- Keerthana L
- Prajna H U
- Harshitha R
Publication Details
- Journal
- Iconic Research and Engineering Journals
- Published
- 2026-11-23
- DOI
- https://doi.org/10.64388/ire1725488
- Primary Topic
- Industrial Vision Systems and Defect Detection
- Type
- article
- Field-Weighted Citation Impact
- 0.00