Online dimensional control of rolled steel profiles using projected fringes

Fringe projection is a versatile method for mapping the topography of surfaces. In this paper, it is used to measure the defects on the head of railroad rails while the rails are moving. Railroad rails are made by hot rolling. The quality of the finished product is generally good, but surface texture will deteriorate with increasing temperature. A method for online inspection therefore is very desirable. In the present experiment, dimensional inspection of the railroad rails was made online while moving at a speed of 1–2 m/s. Therefore, it is important to minimize the registration time. To achieve this, we apply a method of fringe location with sub-pixel accuracy that requires only a single exposure for each registration.

In this paper we describe an intensity method based on location of the fringe positions with sub-pixel accuracy by means of a zero-crossing algorithm. This method is applied to online measurement of dimensional errors of railroad rails. In the present experiment, the rails moved with a speed of 1-2 m/s. The processing time must therefore be reduced to a minimum.
It seems appropriate to compare our method with phase shift methods which also use projected fringes. Instead of measuring the intensity, these methods are based on measuring the phase.
(1) Phase shift methods require at least 3 (5 is most common) separate exposures of each deformation state. In addition, an additional operation for unwrapping the phase maps [28,29] is required. Therefore, these methods become inferior when recording fast dynamic events. One benefit of our system is that only one single exposure is required for each deformation state. (2) Divergent illumination introduces a non-linear phase into the fringe function, a fact also pointed out by refs [1,7,9,17]. This makes phase methods more prone to errors. (3) Our method is insensitive to image saturation. Saturation results in signal clipping, making the fringes non-sinusoidal. Phase shift methods rely on sinusoidal fringes, and the influence of such clipping is measured in [30]. (4) Our method is not dependent on correcting the lenses for image distortion. This is because both the reference and object surface are imaged by the same "distorted" lens.
2 System description

Theory
The measuring principle is illustrated in Fig. 1. Here, fringes with an inter-fringe distance d are projected onto the xy-plane (the reference surface) under an angle θ 1 to the z-axis and viewed (by e.g. a camera focused at infinity) under an angle θ 2 . Also, in the figure is drawn a curve S representing a surface to be measured. From the figure, we see that a fringe positioned at P 1 on the xy-plane will be displaced to P 2 on S. This displacement is given by where z is the height of P 2 above the xy-plane. When imaging a grating of period d g , the fringe period on the reference surface is given by where m p is the magnification of the projection unit. When putting u = d x0 , we find the surface deviation per fringe.
z per fringe ð Þ¼ m p d g sin θ 1 : ð3Þ Figure 2 shows a more general situation where the projector emits divergent light, and the camera image the surface at a finite distance along the z-axis. When looking at an arbitrary point x on the xy-plane, we see from the figure that By inserting Eq. (4a) and (4b) into Eq. (1), we get where l k is the distance between the camera lens and the coordinate center and l p is the distance between the projector and the coordinate center. To calibrate the system, one have to measure the quantities l k , l p , and θ 0 . To determine θ 0 , it is easiest to measure the distance between the lenses of the projector and the camera, and then calculate θ 0 from the resulting triangle. The relation given in Eq. (4) can be written as is a system function determined by the geometry of the experimental setup. Therefore, S can be used as a look-up table.
Notice when the camera and the projector are located at the same height above the reference surface (l k − l p cos θ 0 = 0), S becomes equal to1 / tan θ 0 , i.e. independent of x.
The measurement accuracy is dependent on the accuracy with which the fringe positions are detected. This is done by a zero-crossing algorithm described in [1, p 274]. By this algorithm, the fringe positions are located with sub-pixel accuracy [31].

