光学 精密工程, 2021, 29 (4): 701, 网络出版: 2021-10-13
半透明胶条表面光条中心线提取
Extraction of laser stripe center on translucent glue strip surface
精密测量 线结构光 半透明胶条 光条中心线 数学形态学 precision measurement line-structured light translucent glue strip laser stripe center mathematical morphology
摘要
为了解决传统激光条纹中心线提取方法不适用于半透明物体的问题、实现对半透明胶条的轮廓精确测量,研究了半透明胶条表面光条中心线提取算法。对比分析了不透明胶条和半透明胶条的激光条纹成像机理。通过研究半透明胶条激光条纹的一维灰度序列,说明了直接反射分量和次表面散射分量的波峰分布差异。最后提出了半透明胶条表面光条中心线提取算法,首先扫描激光条纹的一维灰度序列;然后采用数学形态学方法,根据波峰灰度值大小及分布位置差异提取得到直接反射分量;最后,采用灰度重心法对灰度序列中的直接反射分量开窗提取亚像素中心位置坐标,连续扫描获得光条中心线。实验结果表明,本文方法有效排除了次表面散射的干扰,提取光条中心线的平均误差达到3.197 pixel,二次曲线拟合后的平均误差为0.714 pixel,优于直接采用灰度重心法提取光条中心线。本文方法能够有效提取半透明胶条表面光条中心线,为工业现场半透明胶条的轮廓测量奠定了基础。
Abstract
To solve the problem of unsuitability of the traditional laser stripe centerline extraction method for translucent objects, this study examines the extraction algorithm of laser stripe center on translucent strip surface to realize accurate measurement of the contour of the translucent strip. First, a comparative analysis of the laser stripes imaging mechanism of opaque and translucent glue strip was performed. Then, the one-dimensional gray-scale sequence of the translucent glue strip laser stripe was analyzed, and the difference in the peak distribution of the direct reflection component and the subsurface scattering component was elucidated, based on which the algorithm for extracting the laser stripe center of the translucent glue surface was proposed. The one-dimensional gray-scale sequence of the laser stripe was scanned and then the direct reflection component was extracted using mathematical morphology based on the value and distribution of the gray value peak. Finally, the gray barycenter method was used to windowing the direct reflection components in the gray sequence to extract the sub-pixel center position coordinates; the laser stripe center could be obtained via continuous scanning. Experimental results show that the average error of the laser stripe center extraction method reaches 3.197 pixels, and the average error after quadratic curve fitting is 0.714 pixels, which is better than the gray barycenter method without pretreatment. The proposed method can effectively extract the laser stripe center of translucent glue strip surface, which can help in laying the foundation for the contour measurement of translucent glue strip in the industrial field.
符钦伟, 杜宣, 张燕, 吕娜, 陶卫, 赵辉. 半透明胶条表面光条中心线提取[J]. 光学 精密工程, 2021, 29(4): 701. Qin-wei FU, Xuan DU, Yan ZHANG, Na LÜ, Wei TAO, Hui ZHAO. Extraction of laser stripe center on translucent glue strip surface[J]. Optics and Precision Engineering, 2021, 29(4): 701.