改进 Canny 算子下的工件尺寸测量
DOI:
CSTR:
作者:
作者单位:

作者简介:

通讯作者:

中图分类号:

TP29;TN06

基金项目:

国家自然科学基金(61271377)项目资助


Workpiece size measurement under improved Canny operator
Author:
Affiliation:

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    针对人工用游标卡尺测量手工捏花尺寸效率低下的问题,提出一种改进的自适应 Canny 算子测量手工捏花尺寸的方 法。 首先,引入均值漂移法分割图像,图像颜色变得渐变、细纹纹理平缓;其次,用大致轮廓的平均像素值选择性的替代边缘检 测的高阈值,以达到较好的自适应提取边缘的目的;再次,scharr 算子代替 sobel 算子,增强了弱边缘的提取能力;最后,去掉小 型连通域并且用主成分分析方法(PCA)获取轮廓的主方向,求取主方向直线方程,通过轮廓点在该直线上的最大投影距离获得 捏花的长度,轮廓点在该直线的垂直方向上的最大投影距离获得捏花的宽度。 实验表明,在对不规则物体的识别率上,本文方 法比其他方法有着显著的提升,准确率达到 97%,与真实值误差 2 mm 左右,并且通过强光、弱光、侧面光实验对比分析,该方法 受光照影响较小,满足工业自动化需求。

    Abstract:

    Aiming at the low efficiency of measuring the size of a manual pinch with a vernier caliper, an improved adaptive Canny operator is proposed to measure the size of a manual pinch. Firstly, the mean shift method is introduced to segment the image, and the image color becomes gradual and the fine grain texture is gentle. Secondly, the average pixel value of approximate contour is selectively used to replace the high threshold of edge detection, to achieve the purpose of better adaptive edge extraction. Thirdly, Scharr operator replaces Sobel operator to enhance the ability of weak edge extraction. Finally, the small connected domain is removed, and the principal direction of the contour is obtained by principal component analysis ( PCA), and the straight-line equation of the principal direction is obtained. The length of the pinch is obtained by the maximum projection distance of the contour point on the straight line, and the width of the pinch is obtained by the maximum projection distance of the contour point in the vertical direction of the straight line. Experiments show that this method has significantly improved the recognition rate of irregular objects more than other methods, with an accuracy of 97% and an error of about 2 mm from the real value. Through the comparative analysis of strong light, weak light and sidelight experiments, this method is less affected by light and meets the needs of industrial automation.

    参考文献
    相似文献
    引证文献
引用本文

赵朝朝,江 明,殷宗琨.改进 Canny 算子下的工件尺寸测量[J].电子测量与仪器学报,2022,36(8):52-59

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:
  • 最后修改日期:
  • 录用日期:
  • 在线发布日期: 2023-03-06
  • 出版日期:
文章二维码