Measurement procedure
It starts with calibrating the system as described above. Then the object and reference surfaces are recorded and stored as an array of 512 × 512 pixels, 8-bit deep, i.e. with intensity levels between 0 and 255. Then, the fringe positions on the object and reference images are located, which determines u and calculates z from Eq. (6). The image of the reference surface is stored in memory once and for all. u must be equal to the difference between mutual fringe orders on the reference and the object. In the general case, the zero-order fringe must be located manually. In the present project, this is not a problem. When passing the edge of a defect, |u| will always be less than d x /2. In this situation, the object fringe is always closest to the corresponding reference fringe. The measurement algorithm therefore starts automatically without manual assistance. The calculated topography of the object surface can be stored in computer memory and be displayed as a grey scale-level picture or a contour map.
A simple and reliable test of this system is to image a plane surface before and after a small tilt. Figure 3 shows the result of such a test. A plane surface of about 1 m 2 is imaged before and after a rotation angle of about 8 millirads about the vertical axis. From the smoothness of the measured curve, we can conclude that the zero-crossing algorithm works properly. Also, in the diagram is drawn the ideal straight line. The deviation from this line is seen to be less than about 0.1 mm. This deviation is mainly due to small errors in the setup parameters resulting in a minor error in the system function. It should be noted that the projected fringes in this test had the highest possible quality. Figure 4 shows the experimental setup. The railroad rail is mounted on a slide which can be moved in the x-direction.

Experimental setup
The projector distance l p , the grating period, and the projection angle were selected to give a grating pitch along the rail (the sampling distance) equal to 5 mm. The acquisition time was 40 ms and the processing time was 50 ms, giving a total sampling time T = 90 ms. With a camera field of view equal to w, the speed of the rail must be v < w/T. In our experiment, we set w = 200 mm, which means that the speed must be less than 2.2 m/s. When this condition is fulfilled, the dimensions of the rail will be continuously monitored at a sampling interval of 5 mm in the x-direction. By processing every 12th horizontal line of the image, the sampling interval will be 5 mm also in the y-direction. This means that an array of 512 × 42 pixels are being processed. The result is that the dimensions of the rail will be checked at every point in an array of 40 × 42 points. To visualize the result, every point of the array where the dimension (surface height) deviate from the ideal shape by a magnitude exceeding a selectable threshold, the actual point will lit up on the monitor. In this experiment, this threshold was set to 0.4 mm. Fig. 3 Result from measurement of a rotation of a plane. The thick curve displays the measurement; the thin curve is the ideal straight line Fig. 4 The experimental setup Before the measurement sequence started, a 200 mm long defect-free part of the rail was imaged and stored in memory. This initial image served as the reference for the subsequent images in the online sequence. The contrast of the projected fringes was satisfactory without any preparation of the surface. The speed of the rails was 1-2 m/s.

Specimen description
Railway rails are produced by a hot rolling process. They can be up to 120 m long and should satisfy very strict tolerances required by international standards. These are related both to straightness and defects on the surface. Figure 5 shows a cross section of railroad rail with the definition of the head, the web, and the base, and also a section of a railroad rail after the roll forming process is shown.
In this project, 3 samples of rolled railroad rails of different lengths were investigated:

Experimental results
Some of our results are shown in Figs. 8 and 9. The rails moved with a speed of 1-2 m/s. The measurements are done on the top of the head of the rails.
From Fig. 9, it can be seen that both the position and the shape of the dimensional errors are clearly indicated on the monitor.

Discussion
Our results show that we have successfully detected the shape and positions of the dimensional errors on samples of railroad rails. Even small errors such as a small hole of approx. 1 cm (error no. 3 on sample A) and a small notch (error 2 on sample A) are detected. To have continuous inspection, our setup could measure errors with a speed of the rail up to 2.2 m/s. As mentioned in Sec. 3.1, the speed can be increased by increasing the camera field of view. As an example, with a field of view of 500 mm, the speed could be increased up to 5.5 m/s. It is clear that our experiment has not included the possibility that the rail can move sideways as a whole. We are presently building up a new system where we hopefully can solve this problem. We have however some ideas how to do it. As can be seen in Figs. 8 and 9, fringes are also projected on the base of the rail. These fringes can probably monitor the movement in the z-direction. Our goal in the present experiment was to test if our method was able to detect defects on the head of the rails while moving. This was not self-evident in advance.

Conclusion
A method for full-field dimensional control of moving rolled steel profiles is presented. The experimental results were successful in mapping the dimensional errors of the railroad rails online when it moves with a speed of approximately 2 m/s.  Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.