A machine vision measurement method and its application in bearing workpiece measurement

Through the two-dimensional median filtering method and least squares fitting technology, the problem of manual measurement time-consuming and insufficient accuracy in bearing inspection is solved, and high-precision dimensional measurement of bearing workpieces is achieved, which is suitable for large-volume assembly line production.

CN114359366BActive Publication Date: 2024-10-01LUOYANG NORMAL UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210013217.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-07
Publication Date
2024-10-01
Estimated Expiration
2042-01-07

AI Technical Summary

Technical Problem

In bearing inspection, manual measurement is not only time-consuming but may damage the measurement tools. Existing machine vision inspection technology is difficult to meet the high-precision requirements of large-volume assembly line production.

Method used

The two-dimensional median filtering method is used to preprocess the image, extract edge information, establish a membership degree function, and fit the edge data through the least square method to obtain the dimensional parameters of the bearing workpiece to achieve high-precision measurement.

Benefits of technology

It achieves high-precision measurement of the inner and outer diameters of bearing workpieces, with a standard deviation of less than 0.1mm, and is suitable for mass assembly line production and inspection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure BDA0003459747720000061
    Figure BDA0003459747720000061
  • Figure BDA0003459747720000071
    Figure BDA0003459747720000071
  • Figure BDA0003459747720000072
    Figure BDA0003459747720000072
Patent Text Reader

Abstract

The present invention relates to the technical field of machine vision measurement, and discloses a machine vision measurement method, comprising: extracting edge information of a workpiece image to be measured to obtain an edge point set S0 of the image; determining a standard size of the workpiece to be measured and a value range of the size of the workpiece to be measured; establishing an edge data set S0 for evaluating the edge data set S0; 0i The membership function R0 of the degree of belonging to the value range of the workpiece size to be measured is taken as R0(s 0i )≥0 edge data s 0i Construct the size point set T0 of the workpiece to be measured; fit the size point set T0 of the workpiece to be measured to obtain the size parameters of the workpiece to be measured in pixels. This method has relatively high detection accuracy and can be applied to the size measurement of bearing workpieces required for mass production and detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of machine vision measurement, in particular to a machine vision measurement method and its application in bearing workpiece measurement. Background Art

[0002] Bearings are vital parts in the machinery industry. As standard parts, bearings have very high requirements for dimensional accuracy, and all bearings produced by processing need to be tested. Manual testing is not only time-consuming, but also the measuring tools may damage the bearing surface. Machine vision inspection technology has outstanding advantages such as non-contact, fast speed, appropriate accuracy, and strong on-site anti-interference ability, which can well meet the needs of bearing inspection; among them, machine vision inspection refers to the process of judging the degree to which one or more characteristics of a product deviate from the standard requirements through machine vision-based methods in the field of industrial inspection to determine whether the product quality is qualified or not. Summary of the invention

[0003] 1. Technical issues to be solved

[0004] The present invention aims to provide a machine vision measurement method, which can be applied to the measurement of bearing workpiece dimensions required for mass production and inspection.

[0005] (II) Technical solution

[0006] To achieve the above object, the present invention provides the following technical solutions:

[0007] A machine vision measurement method comprises the following steps:

[0008] Step 1: First, the collected image of the workpiece to be tested is preprocessed using a two-dimensional median filter method, and then the edge information of the image is extracted to obtain the edge point set S0 = {s 01 , ..., s 0i , ..., s 0n};

[0009] Step 2: determine the standard size D0 of the workpiece to be measured, let ΔD0 be the allowable size deviation value, and obtain the value range of the size of the workpiece to be measured as (D0-ΔD0, D0+ΔD0);

[0010] Step 3: Establish edge data s for evaluating the edge point set S0 0i The membership degree function R0 of the degree of belonging to the value range of the workpiece size to be measured;

[0011] When 0i When ≤D0 / 2, R0(s 0i )=[s 0i -(D0-ΔD0)] / ΔD0;

[0012] When 0i >D0 / 2, R0(s 0i )=[(D0+ΔD0)-s 0i ] / ΔD0;

