Answers are grounded in this paper and cite their sources.
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.
No takes yet. Share an insight, caveat, or question.
R et al. (2026) studied this question.
Synapse has enriched 8 closely related papers on similar clinical questions. Consider them for comparative context: