A fully automatic image measuring instrument detection system

By constructing a generalized regression neural network model, the problem of the nonlinear relationship between image coordinates and actual coordinates in fully automatic image measuring instruments that is difficult to quantify is solved, efficient image measurement correction and judgment is achieved, and the accuracy and efficiency of calibration are improved.

CN117685879BActive Publication Date: 2024-08-30ZHONGTONG WEIYI TECH SERVICE CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202311614699.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-29
Publication Date
2024-08-30
Estimated Expiration
2043-11-29

AI Technical Summary

Technical Problem

The existing calibration method of fully automatic image measuring instruments has low calibration accuracy and efficiency due to the difficulty in quantifying the nonlinear relationship between image coordinates and actual coordinates by calculating error factors.

Method used

The generalized regression neural network model is used to model the relationship between the image coordinates and the measurement error of the calibration point. By selecting key nodes and eliminating points with a measurement error of 0, a non-parametric relationship between the image coordinates and the actual coordinates is constructed to achieve efficient Correction and judgment.

Benefits of technology

It improves the accuracy and efficiency of calibration, can effectively correct the image coordinates of the item to be measured, reduces the sample size requirement, and improves the convergence speed of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117685879B
    Figure CN117685879B
Patent Text Reader

Abstract

The present invention relates to a fully automatic image measuring instrument detection system, including a calibration module, a detection module and a determination module, belonging to the technical field of image measuring instruments, and measuring the image coordinates of key nodes of a standard sample, calculating the measurement error between the image coordinates and the actual coordinates, and constructing a generalized regression neural network model to quantify the nonlinear relationship between the image coordinates and the measurement error, so as to realize the image coordinate correction of the object to be measured. The present invention solves the problem in the prior art that the nonlinear relationship between the position of the calibration point on the image and the error of its actual position is difficult to quantify due to the calculation error factor belonging to the parameter mode, resulting in inaccurate calibration results, and uses the advantages of the generalized regression neural network model to process a small number of samples, and solves the problem of low calibration efficiency due to the need to measure a large number of calibration points to obtain sufficient samples for fitting calculation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of image measuring instruments and relates to a full-automatic image measuring instrument detection system. Background Art

[0002] The fully automatic image measuring instrument can use computer vision and digital image processing technology to perform high-speed, high-precision, large-scale measurement and inspection of target objects. It is one of the most advanced measurement technologies currently available. It inherits the excellent motion accuracy and motion control performance of digital instruments, integrates the design ingenuity of machine software, and is one of the most cutting-edge optical size inspection equipment available today.

[0003] Objects in images captured by image measuring instruments may have certain deformation or distortion, so calibration is usually required before measurement. Most of the current calibration methods use the method of calculating error factors to calibrate image measuring instruments. However, since the calculation of error factors is a parameter method, it is difficult to quantify the nonlinear relationship between the position of the calibration point on the image and its actual position error, and a large number of calibration points need to be measured to obtain enough samples for fitting calculation, resulting in reduced calibration accuracy and efficiency. Summary of the invention

[0004] In order to solve the problems existing in the above-mentioned prior art, the present invention provides a full-automatic image measuring instrument detection system, which calibrates the full-automatic image measuring instrument by constructing a generalized regression neural network (GRNN) model between the image coordinates of the key calibration points of the standard sample and their measurement errors, thereby achieving effective correction of the object to be tested, and then using image overlap comparison to determine whether the object to be tested is qualified or not. The present invention is suitable for detecting products of fixed specifications using an image measuring instrument.

[0005] The purpose of the present invention can be achieved through the following technical solutions:

[0006] A fully automatic image measuring instrument detection system includes a calibration module, a detection module and a determination module, wherein:

[0007] The calibration module is used to calibrate the fully automatic image measuring instrument using a calibration method;

[0008] The detection module includes a measurement module and a correction module; the measurement module is used to measure and obtain the image coordinates of the object to be detected; the correction module is used to correct the image coordinates of the object to be detected according to the error between the image coordinates determined by the calibration module and the actual coordinates to obtain the actual coordinates of the object to be detected;

[0009] The determination module is used to calculate the determination coefficient between the actual coordinates of the object to be tested and the standard sample, and determine whether the object to be tested meets the qualified conditions.

