A high-precision micro-curved surface complex beam optical detection method and system

By collecting and processing the beam reflection image in the micro-curved surface complex beam optical detection, calculating the surface normal vector and depth value, and reconstructing the surface model, the problem of both detection efficiency and accuracy in the existing technology is solved, and an efficient and automated micro-surface detection system is realized. Surface detection.

CN114049328BActive Publication Date: 2024-10-15JINGCHENG ZHONGAN SEMICONDUCTOR (BEIJING) LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202111355660.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-16
Publication Date
2024-10-15
Estimated Expiration
2041-11-16

AI Technical Summary

Technical Problem

The existing technology cannot take into account both detection efficiency and detection accuracy. Especially in the optical measurement of micro-curved surfaces, the measurement complexity is high and the efficiency is low, and contact measurement may damage parts. Optical non-contact measurement requires spraying to change the reflection characteristics when measuring curved surfaces. Affects the advantages of non-contact.

Method used

Using a high-precision micro-curved surface complex beam optical detection method, the beam is emitted to the object to be measured, the beam reflection image is collected during the rotation, preprocessed, the surface normal vector and depth value are calculated, and the surface model is reconstructed to achieve automation, speed, and non-stop. Detection of contact.

Benefits of technology

It improves the detection efficiency and accuracy, simplifies the detection steps, reduces the cost, avoids the damage problem of contact measurement, and enhances the measurement ability of soft and flexible objects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114049328B_ABST
    Figure CN114049328B_ABST
Patent Text Reader

Abstract

The present invention discloses a high-precision micro-surface complex light beam optical detection method and system, which relates to the technical field of precision engineering measurement, and the method comprises: emitting a light beam to the object to be measured, collecting the light beam reflection image during the rotation of the object to be measured; preprocessing the light beam reflection image to obtain the preprocessed image; obtaining the rotation direction of the object to be measured according to the preprocessed image; calculating the surface normal vector of the object to be measured according to the preprocessed image and the rotation direction, and obtaining the surface normal vector RGB map of the object to be measured; processing the surface normal vector RGB map to obtain the processed surface normal vector; calculating the depth value of each point on the object to be measured according to the processed surface normal vector to form a depth map of the object to be measured; and reconstructing the surface model of the object to be measured according to the depth map. The present invention can quickly and non-contactly detect the surface information of the object to be measured, with simple steps, automated detection process, high detection efficiency and accurate detection results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of precision engineering measurement, and more specifically, to a high-precision micro-curved surface complex light beam optical detection method and system. Background Art

[0002] In recent years, the ultra-precision machining technology of industrial parts has been increasingly used in high-tech fields such as biomedicine, communications, and microelectronics, and has become a key component in the optoelectronics and communications industries. A variety of application requirements have also put forward higher requirements for the surface accuracy of parts. Accurately measuring the surface topography of curved parts can not only correctly identify changes and defects in the machining process, but also has important significance for controlling and improving machining methods, studying the relationship between surface geometric characteristics and performance, and improving the quality of machined surfaces and product performance. At present, the measurement methods for part surfaces mainly include contact measurement methods and optical non-contact measurement methods. The contact measurement method is represented by a probe-type surface profiler and a three-dimensional coordinate measuring machine. It is intuitive and reliable, simple to operate, and has strong versatility. It has a large vertical measurement range and is suitable for measuring micron or submicron engineering surfaces; but the measurement speed is slow and the measurement results are greatly affected by temperature changes. Since the stylus contacts the surface of the measured part, it will damage the surface of the ultra-precision machined curved surface part, the stylus is easy to wear, and it is impossible to measure soft and flexible objects. Optical non-contact measurement methods mainly include grating projection method and interferometric measurement method. The former has the characteristics of large measurement range, fast measurement speed and easy to realize automatic measurement under computer control, and can reach micron-level measurement accuracy. However, when measuring curved parts, the surface is often sprayed to change its reflection characteristics to diffuse reflection before measurement, which weakens the non-contact advantage of optical measurement methods. In addition, grating projection methods are mostly based on telecentric optical path models or through complex measurement mechanisms to obtain the correspondence between phase offset and the surface morphology of the measured object. The acquisition of phase offset information requires that before measuring the measured object, an actual reference plane is first measured to obtain the reference phase, and the phase offset is obtained by subtracting the reference phase from the phase value of the corresponding point on the surface of the measured object, which increases the measurement complexity and reduces the measurement efficiency. The latter is a high-precision measurement method and is widely used in high-reflection surface detection, but the interference system usually requires a monochromatic light source, and the design is precise, the structure is complex, and the cost is expensive, which affects the use of interferometric measurement methods.

[0003] The prior art provides a method and device for fast non-contact measurement of high-reflective free-form surface grating projection, which realizes three-degree-of-freedom motion of the object to be measured with the help of a precision motion control system; uses a grating projection device to project coded grating stripes onto the surface of the object to be measured; uses digital phase shift technology and phase unwrapping algorithm to obtain phase distribution information on the surface of the object to be measured from the deformed fringe pattern; uses virtual reference surface technology to obtain reference phase distribution; and restores three-dimensional morphology information of the measurement area on the surface of the object to be measured based on the correspondence between phase offset information and the surface gradient of the object to be measured; the invention needs to obtain the correspondence between phase offset and the surface morphology of the object to be measured, which increases the measurement complexity and has low detection efficiency. Summary of the invention

[0004] In order to overcome the defect that the above-mentioned prior art cannot take into account both detection efficiency and detection accuracy, the present invention provides a high-precision micro-curved surface complex light beam optical detection method and system, which can quickly and non-contactly detect the surface information of the object under test, with simple steps, automated detection process, high detection efficiency and accurate detection results.

[0005] In order to solve the above technical problems, the technical solution of the present invention is as follows:

[0006] The present invention provides a high-precision micro-curved surface complex light beam optical detection method, comprising:

[0007] S1: emit a light beam to the object to be measured, and collect the light beam reflection image during the rotation of the object to be measured;

[0008] S2: preprocessing the beam reflection image to obtain a preprocessed image;

[0009] S3: Obtaining the rotation direction of the object under test according to the preprocessed image;

[0010] S4: Calculate the surface normal vector of the object to be measured according to the preprocessed image and the rotation direction, and obtain the surface normal vector RGB image of the object to be measured;

[0011] S5: Processing the surface normal vector RGB image to obtain a processed surface normal vector;

[0012] S6: Calculate the depth value of each point on the measured object according to the processed surface normal vector to form a depth map of the measured object;

[0013] S7: Reconstruct the surface model of the object under test according to the depth map.

[0014] Preferably, in step S1, a fixed-position complex beam angle sensor is used to emit a light beam to the object to be measured, and a fixed-position CMOS camera is used to capture a light beam reflection image during the rotation of the object to be measured.

[0015] Preferably, in step S2, the light beam reflection image is preprocessed as follows:

[0016] The beam reflection image is smoothed using a median filter.

[0017] Smoothing can effectively reduce the interference of speckle noise, and at the same time, it can better maintain the image edge detail information. Median filtering determines the grayscale of the central pixel by sorting the pixels in the neighborhood by grayscale: select a moving window on the beam reflection image, the moving window contains an odd number of pixels, sort the pixel values ​​of the odd number of pixels from small to large, and replace the pixel value of the central point with the median value of the pixel value.

[0018] Preferably, in step S3, the specific method for obtaining the rotation direction of the object to be measured according to the preprocessed image is:

[0019] In the present invention, the positions of the complex beam angle sensor and the CMOS camera are fixed, and the beam reflection images in different directions are collected by rotating the object to be measured. There is an absolute position and relative position relationship between the different beam irradiation directions and the fixed object to be measured, and between the rotating object to be measured and the fixed beam irradiation direction; all pre-processed images are added together, and it is found that the changes in the corresponding beam points on each pre-processed image show a change pattern of rotation around a certain point, which is consistent with the law of rotating the object to be measured when collecting beam reflection images in different directions.

[0020] All preprocessed images are summed to form a superimposed image of beam reflection; on the superimposed image, the corresponding beam points on each preprocessed image form a circle; the circle located at the center of the superimposed image is selected, and the center of gravity of the circle is calculated using the moments() function in OpenCV as the center of the circle; the beam points corresponding to two adjacent preprocessed images are selected on the circle, and the angle between the two beam points, that is, the angle of change in direction, is calculated using the cosine theorem in combination with the center of the circle, thereby determining the rotation direction of the object under test. According to the knowledge of physics and optics, the most central beam point is least affected by diffuse reflection, and the farther away from the center, the greater the impact, so the circle located at the center of the superimposed image is selected to calculate the rotation direction of the object under test.

[0021] Preferably, in step S4, the specific method for calculating the surface normal vector of the object under test according to the preprocessed image and the rotation direction is:

[0022] There is the following relationship between the surface normal vector of the object being measured, the irradiation direction of the light beam, and the brightness value of the preprocessed image:

[0023] I=K d LN T

[0024] Where I represents the brightness value of the preprocessed image, K d represents the reflectivity, L represents the unitized irradiation direction of the light beam, N represents the surface normal vector of the object being measured, (*) T Indicates transposition;

[0025] Then any point on the preprocessed image of the object under test has:

[0026]

[0027] In the formula, Represents the brightness value of the pixel with position coordinates (i, j) on the nth preprocessed image. It represents the directional components of the beam irradiation direction corresponding to the nth pre-processed image on the x-axis, y-axis, and z-axis in the spatial rectangular coordinate system. Represents the surface normal vector components of the pixel point with position coordinates (i, j) on the nth preprocessed image on the x-axis, y-axis, and z-axis.

[0028] There is a relative positional relationship between the irradiation direction of the light beam and the rotation direction of the object to be measured. The rotation direction of the object to be measured is the irradiation direction of the light beam. The brightness value I of the preprocessed image is the data on the preprocessed image. The surface normal vector of the object to be measured can be solved according to the above equation.

[0029] Preferably, in step S5, processing the surface normal vector RGB image specifically includes:

