中国机械工程 ›› 2025, Vol. 36 ›› Issue (11): 2783-2791.DOI: 10.3969/j.issn.1004-132X.2025.11.037

• 工程前沿 • 上一篇    

多线程半全局立体匹配工件内部检测方法

吴洪臣(), 陈晓荣(), 李柏杨   

  1. 上海理工大学光电信息与计算机工程学院, 上海, 200093
  • 收稿日期:2024-07-16 出版日期:2025-11-25 发布日期:2025-12-09
  • 通讯作者: 陈晓荣
  • 作者简介:吴洪臣,男,2001年生,硕士研究生。研究方向为图像处理与机器视觉。E-mail:wuhongchen3@163.com
    陈晓荣*(通信作者),女,1974年生,副教授。研究方向为自动测量与在线检测、信号与信息处理、图像处理技术。E-mail:chenxr@usst.edu.cn
    第一联系人:林歆悠*(通信作者),男,1981年生,教授、博士研究生导师。研究方向为新能源汽车电驱动控制策略、智能驾驶轨迹追踪与转向决策控制、融合燃料电池衰退和动态特性的能量管理策略。E-mail:linxinyoou@fzu.edu.cn
  • 基金资助:
    国家自然科学基金(52175513)

Multi-threaded Semi-global Stereo Matching Method for Internal Inspection of Workpieces

Hongchen WU(), Xiaorong CHEN(), Baiyang LI   

  1. School of Optical-Electrical and Computer Engineering,University of Shanghai for Science and Technology,Shanghai,200093
  • Received:2024-07-16 Online:2025-11-25 Published:2025-12-09
  • Contact: Xiaorong CHEN

摘要:

针对传统检测手段难以深入工件内部进行三维量化分析的问题,提出一种基于多线程半全局立体匹配(M-SGSM)的双目视觉检测方法。首先采用张正友标定法获取双目内窥镜参数,并对图像进行畸变矫正与极线矫正;然后设计多线程区域叠加分割策略优化立体匹配算法,提高视差图计算效率,生成三维彩色点云;最后,提出自标定面积测量法结合欧氏空间距离计算实现三维量化分析。实验结果表明,优化后立体匹配算法计算效率提高约30%,所提检测方法生成的三维点云结构清晰,欧氏距离测量误差小于3%,面积测量误差小于1.5%。该方法为工件内部三维检测提供了高效高精解决方案。

关键词: 双目视觉, 立体匹配, 三维重建, 工件测量

Abstract:

To address the problems that traditional detection methods were difficult to conduct three-dimensional quantitative analysis inside workpieces, a binocular vision detection method was proposed based on multi-threaded semi-global stereo matching(M-SGSM). Firstly, the Zhang's calibration method was used to obtain the parameters of the binocular endoscope, and image distortion correction and epipolar rectification were performed. Secondly, a multi-threaded regional overlap segmentation strategy was designed to optimize the stereo matching algorithm, improve the efficiency of disparity map calculation, and generate a 3D color point cloud. Finally, a self-calibration area measurement method combined with Euclidean distance calculation was proposed to realize three-dimensional quantitative analysis. Experimental results show that the optimized stereo matching algorithm improves computational efficiency by approximately 30%, the generated 3D point cloud has a clear structure, the Euclidean distance measurement error is less than 3%, and the area measurement error is less than 1.5%. This method provides an efficient and high-precision solution for three-dimensional internal detection of workpieces.

Key words: binocular vision, stereo matching, 3D reconstruction, workpiece measurement

中图分类号: