Skip to main content
Advertisement
Browse Subject Areas
?

Click through the PLOS taxonomy to find articles in your field.

For more information about PLOS Subject Areas, click here.

  • Loading metrics

Study of real-time parameter measurement of ring rolling pieces based on machine vision

  • Xiaoge Fu,

    Roles Formal analysis, Methodology, Writing – original draft

    Affiliation State Key Laboratory of Precision Blasting, Jianghan University, Wuhan, 430056, China

  • Han Li,

    Roles Software, Writing – review & editing

    Affiliation State Key Laboratory of Precision Blasting, Jianghan University, Wuhan, 430056, China

  • Zhijiang Zuo ,

    Roles Methodology, Supervision, Writing – review & editing

    zzjdfcy@163.com

    Affiliation State Key Laboratory of Precision Blasting, Jianghan University, Wuhan, 430056, China

  • Libo Pan

    Roles Validation, Writing – review & editing

    Affiliation State Key Laboratory of Precision Blasting, Jianghan University, Wuhan, 430056, China

Abstract

Real time parameter measurement cannot be carried out to dynamic ring parts during automation ring rolling processes so that rolling process parameters cannot be adjusted in time. Considering effects of shaping of ring rolling parts, a visual measurement platform was set up and a machine vision-based non-contact real -time measurement method was put forward. This article improves the subpixel level edge extraction algorithm to extract edge data information of circular rolling pieces. Based on the characteristics of circular rolling pieces, an RG-Hough transform method is proposed to fit the detected edge data information. The conversion relationship between pixel and actual sizes were determined in combination with the camera calibration to gain parameters of ring rolling parts. Measurements of ring parts (OD: 462.12mm; and ID: 315.53mm) were applied to verify the effectiveness of our method. Our measurement error is ±0.25mm and our average speed can be up to 104ms/frame. Our study can provide powerful technical supports for intelligent control of ring rolling pieces.

1 Introduction

Ring parts are very popular in mechanical devices such as bearing rings, aerospace cases, rockets and fans in petrochemicals, aerospace and aviation [1], ships, energy, vehicles and other industrial fields [2,3], which are usually required against impact, high temperature, corrosion and so on and whose quality also directly affects the overall level and reliability of major equipment. Thus, they are regarded as the prerequisite for development of advanced systems and one important factor of industry development and advanced levels for any country [4]. Rolling of ring parts is a continuous partially loaded molding of blank ring parts [5,6].

The rolling principle of ring parts is shown in Fig 1 [7], where a driving roller rotates continuously, a core roller feeds in a radial straight line and a cone roller rotates continuously for axial feeding so that the radial wall thickness and axial height of a ring part can fall while its diameter can continuously grow; thus, a continuous local plastic deformation can occur in its cross-section contour [8,9]. Measurement is performed during its rolling process to determine whether its design sizes can be met and control of its rolling process is necessarily required in the later rolling stage. The rolling equipment can be adjusted in time.

thumbnail
Fig 1. Basic rolling principle of ring parts.

1—Ring part; 2—Driving roller; 3—Guiding roller; 4—Core stick; and 5—Cone roller.

https://doi.org/10.1371/journal.pone.0298607.g001

There are two main existing methods of measuring the dimensions of rolled rings [10]. As for the former, contact measurement of pieces are primarily carried out and it is applicable to small batches of production and those cases with low requirements for measurement speed. Whereas, measurements are limited for ring rolling parts under high temperature so that its measurement efficiency can be relatively low and results may be in relatively poor accuracy. The measurement surface may be easily damaged and tools are also worn. Also, testing workers may be harmed to a certain extent. On the other hand, the latter primarily includes those conventional methods such as grating, electromagnetic, sound wave and laser measurements [11,12]. Zheng Lu et al. [13] obtained point cloud data by laser scanning, processed the point cloud data by multiple regression filtering algorithm, and measured the outer diameter of the ring. Shimizu S et al. [14] applied the industrial CT method to the high-precision measurement of elliptic shape. This method reconstructed the three-dimensional morphology of the elliptic mirror through tomography, and then fitted its shape parameters through advanced algorithms. Yucun Zhang et al. [15] scanned multiple angles by laser scanner, obtained complete radial cross-section data of the ring through stitching, and converted the data into a complete three-dimensional ring model. However, these methods are prone to interference from the temperature of the ring itself and the ambient temperature, resulting in loss of measurement data, thus affecting the accuracy of ring size measurement [16].

Machine vision-based measurement is a new type non-contact method, not only whose accuracy and efficiency are high but also whose stability is improved [17,18]. Moreover, parts cannot be damaged. Thus, it is becoming more popular in the measurement field. Bangguo Wang et al. [19] used two monochrome charge-coupled device (CCD) cameras to acquire images of hot forgings, and realized length measurement of hot forgings through binocular vision system. Zhang Xuelin [20] utilized a industrial camera to acquire images and completed measurements after a series of mathematical morphology processing in this image processing module so as to get measurements. Xianbin Fu et al. [21] established 3D point cloud data and 3D model of ring forgings by using point cloud images and 2D laser scanner, and derived the size of ring parts. Yazid Saif et al. [22] used image processing techniques to analyze the surface of the model through circular dimensional analysis, which can detect the quality problems of the ring. In this respect, the machine vision-based measurement technique is very effective and it can be put into operation in a harsh environment.

In response to above problems, a real-time parameter method is put forward based on machine vision for measurement of ring rolling parts and a visual measurement platform is established. Considering characteristics of ring rolling parts, improved the traditional Zernike moment subpixel edge detection according to the characteristics of ring rolled parts, and proposed the RG-Hough transform method, and parameters of ring rolling parts are measured in combination with our camera calibration results. Our study can be regarded as preliminary work for further intelligent control of ring parts rolling.

The main contributions of this paper are summarized as follows:

1. A visual measuring platform for hot rolled ring rolling was designed. Based on the characteristics of the rolling process, the platform selects the appropriate type of industrial camera, lens, light source, and motor, and designs the appropriate stage, rotating platform and rolling motion structure, which can produce the ring rolling conditions.

2. A non-contact real-time measurement method based on machine vision was proposed in view of the harsh rolling environment and the peeling of oxide during rolling. This method includes improving the traditional Zernike moment subpixel edge detection, combining with the characteristics of circular rolled parts, RG-Hough transform is proposed, which provides better measurement effect and faster detection speed for the overall measurement of circular rolled parts.

3. Developed the upper computer software for real-time parameter measurement of ring rolling process. The software integrates the visual measurement platform control system and the visual measurement system, through which the software can control the operation of the visual measurement platform, measure the ring rolled parts in real time, display the original drawing of the ring rolled parts, the visual algorithm result diagram, and the real-time measurement value, and display the measured results in real time.

2 Conceptual designs

2.1 Overall scheme

The purpose of our measurement system indicates that our measurements shall mainly focuses on the inner and outer sizes of ring parts and they shall be real-time and accurate. The overall scheme of the measurement system is mainly divided into four steps, as shown in Fig 2.

Firstly, an appropriate industrial camera, lens, light sources, and motor models are necessarily selected and a proper objective table, rotating platform and simulation rolling structures are designed for our visual measurement in combination with the ring rolling process. Secondly, the camera internal parameters and position parameter model shall be calculated out based on experiments to get the relationship between the pixel and world coordinate systems of ring parts. The position of the central point of the calibration board is substituted into the conversion relation in the image coordinate system to calculate out its corresponding theoretical coordinates in the world coordinate system. Thirdly, images of the high-speed ring part are acquired by means of the image collection module and transmitted to the computer. The relevant image pre-processing operation of the collected images is performed to highlight the contour structure of its effective area. The sub-pixel edge coordinate data of more accurate rolling parts can be subsequently gained by means of our improved Equation pixel edge detection algorithm. Then, edges of a ring rolling part cam be fitted by means of the Hough transformation and based on its geometric characteristics. Its center is positioned and analysis is performed to the corresponding rolling center data to gain the real parameter measurements during the entire rolling process. Lastly, through the development of the upper computer software to display the measured results visually, more intuitive observation of the rolling process of the ring rolling parameters change.

2.2 Mechanical structure design

The mechanical structure mainly includes a vision module, a rotating module, a positioning runout module, and an impact module, as shown in Fig 3. The main function of the vision module is to carry out a series of operations through the camera to obtain the data that characterizes the dimensional change characteristics of the ring and complete the real-time measurement of the dynamic dimensional characteristics of the ring. The main function of the rotating module is to drive the ring and other parts to rotate, so that the ring can reach a stable rotating state. The main function of the positioning runout module is to tighten the ring through the positioning block, and use the electric telescopic rod to bump the ring during the rotation process. The main function of the impact module is that when the ring is rotating, the motor drives the impact block to impact the ring, so that the ring is offset. The ring is placed on the working plane, the working plane relates to the rotating platform, and the rolling process of the ring is simulated by rotating the module. The impact module and the positioning runout module impact the ring in the horizontal and vertical directions, and the scene of automatic deviation and runout of the ring in the processing is simulated. The lens relates to the industrial camera and placed above the ring to collect the ring. The computer uses the vision module to measure the image collected by the data acquisition card in real time.

thumbnail
Fig 3. Mechanical structure design schematic diagram.

1—Industrial camera; 2—Lens; 3—Light sources; 4—Collision block; 5—Linear motors; 6—Motorized expansion link; 7—Rotating platform; 8—Rubbing block; 9—Locate the block; and 10—Ring part.

https://doi.org/10.1371/journal.pone.0298607.g003

Four types of working conditions can be simulated in our vision-based ring rolling part platform, which are size measurement and real-time monitoring of growth sizes of under a stable rotation, runout tracing and offset correction during a rotation process.

1. Dimension measurement of ring rolled parts under stable rotation

Firstly, the ring-shaped rolled parts are placed on the ring inspection bearing platform, and the ring-shaped rolled parts are fixed by the positioning block, and the ring-shaped rolled parts are rotated by the rotary module. The rotary module can be adjusted to different rotational speeds, and at the same time, the vision module is used to measure the dimensions of the ring-shaped rolled parts under different rotational speeds.

2. real-time monitoring of the growth size of the ring rolled parts under stable rotating conditions

In the process of production of ring rolled parts, its diameter will continue to grow, through the linear mobile module to drive the rotary module left and right, the vision module on the ring rolled parts part of the region detection, to get the current state of the ring rolled parts and size information.

3. the rotation process of the ring-shaped rolled parts of the jump to follow

Ring rolled parts in the growth process, there are some areas due to uneven force resulting in the ring rolled parts of the temporary jumping situation. Jumping principle of operation for when the ring-shaped rolled pieces in the stable rotation, the use of electric telescopic rod installed on the top block of the ring-shaped rolled pieces for the top impact.

4. the rotation process of the ring-shaped rolling pieces offset correction

Ring rolled parts in the rolling process, as its rolling process is the use of extrusion ring rolled parts lead to its thickness becomes thin diameter becomes large. Therefore, in the process of extrusion, the ring rolled piece exists in the left and right deviation of the situation. When the ring rolled piece of stable rotation, the impact module on the ring rolled piece of impact, change the position of the ring rolled piece. When the position of the ring-shaped rolling member is changed, the vision module monitors the position change of the ring-shaped rolling member, and adjusts the position of the ring-shaped rolling member through the linear movement module, to readjust its position to a suitable position in the field of view of the camera of the vision module.

2.3 Software design

The software measurement part designed in this paper mainly includes seven parts: image acquisition, camera calibration, image preprocessing, edge detection of ring pieces, edge fitting of ring pieces, error compensation, and result display and saving. The software flow is shown in Fig 4. Through the automatic focusing of the camera to the ring piece, the image acquisition of the ring piece in the process is carried out through the software, and the distortion image is corrected by using the camera calibration method to get the distortion-free ring piece image. A series of preprocessing operations are performed on the ring piece image to eliminate the interference of noise and obtain a higher quality ring piece image. Then pixel-level edge detection and sub-pixel edge detection are performed on the ring pieces in the image to eliminate the occlusion of the core roller and the drive roller, to obtain the required edge information of the ring pieces, and to fit the incomplete edge information of the ring pieces to obtain the edge information of the complete ring pieces, and to obtain the measured data of the ring pieces. According to the thermal deformation law formula and the error formula, the measured data are compensated for the error, and the final ring parameters are obtained. Finally, the results are displayed in real time on the user interactive interface, and the results are saved in real time in Excel table according to the chronological order, which is convenient for analysis and comparison at a later stage.

3 Measurement algorithm

3.1 Image preprocessing

As the ring is growing and changing during the rolling process, accompanied by swinging and jumping, and the oxidized skin on the surface of the ring will come off during the process, it will lead to the ring image acquired by the vision measurement system to contain noise, cause the true edge of the ring cannot be extracted. The result of extracting the edge of the image directly is shown in Fig 5.

To improve the quality of the captured ring image and extract the edge data of the ring more accurately, it is necessary to eliminate the interference of noise, so it is necessary to pre-process the captured ring image to reduce the interference of irrelevant information in the image and enhance the edge information [23]. Noise will greatly affect the result of visual measurement, so it is necessary to filter the image to suppress the noise in the image and improve the quality of the image. Common filters include mean filter, Gaussian filter, median filter, and bilateral filter. To analyze the denoising effect of the above four image filters and their influence on the contour edge information of the ring, noise is added to the ring image, as shown in Fig 6(B). The above four filtering methods are used to filter the image with noise. Mean filtering and Gaussian filtering can remove the noise in the image well, but the edge information of the ring is blurred, which is not conducive to the edge processing in the later stage. The median filter directly blurred the whole image, and the noise was not well removed. Bilateral filtering has the best effect, which can retain the sharpness of the ring edge while removing noise. Bilateral filtering is chosen as the final image filtering method.