[0030] S5.1: Separate the surface normal vector RGB image of the object to be measured according to the three directions of the XYZ axis of the spatial coordinate system to obtain the data distribution of the surface normal vector on three single-channel images of the object to be measured;

[0031] S5.2: Remove outliers from surface normal vectors;

[0032] S5.3: According to the law of data distribution, interpolation fitting is performed on the surface normal vector of each single-channel image.

[0033] The shapes of industrial products can be roughly divided into two categories or composed of these two categories: one is composed only of elementary analytical surfaces, and most mechanical parts belong to this category; the other is not composed of elementary analytical surfaces, but is composed of curve surfaces that change freely in complex ways, namely the so-called free curve surfaces. Those that cannot be composed of elementary analytical surfaces can be decomposed into many small pieces, each of which is composed of elementary analytical surfaces. On elementary analytical surfaces, the surface normal vectors will show certain regular changes in the three directions of the XYZ axis of the spatial coordinate system, and the solved surface normal vector map is just the mapping relationship of the surface normal vector of the measured object on the XYZ axis of the spatial coordinate system. The RGB image of the surface normal vector of the measured object is separated to obtain the data distribution of the single-channel image. The data of each separated single-channel image corresponds to the surface normal vector distribution of the object on the XYZ axis. Interpolation fitting can be performed based on the distribution law to make up for the small amount of data missing caused by the inability of the measured object to completely reflect the light beam when collecting the light beam reflection image, which can effectively improve the accuracy of the reconstructed surface and reduce errors. When a light beam is irradiated onto the object being measured, there will be diffuse reflection due to the material problem of the object being measured, which will appear as abnormal values ​​on the image. The abnormal values ​​of diffuse reflection are treated as noise and removed before fitting to ensure the accuracy of the data.

[0034] Preferably, in step S6, the specific method for calculating the depth value of each point on the measured object according to the processed surface normal vector is:

[0035] The surface normal vector of the measured object is perpendicular to the tangent plane of the measured object surface, and the surface normal vector is perpendicular to any straight line on the tangent plane; the vectors pointing to the right neighboring pixels and the lower neighboring pixels of any point (i, j) on the surface of the measured object are all located on the tangent plane passing through the point, and the vector pointing to the right neighboring pixels is:

[0036] (i+1,j,z i+1,j )-(i,j,z i,j )=(1,0,z i+1,j -z i,j )

[0037] The vector pointing to the right neighboring pixel is perpendicular to the surface normal vector, and the perpendicular equation is:

[0038]

[0039] Arranged as:

[0040]

[0041] The pixel vector pointing to the lower neighbor is perpendicular to the surface normal vector. Similarly, the vertical equation is:

[0042]

[0043] According to the vertical equation of the right neighbor pixel vector and the lower neighbor pixel vector, the depth value z of each point is expressed as:

[0044] Mz=v

[0045] In the formula, M represents the matrix coefficient, v represents the matrix about the surface normal vector, and the depth value z is solved by the least squares method.

[0046] The present invention also provides a high-precision micro-curved surface complex light beam optical detection system, comprising:

[0047] An image acquisition module is used to emit a light beam to the object to be measured and to collect a reflection image of the light beam during the rotation of the object to be measured;

[0048] An image preprocessing module, used for preprocessing the light beam reflection image to obtain a preprocessed image;

[0049] The rotation direction calculation module obtains the rotation direction of the object under test according to the preprocessed image;

[0050] The normal vector calculation module calculates the surface normal vector of the object to be measured according to the preprocessed image and the rotation direction, and obtains the surface normal vector RGB image of the object to be measured;

[0051] The RGB image processing module processes the surface normal vector RGB image to obtain the processed surface normal vector;

[0052] The depth value calculation module calculates the depth value of each point on the measured object according to the processed surface normal vector to form a depth map of the measured object;

[0053] The surface reconstruction module reconstructs the surface model of the object under test according to the depth map.

[0054] Preferably, the image acquisition module is a complex beam angle sensor; the complex beam angle sensor comprises a laser, a filter plate, a collimator lens, a beam splitter, a cylindrical lens, a rotating platform, a microlens array and a CMOS camera;

[0055] The laser emits a light beam, which passes through the holes on the filter plate and is then collimated by a collimator lens. The collimated light beam is bent by a beam splitter and then projected onto the object to be measured through a cylindrical lens. The object to be measured is placed on a rotating platform. The light beam reflected by the object to be measured is focused on a microlens array through a beam splitter. The microlens array divides the reflected light beam into multiple light beams, and a CMOS camera captures the light beam reflection image. The rotating platform drives the object to be measured to rotate, and the CMOS camera captures the light beam reflection image when the object to be measured is rotated to different angles.

[0056] The light beam bent by the beam splitter passes through a cylindrical lens, which can effectively eliminate the influence of the lens curvature.

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

[0058] (1) The prior art uses a calibration ball to calibrate the direction of the light source. The light beam reflection image can only be collected after the calibration ball and the object to be measured are switched, which will cause position errors. Switching the calibration ball and the object to be measured requires manual operation, and the degree of automation of the detection process is low. The present invention rotates the object to be measured and collects the light beam reflection image during the rotation of the object to be measured, thereby eliminating the position error and improving the data accuracy of the light beam reflection image. No manual operation is required, and the degree of automation is high.

[0059] (2) The surface normal vector is processed to make up for the information loss caused by the reflected light beam of the measured object, improve the accuracy of the calculated depth value, and improve the accuracy of surface reconstruction;

[0060] (3) The detection method provided by the present invention has simple steps, short detection time and high efficiency. It can be completed using existing high-precision micro-curved surface complex beam optical equipment, has low cost, high degree of automation, and is easy to promote. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] Figure 1 This is a flow chart of a high-precision micro-curved surface complex light beam optical detection method described in Example 1;

[0062] Figure 2 The light beam reflection images of the object to be measured described in Example 2 rotated to different directions and angles;

[0063] Figure 3 is a superimposed image of all the light beam reflection images described in Example 2;

[0064] Figure 4 The circle selected as described in Example 2;

[0065] Figure 5 A diagram showing changes in beam points corresponding to the selected circles on adjacent pre-processed images as described in Example 2;

[0066] Figure 6 The surface normal vector RGB image of the object under test described in Example 2;

[0067] Figure 7 This is a schematic diagram of data distribution of the surface normal vector of the measured object in three directions according to Example 2;

[0068] Figure 8 This is a schematic diagram of data distribution in three directions after the normal vector of the surface of the measured object is fitted as described in Example 2;

[0069] Fig. 9 A structural diagram of a high-precision micro-curved surface complex light beam optical detection system described in Example 3;

[0070] Fig.10 This is a schematic diagram of the structure of the complex beam angle sensor described in Example 3;

[0071] In the figure, 1-laser, 2-filter plate, 3-collimator lens, 4-beam splitter, 5-cylindrical lens, 6-rotating platform, 7-microlens array, 8-CMOS camera. DETAILED DESCRIPTION

[0072] The drawings are for illustrative purposes only and should not be construed as limiting the present patent;

[0073] In order to better illustrate the present embodiment, some parts in the drawings may be omitted, enlarged or reduced, and do not represent the size of the actual product;

[0074] It is understandable to those skilled in the art that some well-known structures and their descriptions may be omitted in the drawings.

[0075] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0076] Example 1

[0077] This embodiment provides a high-precision micro-curved surface complex light beam optical detection method, such as Figure 1 As shown, including:

[0078] S1: emit a light beam to the object to be measured, and collect the light beam reflection image during the rotation of the object to be measured;

[0079] S2: preprocessing the beam reflection image to obtain a preprocessed image;

[0080] S3: Obtaining the rotation direction of the object under test according to the preprocessed image;

[0081] S4: Calculate the surface normal vector of the object to be measured according to the preprocessed image and the rotation direction, and obtain the surface normal vector RGB image of the object to be measured;

[0082] S5: Processing the surface normal vector RGB image to obtain a processed surface normal vector;

[0083] S6: Calculate the depth value of each point on the measured object according to the processed surface normal vector to form a depth map of the measured object;

[0084] S7: Reconstruct the surface model of the object under test according to the depth map.

[0085] In the actual implementation process, the rotation speed of the object to be measured is set in advance, and the entire detection method process can be automatically realized, with simple steps, short detection time and high efficiency; only the object to be measured needs to be rotated, and there is no need to calibrate the direction of the light beam. The calculation process is simple and the calculation results are accurate, which improves the accuracy of surface reconstruction; the surface normal vector of the object to be measured is processed and the depth value of each point is calculated, which can effectively make up for the information loss when the object to be measured reflects the light beam, further improving the accuracy of surface reconstruction.

[0086] Example 2

[0087] This embodiment provides a high-precision micro-curved surface complex light beam optical detection method, including:

[0088] S1: emit a light beam to the object to be measured, and collect the light beam reflection image during the rotation of the object to be measured;

[0089] A fixed-position complex beam angle sensor is used to emit a beam to the object under test, and a fixed-position CMOS camera is used to capture the beam reflection image during the rotation of the object under test. Figure 2 As shown, it is the reflected image of the light beam when the object being measured is rotated to different directions and angles.

[0090] When the traditional method collects the light beam reflection image of the object to be measured, it is necessary to use a light source to emit light beams from different directions to illuminate the object to be measured, and it is necessary to first use a calibration sphere to calculate the approximate direction of the light source illumination, and then place the object to be measured at the position of the calibration sphere for light beam irradiation. The position of the calibration sphere and the object to be measured will change during the switching process, resulting in errors in the collected light beam reflection image. The present embodiment fixes the complex beam angle sensor that emits light and the CMOS camera that collects the light beam reflection image, and collects the light beam reflection image by rotating the object to be measured, thereby reducing the error of the position change of the object to be measured.

[0091] S2: preprocessing the beam reflection image to obtain a preprocessed image;

