CN105184792A - Circular saw web wear extent online measuring method - Google Patents
Circular saw web wear extent online measuring method Download PDFInfo
- Publication number
- CN105184792A CN105184792A CN201510559853.3A CN201510559853A CN105184792A CN 105184792 A CN105184792 A CN 105184792A CN 201510559853 A CN201510559853 A CN 201510559853A CN 105184792 A CN105184792 A CN 105184792A
- Authority
- CN
- China
- Prior art keywords
- point
- saw blade
- sigma
- value
- pixel
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
- G06T7/0004—Industrial image inspection
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01B—MEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
- G01B11/00—Measuring arrangements characterised by the use of optical techniques
- G01B11/02—Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness
- G01B11/022—Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness by means of tv-camera scanning
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30108—Industrial image inspection
- G06T2207/30164—Workpiece; Machine component
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Theoretical Computer Science (AREA)
- Length Measuring Devices By Optical Means (AREA)
- Other Investigation Or Analysis Of Materials By Electrical Means (AREA)
Abstract
本发明公开了一种圆锯片磨损量在线测量方法,其实现步骤是:工控机触发图像采集卡,通过工业相机获取圆锯片图像;对图像进行预处理;基于自适应阈值,运用8邻域灰度相似度筛选方法,找出圆锯片的候选角点;判断候选角点是否为邻域内唯一角点或其角点响应函数值最大,以剔除伪角点;判断角点是否为极大值点,否则剔除之,从而确定了圆锯片刀尖点的整像素坐标;利用三次曲面拟合法对刀尖点进行亚像素定位;使用最小二乘法求解刀尖点所在圆的半径值,通过相机标定关系得出圆锯片的实际磨损量。本发明具有实时性好、检测精度高,是一种有效的圆锯片磨损量在线检测方法,其检测结果为补偿机构执行补偿提供依据。
The invention discloses an on-line measurement method for the amount of wear of a circular saw blade. The implementation steps are as follows: an industrial computer triggers an image acquisition card, obtains an image of a circular saw blade through an industrial camera; preprocesses the image; Domain gray similarity screening method to find the candidate corners of the circular saw blade; judge whether the candidate corners are the only corners in the neighborhood or have the largest corner response function value to eliminate false corners; judge whether the corners are extremely large value point, otherwise it is eliminated, thereby determining the integer pixel coordinates of the circular saw blade tip point; using the cubic surface fitting method to perform sub-pixel positioning of the tip point; using the least square method to solve the radius value of the circle where the tip point is located, by The camera calibration relationship yields the actual amount of wear on the circular saw blade. The invention has good real-time performance and high detection precision, is an effective online detection method for the amount of wear of the circular saw blade, and the detection result provides a basis for the compensation mechanism to perform compensation.
Description
技术领域technical field
本发明属于图像处理技术领域,涉及一种刀具磨损状态视觉检测方法,更具体地说,是涉及一种圆锯片磨损量在线测量方法。该方法是通过识别出图像边缘角点,根据角点的位置再求解出圆锯片磨损量的方法。The invention belongs to the technical field of image processing, and relates to a method for visually detecting the wear state of a tool, and more specifically, relates to an online measurement method for the amount of wear of a circular saw blade. The method is to identify the edge corner of the image, and then calculate the wear amount of the circular saw blade according to the position of the corner.
背景技术Background technique
机器视觉作为一种新兴的检测技术,以其快速、实时、智能和低成本的特点获得广泛应用。基于机器视觉的测量属于非接触式测量方式,不但可以实时对工件特征进行测量,提高测量的效率,而且可以根据工件的大小,调整工业相机的焦距等参数,实现更大范围的尺寸测量,同时可以避免由于测量人员自身心理因素变化产生的测量误差。As an emerging detection technology, machine vision has been widely used for its fast, real-time, intelligent and low-cost characteristics. The measurement based on machine vision is a non-contact measurement method. It can not only measure the characteristics of the workpiece in real time, improve the efficiency of measurement, but also adjust the focal length of the industrial camera and other parameters according to the size of the workpiece to achieve a wider range of dimensional measurements. It can avoid the measurement error caused by the change of the measurement personnel's own psychological factors.
刀具磨损量的检测,目前主要有以下几种方法。①监测振动信号和电机电流信号,构建振动信号和电机电流信号与刀具磨损量的关系,从而检测刀具的磨损状态;②监测加工过程中声发射信号,建立声发射信号与刀具磨损量的关系,检测刀具的磨损状态;③随着CCD传感器及其应用技术的飞速发展,基于机器视觉的非接触式检测技术被广泛应用于尺寸、位移、表面形状检测等领域。应用机器视觉检测刀具磨损的方法有三种:①检测刀具表面图像;②检测工件表面纹理图像;③检测切屑图像。There are mainly the following methods for the detection of tool wear. ①Monitor the vibration signal and motor current signal, construct the relationship between the vibration signal and the motor current signal and the wear amount of the tool, so as to detect the wear state of the tool; ②Monitor the acoustic emission signal during the processing, and establish the relationship between the acoustic emission signal and the wear amount of the tool, Detect the wear state of the tool; ③With the rapid development of CCD sensor and its application technology, non-contact detection technology based on machine vision is widely used in the fields of size, displacement, surface shape detection and so on. There are three ways to use machine vision to detect tool wear: ① detect tool surface images; ② detect workpiece surface texture images; ③ detect chip images.
圆锯片磨损量监测也常用以上的方法。杭州电子科技大学赵玲等人,基于机器视觉构建了圆锯片几何参数测量系统。该方法以圆锯片轮廓优化为基础,对圆锯片内圆孔提出了改进的二次多项式插值亚像素定位方法,对齿尖两段直线采用改进的最小二乘法进行拟合,提高了检测精度,但是该方法必须获得圆锯片整幅图像,因而无法实现圆锯片磨损量在线测量。瑞典Ekevad等人构建了在锯切山毛榉过程中,圆锯片磨损量与其锯片振动信号之间的关系,该方法虽然实现了圆锯片磨损量的在线测量,但是圆锯片磨损量与其锯片振动信号的精确数量关系,很难找到,只能对圆锯片磨损量进行定性检测。The above methods are also commonly used for monitoring the wear of circular saw blades. Zhao Ling from Hangzhou Dianzi University and others built a circular saw blade geometric parameter measurement system based on machine vision. Based on the optimization of circular saw blade profile, this method proposes an improved quadratic polynomial interpolation sub-pixel positioning method for the inner circular hole of the circular saw blade, and uses the improved least squares method to fit the two straight lines of the tooth tip, which improves the detection efficiency. Accuracy, but this method must obtain the entire image of the circular saw blade, so the online measurement of the wear amount of the circular saw blade cannot be realized. Swedish Ekevad et al constructed the relationship between the wear amount of the circular saw blade and the vibration signal of the saw blade in the process of sawing beech. It is difficult to find the exact quantitative relationship of the blade vibration signal, and only the qualitative detection of the wear amount of the circular saw blade can be carried out.
由于被测量对象千差万别,其结构特征有着很大的差异,基于机器视觉的测量还没有一种通用的方法,针对不同的对象,需要采用不同的方法。目前基于经典Harris方法的圆锯片磨损量测量方法其实时性差,常常把一些非刀尖点误判断为刀尖点,基于改进的Harris方法的圆锯片磨损量测量方法虽然在实时性方面有所改进,但仍然常常把一些非刀尖点误判断为刀尖点,无法实现对不同圆锯片刀尖点准确定位,测量的误差偏大,无法应用于实际测量过程中。Since the objects to be measured vary greatly and their structural characteristics are very different, there is no general method for measurement based on machine vision, and different methods need to be adopted for different objects. At present, the circular saw blade wear measurement method based on the classic Harris method has poor real-time performance, and some non-knife-tip points are often misjudged as knife-tip points. However, some non-knife-tip points are still often misjudged as knife-tip points, and it is impossible to accurately locate the knife-tip points of different circular saw blades, and the measurement error is too large, which cannot be applied to the actual measurement process.
发明内容Contents of the invention
本发明的目的在于克服已有圆锯片磨损量测量方法的不足,提出了一种基于机器视觉的圆锯片磨损量的在线测量方法,以提高圆锯片磨损量在线测量的精确度。The purpose of the present invention is to overcome the shortcomings of the existing circular saw blade wear measurement method, and propose an online measurement method for circular saw blade wear based on machine vision, so as to improve the accuracy of online measurement of circular saw blade wear.
为达到上述目的,本发明实现目的所采用的技术方案是:In order to achieve the above object, the technical solution adopted by the present invention to realize the object is:
一种圆锯片磨损量在线测量方法,包括如下步骤:A method for online measurement of circular saw blade wear, comprising the following steps:
1)获取圆锯片图像:将安装在支架上的工业相机,通过人工调节,使工业相机正对着被测圆锯片,工控机触发图像采集卡,获取圆锯片图像;1) Acquire the image of the circular saw blade: manually adjust the industrial camera installed on the bracket so that the industrial camera is facing the circular saw blade under test, and the industrial computer triggers the image acquisition card to obtain the image of the circular saw blade;
2)对图像采用中值滤波进行降噪预处理;2) The image is preprocessed by median filtering for noise reduction;
3)基于自适应阈值,运用8邻域灰度相似度筛选方法,找出圆锯片的候选角点;3) Based on the adaptive threshold, use the 8-neighborhood gray similarity screening method to find out the candidate corner points of the circular saw blade;
具体是以(x,y)为中心的窗沿平移向量(u,v)移动引起的灰度变化E(u,v)为:Specifically, the grayscale change E(u,v) caused by the movement of the window edge translation vector (u,v) centered on (x,y) is:
I(x+u,y+v)为平移后的灰度值,I(x,y)为平移前的灰度值,ω(x,y)为高斯窗口函数,I(x+u,y+v) is the gray value after translation, I(x,y) is the gray value before translation, ω(x,y) is the Gaussian window function,
其微分形式为Its differential form is
其中
其矩阵形式为Its matrix form is
其中,M为目标像素点(x,y)的自相关函数矩阵Among them, M is the autocorrelation function matrix of the target pixel point (x, y)
高斯窗口函数
目标像素点(x,y)的角点响应函数值:The corner response function value of the target pixel point (x, y):
CRF(x,y)=det(M)-k(trace(M))2 CRF(x,y)=det(M)-k(trace(M)) 2
其中det(M)表示矩阵M的行列式,trace(M)表示矩阵的迹,k取0.04~0.06;Where det(M) represents the determinant of the matrix M, trace(M) represents the trace of the matrix, and k is 0.04 to 0.06;
将目标点(x,y)与其8邻域范围内各像素点图像灰度值的标准差作为8邻域灰度相似判定阈值t,最大角点响应函数值CRFmax的百分之一作为角点响应检测阈值T,The standard deviation of the gray value of each pixel image in the target point (x, y) and its 8 neighborhoods is used as the gray similarity judgment threshold t of the 8 neighborhoods, and one percent of the maximum corner response function value CRF max is used as the corner point response detection threshold T,
目标点(x,y)与其8邻域范围内各像素点的灰度值之差△I,并统计△I在[-t,t]范围内的像素点个数n,满足2≤n≤6且其角点响应函数值大于T且局部最大的目标点为候选角点。The difference △I between the gray value of the target point (x, y) and each pixel in its 8 neighborhoods, and count the number n of pixels in △I in the range of [-t, t], satisfying 2≤n≤ 6 and its corner response function value is greater than T and the local maximum target point is the candidate corner point.
4)针对候选角点,判断其是否为邻域内唯一角点或其角点响应函数值最大,剔除掉伪角点;4) For the candidate corner point, judge whether it is the only corner point in the neighborhood or its corner point response function value is the largest, and remove the false corner point;
保留那些是其5×5邻域内为唯一的角点的候选角度或其5×5邻域内的CRF值最大的候选角度。Keep those candidate angles that are the only corner points in their 5×5 neighborhood or the candidate angles with the largest CRF value in their 5×5 neighborhood.
5)判断角点是否为曲线上极大值点来剔除齿根点,从而确定了圆锯片刀尖点的整像素坐标5) Determine whether the corner point is the maximum value point on the curve to eliminate the tooth root point, thereby determining the integer pixel coordinates of the circular saw blade tip point
角点与前一个角点连线的斜率ki1 The slope k i1 of the line connecting the corner point to the previous corner point
角点与后一个角点连线的斜率ki2 The slope k i2 of the line connecting the corner point and the next corner point
(xi,yi)是第i个角点的像素坐标,(xi-1,yi-1)是第i个角点的前一个角点像素坐标,(xi+1,yi+1)是第i个角点的后一个角点像素坐标,(x i , y i ) is the pixel coordinate of the i-th corner point, (x i-1 , y i-1 ) is the pixel coordinate of the previous corner point of the i-th corner point, (x i+1 , y i +1 ) is the next corner pixel coordinate of the i-th corner point,
若ki1<0且ki2>0,判定该点不为刀尖点,将其剔除,If k i1 <0 and k i2 >0, it is judged that the point is not a tool point, and it will be removed.
6)利用三次曲面拟合法对刀尖点进行亚像素定位6) Use the cubic surface fitting method to perform sub-pixel positioning on the tool tip point
整像素刀尖点(x,y)及其某邻域内各点的CRF的二元三次函数形式:The binary cubic function form of the CRF of the whole pixel knife tip point (x, y) and each point in a certain neighborhood:
拟合的误差平方和Fitted error sum of squares
求得a00,a01,a02,a03,a10,a20,a30,a11,a21,a12 Calculate a 00 , a 01 , a 02 , a 03 , a 10 , a 20 , a 30 , a 11 , a 21 , a 12
利用确定的三次曲面表达式求解整像素刀尖点细分为3×3亚像素点的CRF,取9个亚像素点中CRF最大值所对应的亚像素坐标作为该刀尖点的坐标。Using the determined cubic surface expression to solve the CRF of the entire pixel tip point subdivided into 3×3 sub-pixel points, the sub-pixel coordinate corresponding to the maximum CRF value among the 9 sub-pixel points is taken as the coordinate of the tool tip point.
7)使用最小二乘法求解刀尖点所在圆的半径值,通过相机标定关系得出圆锯片的实际磨损量7) Use the least square method to solve the radius value of the circle where the tool tip point is located, and obtain the actual wear amount of the circular saw blade through the camera calibration relationship
定义definition
r2=(A2+B2-4C)/4r 2 =(A 2 +B 2 -4C)/4
再根据相机标定关系,求出刀具实际的半径值,两次检测结果之差即为圆锯片的磨损量。Then, according to the calibration relationship of the camera, the actual radius value of the tool is obtained, and the difference between the two detection results is the wear amount of the circular saw blade.
本发明与现有技术相比具有以下优点和有益效果:Compared with the prior art, the present invention has the following advantages and beneficial effects:
1、通过所述的步骤3和步骤4的两次筛选,剔除了伪角点,避免了现有方法的角点聚簇现象。1. Through the two screenings of step 3 and step 4, false corner points are eliminated, avoiding the corner clustering phenomenon of the existing method.
2、通过所述的步骤5,剔除齿根点,从而确定了圆锯片刀尖点的整像素坐标,避免了现有方法将齿根点误判定为刀尖点引起圆拟合的偏差甚至错误。2. Through the above-mentioned step 5, the dedendum point is eliminated, thereby determining the integer pixel coordinates of the circular saw blade tip point, avoiding the deviation of the circle fitting caused by the existing method from misjudging the dedendum point as the tool tip point. mistake.
附图说明Description of drawings
图1为本发明实施例的测量装置构成示意框图,Fig. 1 is a schematic block diagram of a measuring device according to an embodiment of the present invention,
图2为本发明实施例的工业相机安装示意图,Fig. 2 is the schematic diagram of industrial camera installation of the embodiment of the present invention,
图3为本发明实施例的实现流程图,Fig. 3 is the realization flowchart of the embodiment of the present invention,
图4用本发明与现有方法对相邻锯齿间平稳过渡的圆锯片的刀尖点提取比较图,Fig. 4 uses the present invention and existing method to the knife tip point extraction comparison figure of the circular saw blade of smooth transition between adjacent sawtooth,
图5用本发明与现有方法对相邻锯齿间急促过渡的圆锯片的刀尖点提取比较图。Fig. 5 is a comparison diagram of the extraction of the tip point of a circular saw blade with a sharp transition between adjacent saw teeth by using the present invention and the existing method.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步的详细说明。应当理解,此处所描述的具体实施例仅仅用于解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention more clear, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
本发明的一种圆锯片磨损量在线测量方法,在线测量圆锯片磨损量前,对工业相机进行标定,其方法为,在安装圆锯片的位置,安装尺寸已知的标定物,工控机触发图像采集卡获取标定物的图像,根据获取的图像,计算已知尺寸的像素值,已知尺寸除以像素值得到每个像素代表的实际尺寸值。如图3所示,具体步骤如下:An on-line measurement method for the wear amount of a circular saw blade according to the present invention is to calibrate the industrial camera before the online measurement of the wear amount of the circular saw blade. The computer triggers the image acquisition card to obtain the image of the calibration object, calculates the pixel value of the known size according to the obtained image, divides the known size by the pixel value to obtain the actual size value represented by each pixel. As shown in Figure 3, the specific steps are as follows:
步骤1、将工业相机安装在支架上,通过人工调节,使工业相机正对着被测圆锯片;Step 1. Install the industrial camera on the bracket, and adjust it manually so that the industrial camera faces the circular saw blade under test;
如图1所示,整个测量装置包括工业相机,图像采集卡、工控机和测量软件。如图2所示,在测量圆锯片磨损量前,将工业相机3安装支架4上,通过人工调节使工业相机3正对着机床1上的圆锯片2,将工业相机用网线5与工控机6中的图像采集卡(图中未画出)连接。As shown in Figure 1, the entire measurement device includes industrial cameras, image acquisition cards, industrial computers and measurement software. As shown in Figure 2, before measuring the wear amount of the circular saw blade, install the industrial camera 3 on the bracket 4, manually adjust the industrial camera 3 to face the circular saw blade 2 on the machine tool 1, connect the industrial camera with the network cable 5 and The image acquisition card (not shown in the figure) in the industrial computer 6 is connected.
步骤2、工控机触发图像采集卡,通过工业相机获取圆锯片图像;Step 2. The industrial computer triggers the image acquisition card, and obtains the image of the circular saw blade through the industrial camera;
工控机作为主控制器,图像采集卡通过PCI-e总线与工控机通信,工业相机正对着被测圆锯片,被测圆锯片经透射光源照射后成像于工业相机上,图像采集卡将采集到的数字图像传输到工控机,从而获取圆锯片的图像。The industrial computer is used as the main controller, and the image acquisition card communicates with the industrial computer through the PCI-e bus. The industrial camera is facing the circular saw blade under test, and the circular saw blade under test is imaged on the industrial camera after being irradiated by the transmitted light source. The collected digital image is transmitted to the industrial computer to obtain the image of the circular saw blade.
步骤3、对图像进行预处理;Step 3, preprocessing the image;
为抑制噪声影响,将工业相机采集到原始图像进行降噪处理。采用中值滤波进行降噪处理,使物体和背景各自均匀单一,对比度大,无其他线条及难以区分的细节。In order to suppress the influence of noise, the original image collected by the industrial camera is processed for noise reduction. Median filtering is used for noise reduction processing, so that the object and background are uniform and single, with high contrast, without other lines and details that are difficult to distinguish.
步骤4、基于自适应阈值,运用8邻域灰度相似度筛选方法,找出圆锯片的候选角点;Step 4. Based on the adaptive threshold, use the 8-neighborhood gray similarity screening method to find out the candidate corner points of the circular saw blade;
为了提高该方法的整体适应性,降低由于阈值设置不合理而引起的角点错检和漏检,在圆锯片刀尖点检测方法中,使用自适应阈值选取办法。将图像灰度值的标准差作为8邻域灰度相似判定阈值t;将图像的最大角点响应函数值CRFmax的百分之一作为角点响应检测阈值T。In order to improve the overall adaptability of the method and reduce the misdetection and missed detection of corner points caused by unreasonable threshold setting, an adaptive threshold selection method is used in the circular saw blade tip point detection method. The standard deviation of the image gray value is used as the 8-neighborhood gray similarity judgment threshold t; one percent of the maximum corner response function value CRF max of the image is used as the corner response detection threshold T.
以(x,y)为中心的窗沿平移向量(u,v)移动引起的灰度变化E(u,v)为:The grayscale change E(u,v) caused by the movement of the window edge translation vector (u,v) centered on (x,y) is:
I(x+u,y+v)为平移后的灰度值,I(x,y)为平移前的灰度值,ω(x,y)为高斯窗口函数,I(x+u,y+v) is the gray value after translation, I(x,y) is the gray value before translation, ω(x,y) is the Gaussian window function,
其微分形式为Its differential form is
其中
其矩阵形式为Its matrix form is
其中,M为目标像素点(x,y)的自相关函数矩阵Among them, M is the autocorrelation function matrix of the target pixel point (x, y)
高斯窗口函数
目标像素点(x,y)的角点响应函数值:The corner response function value of the target pixel point (x, y):
CRF(x,y)=det(M)-k(trace(M))2 CRF(x,y)=det(M)-k(trace(M)) 2
其中det(M)表示矩阵M的行列式,trace(M)表示矩阵的迹,k取0.04~0.06。Among them, det(M) represents the determinant of matrix M, trace(M) represents the trace of matrix, and k takes 0.04~0.06.
将目标点(x,y)与其8邻域范围内各像素点图像灰度值的标准差作为8邻域灰度相似判定阈值t,最大角点响应函数值CRFmax的百分之一作为角点响应检测阈值T,The standard deviation of the gray value of each pixel image in the target point (x, y) and its 8 neighborhoods is used as the gray similarity judgment threshold t of the 8 neighborhoods, and one percent of the maximum corner response function value CRF max is used as the corner point response detection threshold T,
目标点(x,y)与其8邻域范围内各像素点的灰度值之差△I,并统计△I在[-t,t]范围内的像素点个数n,满足2≤n≤6且其角点响应函数值大于T且局部最大的目标点为候选角点。The difference △I between the gray value of the target point (x, y) and each pixel in its 8 neighborhoods, and count the number n of pixels in △I in the range of [-t, t], satisfying 2≤n≤ 6 and its corner response function value is greater than T and the local maximum target point is the candidate corner point.
步骤5、针对候选角点,判断其是否为邻域内唯一角点或其角点响应函数值最大,剔除掉伪角点;Step 5. For the candidate corner point, judge whether it is the only corner point in the neighborhood or its corner point response function value is the largest, and remove the false corner point;
对候选角点进行真伪角点判断。将每个目标点的5×5邻域作为感兴趣区域,判断目标点是否为唯一的角点,若是,则将此目标点视为真正的角点保存;若不是,则再次判定。搜索出其5×5邻域内的其他角点并将这些角点中CRF最大的像素点作为真正的角点保存。The authenticity of the candidate corners is judged. Take the 5×5 neighborhood of each target point as the region of interest, and judge whether the target point is the only corner point. If so, save the target point as a real corner point; if not, judge again. Search out other corners in its 5×5 neighborhood and save the pixel with the largest CRF among these corners as the real corner.
步骤6、判断角点是否为曲线上极大值点来剔除齿根点,从而确定了圆锯片刀尖点的整像素坐标;Step 6, judging whether the corner point is the maximum value point on the curve to remove the tooth root point, thereby determining the integer pixel coordinates of the circular saw blade tip point;
提取出圆锯片上的所有角点,但这些角点不仅包含圆锯片的刀尖点,还可能包含相邻锯齿间的齿根点,而这些非刀尖点会引起圆拟合的偏差甚至错误,因此要进行再次筛选以剔除非刀尖点。将圆锯片的边缘轮廓看作是一条连续的曲线,则刀尖点为该曲线上的极大值点,而相邻锯齿间的齿根点为曲线的极小值点。Extract all the corner points on the circular saw blade, but these corner points not only include the tip point of the circular saw blade, but also may include the tooth root points between adjacent teeth, and these non-knife tip points will cause the deviation of the circle fitting It is even wrong, so it needs to be screened again to eliminate non-tip points. The edge profile of the circular saw blade is regarded as a continuous curve, the point of the knife tip is the maximum value point on the curve, and the tooth root point between adjacent saw teeth is the minimum value point of the curve.
角点与前一个角点连线的斜率ki1 The slope k i1 of the line connecting the corner point and the previous corner point
角点与后一个角点连线的斜率ki2 The slope k i2 of the line connecting the corner point and the next corner point
(xi,yi)是第i个角点的像素坐标,(xi-1,yi-1)是第i个角点的前一个角点像素坐标,(xi+1,yi+1)是第i个角点的后一个角点像素坐标,(x i , y i ) is the pixel coordinate of the i-th corner point, (x i-1 , y i-1 ) is the pixel coordinate of the previous corner point of the i-th corner point, (x i+1 , y i +1 ) is the next corner pixel coordinate of the i-th corner point,
若ki1<0且ki2>0,判定该点不为刀尖点,将其剔除,If k i1 <0 and k i2 >0, it is judged that the point is not a tool point, and it will be removed.
步骤7、利用三次曲面拟合法对刀尖点进行亚像素定位;Step 7, using the cubic surface fitting method to perform sub-pixel positioning on the tool tip point;
为了在不改变硬件设备的前提下提高检测精度,对刀尖点进行亚像素定位。亚像素就是对物理像素进行k细分,如果原始图像是n行m列,经k细分后,变成了kn行km列,这意味着每个像素被分为更小的单元,从而对这些更小的单元实施插值运算以提高该方法精度。In order to improve the detection accuracy without changing the hardware equipment, sub-pixel positioning is performed on the tool tip. Sub-pixel is k subdivision of physical pixels. If the original image has n rows and m columns, after k subdivision, it becomes kn rows and km columns, which means that each pixel is divided into smaller units, so that These smaller units perform interpolation operations to increase the accuracy of the method.
整像素刀尖点(x,y)及其某邻域内各点的CRF的二元三次函数表示形式:The binary cubic function representation of the whole pixel knife point (x, y) and the CRF of each point in a certain neighborhood:
拟合的误差平方和Fitted error sum of squares
求得a00,a01,a02,a03,a10,a20,a30,a11,a21,a12 Calculate a 00 , a 01 , a 02 , a 03 , a 10 , a 20 , a 30 , a 11 , a 21 , a 12
利用确定的三次曲面表达式求解整像素刀尖点细分为3×3亚像素点的CRF,取9个亚像素点中CRF最大值所对应的亚像素坐标作为该刀尖点的坐标。Using the determined cubic surface expression to solve the CRF of the entire pixel tip point subdivided into 3×3 sub-pixel points, the sub-pixel coordinate corresponding to the maximum CRF value among the 9 sub-pixel points is taken as the coordinate of the tool tip point.
步骤8、使用最小二乘法求解刀尖点所在圆的半径值,通过相机标定关系得出圆锯片的实际磨损量Step 8. Use the least square method to solve the radius value of the circle where the tool tip point is located, and obtain the actual wear amount of the circular saw blade through the camera calibration relationship
定义definition
根据according to
r2=(A2+B2-4C)/4r 2 =(A 2 +B 2 -4C)/4
求出刀具实际的半径值,两次检测结果之差即为圆锯片的磨损量的像素值。Calculate the actual radius value of the tool, and the difference between the two detection results is the pixel value of the wear amount of the circular saw blade.
本发明的有益效果可以通过以下实验进一步说明The beneficial effects of the present invention can be further illustrated by the following experiments
1、实验内容1. Experimental content
以2种圆锯片进行试验,图4a圆锯片的相邻锯齿间过渡平缓,图5a圆锯片的相邻锯齿间过渡急促,用经典Harris方法、改进的Harris方法和本发明的方法提取圆锯片的刀尖点。Tested with two kinds of circular saw blades, the transition between adjacent saw teeth of the circular saw blade in Fig. 4a is gentle, and the transition between adjacent saw teeth of the circular saw blade in Fig. The tip point of the circular saw blade.
2、实验装置2. Experimental device
工控机采用台湾研华工控机IPC-610H,CPU为E5300,内存2G;图像采集卡采用台湾凌华公司PCIe-GIE64+图像采集卡;工业相机采用德国BASLER公司的500万像素acA2500-14gm工业相机,镜头采用日本computar公司的M5018-MP2定焦镜头。The industrial computer adopts Taiwan Advantech industrial computer IPC-610H, the CPU is E5300, and the memory is 2G; the image acquisition card adopts the PCIe-GIE64+ image acquisition card of Taiwan ADLINK; the industrial camera adopts the 5 million-pixel acA2500-14gm industrial camera of the German BASLER company, the lens The M5018-MP2 fixed-focus lens of Japanese computar company is adopted.
3、实验结果3. Experimental results
为了验证本发明的有效性,设计了圆锯片刀尖点检测效果比对实验。实验选用两种不同外形特性的圆锯片,分别采用经典Harris方法、改进的Harris方法和本发明的方法提取圆锯片的刀尖点,其检测结果列表如表1和表2所示,检测效果图如图4和图5所示。In order to verify the effectiveness of the present invention, a circular saw blade tip point detection effect comparison experiment is designed. The experiment selects two kinds of circular saw blades with different shape characteristics, respectively adopts the classical Harris method, the improved Harris method and the method of the present invention to extract the knife tip point of the circular saw blade, and the list of the detection results is shown in Table 1 and Table 2. The renderings are shown in Figure 4 and Figure 5.
表1相邻锯齿间过渡平缓的的圆锯片检测参数Table 1 Circular saw blade detection parameters with smooth transition between adjacent saw teeth
表2相邻锯齿间过渡急促的圆锯片的检测参数Table 2 Detection parameters of circular saw blades with rapid transition between adjacent teeth
改进的Harris方法运行时间最短,不到经典Harris方法的20%;本发明方法运行时间也不到经典Harris方法的35%。本发明方法刀尖点提取效果最好;经典Harris方法对邻锯齿间过渡平缓的的圆锯片刀尖点提取效果好,但对相邻锯齿间过渡急促的圆锯片,它提取的角点不仅包括刀尖点,还包含了相邻锯齿间的齿根点;改进的Harris方法提取的角点存在严重的聚簇现象,检测效果最差。可见,本发明方法在圆锯片磨损检测应用中更有效。The running time of the improved Harris method is the shortest, less than 20% of the classic Harris method; the running time of the method of the present invention is also less than 35% of the classic Harris method. The method of the present invention has the best effect of extracting the tip point; the classic Harris method has a good effect on extracting the tip point of the circular saw blade with a gentle transition between adjacent saw teeth, but the corner point extracted by the method is good for the circular saw blade with a rapid transition between adjacent saw teeth. It includes not only the tip point, but also the root point between adjacent saw teeth; the corner points extracted by the improved Harris method have serious clustering phenomenon, and the detection effect is the worst. It can be seen that the method of the present invention is more effective in the application of circular saw blade wear detection.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510559853.3A CN105184792B (en) | 2015-09-06 | 2015-09-06 | A kind of saw blade wear extent On-line Measuring Method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510559853.3A CN105184792B (en) | 2015-09-06 | 2015-09-06 | A kind of saw blade wear extent On-line Measuring Method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN105184792A true CN105184792A (en) | 2015-12-23 |
| CN105184792B CN105184792B (en) | 2018-01-30 |
Family
ID=54906845
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510559853.3A Expired - Fee Related CN105184792B (en) | 2015-09-06 | 2015-09-06 | A kind of saw blade wear extent On-line Measuring Method |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN105184792B (en) |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106815831A (en) * | 2016-12-21 | 2017-06-09 | 深圳增强现实技术有限公司 | The detection method and device of a kind of steel rope abrasion |
| CN111754461A (en) * | 2020-05-28 | 2020-10-09 | 江苏理工学院 | Method and device for locating image character area of semiconductor chip |
| CN113269766A (en) * | 2021-06-07 | 2021-08-17 | 中铁工程装备集团有限公司 | Hob abrasion detection method, hob abrasion detection device, hob abrasion detection equipment and readable storage medium |
| WO2021169638A1 (en) * | 2020-02-26 | 2021-09-02 | 长安大学 | Wear pattern angle automatic detection method for dual neighborhoods |
| CN116713812A (en) * | 2023-06-13 | 2023-09-08 | 江苏科技大学 | Vision-based end mill flank wear detection method and its image acquisition device |
| CN117124139A (en) * | 2023-10-26 | 2023-11-28 | 合肥亚明汽车部件有限公司 | A visual detection method for intelligent machine tool tool wear |
| CN118154595A (en) * | 2024-05-10 | 2024-06-07 | 陕西正鑫工程材料股份有限公司 | A visual inspection method and system for high-speed rail hanging fence accessories |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101071455A (en) * | 2006-05-10 | 2007-11-14 | 航伟科技股份有限公司 | Human body image automatic normalization method |
| CN103530851A (en) * | 2013-10-11 | 2014-01-22 | 深圳市掌网立体时代视讯技术有限公司 | Method and device for eliminating edge sawtooth of digital painting and calligraphy chirography |
| CN103942552A (en) * | 2014-02-11 | 2014-07-23 | 北京大学 | Character image vectorization method and system based on framework instruction |
| CN104853064A (en) * | 2015-04-10 | 2015-08-19 | 海视英科光电(苏州)有限公司 | Electronic image-stabilizing method based on infrared thermal imager |
-
2015
- 2015-09-06 CN CN201510559853.3A patent/CN105184792B/en not_active Expired - Fee Related
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101071455A (en) * | 2006-05-10 | 2007-11-14 | 航伟科技股份有限公司 | Human body image automatic normalization method |
| CN103530851A (en) * | 2013-10-11 | 2014-01-22 | 深圳市掌网立体时代视讯技术有限公司 | Method and device for eliminating edge sawtooth of digital painting and calligraphy chirography |
| CN103942552A (en) * | 2014-02-11 | 2014-07-23 | 北京大学 | Character image vectorization method and system based on framework instruction |
| CN104853064A (en) * | 2015-04-10 | 2015-08-19 | 海视英科光电(苏州)有限公司 | Electronic image-stabilizing method based on infrared thermal imager |
Non-Patent Citations (5)
| Title |
|---|
| EDWARD ROSTEN 等: "Machine Learning for High-Speed Corner Detection", 《COMPUTER VISION》 * |
| 何海清、黄声享: "改进的Harris亚像素角点快速定位", 《中国图象图形学报》 * |
| 吴倩: "玻镁板材高速切割机关键技术的研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
| 王崴 等: "一种改进的Harris角点提取算法", 《光学精密工程》 * |
| 齐俊 等: "一种改进的Harris角点检测算法", 《北京印刷学院学报》 * |
Cited By (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106815831A (en) * | 2016-12-21 | 2017-06-09 | 深圳增强现实技术有限公司 | The detection method and device of a kind of steel rope abrasion |
| CN106815831B (en) * | 2016-12-21 | 2020-04-10 | 南昌青橙视界科技有限公司 | Method and device for detecting abrasion of steel wire rope |
| WO2021169638A1 (en) * | 2020-02-26 | 2021-09-02 | 长安大学 | Wear pattern angle automatic detection method for dual neighborhoods |
| US12322080B2 (en) | 2020-02-26 | 2025-06-03 | Chang'an University | Dual-neighborhood wear angle automatic detection method |
| CN111754461A (en) * | 2020-05-28 | 2020-10-09 | 江苏理工学院 | Method and device for locating image character area of semiconductor chip |
| CN111754461B (en) * | 2020-05-28 | 2024-03-01 | 江苏理工学院 | Positioning method and device for semiconductor chip image character area |
| CN113269766A (en) * | 2021-06-07 | 2021-08-17 | 中铁工程装备集团有限公司 | Hob abrasion detection method, hob abrasion detection device, hob abrasion detection equipment and readable storage medium |
| CN116713812A (en) * | 2023-06-13 | 2023-09-08 | 江苏科技大学 | Vision-based end mill flank wear detection method and its image acquisition device |
| CN117124139A (en) * | 2023-10-26 | 2023-11-28 | 合肥亚明汽车部件有限公司 | A visual detection method for intelligent machine tool tool wear |
| CN117124139B (en) * | 2023-10-26 | 2024-01-09 | 合肥亚明汽车部件有限公司 | Visual detection method for intelligent machine tool cutter abrasion |
| CN118154595A (en) * | 2024-05-10 | 2024-06-07 | 陕西正鑫工程材料股份有限公司 | A visual inspection method and system for high-speed rail hanging fence accessories |
| CN118154595B (en) * | 2024-05-10 | 2024-07-05 | 陕西正鑫工程材料股份有限公司 | A visual inspection method and system for high-speed rail hanging fence accessories |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105184792B (en) | 2018-01-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN105184792B (en) | A kind of saw blade wear extent On-line Measuring Method | |
| CN109115800B (en) | Method for rapidly detecting burrs of product and accurately measuring length | |
| CN103292701B (en) | The online dimension measurement method of accurate device based on machine vision | |
| CN102496161B (en) | Method for extracting contour of image of printed circuit board (PCB) | |
| CN105203025B (en) | Saw blade wear extent On-line Measuring Method based on machine vision | |
| CN103499303B (en) | A kind of wool fineness method for automatic measurement | |
| CN105865344A (en) | Workpiece dimension measuring method and device based on machine vision | |
| CN104237121B (en) | A kind of motility of sperm method for testing performance | |
| CN110111303A (en) | A kind of large-scale carrier strip tearing intelligent fault detection method based on dynamic image | |
| CN105067638A (en) | Tire fetal-membrane surface character defect detection method based on machine vision | |
| CN102799867A (en) | Meter pointer angle identification method based on image processing | |
| CN107796826B (en) | Detection method for broken teeth of micro-duplex gears based on tooth center distance curve analysis | |
| CN105675626A (en) | Character defect detecting method of tire mold | |
| CN106651828A (en) | Product dimension sub-pixel measurement method under industrial microscale motion blurred imaging condition | |
| CN106934800A (en) | A kind of metal plate and belt detection method of surface flaw and device based on YOLO9000 networks | |
| CN111476792B (en) | A Method for Extracting the Image Profile of Strip Steel | |
| CN104515479A (en) | Flat shape measurement system and method for medium and heavy plates | |
| CN108802051A (en) | A kind of flexibility IC substrate straight path bubbles and folding line defect detecting system and method | |
| CN104647893A (en) | Overprinting error detection method based on cross line | |
| CN114757927A (en) | Part surface burr detection method based on machine vision | |
| CN106989672A (en) | A kind of workpiece measuring based on machine vision | |
| Lin et al. | A new prediction method for edge detection based on human visual feature | |
| CN103337067B (en) | The visible detection method of single needle scan-type screw measurement instrument probe X-axis rotating deviation | |
| Hong et al. | Sub-pixel extraction of laser stripe in complex background | |
| CN108765365A (en) | A kind of rotor winding image qualification detection method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20191203 Address after: 315040 Zhejiang city of Ningbo province high tech Zone Juxian 587 Lane Road No. 15 Building 2 building 033 17-1 Patentee after: CHINA E-TECH (NINGBO) MARITIME ELECTRONICS RESEARCH INSTITUTE Co.,Ltd. Address before: Meng Xi Road 212003 Zhenjiang city of Jiangsu province Jingkou District No. 2 Patentee before: Jiangsu University of Science and Technology |
|
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180130 |