[0010] Furthermore, in the calibration module, the calibration method comprises the following steps:

[0011] S1. Calibration point selection: Select the key nodes of the standard sample as calibration points, and use a fully automatic image measuring instrument to measure the image coordinates of the calibration points;

[0012] S2, measurement error calculation: by comparing the image coordinates of the calibration points with the actual coordinates, the measurement error is calculated;

[0013] S3, invalid value elimination: eliminate the calibration points with measurement error of 0;

[0014] S4. Construct a generalized regression neural network model to quantify the relationship between the image coordinates of the calibration points and their corresponding measurement errors.

[0015] Furthermore, in step S1, the key nodes of the standard sample include edge points of the standard sample's structural shape, nodes that are prone to distortion and deformation, connection points between different components, and endpoints of the structural shape.

[0016] Furthermore, in step S2, the measurement error is calculated by subtracting the actual coordinates of the calibration point on the x-axis, y-axis and z-axis from the image coordinates of the calibration point on the x-axis, y-axis and z-axis.

[0017] Further, in step S3, the measurement error is 0, specifically, the measurement errors between the image coordinates of the calibration point and the actual coordinates on the x-axis, y-axis and z-axis are all 0.

[0018] Furthermore, in step S4, constructing a generalized regression neural network comprises the following steps:

[0019] S41. Model structure determination: Determine the structure of the model neurons and the transmission method between them;

[0020] S42, model parameter adjustment: set the step size of the smoothing factor, calculate the AIC values ​​of models with different step sizes, and determine the smoothing factor corresponding to the model with the smallest AIC value as the optimal smoothing factor.

[0021] Further, in step S41, the model neuron includes an input layer, a pattern layer, a summation layer and an output layer, the input layer is used to transmit the input vector to the pattern layer, and the number of input layers is equal to the number of samples of the input vector; the pattern layer is used to process the input data using a Gaussian function and transmit it to the summation layer; the summation layer is used to sum the pattern layer neurons, including the summation of neuron outputs and the weighted summation of output vectors; the output layer is used to use the output of the summation layer to obtain an estimated output result; the input vector is the coordinate data of the calibration point, and the output vector is the measurement error of the calibration point coordinates.

[0022] Furthermore, in the pattern layer, the Gaussian function is calculated as follows:

[0023]

[0024] In the formula, p i represents the neuron output of the pattern layer of the i-th input layer; X represents the network input vector; X i represents the learning sample corresponding to the i-th input layer neuron; σ represents the smoothing factor.

[0025] Furthermore, in the summation layer, the neuron outputs are summed, and the calculation formula is:

[0026]

[0027] In the formula, S D represents the sum of the outputs of the neurons in the summation layer; p i represents the neuron output of the pattern layer of the i-th input layer; n is the number of samples;

[0028] The weighted sum of the output vectors is calculated as follows:

[0029]

[0030] In the formula, S Nj represents the weighted sum of the output vectors of the jth summation layer, j = 1, 2, ..., k, k is the number of summation layers; y ij represents the output vector of the j-th summation layer.

[0031] Furthermore, in the output layer, the output of the summation layer is used to obtain an estimated output result, and the calculation formula of the estimated output result is as follows:

[0032]

[0033] In the formula, S Nj represents the weighted sum of the output vectors of the jth summation layer, j = 1, 2, ..., k, k is the number of summation layers; S D represents the sum of the outputs of the neurons in the summation layer; y j Represents the estimated output result of the j-th summation layer.

[0034] Furthermore, in the determination module, the determination coefficient is calculated as follows:

[0035]

[0036] In the formula, R 2 is the coefficient of determination; y i is the actual coordinate of the object to be measured; z i is the image coordinate of the object to be measured; is the actual coordinate average of the object to be tested; n is the number of samples.

[0037] The beneficial effects of the present invention are:

[0038] (1) By constructing a generalized regression neural network model, the relationship between the image coordinates and the actual coordinate measurement errors is quantified, which solves the problem in the prior art that the error factor is calculated in a parameter manner, making it difficult to quantify the nonlinear relationship between the position of the calibration point on the image and its actual position error, resulting in inaccurate calibration results;