[0013] Take R0(s 0i )≥0 edge data s 0i The size point set T0 of the workpiece to be measured is formed;

[0014] Step 4: Use the least square method to fit the size point set T0 of the workpiece to be measured, obtain the size parameters of the workpiece to be measured in pixels, and then obtain the size of the workpiece to be measured.

[0015] Preferably, the machine vision measurement method can be applied to bearing workpiece measurement.

[0016] Preferably, the machine vision measurement method applied to the bearing workpiece measurement includes the steps of: determining that the standard inner diameter size of the shaft 6 workpiece is D1, the standard outer diameter size is D2, and D2>D1, letting ΔD1 be the allowable inner diameter size deviation value, and ΔD2 be the allowable outer diameter size deviation value, it can be obtained that the allowable value range of the inner diameter size of the bearing workpiece is (D1-ΔD1, D1+ΔD1), and the allowable value range of the outer diameter size of the bearing workpiece is (D2-ΔD2, D2+ΔD2).

[0017] Preferably, the machine vision measurement method applied to bearing workpiece measurement comprises the steps of: establishing a method for evaluating the edge point set S g Edge data in gi The membership function R1 of the degree of belonging to the value range of the standard inner diameter size of the bearing workpiece is established; the evaluation point set S g Edge data in gi The membership degree function R2 of the degree of belonging to the value range of the standard outer diameter size of the bearing workpiece;

[0018] When gi ≤D1 / 2, R1(s gi )=[s gi -(D1-ΔD1)] / ΔD1;

[0019] When gi >D1 / 2 and s gi <(D2-ΔD2) / 2, R1(s gi )=[(D1+ΔD1)-s gi ] / ΔD1;

[0020] Take R1(s gi )≥0 edge data sgi The point set T1 constituting the inner diameter dimension of the bearing workpiece;

[0021] When (D1+ΔD1) / 2≤s gi ≤D2 / 2, R2(s gi )=[s gi -(D2-ΔD2)] / ΔD2;

[0022] When gi >D2 / 2, R2(s gi )=[(D2+ΔD2)-s gi ] / ΔD2;

[0023] Take R2(s gi )≥0 edge data s gi The outer diameter dimension point set T2 constitutes the bearing workpiece.

[0024] (III) Beneficial technical effects

[0025] Compared with the prior art, the present invention has the following beneficial technical effects:

[0026] The present invention constructs a method for evaluating the edge data s in the edge point set S0. 0i The membership function R0 of the degree of belonging to the value range of the workpiece size to be measured is taken as R0(s 0i )≥0 edge data s 0i Constructing a size point set T0 of the workpiece to be measured, fitting the size point set T0 of the workpiece to be measured, obtaining size parameters of the workpiece to be measured in pixels, and then realizing the measurement of the size of the workpiece to be measured;

[0027] Compared with the manual measurement method, the machine measurement method of the present invention has a smaller standard deviation value for the measurement of the inner diameter or the outer diameter of the bearing workpiece than the manual measurement method, and the standard deviation of the inner and outer diameters of the bearing workpieces detected is less than 0.1mm. This shows that the present invention has relatively high detection accuracy and can be used for the measurement of bearing workpiece dimensions required for mass production and detection. DETAILED DESCRIPTION

[0028] A machine vision measurement method comprises the following steps:

[0029] Step 1: First, the collected image of the workpiece to be tested is preprocessed using a two-dimensional median filter method, and then the edge information of the image is extracted to obtain the edge point set S0 = {s 01 , ..., s 0i ,...,s 0n};

[0030] Among them, for a pixel point (x, y) in the digital image f(x, y), the median of the grayscale values ​​of the point and all the neighboring pixels around it is taken as the grayscale value g(x, y) of the point after processing;

[0031] Where g(x,y)=med{f(xk,yl),k,I∈W}, where W is a two-dimensional template;