[0092] The beam reflection image is smoothed using a median filter; smoothing can effectively reduce the interference of speckle noise, while reducing noise and better maintaining the image edge detail information. Median filtering determines the grayscale of the central pixel by sorting the pixels in the neighborhood by grayscale: a moving window is selected on the beam reflection image, and the moving window contains an odd number of pixels. The pixel values ​​of the odd number of pixels are sorted from small to large, and the pixel value of the central point is replaced by the median value of the pixel value of the pixel point.

[0093] S3: Obtaining the rotation direction of the object under test according to the preprocessed image;

[0094] In this embodiment, the positions of the complex beam angle sensor and the CMOS camera are fixed, and the light beam reflection images in different directions are collected by rotating the object to be measured. There is an absolute position and relative position relationship between the different light beam irradiation directions and the fixed object to be measured, and between the rotating object to be measured and the fixed light beam irradiation direction. All pre-processed images are added together, and it is found that the changes in the corresponding light beam points on each pre-processed image show a change pattern of rotation around a certain point, which is consistent with the law of rotating the object to be measured when collecting light beam reflection images in different directions.

[0095] like Figure 3 As shown in FIG. 1 , all pre-processed images are summed to form a superimposed image of the beam reflection; on the superimposed image, a circle is formed corresponding to the beam point on each pre-processed image; Figure 4 As shown in the figure, the circle at the center of the superimposed image is selected, and the moments() function in OpenCV is used to calculate the center of gravity of the circle as the center of the circle. According to the knowledge of physics and optics, the most central beam point is least affected by diffuse reflection, and the farther away from the center, the greater the impact. Therefore, the circle at the center of the superimposed image is selected to calculate the rotation direction of the object under test; as shown in the figure Figure 5 As shown in the figure, the position change of the beam point corresponding to the selected circle on the adjacent preprocessed images is shown. The beam points corresponding to two adjacent preprocessed images are selected on the circle. Combined with the center of the circle, the cosine theorem is used to calculate the angle between the two beam points, that is, the angle of change in direction, and then the rotation direction of the object under test is determined.

[0096] S4: Calculate the surface normal vector of the object to be measured according to the preprocessed image and the rotation direction, and obtain the surface normal vector RGB image of the object to be measured;

[0097] There is the following relationship between the surface normal vector of the object being measured, the irradiation direction of the light beam, and the brightness value of the preprocessed image:

[0098] I=K d LN T

[0099] Where I represents the brightness value of the preprocessed image, K d represents the reflectivity, L represents the unitized irradiation direction of the light beam, N represents the surface normal vector of the object being measured, (*) T Indicates transposition;

[0100] Then any point on the preprocessed image of the object under test has:

[0101]

[0102] In the formula, Represents the brightness value of the pixel with position coordinates (i, j) on the nth preprocessed image. It represents the directional components of the beam irradiation direction corresponding to the nth pre-processed image on the x-axis, y-axis, and z-axis in the spatial rectangular coordinate system. Represents the surface normal vector components of the pixel point with position coordinates (i, j) on the nth preprocessed image on the x-axis, y-axis, and z-axis.

[0103] There is a relative position relationship between the irradiation direction of the light beam and the rotation direction of the object being measured. The rotation direction of the object being measured is the irradiation direction of the light beam. The brightness value I of the preprocessed image is the data on the preprocessed image. According to the above equation, the surface normal vector of the object being measured can be solved. Figure 6 As shown, it is the RGB image of the surface normal vector of the object being measured.

[0104] S5: Processing the surface normal vector RGB image to obtain a processed surface normal vector;

[0105] Specifically:

[0106] S5.1: Separate the surface normal vector RGB image of the object to be measured according to the three directions of the XYZ axis of the spatial coordinate system to obtain the data distribution of the surface normal vector on three single-channel images of the object to be measured;

[0107] S5.2: Remove outliers in surface normal vectors;

[0108] S5.3: According to the law of data distribution, interpolation fitting is performed on the surface normal vector of each single-channel image.

[0109] The shapes of industrial products can be roughly divided into two categories or composed of these two categories: one category is composed only of elementary analytical surfaces, and most mechanical parts belong to this category; the other category cannot be composed of elementary analytical surfaces, but is composed of curve surfaces that change freely in complex ways, namely the so-called free curve surfaces. Those that cannot be composed of elementary analytical surfaces can be decomposed into many small pieces, each of which is composed of elementary analytical surfaces. On elementary analytical surfaces, the surface normal vectors will show certain regular changes in the three directions of the XYZ axis of the spatial coordinate system, and the solved surface normal vector graph is exactly the mapping relationship between the surface normal vectors of the measured object on the XYZ axis of the spatial coordinate system. For example Figure 7As shown, the RGB image of the surface normal vector of the object under test is separated to obtain the data distribution of the single-channel image. The data of each separated single-channel image corresponds to the surface normal vector distribution of the object on the XYZ axis, corresponding to the X, Y, and Z axes from left to right. Interpolation fitting can be performed based on the distribution law to make up for the small amount of data missing caused by the inability of the object under test to completely reflect the light beam when collecting the light beam reflection image. This can effectively improve the accuracy of the reconstructed surface and reduce errors. When the light beam is irradiated to the object under test, there will be diffuse reflection due to the material problem of the object under test, which will appear as an outlier in the image. The outliers of diffuse reflection are treated as noise and removed before fitting, such as Figure 8 The figure shows the data distribution diagram in three directions after the normal vector of the measured object is fitted, which corresponds to the X, Y, and Z axes from left to right. The above steps ensure the accuracy of the data and further improve the accuracy of the reconstructed surface. When using a complex beam angle sensor to collect images, the emitted beam becomes a dot matrix beam, which is then reflected by the object, resulting in missing surface information. When processing the surface normal vector RGB map, interpolation fitting is performed to make up for the missing information caused by the dot matrix beam.

