中圖分類號(hào): TP301.6 文獻(xiàn)標(biāo)識(shí)碼: A DOI:10.16157/j.issn.0258-7998.200689 中文引用格式: 李建鑫,,陳鴻,王晉祺. 基于機(jī)器視覺(jué)輪廓提取的平滑處理算法[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