基于透视形变校正与分层检测的机箱面板视觉检测方法
A Vision Inspection Method for Chassis Panels Based on Perspective Distortion Correction and Hierarchical Detection
摘要: 针对工业机箱面板自动化生产中的型号混料与表面缺陷在线检测难题,本文设计了一套基于机器视觉的在线检测系统。该系统旨在实现对10款不同型号机箱面板的准确区分,并完成对丝印缺失、丝印不同、I/O接口缺失及I/O接口不同共4类缺陷的可靠检测。方法上,创新性地采用了透视形变校正下的模板匹配与分层检测策略,首先通过大模板进行快速粗定位与姿态估计,进而映射出精确的检测区域,并利用小模板实现关键特征的精细匹配与缺陷判别。测试结果表明,系统在混料检测中型号区分准确率达100%;在实验室环境下,对多类缺陷的整体检出率为97.5%,误检率为0.5%;在产线连续运行测试中,系统综合准确率达99.70%,平均单件检测时间低于0.8秒,满足高速产线节拍要求。该系统在检测精度、效率与工程实用性方面表现优异,具备良好的抗透视形变能力与在线部署价值。
Abstract: To address the challenges of model mix-up and online surface defect detection in the automated production of industrial chassis panels, this paper presents a machine vision-based online inspection system. The system is designed to accurately distinguish between 10 different panel models and reliably detect four types of defects: missing silkscreen, inconsistent silkscreen, missing I/O interfaces, and inconsistent I/O interfaces. Methodologically, an innovative strategy integrating perspective distortion correction with template matching and hierarchical detection is proposed. Firstly, a large template is utilized for rapid coarse positioning and pose estimation, which subsequently enables the precise mapping of inspection regions. Then, small templates are employed for fine feature matching and defect discrimination. Test results demonstrate that the system achieves 100% accuracy in model differentiation during mix-up inspection. In laboratory tests, the overall defect detection rate reaches 97.5% with a false detection rate of 0.5%. In continuous production line testing, the system attains an integrated accuracy of 99.70% with an average processing time per unit below 0.8 seconds, meeting the requirements of high-speed production cycles. The system exhibits excellent performance in detection accuracy, efficiency, and engineering practicality, demonstrating strong robustness against perspective distortion and significant value for online deployment.
文章引用:王益鑫, 刘鹏, 文正彪, 侯士旺, 候华毅. 基于透视形变校正与分层检测的机箱面板视觉检测方法[J]. 图像与信号处理, 2026, 15(1): 130-143. https://doi.org/10.12677/jisp.2026.151011

参考文献

[1] 邵明瑞. 基于深度学习的印包产品表面缺陷特征检测方法研究[D]: [硕士学位论文]. 济南: 齐鲁工业大学, 2025.
[2] Lowe, D.G. (2004) Distinctive Image Features from Scale-Invariant Keypoints. International Journal of Computer Vision, 60, 91-110. [Google Scholar] [CrossRef
[3] 郭桂平, 罗兵. 基于多模板匹配的丝印缺陷快速检测方法[J]. 电子质量, 2016(4): 8-11.
[4] 赵静, 王伟, 牛英群, 等. 基于BLOB分析的钢卷边部缺陷检测研究[J]. 邯郸职业技术学院学报, 2022, 35(2): 28-32.
[5] Lee, H., Kwon, H., Robinson, R.M. and Nothwang, W.D. (2016) DTM: Deformable Template Matching. 2016 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Shanghai, 20-25 March 2016, 1966-1970. [Google Scholar] [CrossRef
[6] He, Y. (2024) Improved Faster R-CNN Based on Multi-Scale Module for Detecting Weak Ground Targets in Remote Sensing Images. International Journal of High Speed Electronics and Systems, 34, Article 2540042. [Google Scholar] [CrossRef
[7] Lv, L., Li, J. and Zhao, Y. (2025) DMP-YOLO: Dense Multi-Scale Perception for Complex Scenes YOLO Algorithm Prunus Humilis Small Target Detection. Smart Agricultural Technology, 12, Article 101461. [Google Scholar] [CrossRef
[8] Chen, S., Hu, G. and Sun, J. (2020) Medical Image Segmentation Based on 3D U-Net. 2020 19th International Symposium on Distributed Computing and Applications for Business Engineering and Science (DCABES), Xuzhou, 16-19 October 2020, 130-133. [Google Scholar] [CrossRef
[9] 吴葛, 朱宇凡, 贾泽宁. 改进YOLO11的PCB表面缺陷检测方法[J]. 电子测量技术, 2025, 48(14): 136-145.
[10] 王嘉乐, 宋晓茹, 邱豆豆, 等. 基于深度学习的低照度环境下图像拼接算法[J/OL]. 激光杂志, 1-9.
https://link.cnki.net/urlid/50.1085.TN.20250918.1500.002, 2025-12-04.
[11] 王涛. 基于机器视觉的光学柱面透镜自动分拣装夹系统研究[D]: [硕士学位论文]. 长沙: 湖南大学, 2023.
[12] 王世勇, 乾国康, 李迪, 等. 面向边缘特征的实时模板匹配方法[J]. 华南理工大学学报(自然科学版), 2023, 51(9): 1-10.
[13] 姚震, 丁荣杰, 卢文波. 基于改进麻雀搜索的形状模板匹配算法研究[J]. 计算机仿真, 2025, 42(7): 371-377.
[14] 方文轩, 丛佃伟, 李军正. 基于关键标志构型的特征模板快速匹配方法研究[J]. 测绘与空间地理信息, 2022, 45(5): 196-199+202.
[15] 刘青正, 刘文帅, 王军利, 等. 一种基于YOLOv8s和改进U-Net的农业巡检机器人的指针式仪表识别方法研究[J]. 南方农机, 2025, 56(19): 6-10+30.
[16] 袁俊, 位小记, 柯晓东. 基于DFT载波校正算法在USRP便携式接收机中应用[J]. 电子制作, 2022, 30(15): 44-47.
[17] 曹文卓, 王太固, 徐兵, 等. 基于语义分割的船闸水位检测方法研究[J]. 仪器仪表学报, 2023, 44(2): 238-247.
[18] 张沛轩, 董一巍, 张怿, 等. 基于改进YOLO的动态加权竹木缺陷检与评估方法[J]. 计测技术, 2025, 45(4): 74-86.
[19] 曾香金. 基于机器视觉的电子产品表面瑕疵识别方法研究[J]. 电子元器件与信息技术, 2025, 9(2): 4-6.
[20] 田钊, 张春雷, 张敬宇, 等. 图像特征和灰度信息融合的模板匹配算法研究[J]. 组合机床与自动化加工技术, 2025(2): 158-162.
[21] 盛连军, 汤致轩, 茅晓亮, 等. 基于空间域和频率域方法的烟雾检测[J]. 华东师范大学学报(自然科学版), 2023(5): 147-163.
[22] 常文娴. 基于机器视觉的金属复杂表面缺陷检测技术[D]: [硕士学位论文]. 西安: 西安工业大学, 2022.
[23] Khurana, K., Sonsare, P., Borkar, D., Thakkar, H. and Bhagat, O. (2025) MOLO: A Hybrid Approach Using MobileNet and YOLO for Object Detection on Resource Constrained Devices. Discover Artificial Intelligence, 5, Article No. 288. [Google Scholar] [CrossRef