[0032] Step 2: determine the standard size D0 of the workpiece to be measured, let ΔD0 be the allowable size deviation value, and obtain the value range of the size of the workpiece to be measured as (D0-ΔD0, D0+ΔD0);

[0033] Step 3: Establish edge data s for evaluating the edge point set S0 0i The membership degree function R0 of the degree of belonging to the value range of the workpiece size to be measured;

[0034] When 0i When ≤D0 / 2, R0(s 0i )=[s 0i -(D0-ΔD0)] / ΔD0;

[0035] When 0i >D0 / 2, R0(s 0i )=[(D0+ΔD0)-s 0i ] / ΔD0;

[0036] Take R0(s 0i )≥0 edge data s 0i The size point set T0 of the workpiece to be measured is formed;

[0037] Step 4: Fit the size point set T0 of the workpiece to be measured using the least square method to obtain the size parameters of the workpiece to be measured in pixels, and then obtain the size of the workpiece to be measured;

[0038] A machine vision measurement method applied to bearing workpiece measurement comprises the following steps:

[0039] Step 1: First, the collected bearing workpiece image is preprocessed using the two-dimensional median filtering method, and then the edge information of the image is extracted to obtain the edge point set S of the bearing workpiece. g ={s g1 , ..., s gi , ..., s gn};

[0040] Step 2: Determine that the standard inner diameter size of the bearing workpiece is D1, the standard outer diameter size is D2, and D2>D1, let ΔD1 be the allowable inner diameter size deviation value, ΔD2 be the allowable outer diameter size deviation value, and it can be obtained that the allowable value range of the inner diameter size of the bearing workpiece is (D1-ΔD1, D1+ΔD1), and the allowable value range of the outer diameter size of the bearing workpiece is (D2-ΔD2, D2+ΔD2);

[0041] Step 3: Establish a set of edge points S for evaluating the edge points g Edge data in gi The membership function R1 of the degree of belonging to the value range of the standard inner diameter size of the bearing workpiece is established; the evaluation point set S g Edge data in gi The membership degree function R2 of the degree of belonging to the value range of the standard outer diameter size of the bearing workpiece;

[0042] When gi ≤D1 / 2, R1(s gi )=[s gi -(D1-ΔD1)] / ΔD1;

[0043] When gi >D1 / 2 and s gi <(D2-ΔD2) / 2, R1(s gi )=[(D1+ΔD1)-s gi ] / ΔD1;

[0044] Take R1(s gi )≥0 edge data s gi The point set T1 constituting the inner diameter dimension of the bearing workpiece;

[0045] When (D1+ΔD1) / 2≤s gi ≤D2 / 2, R2(s gi )=[s gi -(D2-ΔD2)] / ΔD2;

[0046] When gi >D2 / 2, R2(s gi )=[(D2+ΔD2)-s gi ] / ΔD2;

[0047] Take R2(s gi )≥0 edge data s gi The point set T2 constituting the outer diameter dimension of the bearing workpiece;

[0048] Step 4: Fit the inner diameter size point set T1 of the bearing workpiece using the least squares method to obtain the inner diameter circle parameters of the bearing workpiece in pixels, and then obtain the inner diameter size of the bearing workpiece; fit the outer diameter size point set T2 of the bearing workpiece using the least squares method to obtain the outer diameter circle parameters of the bearing workpiece in pixels, and then obtain the outer diameter size of the bearing workpiece;

[0049] In order to verify the feasibility of the above-mentioned machine vision measurement method applied to the measurement of bearing workpieces, a simulation experiment based on machine vision measurement was carried out on the software platform for the collected standard bearing workpiece images with an outer diameter of 32 mm and an inner diameter of 22.76 mm, and the size of the bearing workpiece in pixels was determined, and then the inner diameter and outer diameter of the bearing workpiece were obtained. At the same time, the machine measurement method of the present invention was compared with the manual detection method, that is, the manual measurement was performed by using a vernier caliper, wherein the accuracy of the vernier caliper is 0.02 mm;

[0050] This paper uses these two detection methods to measure the bearing workpiece and intercepts five sets of experimental data. The experimental results are shown in Tables 1-4 below;