To expand the difference between the features of the ring and other objects, the edge information of the ring is highlighted, and the image is enhanced by Gamma transform to improve the contrast of the ring rolled part, as shown in Fig 7(A). After image enhancement, the contrast of the ring image has been significantly improved, but it contains different gray levels. To make the ring object more prominent, enhance the effective information of the ring edge, and improve the efficiency of subsequent processing, it is necessary to convert the gray figure of the ring into a binary graph. Threshold segmentation methods include global mean segmentation, Otsu threshold segmentation and iterative threshold segmentation. Due to the presence of interfering objects, the global mean segmentation method makes the interfering objects be divided into target objects, confusing the edge contour of the ring, which is not conducive to the subsequent processing. The iterative threshold segmentation method and the Otsu threshold segmentation method can retain the contour information of the ring better, but the iterative threshold segmentation method consumes longer time and has lower efficiency, while the Otsu threshold segmentation method has faster processing speed and better segmentation effect.

Through the above processing, the outline of the ring can be clearly obtained, as shown in Fig 8(A). However, the driving roller and the core roller in the contour are in the bonding state with the ring rolling piece, and the abnormal point will appear in the direct edge detection. To obtain the effective edge of the ring, the interference edge between the drive roll and the core roll is eliminated, as shown in Fig 8(B).

3.2 Traditional Zernike torque sub-pixel edge detection

For the parameter measurement of ring rolled parts, the core algorithm is two parts: edge detection and edge fitting. Edge pixel data can be gained by edge detection of ring rolling parts and edge pixel data can be fitted to output a complete ring rolling edge. Their ring rolling edges can greatly affect the final ring rolling parameter measurements.

Subpixel edge detection methods can be divided into fitting method, interpolation method and moment method according to different calculation principles. The fitting method can reduce the influence of interference points on the whole result, has a good effect on image noise suppression, and has a high localization accuracy for edge information, but the model is more complex and the solution speed is slow. The accuracy of edge information detection by interpolation method is high, and the calculation method is simple, but it is easy to be affected by noise. The moment method is less computational, more efficient in sub-pixel edge location, and less sensitive to noise, which can suppress noise interference on sub-pixel edge. Zernike moment method subpixel edge detection selects a small window near the edge contour detected at the pixel level edge, and performs Zernike polynomial fitting on the pixel intensity distribution in the window. Zernike polynomial is used to approximate the actual value of pixels in the window. Zernike polynomial is orthogonal on the unit circle. With good rotation and scaling invariance, it can obtain the local structural features of the image well and obtain more accurate edge positioning. Compared with other methods, Zernike moment method has good stability for different types of edges and can effectively deal with the interference of image noise, which is suitable for the ring visual measurement system.

The key of Zernike moment to realize sub-pixel positioning is to calculate four edge parameters, including rotation Angle, distance from center to edge, background gray level and step gray level. Comparison of the solved parameters and threshold settings results in accurate sub-pixel edge positioning. As shown in Fig 9, an ideal step sub-pixel edge model is set up, which includes the following parameters:

L—ideal edge of an image;

l–distance between the center and the ideal edge;

h—background grey scale; and

k—step grey scale

thumbnail
Fig 9.

Ideal edge step edge model: (a) Initial image edge; (b) Reversed image edge.

https://doi.org/10.1371/journal.pone.0298607.g009

In the unit circle of the polar coordinate system, the n-order mth power orthorhombic Zernike polynomial is expressed as Vnm(ρ, θ) = Rnmeimθ, where n (n≥0) and m are integers, n-|m|≥0 is an even number, i is the imaginary unit and Rnm is a real-valued polynomial. (1) The n-order mth power Equation of Continuous Image f(x, y) can be expressed as: (2) where, is complex conjugate of Vnm(ρ, θ).

According to the unchanged rotation characteristics of the Zernike torque relationship exists image rotation before and after the image rotation is: , and Z00, Z11 and Z20 can be determined by means of three Zernike torques, whose corresponding plurals are V00 = 1, V11 = x+iy, and V20 = 2x2+2y2−1, respectively. The corresponding relationship can be obtained: (3) After the rotation, Zernike torques are expressed as follows: (4) (5) (6) Integration of the above three equations is applied to solve out the edge parameters: (7) While edge parameters are obtained, sub-pixel edge positioning in an ideal state is as follows: (8) In the actual situation, various Zernike torques are obtained by means of template and image convolution, during which expansion effect occurs. Generally, one is enlarged to two times for a template (size: N×N). Thus, the actual sub-pixel edge positioning equation is as follows: (9)

3.3 Improved Zernike torque sub-pixel edge detection

While edges are searched in a traditional Zernike torque sub-pixel edge detection, Zernike torques are necessarily calculated out for all pixels in an image because their grey scales are unknown. Their edge data are then solved based on the Zernike torque rotation invariance so that the computing burden can be large but also the calculation efficiency shall be low. The measurement real -time performances are not ideal. In case of determining whether a pixel point is at the edge, its step grey scale (k) be artificially set. If k is small, some pseudo edge points will be detected to affect the measurement accuracy of the ring rolling parts. Conversely, if k is large, some edge details may be missed to result in loss of edge pixel data of the ring rolling parts. Thus, repeated experiments are necessary for selection of the favorable step grey scale. Also, it cannot be guaranteed that the step grey scale shall be optimal.