[0039] (2) The generalized regression neural network has the advantage of processing small sample sizes. By selecting the key nodes of the standard sample as calibration points and eliminating the calibration points with a measurement error of 0, the sample size required for modeling is reduced, the convergence speed of the model is accelerated, and the problem of low calibration efficiency in the prior art due to the need to measure a large number of calibration points to obtain sufficient samples for fitting calculations is solved. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to facilitate understanding by those skilled in the art, the present invention is further described below with reference to the accompanying drawings.

[0041] Figure 1 The figure is a structural diagram of a fully automatic image measuring instrument detection system in the present invention. DETAILED DESCRIPTION

[0042] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the specific implementation mode, structure, characteristics and effects of the present invention are described in detail below in combination with the accompanying drawings and preferred embodiments.

[0043] See also Figure 1 The present invention provides a fully automatic image measuring instrument detection system, including a calibration module, a detection module and a determination module, wherein:

[0044] The calibration module is used to calibrate the fully automatic image measuring instrument using a calibration method;

[0045] The detection module includes a measurement module and a correction module; the measurement module is used to measure and obtain the image coordinates of the object to be detected; the correction module is used to correct the image coordinates of the object to be detected according to the error between the image coordinates determined by the calibration module and the actual coordinates to obtain the actual coordinates of the object to be detected;

[0046] The determination module is used to calculate the determination coefficient between the actual coordinates of the object to be tested and the standard sample, and determine whether the object to be tested meets the qualified conditions. When the determination coefficient is ≥0.99, the object to be tested is qualified.

[0047] Furthermore, in the calibration module, the calibration method comprises the following steps:

[0048] S1. Calibration point selection: Select the key nodes of the standard sample as calibration points, and use a fully automatic image measuring instrument to measure the image coordinates of the calibration points;

[0049] S2, measurement error calculation: by comparing the image coordinates of the calibration points with the actual coordinates, the measurement error is calculated;

[0050] S3, invalid value elimination: eliminate the calibration points with measurement error of 0;

[0051] S4. Construct a generalized regression neural network model to quantify the relationship between the image coordinates of the calibration points and their corresponding measurement errors.

[0052] In this embodiment, it is suitable for detecting products with the same specifications as the standard sample. In actual work, when the image measuring instrument measures an object, the point, line or surface of the image may be distorted or deformed, which is mainly caused by the deviation between the measured image coordinates and the actual coordinates. The relationship between the measured image coordinates and the measurement error is often more complicated, and it is difficult to quantify them using parameter methods. Therefore, in the embodiment of the present invention, a generalized regression neural network is used to quantify the nonlinear relationship between the two. The generalized regression neural network is a radial basis function (RBF) neural network based on non-parametric estimation, and its structure is very similar to that of the RBF neural network. In the process of network training, it is actually the process of determining the smoothing factor. When the sample data is small, its training effect is also very good, especially in terms of approximation ability and learning speed. It has a stronger advantage than the RBF neural network and the BP neural network, and finally can converge to the optimized regression surface with more sample aggregation. It is precisely because it has a strong local nonlinear approximation ability and a high degree of fault tolerance and robustness, and a fast convergence speed, so it can solve nonlinear problems well.

[0053] Furthermore, in step S1, the key nodes of the standard sample include edge points of the standard sample's structural shape, nodes that are prone to distortion and deformation, connection points between different components, and endpoints of the structural shape.

[0054] Furthermore, in step S2, the measurement error is calculated by subtracting the actual coordinates of the calibration point on the x-axis, y-axis and z-axis from the image coordinates of the calibration point on the x-axis, y-axis and z-axis.

[0055] Further, in step S3, the measurement error is 0, specifically, the measurement errors between the image coordinates of the calibration point and the actual coordinates on the x-axis, y-axis and z-axis are all 0.

[0056] The difference between this embodiment and the previous calibration method is that only the key nodes of the standard sample are selected at the calibration point, and the calibration points with a measurement error of 0 are eliminated. This is because when the measurement error is 0, it means that the image measuring instrument can accurately measure the coordinates, and introducing it into the model construction may lead to inaccurate model results. This process not only reduces the data sample size, but also makes full use of the advantages of generalized regression neural networks in processing small sample sizes, thereby improving the efficiency and accuracy of measurement error estimation.

[0057] Furthermore, in step S4, constructing a generalized regression neural network comprises the following steps:

[0058] S41. Determine the model structure: determine the number and connection mode of the model neurons;

[0059] S42, model parameter adjustment: set the step size of the smoothing factor, calculate the AIC values ​​of models with different step sizes, and determine the smoothing factor corresponding to the model with the smallest AIC value as the optimal smoothing factor.

[0060] Further, in step S41, the model neuron includes an input layer, a pattern layer, a summation layer and an output layer, the input layer is used to transmit the input vector to the pattern layer, and the number of input layers is equal to the number of samples of the input vector; the pattern layer is used to process the input data using a Gaussian function and transmit it to the summation layer; the summation layer is used to sum the pattern layer neurons, including the summation of neuron outputs and the weighted summation of output vectors; the output layer is used to use the output of the summation layer to obtain an estimated output result; the input vector is the coordinate data of the calibration point, and the output vector is the measurement error of the calibration point coordinates.

[0061] Furthermore, in the pattern layer, the Gaussian function is calculated as follows:

[0062]

[0063] In the formula, p i represents the neuron output of the pattern layer of the i-th input layer; X represents the network input vector; X i represents the learning sample corresponding to the i-th input layer neuron; σ represents the smoothing factor.

[0064] Furthermore, in the summation layer, the neuron outputs are summed, and the calculation formula is:

[0065]

[0066] In the formula, S D represents the sum of the outputs of the neurons in the summation layer; p i represents the neuron output of the pattern layer of the i-th input layer; n is the number of samples;

[0067] The weighted sum of the output vectors is calculated as follows:

[0068]

[0069] In the formula, S Nj represents the weighted sum of the output vectors of the jth summation layer, j = 1, 2, ..., k, k is the number of summation layers; y ij represents the output vector of the j-th summation layer.

[0070] Furthermore, in the output layer, the output of the summation layer is used to obtain an estimated output result, and the calculation formula of the estimated output result is as follows:

[0071]

[0072] In the formula, S Nj represents the weighted sum of the output vectors of the jth summation layer, j = 1, 2, ..., k, k is the number of summation layers; S D represents the sum of the outputs of the neurons in the summation layer; y j Represents the estimated output result of the j-th summation layer.

[0073] Furthermore, in the determination module, the determination coefficient is calculated as follows:

[0074]

[0075] In the formula, R 2 is the coefficient of determination; y i is the actual coordinate of the object to be measured; z i is the image coordinate of the object to be measured; is the actual coordinate average of the object to be tested; n is the number of samples.

[0076] The beneficial effects of the present invention are:

[0077] (1) By constructing a generalized regression neural network model, the relationship between the image coordinates and the actual coordinate measurement errors is quantified, which solves the problem in the prior art that the error factor is calculated in a parameter manner, making it difficult to quantify the nonlinear relationship between the position of the calibration point on the image and its actual position error, resulting in inaccurate calibration results;

[0078] (2) The generalized regression neural network has the advantage of processing small sample sizes. By selecting the key nodes of the standard sample as calibration points and eliminating the calibration points with a measurement error of 0, the sample size required for modeling is reduced, the convergence speed of the model is accelerated, and the problem of low calibration efficiency in the prior art due to the need to measure a large number of calibration points to obtain sufficient samples for fitting calculations is solved.

[0079] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment as above, it is not used to limit the present invention. Any technical personnel in this field can make some changes or modify the technical contents disclosed above into equivalent embodiments without departing from the scope of the technical solution of the present invention. However, any brief modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention are still within the scope of the technical solution of the present invention.

Claims

1. A fully automatic image measuring instrument detection system, characterized in that: It includes a calibration module, a detection module and a judgment module, wherein: The calibration module is used to calibrate the fully automatic image measuring instrument using a calibration method; The detection module includes a measurement module and a correction module; the measurement module is used to measure and obtain the image coordinates of the object to be detected; the correction module is used to correct the image coordinates of the object to be detected according to the error between the image coordinates determined by the calibration module and the actual coordinates to obtain the actual coordinates of the object to be detected; The determination module is used to calculate the determination coefficient between the actual coordinates of the object to be tested and the standard sample, and determine whether the object to be tested meets the qualified conditions; Wherein, the calibration module and the calibration method include the following steps: S1. Calibration point selection: Select the key nodes of the standard sample as calibration points, and use a fully automatic image measuring instrument to measure the image coordinates of the calibration points; S2, measurement error calculation: by comparing the image coordinates of the calibration points with the actual coordinates, the measurement error is calculated; S3, invalid value elimination: eliminate the calibration points with measurement error of 0; S4. Construct a generalized regression neural network model to quantify the relationship between the image coordinates of the calibration points and their corresponding measurement errors.

2. The fully automatic image measuring instrument detection system according to claim 1, characterized in that: In step S1, the key nodes of the standard sample include edge points of the standard sample's structural shape, nodes prone to distortion and deformation, connection points between different components, and endpoints of the structural shape.

3. The fully automatic image measuring instrument detection system according to claim 1, characterized in that: In step S2, the measurement error is calculated by subtracting the actual coordinates of the calibration point on the x-axis, y-axis and z-axis from the image coordinates of the calibration point on the x-axis, y-axis and z-axis.

4. The fully automatic image measuring instrument detection system according to claim 1, characterized in that: In step S3, the measurement error is 0, specifically, the measurement errors between the image coordinates of the calibration point and the actual coordinates on the x-axis, y-axis and z-axis are all 0.

5. The fully automatic image measuring instrument detection system according to claim 1, characterized in that: In step S4, the construction of a generalized regression neural network includes the following steps: S41. Model structure determination: Determine the structure of the model neurons and the transmission method between them; S42, model parameter adjustment: set the step size of the smoothing factor, calculate the AIC values ​​of models with different step sizes, and determine the smoothing factor corresponding to the model with the smallest AIC value as the optimal smoothing factor.

6. The fully automatic image measuring instrument detection system according to claim 5 is characterized in that: In step S41, the model neuron includes an input layer, a pattern layer, a summation layer and an output layer. The input layer is used to transmit the input vector to the pattern layer, and the number of input layers is equal to the number of samples of the input vector; the pattern layer is used to process the input data using a Gaussian function and transmit it to the summation layer; the summation layer is used to sum the pattern layer neurons, including the summation of neuron outputs and the weighted summation of output vectors; the output layer is used to use the output of the summation layer to obtain an estimated output result; the input vector is the coordinate data of the calibration point, and the output vector is the measurement error of the calibration point coordinates.

7. The fully automatic image measuring instrument detection system according to claim 6 is characterized in that: In the pattern layer, the Gaussian function is calculated as follows: In the formula, p i represents the neuron output of the pattern layer of the i-th input layer; X represents the network input vector; X i represents the learning sample corresponding to the i-th input layer neuron; σ represents the smoothing factor.

8. The fully automatic image measuring instrument detection system according to claim 6 is characterized in that: In the summation layer, the neuron outputs are summed, and the calculation formula is: In the formula, S D represents the sum of the outputs of the neurons in the summation layer; p i represents the neuron output of the pattern layer of the i-th input layer; n is the number of samples; The weighted sum of the output vectors is calculated as follows: In the formula, S Nj represents the weighted sum of the output vectors of the jth summation layer, j = 1, 2, ..., k, k is the number of summation layers; y ij represents the output vector of the j-th summation layer.

9. The fully automatic image measuring instrument detection system according to claim 6, characterized in that: In the output layer, the output of the summation layer is used to obtain an estimated output result, and the calculation formula of the estimated output result is as follows: In the formula, S Nj represents the weighted sum of the output vectors of the jth summation layer, j = 1, 2, ..., k, k is the number of summation layers; S D represents the sum of the outputs of the neurons in the summation layer; y j Represents the estimated output result of the j-th summation layer.

10. The fully automatic image measuring instrument detection system according to claim 1, characterized in that: In the determination module, the determination coefficient is calculated as follows: In the formula, R 2 is the coefficient of determination; y i is the actual coordinate of the object to be measured; z i is the image coordinate of the object to be measured; is the actual coordinate average of the object to be tested; n is the number of samples.

Citation Information

Patent Citations

  • Space error compensation method for flexible arm coordinate measuring machine

    CN109813225A

  • Camera calibration method based on RBF neural network

    CN111383281A

  • High-precision geological crack monitoring method and system based on unmanned aerial vehicle image

    CN115597516A

  • Observation method for two-dimensional river mixing using RGB image acquired by the unmanned aerial vehicle

    KR102193108B1