• CN:11-2187/TH
  • ISSN:0577-6686

机械工程学报 ›› 2022, Vol. 58 ›› Issue (5): 34-43.doi: 10.3901/JME.2022.05.34

• 机器人及机构学 • 上一篇    下一篇

扫码分享

基于多模型级联的双目视觉铸件缺陷检测方法

张仕军1, 金振林1,2   

  1. 1. 燕山大学机械工程学院 秦皇岛 066004;
    2. 燕山大学河北省重型智能制造装备技术创新中心 秦皇岛 066004
  • 收稿日期:2021-03-01 修回日期:2021-07-23 出版日期:2022-03-05 发布日期:2022-04-28
  • 通讯作者: 金振林(通信作者),男,1962年出生,博士,教授,博士研究生导师。主要研究方向为并联机器人技术及应用。E-mail:zljin@ysu.edu.cn E-mail:zljin@ysu.edu.cn
  • 作者简介:张仕军,男,1993年出生,博士研究生。主要研究方向为计算机视觉与深度学习。E-mail:zhangshijun_ys@163.com
  • 基金资助:
    国家自然科学基金重大科研仪器研制(51927809);河北省自然科学基金面上(E2021203018);河北省2022年研究生创新(CXZZBS2022145)资助项目。

Casting Defect Detection Method Based on Multi Model Cascade and Binocular Vision

ZHANG Shi-jun1, JIN Zhen-lin1,2   

  1. 1. Institute of Mechanical Engineering, Yanshan University, Qinhuangdao 066004;
    2. Heavy-duty Intelligent Manufacturing Equipment Innovation Center of Hebei Province, Yanshan University, Qinhuangdao 066004
  • Received:2021-03-01 Revised:2021-07-23 Online:2022-03-05 Published:2022-04-28

摘要: 为了解决铸件表面缺陷检测以及缺陷位置的三维定位问题,采用双目视觉系统获得图像,依靠三角测量法获得点云数据,基于正态分布变换配准方法实现工件的三维定位。通过多模型级联解决少样本和样本比例失衡情况下的表面缺陷检测,结合无监督模型的编码解码方式,依靠正样本训练获得对缺陷图像进行修复的网络模型,将修复后的图像与原始图像进行差异分析获得缺陷位置;使用MASK-RCNN模型进行监督模型训练,获得一体化检测分割模型,直接定位缺陷位置及类别。此外还将运动机构的物理坐标系、双目成像的工件坐标系以及平面图像的坐标进行换算,得到多个坐标系的转换关系,实现了平面缺陷的位置信息映射到三维工件的空间中。实验表明提出的双目视觉系统在工件成像以及检测方面具有良好的效果。

关键词: 双目视觉, 深度学习, 缺陷检测, 多模型级联

Abstract: In order to realize the surface defect detection and three-dimensional location of casting defects, we obtain the image by binocular vision system, obtain the point cloud data by triangulation method, and normal distribution transformation registration method is used to realize the three-dimensional positioning of the workpiece. Multi model cascading is used to solve the surface defect detection under the condition of few samples and unbalanced sample proportion. Combined with the coding and decoding method of unsupervised model, the network model of defect image repair is obtained by positive sample training, and the defect location is obtained by difference analysis between the repaired image and the original image; the supervised model training is carried out by MASK-RCNN model, and the integration is obtained detect the segmentation model and locate the defect location and category directly. In addition, the physical coordinate system of the moving mechanism, the workpiece coordinate system of binocular imaging and the coordinate of the plane image are converted to obtain the conversion relationship of multiple coordinate systems, and the position information of the plane defect is mapped to the space of the three-dimensional workpiece. Experiments show that this system has good effect in workpiece imaging and detection.

Key words: binocular vision, deep learning, defect detection, multi model cascade

中图分类号: