《電子技術(shù)應(yīng)用》
您所在的位置:首頁(yè) > 其他 > 设计应用 > 基于机器视觉轮廓提取的平滑处理算法
基于机器视觉轮廓提取的平滑处理算法
2021年电子技术应用第4期
李建鑫1,陈 鸿2,王晋祺1
1.中北大学 仪器与电子学院,山西 太原030051;2.上海无线电设备研究所,上海201109
摘要: 在利用机器视觉提取眼镜镜片轮廓过程中会有环境干扰光造成误差,影响轮廓的光顺与精度。为了修复此误差,提出了一种新的拟合算法:先寻找特征剔除受环境干扰光影响的轮廓部分,然后对被剔除的部分进行基于三次B样条曲线的保形插值。实验结果表明,经过该平滑拟合算法的处理,基于机器视觉的轮廓提取系统提取的标准圆轮廓数据的最小二乘圆拟合的均方差减少了80%~90%,圆度误差减少了70%~80%,说明该拟合算法能显著提高系统提取的轮廓数据的光顺与精度。
中圖分類號(hào): TP301.6
文獻(xiàn)標(biāo)識(shí)碼: A
DOI:10.16157/j.issn.0258-7998.200689
中文引用格式: 李建鑫,陳鴻,王晉祺. 基于機(jī)器視覺輪廓提取的平滑處理算法[J].電子技術(shù)應(yīng)用,2021,47(4):116-120,131.
英文引用格式: Li Jianxin,Chen Hong,Wang Jinqi. A smoothing algorithm based on machine vision contour extraction[J]. Application of Electronic Technique,2021,47(4):116-120,131.
A smoothing algorithm based on machine vision contour extraction
Li Jianxin1,Chen Hong2,Wang Jinqi1
1.School of Instrument and Electronics,North University of China,Taiyuan 030051,China; 2.Shanghai Radio Equipment Research Institute,Shanghai 201109,China
Abstract: In the process of extracting the outline date of eyeglass lens by machine vision, ambient light interference causes errors and affects the smoothness and accuracy of the outline. To solve the error, a new fitting algorithm is proposed. Firstly, it removes the contour part disturbed by ambient light. Then, it performs shape-preserving interpolation based on cubic B-spline curve for the removed part. The experimental results show that after processing by the fitting algorithm, the least squares circle fitting mean square deviation of the standard circle contour data extracted by the machine vision-based contour extraction system is reduced by 80% to 90%, and the roundness error is reduced by 70% to 80%, indicating that the fitting algorithm significantly improves the smoothness and accuracy of the contour data extracted by the system.
Key words : smooth processing;curve fitting;B-spline curve;shape preserving interpolation;feature extraction

0 引言

    近年來(lái),基于機(jī)器視覺的眼鏡鏡片輪廓提取系統(tǒng)因?yàn)槠鋬?yōu)良的效率與成本而被市場(chǎng)快速推廣[1]。然而在利用機(jī)器視覺提取鏡片輪廓過(guò)程中,會(huì)有難以避免的環(huán)境干擾光造成誤差,嚴(yán)重影響提取的鏡片輪廓數(shù)據(jù)的光順與精度。

    B樣條曲線擬合的定義一般是指:給定一組已知的數(shù)據(jù)點(diǎn),要求尋找一條B樣條曲線逼近或通過(guò)這些數(shù)據(jù)點(diǎn)[2]。對(duì)B樣條曲線擬合問(wèn)題的研究在高精加工領(lǐng)域有著非常重要的地位,有諸多學(xué)者取得了大量卓有成效的成果[3-4]。目前最小二乘法使用最普遍的B樣條曲線擬合方法,目標(biāo)是極小化各個(gè)數(shù)據(jù)點(diǎn)與所擬合的B樣條曲線上的對(duì)應(yīng)點(diǎn)的距離平方和[2]。然而由環(huán)境干擾光造成的誤差總是集中分布,且偏差的方向總是向內(nèi),不適合使用最小二乘法進(jìn)行擬合。

    本文針對(duì)環(huán)境干擾光造成的鏡片輪廓上的誤差進(jìn)行了特征分析,并結(jié)合鏡片輪廓為凸曲線的特征,給出了專門適用的基于三次B樣條曲線擬合的方法:首先依據(jù)一定的特征剔除受環(huán)境干擾光影響產(chǎn)生誤差的輪廓段;然后使用基于三次B樣條曲線的保形插值算法對(duì)被剔除的輪廓部分進(jìn)行插補(bǔ)。最后通過(guò)實(shí)驗(yàn)實(shí)現(xiàn)了對(duì)該算法提高數(shù)據(jù)精度效果的量化分析,驗(yàn)證了該算法對(duì)環(huán)境干擾光造成的誤差有著顯著的修復(fù)效果。




本文詳細(xì)內(nèi)容請(qǐng)下載:http://www.ihrv.cn/resource/share/2000003489




作者信息:

李建鑫1,陳  鴻2,王晉祺1

(1.中北大學(xué) 儀器與電子學(xué)院,山西 太原030051;2.上海無(wú)線電設(shè)備研究所,上海201109)

此內(nèi)容為AET網(wǎng)站原創(chuàng),未經(jīng)授權(quán)禁止轉(zhuǎn)載。

相關(guān)內(nèi)容