As for our improved Zernike torque sub-pixel edge detection, coarse positioning of ring rolling edges is first carried out by means of the Canny operator and their sub-pixel edges are then extracted to decrease calculation of unnecessary pixels but improve the edge detection efficiency.

The edge information is extracted by means of four steps (image filtering, assignment of the calculation gradient, non-maximum value inhibitory and the double threshold method) as for our Canny operator. Convolution processing of images is performed by means of the two-dimensional Gauss function to output a smoother image f(x, y), whose horizontal and vertical partial derivatives (fx(x, y) and fy(x, y)) are solved out, respectively. The gradient amplitude and direction are calculated based on application of the following equation: (10) Comparison of the solved gradient amplitude and the gradient of the neighboring pixels of the current point is performed to determine whether the current point is a local maximum. It is regarded as an edge point in case of a local maximum; otherwise, the gradient of the current point shall be set as zero.

For selection of the step grey scale, the OTSU method is applied to calculate the background and the maximum between-cluster variance based on the maximum step grey scale for ring rolling parts. So, the optimal step grey scale can be solved out. Compared to traditional Zernike torque sub-pixel edge detection, the edge detection time can be saved and the solved step grey scale will be more accurate.

3.4 Hough transformation

Under the 2D Descartes coordinates, the analysis equation of a circle is expressed as , where (a, b) is coordinates of the center and r is the radius. Determination of a circle requires three parameters (a, b, and r). An accumulator array is required in the 3D Hough space to express all possible circles. As for each edge point (x, y) in the image, all possible center positions (a, b) will be traversed. As for each possible center position, calculation of the distance from the current edge pixel is regarded as a possible radius r, one is added at the corresponding position in the accumulator array. In the Hough space, the high-value of the accumulator corresponds to a circle in the image. A threshold is set for the accumulator. Only when the value exceeds the threshold, it is regarded as existence of a circle corresponding to the parameter in the image.

While Point P (xp, yp) is assumed to conform to , there are infinite circles through Point P, the 2D Point P is mapped into a 3D Hough space to form a 3D cone surface. All circles through Point P are mapped into the 3D Hough space to gain a 3D cone surface group, which includes a common intersection point (a0, b0, c0), as shown in Fig 10. After all edge points are mapped, the corresponding coordinates of the maximum in the accumulator are the center in the 2D Cartesian coordinates and the plane including the maximum in the accumulator is regarded as the radius in the 2D Cartesian coordinates.

3.4 RG-Hough transformation

As for the traditional Hough transformation, traversing of all edge points in the image will consume a lot of time; moreover, a false circle may occur during this process so that there shall be a certain invalid sample. There is a definite range of changes in the radius of the annulus during the rolling process, and the RG-Hough transform is proposed by combining the Hough transform and the transformation characteristics of the annulus. First, the transformation range ((Rmin, Rmax)) of the ring rolling part radius is determined. While it is assumed that b may be any y-value, a can be solved out by means of the circular analytical equation () to acquire the Hough priority sequence value, in combination of which the radius corresponding to the (Rmin, Rmax) can be calculated out. Correspondence of the above radius and all a and b values results in determination of the center.

4 Experimental results and analysis

4.1 Experimental platform construction

For verification of the effectiveness and real time of our measurement method, a visual measurement platform was set up light of our mechanical design scheme, as shown in Fig 11. The overall size of the platform is 1500*1500*1000mm, built by profiles, divided into upper and lower parts of the space, the upper space uses the camera to real-time monitoring and measurement feedback of rolled parts, the lower space can be placed controller, rotating platform and other devices, hardware equipment includes: Industrial camera, lens, data acquisition card, control machine, light source, camera fixture, camera support frame, aluminum plate, controller, motor, heavy duty casters, rotating platform, electric telescopic rod and standard ring, combined with the actual measurement needs of the overall test platform.

thumbnail
Fig 11. Experimental platform.

1 - Industrial camera; 2—Lens; 3—Light sources; 4—Collision block; 5—Linear motors; 6—Motorized expansion link; 7—Rotating platform; 8—Rubbing block; 9—Locate the block; 10—Ring part; and 11 –Computer.

https://doi.org/10.1371/journal.pone.0298607.g011

