赵朝朝,江 明,殷宗琨.改进 Canny 算子下的工件尺寸测量[J].电子测量与仪器学报,2022,36(8):52-59 |
改进 Canny 算子下的工件尺寸测量 |
Workpiece size measurement under improved Canny operator |
|
DOI: |
中文关键词: Canny 均值漂移 尺寸测量 主成份分析 |
英文关键词:Canny mean-shift dimension measurement PCA |
基金项目:国家自然科学基金(61271377)项目资助 |
|
Author | Institution |
Zhao Zhaozhao | 1. Key Laboratory of Advanced Perception and Intelligent Control of High-end Equipment, Ministry of Education, Anhui Polytechnic
University,2. School of Electrical Engineering, Anhui Polytechnic University |
Jiang Ming | 1. Key Laboratory of Advanced Perception and Intelligent Control of High-end Equipment, Ministry of Education, Anhui Polytechnic
University,2. School of Electrical Engineering, Anhui Polytechnic University |
Yin Zongkun | 1. Key Laboratory of Advanced Perception and Intelligent Control of High-end Equipment, Ministry of Education, Anhui Polytechnic
University,2. School of Electrical Engineering, Anhui Polytechnic University |
|
摘要点击次数: 1051 |
全文下载次数: 929 |
中文摘要: |
针对人工用游标卡尺测量手工捏花尺寸效率低下的问题,提出一种改进的自适应 Canny 算子测量手工捏花尺寸的方
法。 首先,引入均值漂移法分割图像,图像颜色变得渐变、细纹纹理平缓;其次,用大致轮廓的平均像素值选择性的替代边缘检
测的高阈值,以达到较好的自适应提取边缘的目的;再次,scharr 算子代替 sobel 算子,增强了弱边缘的提取能力;最后,去掉小
型连通域并且用主成分分析方法(PCA)获取轮廓的主方向,求取主方向直线方程,通过轮廓点在该直线上的最大投影距离获得
捏花的长度,轮廓点在该直线的垂直方向上的最大投影距离获得捏花的宽度。 实验表明,在对不规则物体的识别率上,本文方
法比其他方法有着显著的提升,准确率达到 97%,与真实值误差 2 mm 左右,并且通过强光、弱光、侧面光实验对比分析,该方法
受光照影响较小,满足工业自动化需求。 |
英文摘要: |
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. |
查看全文 查看/发表评论 下载PDF阅读器 |
|
|
|