[0110] S6: Calculate the depth value of each point on the measured object according to the processed surface normal vector to form a depth map of the measured object;

[0111] The surface normal vector of the measured object is perpendicular to the tangent plane of the measured object surface, and the surface normal vector is perpendicular to any straight line on the tangent plane; the vectors pointing to the right neighboring pixels and the lower neighboring pixels of any point (i, j) on the surface of the measured object are all located on the tangent plane passing through the point, and the vector pointing to the right neighboring pixels is:

[0112] (i+1,j,z i+1,j )-(i,j,z i,j )=(1,0,z i+1,j -z i,j )

[0113] The vector pointing to the right neighboring pixel is perpendicular to the surface normal vector, and the perpendicular equation is:

[0114]

[0115] Arranged as:

[0116]

[0117] The pixel vector pointing to the lower neighbor is perpendicular to the surface normal vector. Similarly, the vertical equation is:

[0118]

[0119] According to the vertical equation of the right neighbor pixel vector and the lower neighbor pixel vector, the depth value z of each point is expressed as:

[0120] Mz=v

[0121] In the formula, M represents the matrix coefficient, v represents the matrix about the surface normal vector, and then the depth value z is solved by the least squares method.

[0122] The existing measurement method uses the principle that the light beam is reflected from the aspherical surface to the lens optical path, and the image data obtained is observed and recorded by a CMOS camera. The surface angular difference is calculated through the image data, and the angular difference is expressed by Fourier series. Then, according to the relationship between the angular difference and the surface profile, the angular difference is inversely transformed by Fourier to obtain the surface data information. When calculating the surface angular difference of the object, this method needs to manually select a row in the image data for calculation, which has the disadvantages of randomness, lack of automation, and low efficiency; while the method provided in this embodiment selects the entire image data for processing, and the one-dimensional data processing is upgraded to the two-dimensional data processing, and the calculation process is automated, which is efficient and more in line with the measurement principle.

[0123] S7: Reconstruct the surface model of the object under test according to the depth map.

[0124] In the actual implementation process, the object to be measured is rotated, and different numbers of beam reflection images are obtained as the data basis for the subsequent process. The number of beam reflection images is at least 3. The surface values ​​of the object to be measured that are finally reconstructed are compared with the actual values, and the error values ​​obtained are shown in the following table:

[0125] Number of beam reflection images 4 6 12 15 18 error(%) 22.55 17.87 3.60 1.80 0.58 Average running time (s) 10.11 10.20 10.57 10.72 10.86

[0126] It can be seen from the table that the more light beam reflection images of the measured object are obtained, the closer the reconstructed surface of the measured object is to the actual measured object. In this embodiment, the rotation speed of the measured object can be pre-set, and the entire detection method process can be automatically realized, with simple steps, short detection time and high efficiency; only the measured object is rotated, and there is no need to calibrate the direction of the light beam, the calculation process is simple, the calculation result is accurate, and the accuracy of surface reconstruction is improved; after calculating the surface normal vector of the measured object, the surface normal vector is separated in three directions of XYZ, and then interpolation fitting is performed, which makes up for the information loss caused by the reflection of the light beam by the measured object, and further improves the accuracy of surface reconstruction.

[0127] Example 3

[0128] This embodiment provides a high-precision micro-curved surface complex beam optical detection system. Fig. 9 As shown, including:

[0129] An image acquisition module is used to emit a light beam to the object to be measured and to collect a reflection image of the light beam during the rotation of the object to be measured;

[0130] An image preprocessing module, used for preprocessing the light beam reflection image to obtain a preprocessed image;

[0131] The rotation direction calculation module obtains the rotation direction of the object under test according to the preprocessed image;

[0132] The normal vector calculation module calculates the surface normal vector of the object to be measured according to the preprocessed image and the rotation direction, and obtains the surface normal vector RGB image of the object to be measured;

[0133] The RGB image processing module processes the surface normal vector RGB image to obtain the processed surface normal vector;

[0134] The depth value calculation module calculates the depth value of each point on the measured object according to the processed surface normal vector to form a depth map of the measured object;

[0135] The surface reconstruction module reconstructs the surface model of the object under test according to the depth map.

[0136] The image acquisition module is a complex beam angle sensor; Fig.10 As shown, the complex beam angle sensor includes a laser 1, a filter plate 2, a collimator lens 3, a beam splitter 4, a cylindrical lens 5, a rotating platform 6, a microlens array 7 and a CMOS camera 8;

[0137] Laser 1 emits a light beam, which passes through the hole on the filter plate 2 and is then collimated by a collimator lens 3; the collimated light beam is bent by a beam splitter 4 and then projected onto the object to be measured through a cylindrical lens 5, and the object to be measured is placed on a rotating platform 6; the light beam reflected by the object to be measured is focused on a microlens array 7 through a beam splitter 4, and the microlens array 7 divides the reflected light beam into multiple light beams, and a CMOS camera 8 captures a light beam reflection image; the rotating platform 6 drives the object to be measured to rotate, and the CMOS camera 8 captures a light beam reflection image of the object to be measured when it is rotated to different angles.

[0138] The light beam bent by the beam splitter 4 passes through the cylindrical lens 5, which can effectively eliminate the influence of the lens curvature.

[0139] The same or similar reference numerals correspond to the same or similar components;

[0140] The terms used in the drawings to describe positional relationships are only used for illustrative purposes and should not be construed as limiting this patent;

[0141] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the embodiments here. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the claims of the present invention.

Claims

1. A high-precision micro-curved surface complex light beam optical detection method, characterized in that: include: S1: emit a light beam to the object to be measured, and collect the light beam reflection image during the rotation of the object to be measured; S2: preprocessing the beam reflection image to obtain a preprocessed image; S3: Obtaining the rotation direction of the object under test according to the preprocessed image; S4: Calculate the surface normal vector of the object to be measured according to the preprocessed image and the rotation direction, and obtain the surface normal vector RGB image of the object to be measured; According to the preprocessed image and the rotation direction, the specific method for calculating the surface normal vector of the measured object is: There is the following relationship between the surface normal vector of the object being measured, the irradiation direction of the light beam, and the brightness value of the preprocessed image: I=K d LN T Where I represents the brightness value of the preprocessed image, K d represents the reflectivity, L represents the unitized irradiation direction of the light beam, N represents the surface normal vector of the object being measured, (*) T Indicates transposition; there is a relative position relationship between the irradiation direction of the light beam and the rotation direction of the object being measured, and the rotation direction of the object being measured is the irradiation direction of the light beam; Then any point on the preprocessed image of the object under test has: In the formula, Represents the brightness value of the pixel with position coordinates (i, j) on the nth preprocessed image. It represents the directional components of the beam irradiation direction corresponding to the nth pre-processed image on the x-axis, y-axis, and z-axis in the spatial rectangular coordinate system. Represents the surface normal vector components of the pixel point with position coordinates (i, j) on the nth preprocessed image on the x-axis, y-axis, and z-axis; S5: Processing the surface normal vector RGB image to obtain a processed surface normal vector; S6: Calculate the depth value of each point on the measured object according to the processed surface normal vector to form a depth map of the measured object; The specific method for calculating the depth value of each point on the measured object based on the processed surface normal vector is: The surface normal vector of the measured object is perpendicular to the tangent plane of the measured object surface, and the surface normal vector is perpendicular to any straight line on the tangent plane; the vectors pointing to the right neighboring pixels and the lower neighboring pixels of any point (i, j) on the surface of the measured object are all located on the tangent plane passing through the point, and the vector pointing to the right neighboring pixels is: (i+1,j,z i+1,j )-(i,j,z i,j )=(1,0,z i+1,j -z i,j ) The vector pointing to the right neighboring pixel is perpendicular to the surface normal vector, and the perpendicular equation is: Arranged as: The pixel vector pointing to the lower neighbor is perpendicular to the surface normal vector. Similarly, the vertical equation is: According to the vertical equation of the right neighbor pixel vector and the lower neighbor pixel vector, the depth value z of each point is expressed as: Mz=v In the formula, M represents the matrix coefficient, and v represents the matrix about the surface normal vector; S7: Reconstruct the surface model of the object under test according to the depth map.

2. The high-precision micro-curved surface complex light beam optical detection method according to claim 1, characterized in that: In the step S1, a fixed-position complex beam angle sensor is used to emit a light beam to the object to be measured.

3. The high-precision micro-curved surface complex light beam optical detection method according to claim 1, characterized in that: In the step S1, a fixed-position CMOS camera is used to capture a light beam reflection image of the object under test during its rotation.

4. The high-precision micro-curved surface complex light beam optical detection method according to claim 1, characterized in that: In step S2, the light beam reflection image is preprocessed as follows: The beam reflection image is smoothed using a median filter.

5. The high-precision micro-curved surface complex light beam optical detection method according to claim 1, characterized in that: In step S3, the specific method for obtaining the rotation direction of the object to be measured according to the preprocessed image is: All preprocessed images are summed to form a superimposed image of light beam reflection; on the superimposed image, a circle is formed by the corresponding beam points on each preprocessed image; the circle located at the center of the superimposed image is selected, and the moments() function in OpenCV is used to calculate the center of gravity of the circle as the center of the circle; the beam points corresponding to two adjacent preprocessed images are selected on the circle, and the angle between the two beam points, that is, the angle of change of direction, is calculated using the cosine theorem in combination with the center of the circle, thereby determining the rotation direction of the object under test.

6. The high-precision micro-curved surface complex light beam optical detection method according to claim 1, characterized in that: In step S5, processing the surface normal vector RGB image specifically includes: S5.1: Separate the surface normal vector RGB image of the object to be measured according to the three directions of the XYZ axis of the spatial coordinate system to obtain the data distribution of the surface normal vector on three single-channel images of the object to be measured; S5.2: Remove outliers in surface normal vectors; S5.3: According to the law of data distribution, interpolation fitting is performed on the surface normal vector of each single-channel image.

7. A high-precision micro-curved surface complex beam optical detection system, characterized in that: include: An image acquisition module is used to emit a light beam to the object to be measured and to collect a reflection image of the light beam during the rotation of the object to be measured; An image preprocessing module, used for preprocessing the light beam reflection image to obtain a preprocessed image; The rotation direction calculation module obtains the rotation direction of the object under test according to the preprocessed image; The normal vector calculation module calculates the surface normal vector of the object to be measured according to the preprocessed image and the rotation direction, and obtains the surface normal vector RGB image of the object to be measured; According to the preprocessed image and the rotation direction, the specific method for calculating the surface normal vector of the measured object is: There is the following relationship between the surface normal vector of the object being measured, the irradiation direction of the light beam, and the brightness value of the preprocessed image: I=K d LN T Where I represents the brightness value of the preprocessed image, K d represents the reflectivity, L represents the unitized irradiation direction of the light beam, N represents the surface normal vector of the object being measured, (*) T Indicates transposition; there is a relative position relationship between the irradiation direction of the light beam and the rotation direction of the object being measured, and the rotation direction of the object being measured is the irradiation direction of the light beam; Then any point on the preprocessed image of the object under test has: In the formula, Represents the brightness value of the pixel with position coordinates (i, j) on the nth preprocessed image, It represents the directional components of the beam irradiation direction corresponding to the nth pre-processed image on the x-axis, y-axis, and z-axis in the spatial rectangular coordinate system. Represents the surface normal vector components of the pixel point with position coordinates (i, j) on the nth preprocessed image on the x-axis, y-axis, and z-axis; The RGB image processing module processes the surface normal vector RGB image to obtain the processed surface normal vector; The depth value calculation module calculates the depth value of each point on the measured object according to the processed surface normal vector to form a depth map of the measured object; The specific method for calculating the depth value of each point on the measured object based on the processed surface normal vector is: The surface normal vector of the measured object is perpendicular to the tangent plane of the measured object surface, and the surface normal vector is perpendicular to any straight line on the tangent plane; the vectors pointing to the right neighboring pixels and the lower neighboring pixels of any point (i, j) on the surface of the measured object are all located on the tangent plane passing through the point, and the vector pointing to the right neighboring pixels is: (i+1,j,z i+1,j )-(i,j,z i,j )=(1,0,z i+1,j -z i,j ) The vector pointing to the right neighboring pixel is perpendicular to the surface normal vector, and the perpendicular equation is: Arranged as: The pixel vector pointing to the lower neighbor is perpendicular to the surface normal vector. Similarly, the vertical equation is: According to the vertical equation of the right neighbor pixel vector and the lower neighbor pixel vector, the depth value z of each point is expressed as: Mz=v In the formula, M represents the matrix coefficient, and v represents the matrix about the surface normal vector; The surface reconstruction module reconstructs the surface model of the object under test according to the depth map.

8. The high-precision micro-curved surface complex light beam optical detection system according to claim 7, characterized in that: The image acquisition module is a complex light beam angle sensor; the complex light beam angle sensor comprises a laser (1), a filter plate (2), a collimator lens (3), a beam splitter (4), a cylindrical lens (5), a rotating platform (6), a microlens array (7) and a CMOS camera (8); A laser (1) emits a light beam, and after the light beam passes through a hole on a filter plate (2), it is collimated by a collimator lens (3); after the collimated light beam passes through a beam splitter (4) and is bent, it is projected onto a measured object through a cylindrical lens (5), and the measured object is placed on a rotating platform (6); the light beam reflected by the measured object is focused on a microlens array (7) through the beam splitter (4), and the microlens array (7) divides the reflected light beam into a plurality of light beams, and a CMOS camera (8) captures a light beam reflection image; the rotating platform (6) drives the measured object to rotate, and the CMOS camera (8) captures a light beam reflection image when the measured object is rotated to different angles.

Citation Information

Patent Citations

  • Method and device for three-dimensionally measuring complex curved surface parts through multi-optical-sensor cooperation

    CN103453849A

  • High-reflection object measurement method and system based on laser speckle limit constraint projection

    CN110940295A

  • Three-dimensional human body measurement system and method based on point cloud data

    CN113240603A

  • Freeform mirror for a transmitting device of an optical detection device, transmitting device, optical detection device, motor vehicle and method

    DE102017125184A1

  • Pre-alignment measurement device and method

    US20170350696A1