The platform is made up of a computer (Windows10, processor: Intel(R) Core (TM) i7-11800H, CPU: 2.30GHz, memory: 16 GB), an industrial camera (model: MV-CH050) and a lens (model: MVL-KF1228) and a data acquisition card that are connected by means of a Camera Link cable (model: MV-SDR-MDR). The data acquisition card is equipped inside the controller host and real-time data acquisition of ring parts is performed by means of our visual measurement software platform. The frame rate of the camera is 140fps, and 140 images can be measured per second. The camera is fixed on the camera support frame by the camera fixture, which is placed directly above the ring rolling piece. The camera support frame can rotate 360°, and the height and length can be adjusted to increase the measurement range of the vision system. The aluminum plate is machined to form a working platform to carry the construction of other equipment, while the machined aluminum plate is placed on the rotating platform to carry the placing of the ring, and relates to the rotating platform through the connecting part, which can drive the ring to move together. The controller can control the speed and direction of the rotating platform, and then drive the motion state of the ring. The rotating speed is 0–200 rpm, which can simulate the rotating speed of the ring under different rolling conditions. The rotating platform needs to meet the rotating speed can be continuously controlled, the maximum speed is to rotate at the speed of 1 second per revolution, and the limit load can reach 30KG under the requirement of 1 second per revolution. The rotating platform of model MTG200 is selected, and the speed is allowed to be 200rpm. The rotating platform is connected to the bearing platform of the ring through bolts. The model of the equipment connected to the motor through the motor connector to build the vision hardware platform is shown in Table 1.

To improve the intuitive experience of user operation and reduce the difficulty of user operation, the measurement software platform integrating real-time acquisition, visual measurement and result display was developed. The measurement software platform is based on the Windows operating system, using Visual Studio2019 and MFC for the design of the platform interface, and C++ language combined with OpenCV for the design of measurement algorithms. Users can call the data acquisition card and industrial camera to carry out real-time acquisition of the moving ring pieces through the visual measurement software platform, combined with the ring piece image preprocessing, edge detection and edge fitting methods, to get the ring size measurement data, and real-time display and data visualization, running the interface of the software is shown in Fig 12.

4.2 Camera calibration

Camera calibration is an important form of calibration procedure to ensure the accuracy and reliability of the measurement system. In this paper, Zhengyou Zhang camera calibration method is used for camera calibration experiment. Zhengyou Zhang camera calibration method uses a simple black and white high-precision checkerboard for calibration. The camera is used to collect images of the calibration board at different positions, and the checkerboard corners are extracted according to the corner coordinates in the world coordinate system and the corner coordinates in the image coordinate system. Find the parameters of the camera. The specific process is shown in Fig 13.

Make 28mm square checkerboard with nine rows and five columns, establish a simple calibration template, fix the camera on the visual measurement platform, adjust the camera parameters so that the camera can clearly capture the checkerboard image. In the process of camera calibration, to ensure higher calibration accuracy, it is necessary to change the Angle and position of the checkerboard, collect several images of different angles and different positions of the calibration board, and retain the images with better checkerboard corner features. By preprocessing the acquired checkerboard image, the effect of noise on the image is reduced, the effective features of the checkerboard image are highlighted, and more accurate camera parameters are obtained. Then the processed checkerboard images are detected by corner points. The coordinates of the black and white corner points in the checkerboard image are extracted, and the parameters of the camera are solved by the known coordinates of the corner points on the checkerboard in the world coordinate system and the corresponding pixel coordinate system, as shown in Table 2.

4.3 Experimental results and analysis

4.3.1 Comparison experiment.

To verify the effectiveness of the improved Zernike Moment Subpixel Edge Detection, an edge detection-based comparison experiment is conducted on the same binary image using traditional Zernike Moment Subpixel Edge Detection and improved Zernike Moment Subpixel Edge Detection and some of the edge detection result maps are taken for comparison as shown in Fig 14.

In the figure, the white lines are the real edges, the green lines are the traditional Zernike moment subpixel edge detection results, and the red lines are the improved Zernike moment subpixel edge detection results. The improved Zernike moment subpixel edge detection is closer to the real value compared to the traditional Zernike moment subpixel edge detection. Five points are randomly selected and the detected coordinates are compared and analyzed and the results are shown in Table 3. The error values are visualized as shown in Fig 15.

In the figure, improved is the improved Zernike moment subpixel edge detection error value and Traditional is the traditional Zernike moment subpixel edge detection error value. The improved Zernike moment subpixel edge detection has a smaller detection error than the traditional Zernike moment subpixel edge detection and a higher accuracy of localization.

Edge fitting was performed on the obtained edge pixel data using Hough transform and RG-Hough transform. Since the circular edges in the binary image are more obvious, the edge fitting effect of the two algorithms is not much different. The time consumption of the two algorithms was counted, as shown in Fig 16, the average time consumption of the Hough transform is 152ms and the average time consumption of the RG-Hough transform is 104ms, the RG-Hough transform consumes a shorter time and has a higher detection efficiency.

4.3.2 Measurements.

The experimental platform can measure the ring rolled parts in the range of 100mm to 1000mm, and the measurement experiment needs to consume a lot of ring wool parts, the cost is high and will cause industrial waste. Therefore, a ring rolled part with a moderate size was selected for the measurement experiment. The outer diameter of the ring rolled part was 462.12mm and the inner diameter was 315.53mm. In the process of hot rolling, there will be oxide skin in the ring rolled parts. To make the experimental scene closer to the real rolling scene, the ring parts were reformed and some burrs and dents were added to the smooth surface of the ring parts, as shown in Fig 17.

The ring is placed on the experimental platform, and the connected data acquisition card and the industrial camera are opened using the software platform. The experimental platform does not attach movement to the environment, but keeps the ring in a static state, and measures the size of the ring currently. The measurement results are shown in Table 4.

The table shows the measured values of inside and outside diameters of 10 frames and the error values of inside and outside diameters. Compared with the real values of the measured results of 10 frames, the maximum error of the inside diameter is 0.24mm and the maximum error of the outside diameter is 0.19mm, and the measured error is within the allowable range. The inner and outer diameter measurements of 400 frames were selected for visualization, as shown in Fig 18. It can be seen from the figure that the inner and outer diameter measurements of the ring are floating up and down around the true value, and the error range of the inner diameter is within ±0.25mm and the error range of the outer diameter is within ±0.25mm, which verifies the effectiveness of the visual measurement system for the measurement of the ring.

This platform is aimed at the parameter measurement of ring rolled parts in the rolling process. To verify the effectiveness of this vision system for the measurement of high-speed ring rolled parts, the experimental platform is used to adjust the state of the ring rolled parts, so that the ring rolled parts rotate at 5 rpm, 20 rpm and 40 rpm, and the impact block and top block are used to interfere with the ring rolled parts. The visual measurement results of ring rolled parts at different speeds were measured through the visual measurement system, and 10 frames of ring rolled parts were randomly selected for display, as shown in Tables 57.

Tables 57 shows the od and id measurements and od and id errors in frame ten. It can be seen from the measurement results of the inner and outer diameter of the table that the increased motion state has little influence on the measurement of the ring, the overall error value does not increase greatly, and the error size of different speeds does not fluctuate greatly. 400 frames of measurement results were taken for visualization, as shown in Fig 19. It can be seen from the figure that the visual measurement results are relatively stable for different speeds, which verifies the stability of the visual measurement system.

Based on the measured parameter data of the ring rolled parts, the size change, center swing characteristics and vibration characteristics of the ring rolled parts were calculated and analyzed, and visualized, as shown in Fig 20.

4.4 Error analysis

The above measurements show that there are still errors although our can visual measurements ensure a certain measurement accuracy. There are many factors such as physical limitations of hardware, software processing techniques and unstable environmental variables that affect the accuracy during the visual measurement process. From the analysis of the entire measurement process, errors are primarily coming from 2 sources.

(1) Camera calibration error: our visual measurement system is calibrated by means of a calibration board. Its physical dimension accuracy, uniformity and reflection or scattering of its material surface and the checkerboard corner clarity may affect not only the accuracy of the camera calibration but also the conversion between the pixel and real physical length units. For performance of a high-precision camera calibration, a high-quality and accurate calibration board is necessary.

(2) Optical lens error: the lens cannot guarantee the accuracy between the connection and fixing of each part during the manufacturing and installation process. There is a certain degree of assembly errors. Thus, the final measurement results may be affected. A camera and lens shall be selected as much as possible in the model selection stage.

(3) Environment error: From the camera calibration to the visual measurement phase, the environment lights, temperature, and humidity may change and there may be reflection and obstruction. Also, measurement operations may not be standardized. Thus, the measurement accuracy may be affected. Those measures such as application of a stable light source and measurement environment isolation may be taken to eliminate the environment errors.

5 Conclusions

In view of the cases that dynamic parameter measurement of ring rolled parts cannot be performed in real time and feedback control cannot be timely during a ring part rolling process, a ring rolling part visual measurement platform is designed and an improved Zernike torque sub-pixel edge detection algorithm is presented to detect the edge data information of ring rolled parts, whose edges are fitted by means of our improved Hough transformation to gain rolling parameter measurements. Simulation results indicate that our improved Zernike torque sub-pixel edge detection has smaller errors. Comparison of periods for two Hough transformation algorithms indicates that our improved Hough transformation algorithm save time and is favorable for improvement of real-time parameter measurements of ring rolling parts. Ring rolling parts (OD: 462.12mm, ID: 315.53mm) are measure. Their errors are within±0.25mm and the average consuming time is 104ms/frame. Their measurement errors are within the allowable ranges and the speed can meet the requirements of real -time detection. In actual industrial production, there are also parts with other shapes other than rings, and the types of experimental samples can be enriched in the future, and the corresponding algorithms can be studied to improve the versatility of the vision measurement system.

References

  1. 1. Ma H, Huang X, Cui X, Wang P, Chen Y, Hu Z, et al. Management Control and Integration Technology of Intelligent Production Line for Multi-Variety and Complex Aerospace Ring Forgings: A Review. 2022;12(7):1079.
  2. 2. Yuan -S, Fan -X. - Developments and perspectives on the precision forming processes for ultra-large size integrated components %J—International Journal of Extreme Manufacturing. 2019;- 1(- 2):- 022002.
  3. 3. Huiping Q, Yongtang LJPe. Research status and developing trends on the ring rolling process of profile ring parts. 2017;207:1260–5.
  4. 4. Allwood JM, Tekkaya AE, Stanistreet TFJSri. The development of ring rolling technology. 2005;76(2–3):111–20.
  5. 5. Yuanyuan C, Huiping Q, Yongtang L, Lin H. Establishment of Thermal Ductile Fracture Criterion for As-Cast 42CrMo Steel and Its Application in Hot Ring Rolling Process %J Advances in Materials Science and Engineering. 2021;2021.
  6. 6. Yeom JT, Kim JH, Park NK, Choi SS, Lee CSJJoMPT. Ring-rolling design for a large-scale ring product of Ti–6Al–4V alloy. 2007;187:747–51.
  7. 7. Hua L, Deng J, Qian DJIJoM, Technology P. Recent development of ring rolling theory and technique. 2017;54(1–3):65–87.
  8. 8. Guo LJJoME. Design Method of Blank Sizes for Radial-axial Ring Rolling. 2010;46(24):1.
  9. 9. Lv F, Hu Ca, Du W, Wang XJMPiE. Dimension Measurement and Quality Control during the Finishing Process of Large-Size and High-Precision Components. 2022;2022.
  10. 10. Arthington MR, Cleaver CJ, Allwood JM, Duncan SRJICoCA. Measurement and control of variable geometry during ring rolling. 2015:1448–54.
  11. 11. Fu X-b, Miao S, Zhang Y-c, Li Q, Kong T, Zhang G-rJM. A new method of processing laser scanning data of radial section dimensions for ring forgings. 2020;153:107430.
  12. 12. Zhengchun D, Zhaoyong W, Jianguo YJM. 3D measuring and segmentation method for hot heavy forging. 2016:43–53.
  13. 13. Lu Z, Zhou Q, Zhang YJMS, Technology. Dimension measurement method of ring forgings based on laser scanning and multiple regression filtering algorithm. 2023;34.
  14. 14. Shimizu S, Takeo Y, Yamaguchi G, Ohtake Y, Nagai Y, Mimura H, editors. Three-dimensional shape measurement of an ellipsoidal mirror by industrial x-ray computed tomography. Advances in Metrology for X-Ray and EUV Optics VIII; 2019: SPIE.
  15. 15. Zhang Y-c, Wu M, Fu X-b, Li Q, Kong T, Zhang G-rJTIJoAMT. A stitching method of radial section line of scanned point cloud data for ring forgings. 2020;106:969–80.
  16. 16. Li Y, Yu M, Bai Y, Hou Z, Wu W. A Review of Thermal Error Modeling Methods for Machine Tools. 2021;11(11):5216.
  17. 17. Ding S, Zeng D, Zhou L, Han S, Li F, Wang Q. Multi-Scale Polar Object Detection Based on Computer Vision %J Water. 2023;15(19).
  18. 18. Charan A, Karthik Chowdary C, Komal PJICSMS, Engineering. The Future of Machine Vision in Industries- A systematic review. 2022;1224.
  19. 19. Wang BJM. A study on length measurement method of hot large forgings based on binocular vision system. 2022.
  20. 20. Zhang X, Fu F, Fan J, Fan H, editors. Design of High Precision Image Measurement System for Small Workpiece. Journal of Physics: Conference Series; 2021: IOP Publishing.
  21. 21. Fu X, Zhang Y, Zhang W, Li Q, Kong T. Research on the size of ring forgings based on image detection and point cloud data matching method %J The International Journal of Advanced Manufacturing Technology. 2021;(prepublish):1–11.
  22. 22. Saif Y, Yusof YY, Rus AZM, Ghaleb AM, Mejjaouli S, Al-Alimi S, et al. Implementing circularity measurements in industry 4.0-based manufacturing metrology using MQTT protocol and Open CV: A case study. 2023;18. pmid:37831665
  23. 23. Gandhi MPI, Kamdar J, Shah MJAHR. Preprocessing of Non-symmetrical Images for Edge Detection. 2019;5.