长春理工大学学报(自然科学版)
長春理工大學學報(自然科學版)
장춘리공대학학보(자연과학판)
JOURNAL OF CHANGCHUN UNIVERSITY OF SCIENCE AND TECHNOLOGY(NATURAL SCIENCE EDITION)
2015年
4期
22-27
,共6页
机器视觉%形貌检测%Ramer算法%OpenCV
機器視覺%形貌檢測%Ramer算法%OpenCV
궤기시각%형모검측%Ramer산법%OpenCV
machine vision%shape detection%ramer algorithm%OpenCV
针对当前工业生产中人工对微小异形零件形貌参数测量精度低、速度慢的问题,提出了一种基于机器视觉的检测方法,并开发了一款基于开源计算机视觉库OpenCV的检测软件。该检测方法首先使用CMOS相机采集被测零件的图像,并结合频谱特征对其进行滤波、阈值分割等预处理;然后选取效率高、边缘跨度为单像素的Canny边缘检测算法对预处理之后的图像进行边缘检测;最后采用Ramer算法对零件轮廓进行递归细分,拟合出几何基元,并结合测量焦距下的系统标定系数计算出零件实际的形貌参数。实验结果表明:通过该检测方法对长、宽均为毫米量级的Ω型微小零件进行形貌检测,检测精度达到10μm以下,具有精度高、速度快的优点,可为工业化生产提供可靠依据。
針對噹前工業生產中人工對微小異形零件形貌參數測量精度低、速度慢的問題,提齣瞭一種基于機器視覺的檢測方法,併開髮瞭一款基于開源計算機視覺庫OpenCV的檢測軟件。該檢測方法首先使用CMOS相機採集被測零件的圖像,併結閤頻譜特徵對其進行濾波、閾值分割等預處理;然後選取效率高、邊緣跨度為單像素的Canny邊緣檢測算法對預處理之後的圖像進行邊緣檢測;最後採用Ramer算法對零件輪廓進行遞歸細分,擬閤齣幾何基元,併結閤測量焦距下的繫統標定繫數計算齣零件實際的形貌參數。實驗結果錶明:通過該檢測方法對長、寬均為毫米量級的Ω型微小零件進行形貌檢測,檢測精度達到10μm以下,具有精度高、速度快的優點,可為工業化生產提供可靠依據。
침대당전공업생산중인공대미소이형령건형모삼수측량정도저、속도만적문제,제출료일충기우궤기시각적검측방법,병개발료일관기우개원계산궤시각고OpenCV적검측연건。해검측방법수선사용CMOS상궤채집피측령건적도상,병결합빈보특정대기진행려파、역치분할등예처리;연후선취효솔고、변연과도위단상소적Canny변연검측산법대예처리지후적도상진행변연검측;최후채용Ramer산법대령건륜곽진행체귀세분,의합출궤하기원,병결합측량초거하적계통표정계수계산출령건실제적형모삼수。실험결과표명:통과해검측방법대장、관균위호미량급적Ω형미소령건진행형모검측,검측정도체도10μm이하,구유정도고、속도쾌적우점,가위공업화생산제공가고의거。
Aiming at the faults of low precision and slow speed in the manual measurement of tiny special-shaped com-ponent’s shape parameters in current industrial production, a detecting method based on machine vision was proposed and a detecting software founded on open-source computer vision library OpenCV was programmed. Firstly, the object was imaged with a CMOS sensor and preprocessed with filtering and threshold by the use of spectrum analysis method. And then Canny edge detecting algorithm which is successful in extracting the edges with pixel precision and high effi-ciency was chosen to detect the edge of preprocessed image. In the end,by adopting the Ramer algorithm which per-forms a recursive subdivision of the contour to fit geometric primitives and using system calibration coefficient, the shape parameters of the measured part were obtained. The experimental result shows that through the proposed detec-tion method, the shape parameters of a micro component in the shape of Ω, the length and width of which were in millimeter level which can be acquired. And the detecting precision can reach to a level of 10μm. The method has the advantages of high precision and fast speed which can provide a reliable basis for industrialized production.