解决高分辨率PCB检测中缺陷被忽略的问题,提升小缺陷检出率。
From Full Boards to Tiny Defects: Scale-Aware Tile Inference with Topology-Aware Merging for High-Resolution PCB Defect Detection
- 用分块推理保持细节,结合拓扑邻接关系修正边界误检。
- 在两个数据集上召回率从26%提升至100%,小缺陷恢复率达46%-100%。
- 无需重训练,适配现有检测系统,通用性强。
高分辨率印刷电路板(PCB)检测在将整板图像缩放至标准检测器输入时会因分辨率下降导致微尺度缺陷缩小至几像素而被漏检。分块推理虽能保留局部细节,但在块边缘引入边界伪影,造成检测分裂和假阴性。本文在两个高分辨率PCB缺陷数据集(PCB-Defect:230张图像,1704个标注;HRIPCB:693张图像,2953个标注,涵盖六类缺陷)上系统比较了五种推理策略。结果表明,训练与推理尺度一致性至关重要:同一模型在全图训练下分块推理的mAP@50仅为0.01,而在640×640分块图像上训练则分别达到0.72和0.94。进一步提出无需训练的拓扑感知分块合并方法(TA-TM),通过构建块邻接图,基于邻块一致性调整边界敏感检测分数,再进行全局非极大值抑制。增加128像素重叠后,边界区域召回率从约26%-63%提升至约70%-100%;TA-TM在两个数据集上均取得最佳mAP@50,分块推理恢复了全图方法完全遗漏的小缺陷的46%-100%。结果在不同数据集间具有一致性,验证了该策略的泛化能力。TA-TM无需重训练,且对架构无依赖,可直接集成至现有PCB检测流程。
原文摘要 · Abstract (English)
High-resolution printed circuit board (PCB) inspection suffers from resolution collapse when full-board images are resized to standard detector inputs: micro-scale defects shrink to a few pixels and are missed. Tile-based inference preserves local detail but introduces boundary artefacts at tile edges, causing split detections and false negatives. We present a systematic comparison of five inference strategies evaluated on two high-resolution PCB defect datasets, PCB-Defect (230 images, 1704 annotations) and HRIPCB (693 images, 2 953 annotations), spanning six defect classes. We show that training-inference scale consistency is critical: a detector trained on full images collapses to mAP@50 = 0.01 under tile inference, while the same architecture trained on 640*640 tile crops achieves 0.72 and 0.94 on the two datasets respectively. We further exploited Topology-Aware Tile Merging (TA-TM), a training-free post-processing method that builds a tile-adjacency graph and adjusts boundary-sensitive detection scores using neighbour-tile agreement before global NMS. Across both datasets, adding 128 px tile overlap raises boundary-zone recall from ~26-63% to ~70-100%, TA-TM achieves the best mAP@50 on both benchmarks, and tile inference recovers 46-100% of small defects missed entirely by full-image methods. Results are consistent across datasets, confirming the generalizability of the proposed strategy. TA-TM requires no retraining and is architecture-agnostic, making it directly applicable to existing PCB inspection pipelines.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。