_{1}

Sub-pixel measurement system can, to some extent, compensate the margin positioning error caused by hardware limitation. A kind of sub-pixel measurement system of circle outer diameter based on Zernike moment is established. Sub-pixel edge detection algorithm of circular workpiece based on Zernike moment is proposed and further positioning of edge points in the gradient direction by the adoption of quadratic polynomial interpolation is conducted. Finally, circle outer diameter measurements of sub-pixel accuracy are obtained by using least square method fitting the edge points. The experiment results show that the measurement accuracy of system is high, which meets the requirement of high accuracy measurement of circular workpiece.

The measurement system based on machine vision is characterized by non-contact, high accuracy and high degree of automation [

Traditional edge detection methods, such as Sobel algorithm [

The Zernike moment of 2-D continuous function f(x,y) is defined in equation (1).

In the discrete images, A_{nm} can be represented in Equation (2).

In order to get the Zernike moment A_{nm} of a certain point in the image, it’s required to map its neighborhood point into the unit circle. The polar form of the integral kernel function V_{nm}(ρ,θ) is represented in Equation (3).

When the circular object to be detected is intersecting with the circular detection area, there is only one tangent line pass the point on the edge of the circular object in the intersection area. The mapping relationship between the edge parameters of the measured object and the edge point of pixel point can be established by using the tangent line. The ideal step model is shown in _{1} to be measured, tangent line L of a point on the edge of C_{1} and unit circle C_{2}. l is the vertical distance between tangent line L and the center of unit circle C_{2} and ϕ is the angle between vertical line l and x axis. Define a continuous ideal edge model on the unit circle, so the gray value of intersection area between unit circle and circle to be measured is h + k, and the gray value of other areas is h. The image coordinate system, coordinate system for the unit circle and pixel point of the center point of the unit circle are (x’o’y’), (xoy) and (x_{s},y_{s}) respectively.

After β is determined, 3 × 3 template that centered with p_{0}(x_{0},y_{0}) in ^{’}_{0} and P^{’’}_{0} that are adjacent to p_{0}(x_{0},y_{0}).

Sub-pixel edge points in gradient direction are extracted by combining Zernike moment orthogonal circle and quadratic polynomial interpolation.

Circle outer diameter sub-pixel measurement system based on Zernike moment is mainly composed of image acquisition, image sub-pixel edge detection and caliper tool measurement. The system assembly and system workflow are shown in

In order to verify the measurement accuracy of the system, three groups of circular workpieces are measured. The outer diameters are 15.002 mm, 19.997 mm and 25.002 mm respectively.

Edge detection algorithm based on Zernike moment is used to conduct sub-pixel edge extraction for circular workpieces. The process is divided into four steps as shown in

It can be seen from the effect of sub-pixel edge detection that the edge algorithm composed of red line has the precision of 0.1 - 0.2 pixels, which meets the requirements of sub-pixel precision measurement.

After the sub-pixel edge is extracted, the measuring tool caliper that packaged by least square method is used to measure the outer diameter of the circle in real time. The process is shown in

It can be seen from the measurement result that the real-time measured result of the outer diameter of the circular workpiece is 25.0024 mm, which is very close to 25.002 mm measured by micrometer. This measurement system is applied to measure three circular workpieces, and the actual measurement results and the measurement error comparison are shown in

It can be seen from the outer diameter measurement results of three workpieces and measurement error rate that circle outer diameter sub-pixel measurement system based on the Zernike moment can realize the dynamic measurement precision of plus or minus 0.02 mm. So the measuring accuracy is

high, which can satisfy the circular workpiece measurement requirements in actual production.

A kind of sub-pixel measurement system of circle outer diameter is proposed in this paper. In this system, the mapping relationship between edge points and edge parameters of circular object is established based on Zernike moment and the edge points of circle are extracted. Further positioning of extracted edge points in gradient direction is conducted by using quadratic polynomial interpolation. Least square method is taken to fit the edge points after the interpolation, thus the measurement results of the circular outer diameter of the sub-pixel accuracy are obtained. The system detection and measurement accuracy are verified through the image edge detection and measurement experiment. The experiment results show that the system’s circular edge sub-pixel positioning method has higher detection and positioning accuracy than the traditional operator, and the accuracy of measurement meets the requirement of high precision and real-time measurement.

Yang, S.K. (2018) Measurement System of Circler Diameter. Open Access Library Journal, 5: e4585. https://doi.org/10.4236/oalib.1104585