[0051] Table 1 The inner diameter measurement results of the bearing workpiece by the machine measurement method of the present invention (unit: mm)

[0052]

[0053]

[0054] Table 2 The outer diameter measurement results of the bearing workpiece by the machine measurement method of the present invention (unit: mm)

[0055]

[0056] Table 3 Inner diameter measurement results of bearing workpieces by manual measurement method (unit: mm)

[0057]

[0058] Table 4 Measurement results of outer diameter of bearing workpiece by manual measurement method (unit: mm)

[0059]

[0060]

Claims

1. A machine vision measurement method, It is characterized in that The following steps are involved: Step 1: First, the collected image of the workpiece to be tested is preprocessed using the two-dimensional median filtering method, and then the edge information of the image is extracted to obtain the edge point set S of the image. 0 ={s 01 , ..., s 0i , ..., s 0n }; Step 2: Determine the standard size D of the workpiece to be measured 0 , let ΔD 0 is the allowable size deviation value, and the value range of the workpiece size to be measured is (D 0 -ΔD 0 , D 0 +ΔD 0 ); Step 3: Establish a set of edge points S for evaluating the edge points 0 Edge data in 0i The membership degree function R of the degree of belonging to the value range of the workpiece size to be measured 0 ; When 0i ≤D 0 / 2, R 0 (s 0i )=[s 0i -(D 0 -ΔD 0 )] / ΔD 0 ; When 0i >D 0 / 2, R 0 (s 0i )=[(D 0 +ΔD 0 )-s 0i ] / ΔD 0 ; Take R 0 (s 0i )≥0 edge data s 0i The size point set T of the workpiece to be measured 0 ; Step 4: Use the least squares method to find the size point set T of the workpiece to be measured. 0 Fitting is performed to obtain the size parameters of the workpiece to be measured in pixels, and then the size of the workpiece to be measured is obtained.

2. A machine vision measurement method according to claim 1, It is characterized in that The machine vision measurement method can be applied to bearing workpiece measurement.

3. A machine vision measurement method according to claim 2, It is characterized in that The machine vision measurement method applied to the bearing workpiece measurement comprises the steps of: determining the standard inner diameter size of the bearing workpiece as D 1 , standard outer diameter size is D 2 , let ΔD 1 is the allowable inner diameter size deviation value, ΔD 2 is the allowable outer diameter deviation value, and the allowable value range of the inner diameter size of the bearing workpiece is (D 1 -ΔD 1 , D 1 +ΔD 1 The allowable range of the outer diameter of the bearing workpiece is (D 2 -ΔD 2 , D 2 +ΔD 2 ).

4. A machine vision measurement method according to claim 2, It is characterized in that The machine vision measurement method applied to bearing workpiece measurement comprises the steps of: establishing a method for evaluating the edge point set S g Edge data in gi The membership degree function R of the value range between the standard inner diameter size of the bearing workpiece 1 ; Establish a set of evaluation points S g Edge data in gi The membership degree function R of the value range between the standard outer diameter size of the bearing workpiece and the degree of belonging 2 ; When gi ≤D 1 / 2, R 1 (s gi )=[s gi -(D 1 -ΔD 1 )] / ΔD 1 ; When gi >D 1 / 2 and s gi <(D 2 -ΔD 2 ) / 2, R 1 (s gi )=[(D 1 +ΔD 1 )-s gi ] / ΔD 1 ; Take R 1 (s gi )≥0 edge data s gi The point set T constituting the inner diameter dimension of the bearing workpiece 1 ; When (D 1 + ΔD 1 ) / 2 ≤ s gi ≤ D 2 / 2, R 2 (s gi ) = [s gi - (D 2 - ΔD 2 )] / ΔD 2 ; When gi >D 2 / 2, R 2 (s gi )=[(D 2 +ΔD 2 )-s gi ] / ΔD 2 ; Take R 2 (s gi )≥0 edge data s gi The point set T constituting the outer diameter dimension of the bearing workpiece 2 .