Self-detection optimization method and system for high-speed and high-precision structured light measurement system
Solving the ambient light frequency through the principle of binocular structured light and pre-projection mode solves the problem of insufficient accuracy of the structured light measurement system in complex environments, achieving high-precision three-dimensional measurement under a variety of ambient lights and increasing the computing speed.
Patent Information
- Application Number
- CN202410465374.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-18
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-04-18
AI Technical Summary
The existing structured light measurement system has insufficient measurement accuracy and robustness in complex ambient light scenarios, especially in the mobile measurement of large components. The existing optimization method is complex in calculation and operation, and the measurement accuracy in indoor light fields is improved. Not obvious.
Using the principle of binocular structured light, we design a compensation algorithm under environmental interference, solve the ambient light frequency through pre-projection mode, plan and reconstruct the fringe frequency within the effective threshold range, and compensate the original measurement parameters to improve the accuracy and accuracy of the structured light three-dimensional measurement system. Operation speed.
The reconstruction accuracy of the structured light three-dimensional measurement system is improved under various ambient lights, the binocular structured light phase shift frequency is reduced, the structured light scanning reconstruction calculation speed is improved, and the influence of ambient light noise on the measurement results is avoided.
Smart Images

Figure CN118548824A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of three-dimensional measurement, and more specifically, relates to a self-detection optimization method and system for a high-speed and high-precision structured light measurement system. Background Art
[0002] Three-dimensional measurement technology plays an important role in processing guidance, processing status monitoring, processing dimension detection and defect identification, and processing quality assessment in the field of industrial automation. It is an indispensable part of realizing automated intelligent manufacturing.
[0003] However, for structured light 3D measurement systems in complex ambient light scenes, there will still be linear deviations in the measurement results and insufficient robustness of the measurement accuracy. Therefore, for structured light measurement systems in different light field environments during mobile measurement of large components, it is still necessary to optimize the accuracy of the measurement system.
[0004] For the mobile structured light measurement system in this case, there are several ways to optimize the accuracy: reconstruct surface information with dense point clouds by using high-frequency fringe phase profilometry; use special material surface spraying to improve the surface reflection efficiency of the object to be measured and thus improve the collection efficiency. The above two methods have high computational and operational complexity, and the effect of improving the measurement accuracy under indoor light fields is not obvious.
[0005] Chinese patent CN106840036A provides a binary structured light optimization method suitable for fast three-dimensional shape measurement, including the following steps: camera and projector λ correction; camera calibration, distortion correction; projection phase-shifted grating stripes; projection binary structured light coding map; phase shift method to find the grating wrapping phase, use coding stripes to find the grating order; find the absolute phase, complete phase unwrapping; phase mapping to real height, reconstruct three-dimensional contour. However, under the mixed interference caused by projection nonlinear error and environmental influence, the height information mapped by phase may change, so it is not universal. Chinese patent CN112611320A discloses a multi-frequency heterodyne surface structured light 3D reconstruction method based on gradient light intensity, the steps include: 1) building a structured light measurement system; 2) calibrating the entire structured light measurement system; 3) determining the different frequencies of m groups of structured light fringe patterns to be generated; 4) generating m groups of projection images based on gradient light intensity; 5) projecting the projection images onto the surface of the object to be measured, and collecting the images after modulation by the object to be measured to obtain the total collected images; 6) calculating the gradient light intensity of the total collected images; 7) calculating the wrapping phase of each group of collected images to obtain the highest frequency wrapping phase; 8) calculating the integer fringe order of the highest frequency collected image; 9) calculating the absolute phase corresponding to the highest frequency collected image for 3D reconstruction. The process of solving the absolute phase by the multi-frequency phase shift method makes the surface point cloud of the surface structured light measurement too dense, resulting in excessive time cost in the calculation.
[0006] Based on the above defects and shortcomings, this field urgently needs to propose a self-detection optimization method for a high-speed and high-precision structured light measurement system, adding a compensation factor to the original four-step phase shift method, so as to avoid the influence of the measurement environment of the mobile robot under different ambient light conditions on the measurement effect. Summary of the invention
[0007] In view of the above defects or improvement needs of the prior art, the present invention provides a self-detection optimization method and system for a high-speed and high-precision structured light measurement system. Through the principle of binocular structured light, a compensation algorithm under environmental interference is proposed, and based on this, the structured light 3D reconstruction system is optimized. By designing a pre-projection mode to solve the ambient light frequency, the compensation is then applied to the structured light image acquisition program to improve the accuracy of the reconstruction effect of the structured light 3D measurement system under a variety of ambient lights. By designing an algorithm for planning the reconstruction fringe frequency within the effective threshold range, the binocular structured light phase shift frequency is minimized to ensure the accuracy requirement while improving the structured light scanning reconstruction operation speed.
[0008] To achieve the above object, according to one aspect of the present invention, a self-detection optimization method for a high-speed and high-precision structured light measurement system is proposed, which is characterized by comprising the following steps:
[0009] S1 builds a structured light measurement system and calibrates the measurement system;
[0010] S2 pre-projects a periodic fringe pattern onto the surface of the object to be measured, obtains a measured light intensity function under environmental interference, and constructs a light intensity noise model under environmental interference based on the measured light intensity function;
[0011] S3: according to the light intensity noise model, the ambient light frequency is solved by the light intensity function under the environmental interference, and the optimal exposure time is obtained, and the threshold range of the saturated mask image is calculated by the light intensity function;
[0012] S4 obtains the optimal exposure and optimal fringe frequency of the measurement system according to the environmental parameters to compensate for the original measurement parameters;
[0013] S5 calculates the point cloud of the target object according to the compensated original measurement parameters and the collected light intensity function of the object to be measured.
[0014] As further preferred, in step S1, the optical measurement system comprises: binocular cameras and a measurement object that are not arranged in a colinear manner, and a fringe generating device is arranged between the binocular cameras, and the fringe generating device is used to perform periodic fringe projection onto the measurement object.
[0015] As further preferred, step S2 comprises the following steps:
[0016] S21 obtains grayscale information of the pixel points of the object to be measured by adopting the coding of the grayscale points of the image taken by the camera, and expresses the grayscale information as a measured light intensity function;
[0017] S22 builds a light intensity noise model under the combined effects of ambient light and surface reflection of the object being measured;
[0018] S23 solves the relationship between the wrapping phase error and the light intensity error based on the measured light intensity function and the light intensity noise model;
[0019] S24 divides the phase error under the influence of multiple noises into the phase error under the overall influence and the phase error under the influence of periodic ambient light according to the relationship between the wrapped phase error and the light intensity error.
[0020] As further preferred, in step S21, the measured light intensity function is:
[0021] I n (x,y)=A(x,y)+B(x,y)cos[φ(x,y)-2πn / N]
[0022] Where A(x, y) is the background light intensity, B(x, y) is the modulation intensity, and φ(x, y) is the phase information;
[0023] Preferably, in step S22, the light intensity noise model includes:
[0024] A n =A(x p ,y p )
[0025] =A 0 (x p ,y p )+ΔA n (x p ,y p )
[0026] In the formula, A n For the actual acquisition of background light intensity model, A 0 (x p ,y p ) is the ideal background light intensity, ΔA n (x p ,y p ) is the background light intensity error function, and the ambient light noise is assumed to be one-dimensional superimposable Gaussian noise. The probability density influence function of the light intensity noise under the influence of the probability density of the Gaussian mixture model is expressed as:
[0027]
[0028] In the formula, α kis the probability that the observed data belongs to the Kth sub-model, x is the target observed data in the sample data, θ k is the Gaussian distribution density function of the kth sub-model.
[0029] As a further preferred embodiment, in step S23, the light intensity noise model is introduced into the measured light intensity function, and the light intensity error function is partially derived to obtain the relationship between the wrapped phase error and the light intensity error:
[0030]
[0031] Where Δφ is the phase error, ΔA n is the background light intensity error function, φ is the phase information, A n To actually collect the background light intensity model;
[0032] Preferably, in step S24, the phase error Δφ under the influence of multiple noises is divided into two types of errors for modeling:
[0033] Δφ=Δφ L +Δφ T
[0034] Where Δφ is the phase error under the overall influence, Δφ L is the phase error under the influence of periodic ambient light, Δφ T It is the phase error under the influence of the reflection on the surface of the object to be measured.
[0035] As a further preferred embodiment, the phase error Δφ under the influence of the periodic ambient light is L The calculation model is as follows:
[0036]
[0037] The phase error Δφ under the influence of the surface reflection of the object to be measured T The calculation model is as follows:
[0038]
[0039] Where N is the number of phase shift steps, B is the intensity modulation, ΔA n is the background light intensity error function under the influence of periodic ambient light, ΔA i is the background light intensity error function under the influence of surface reflection, and φ is the phase information.
[0040] As further preferred, step S3 includes:
[0041] S31 solves the ambient light frequency through the light intensity function under environmental interference and obtains the most taboo exposure time. By analyzing the pre-projected light intensity function, it is found that in the four-step phase shift method of the light measurement system under the influence of periodic ambient light, the adjacent fringe projection steps will have a difference in the fringe collection light intensity and the fringe collection light intensity in the adjacent steps due to the influence of periodic ambient light. Let the frequency of the periodic ambient light influence be F L , and obtain F by solving the adjacent phases L :
[0042]
[0043] Where N is the number of phase shift steps, A n For the actual acquisition of background light intensity model, A 0 is the ideal background light intensity model,
[0044] According to the F L Identify and compensate for the interval between projection exposure and camera acquisition triggering to obtain the best exposure time;
[0045] S32 determines the effective range in fringe projection acquisition by setting a mask image according to the light intensity noise model:
[0046]
[0047] In the formula, ΔM k (x p ,y p ) is the mask range corresponding to pixel P, M k-1 (x p ,y p ) is the effective upper bound corresponding to pixel P, M k (x p ,y p ) is the effective lower bound corresponding to pixel P, is the maximum projector brightness corresponding to the upper bound, is the maximum projector brightness corresponding to the lower bound.
[0048] As a further preferred aspect, it also includes:
[0049] By calculating the effective range collected in real time, an adaptive compensation function is set for the collected background light intensity A and modulation intensity B, where the modulation intensity B is set to:
[0050]
[0051] The average intensity is:
[0052]
[0053] In the formula, Bp (x p ,y p ) is the modulation intensity, is the maximum acquisition brightness corresponding to the saturated pixel of the matched camera, L min (x p ,y p ) is the minimum brightness of the projected fringe pattern, A p (x p ,y p ) is the background light intensity function of pixel P collected by the device.
[0054] As further preferred, step S4 includes the following steps:
[0055] S41 processes the acquired fringes through the exposure function and the mask image to obtain the multi-parameter linear programming equations for the optimized projection fringes frequency:
[0056]
[0057] Where N is the number of phase shift steps, σ n is a Gaussian distribution variable, F L is the frequency of periodic ambient light influence, F is, I 0 is the light intensity function corresponding to point P, A p is the background light intensity function of the pixel at point P, B p is the acquisition modulation intensity function of the pixel at point P, Exp pro is the projector exposure time, Exp L It is the periodic exposure time of Huang Jing case;
[0058] S42 expands the absolute phase range from 2π to 2πF based on the absolute phase required in structured light reconstruction, where F is the total number of cycles of the set fringe pattern, and obtains the optimal fringe frequency within the range as follows:
[0059]
[0060] In the formula, (B P ) min is the minimum modulated light intensity function within the threshold range, σ n is a Gaussian distribution variable, σ φ is the standard deviation of the phase error.
[0061] According to another aspect of the present invention, there is also provided a self-detection optimization system for a high-speed and high-precision structured light measurement system, comprising:
[0062] A first main control module is used to construct an optical measurement system and calibrate the measurement system;
[0063] The second main control module is used to pre-project a periodic fringe pattern onto the surface of the object to be measured, obtain a measured light intensity function under environmental interference, and construct a light intensity noise model under environmental interference based on the measured light intensity function;
[0064] The third main control module is used to solve the ambient light frequency through the light intensity function under environmental interference according to the light intensity noise model, obtain the optimal exposure time, and calculate the threshold range of the saturated mask image through the light intensity function;
[0065] The fourth main control module is used to obtain the optimal exposure and optimal fringe frequency of the measurement system according to the environmental parameters to compensate for the original measurement parameters;
[0066] The fifth main control module is used to calculate the point cloud of the target object based on the compensated original measurement parameters and the collected light intensity function of the object to be measured.
[0067] In general, the above technical solution conceived by the present invention has the following technical advantages compared with the prior art:
[0068] 1. The present invention aims at the measurement system under the influence of different ambient light noises in the binocular structured light measurement system, calculates the ambient light influence frequency by pre-projection, and compensates the acquisition parameters of the binocular structured light system by this interference frequency, thereby optimizing the reconstruction effect. Specifically, the present invention designs a compensation algorithm under environmental interference based on the binocular structured light principle, and optimizes the structured light three-dimensional reconstruction system based on the algorithm. The ambient light frequency is solved by designing a pre-projection mode, and then compensated in the structured light image acquisition program, so as to improve the accuracy of the reconstruction effect of the structured light three-dimensional measurement system under various ambient lights, and by designing an algorithm for planning the reconstruction fringe frequency within the effective threshold range, the binocular structured light phase shift frequency is as low as possible to ensure the accuracy requirements while improving the structured light scanning reconstruction operation speed.
[0069] 2. The present invention obtains the measured light intensity function under environmental interference through pre-projection, that is, obtains the interference parameters under the current measurement environment to compensate for the light intensity function under the influence of the environment, thereby improving the measurement accuracy. At the same time, the relationship between the phase intensity error and is obtained in the pre-projection process, which is convenient for the subsequent decomposition and optimization of the phase error under the influence of the light intensity error.
[0070] 3. The present invention uses a mask setting process in the collected projection pattern to divide the collected fringe image into effective areas, thereby extracting effective information and avoiding the problem of uneven grayscale distribution of the collected fringe image.
[0071] 4. In the present invention, the three-dimensional measurement device is compensated for periodic environmental noise, thereby avoiding the phase error caused by the uneven distribution of the light intensity function of each pixel point in the collected image caused by uneven measurement projection and periodic environmental noise.
[0072] 5. The present invention optimizes the operation speed of the reconstruction algorithm by planning the projection frequency of the structured light measurement system in the reconstruction effective area division range, adopting the minimum fringe projection frequency in the effective range and performing template operation processing.
[0073] 6. The present invention sets a filtering interval for the error interval under the influence of surface reflection during the pre-projection process, optimizes the projection exposure time and the projection fringe frequency for the light intensity function within the effective interval, and then controls the measurement results of the three-dimensional measurement system for the target environment to be within the effective interval, thereby optimizing the phase error under the influence of reflection. BRIEF DESCRIPTION OF THE DRAWINGS
[0074] Figure 1 It is a flow chart of a self-detection optimization method of a high-speed and high-precision structured light measurement system involved in a preferred embodiment of the present invention;
[0075] Figure 2 It is a structural schematic diagram of a measurement system involved in a self-detection optimization system of a high-speed and high-precision structured light measurement system of the present invention.
[0076] In all the drawings, the same reference numerals represent the same technical features, specifically: 1-camera, 2-target object, 3-projection fringe generating device. DETAILED DESCRIPTION
[0077] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0078] like Figure 1 and Figure 2 As shown, the self-detection optimization method of a high-speed and high-precision structured light measurement system provided by the embodiment of the present invention includes: a projection fringe generating device, composed of two cameras, generally, the camera can be a black and white camera, the method optimizes the structured light 3D reconstruction system by designing a compensation algorithm under environmental interference through the principle of binocular structured light, solves the ambient light frequency by designing a pre-projection mode, and compensates it in the structured light image acquisition program, so as to improve the accuracy of the reconstruction effect of the structured light 3D measurement system under various ambient lights, and by designing an algorithm for planning the reconstruction fringe frequency within the effective threshold range, the binocular structured light phase shift frequency is as low as possible to ensure the accuracy requirements while improving the structured light scanning reconstruction operation speed. The following is a specific implementation plan of this patent.
[0079] Step one, construct a measurement system and calibrate the measurement system. The measurement system involved in the present invention includes: a binocular camera, a projection fringe generating device and a target object. First, the camera is compiled and a calibration model and calibration parameters are obtained. In the present invention, a conventional calibration method is used to obtain the calibration model and calibration parameters, the purpose of which is to calculate the camera position and obtain the measurement equipment parameters before obtaining the measurement point cloud, and to calibrate the camera for the distortion parameters in the internal parameters of the binocular camera. In one embodiment of the present invention, Zhang's calibration method is used for calibration, specifically:
[0080]
[0081] The original formula can be expressed as:
[0082]
[0083]
[0084] in: The homogeneous coordinates of represent the pixel coordinates (u, v, 1) on the image plane; The homogeneous coordinates of represent the coordinate point (X, Y, Z, 1) of the world coordinate system; R represents the rotation matrix; t represents the translation matrix; s represents the scale factor. A represents the intrinsic parameters of the camera.
[0085] Step 2: Pre-project the target object and obtain the measured light intensity function under environmental interference. The purpose of this step is to obtain the interference parameters in the current measurement environment to compensate for the light intensity function under environmental influence, thereby improving the measurement accuracy. In the actual binocular structured light measurement system, the stripe pattern acquisition of each point of the object is affected by multiple parameters. The main principle is to encode and sample the grayscale points through the camera to obtain the grayscale information of the target pixel point. The grayscale information can be represented by the light intensity function. Therefore, each pair of corresponding pixels of the binocular camera represents the height information represented by the light intensity function:
[0086] I n (x, y) = A(x, y)
[0087] +B(x,y)cos[φ(x,y)-2πn / N] (0-4)
[0088] Where A(x, y) is the background light intensity, B(x, y) is the modulation intensity, φ(x, y) is the phase information, and N is the number of phase shift steps.
[0089] The binocular structured light system measured in the working environment is inevitably affected by the scanning working environment. The measurement system under the AGV platform is affected by the ambient light in different measurement environments, the influence of the fringe generating device and the reflection of the projected object surface. Therefore, all error influences can be processed uniformly to obtain the light intensity noise model acting on the background light intensity as follows:
[0090] A n =A(x p ,y p )
[0091] =A 0 (x p ,y p )+ΔA n (x p ,y p ) (0-5)
[0092] In the formula, A n For the actual acquisition of background light intensity model, A 0 (x p ,y p ) is the ideal background light intensity, ΔA n (x p ,y p ) is the background light intensity error function, and the ambient light noise is assumed to be a one-dimensional superimposable Gaussian noise. The probability density influence function of the background light intensity noise under the influence of the probability density of the Gaussian mixture model can be expressed as:
[0093]
[0094] In the formula, α k is the probability that the observed data belongs to the Kth sub-model, x is the target observed data in the sample data, θ k is the Gaussian distribution density function of the kth sub-model.
[0095] Substitute the acquired background light intensity error model (0-5) into the acquired light intensity function and calculate the light intensity error function ΔA n (x p ,y p ) is used to solve the partial derivative, and the relationship between the wrapped phase error and the light intensity error can be obtained as follows:
[0096]
[0097] Where Δφ is the phase error, ΔA n is the background light intensity error function, φ is the phase information, A n To actually collect the background light intensity model.
[0098] Among them, what is considered in the present invention is the phase under the influence of periodic ambient light and the reflection of the target object surface, so the phase error Δφ under the influence of multiple noises can be divided into two types of errors for modeling:
[0099] Δφ=Δφ L +Δφ T (0-8)
[0100] Among them, Δφ is the phase error under the overall influence, Δφ L is the phase error under the influence of periodic ambient light, Δφ T It is the phase error under the influence of the reflection on the surface of the object to be measured.
[0101] Phase error Δφ under the influence of periodic ambient light L By taking partial derivative of the light intensity function, we can get the following result:
[0102]
[0103] in:
[0104]
[0105]
[0106]
[0107]
[0108] It can be obtained that in the four-step phase shift, the partial derivative of the phase information φ is used to obtain the phase error model under the influence of periodicity: the phase difference between adjacent projection fringes is π / 2, so the light intensity function obtained by adjacent π / 2 acquisitions can be subtracted to obtain the phase error Δφ L :
[0109]
[0110] Phase error Δφ under the influence of surface reflection of the object to be measured L The effective interval can be divided in the fringe acquisition image in the pre-projection four-step phase shift method, and the target projection frequency can be planned within the effective interval. The following model is set for fitting, and the light intensity error can be expressed by the following model:
[0111]
[0112] The partial derivative function of the phase under this error model can be obtained as follows:
[0113]
[0114] Then the phase error expression under the influence of the reflection on the surface of the object to be measured is obtained:
[0115]
[0116] This process is carried out during the pre-projection work to obtain the relationship between the light intensity error and the phase, which is convenient for the subsequent splitting and optimization of the phase error under the influence of the light intensity error.
[0117] Step 3: Determine the ambient light frequency and obtain the optimal exposure time through the light intensity function under interference. By analyzing the pre-projected light intensity function, it is found that in the four-step phase shift method of the measurement system under the influence of periodic light noise, the camera acquisition between adjacent fringe projection steps will be affected by periodic light noise. The difference between the fringe acquisition light intensity and the fringe acquisition light intensity in adjacent steps can be calculated. The frequency of the periodic noise influence can be set as F. L , and obtain F by solving the adjacent phases L Expression:
[0118]
[0119] Identify and compensate for the interval between projection exposure and camera acquisition triggering, that is, meet the following conditions:
[0120]
[0121] By compensating the three-dimensional measurement equipment for periodic environmental noise, the phase error caused by the uneven distribution of the light intensity function of each pixel in the collected image caused by the uneven measurement projection and the periodic environmental noise is avoided.
[0122] Step 4: Determine the threshold range by calculating the saturated mask image through the light intensity function. The specific implementation method can be performed during the pre-projection process, and the filter interval is set for the error interval under the influence of the surface reflection, and the projection exposure time and the projection fringe frequency are optimized for the light intensity function within the effective interval, so as to control the measurement results of the three-dimensional measurement system for the target environment to be within the effective interval, thereby optimizing the phase error under the influence of reflection.
[0123] In the embodiment, the error model under the influence of the surface reflected light error is set by formula (0-13), and the mask image M is set k (x, y) determines the effective range in fringe projection acquisition:
[0124]
[0125] Where, ΔM k (x p ,y p ) is the mask range corresponding to pixel P, M k-1 (xp ,y p ) is the effective upper bound corresponding to pixel P, M k (x p ,y p ) is the effective lower bound corresponding to pixel P, is the maximum projector brightness corresponding to the upper bound, is the maximum projector brightness corresponding to the lower bound.
[0126] Its maximum reflection brightness is the maximum acquisition brightness corresponding to the saturated pixel of the matched camera The effective brightness range is calculated in real time, and an adaptive compensation function is set for the background light intensity A and modulation intensity B, where the modulation intensity is set to:
[0127]
[0128] The average intensity is:
[0129]
[0130] In the formula, B p (x p ,y p ) is the modulation intensity, is the maximum acquisition brightness corresponding to the saturated pixel of the matched camera, L min (x p ,y p ) is the minimum brightness of the projected fringe pattern, A p (x p ,y p ) is the background light intensity function of pixel P collected by the device.
[0131] Step 5: Obtain the optimal exposure and optimal fringe frequency of the measurement system according to the environmental parameters to compensate for the original measurement parameters. Specifically, the acquired fringe is processed by the exposure function and the mask image to obtain a multi-parameter linear programming equation group for the optimized projection fringe frequency:
[0132]
[0133] Where N is the number of phase shift steps, B is the intensity modulation, and the Gaussian distribution variable σ n , I 0 is the light intensity function corresponding to point P, A p is the background light intensity function of the pixel at point P, B p is the acquisition modulation intensity function of the pixel at point P, Exp pro is the projector exposure time, Exp L It is the periodic exposure time of Huang Jing case.
[0134] For the absolute phase required in structured light reconstruction, it is necessary to expand its clear phase range from 2π to 2πF, where F is the total number of cycles of the set fringe pattern, and the optimal fringe frequency within the range is obtained as follows:
[0135]
[0136] Among them (B P ) min The minimum modulated light intensity function within the threshold range makes the projection fringe frequency reach the maximum value, reduces the error standard deviation, and thus improves the measurement accuracy of the measurement system.
[0137] Step 6: Calculate the point cloud based on the intensity function collected in real time. For binocular structured light systems, the left and right camera imaging surfaces need to be rotated to achieve polar alignment, so as to satisfy the triangulation between the same image points of the left and right cameras in triangulation to calculate the three-dimensional height of the target image point. In the multi-frequency four-step phase shift method, the encoding operation is performed through the relationship between the gradient levels k between adjacent levels to complete the unfolding of the wrapped phase in the multi-frequency phase shift:
[0138]
[0139] Among them, φ h (x, y), φ l (x, y) is the absolute phase, For the wrapping phase.
[0140] The corresponding image point height information is calculated by searching along the corresponding epipolar lines between the corrected imaging surfaces. The target coordinate parameters can be calculated by the similarity principle as follows:
[0141]
[0142]
[0143]
[0144] Where f is the focal length of the camera. b is the baseline distance of the camera. Where the focal length of the left camera is f l =f / d x , right camera focal length f r =f / d y , the matching point pairs of the left and right images are (u l ,v l ) and (u r ,v r ), Z c It is the height information of three-dimensional point.
[0145] The three-dimensional point set obtained by matching the light intensity information of each pixel in the absolute phase image is the point cloud space after measurement optimization:
[0146]
[0147] In summary, the method of the embodiment of the present invention obtains environmental variables by pre-projection, optimizes the accuracy of the surface structured light measurement system by real-time compensation to the parameters of the surface structured light measurement system, and adds compensation factors to the original four-step phase shift method, thereby avoiding the influence of the measurement environment of the mobile robot under different ambient light conditions on the measurement effect and ensuring the measurement efficiency; by setting an effective measurement threshold, the error caused by the surface structured light projection of a highly reflective object is further avoided.
[0148] According to another aspect of the present invention, a self-detection optimization system for a high-speed and high-precision structured light measurement system is provided, which is used to implement a combination of any of the above-mentioned embodiments, and includes: a first main control module, which is used to construct a light measurement system and calibrate the measurement system; a second main control module, which is used to pre-project a periodic fringe pattern onto the surface of an object to be measured, obtain a measured light intensity function under environmental interference, and construct a light intensity noise model under environmental interference based on the measured light intensity function; a third main control module, which is used to solve the ambient light frequency through the light intensity function under environmental interference according to the light intensity noise model, and obtain the optimal exposure time, and calculate the threshold range of the saturated mask image through the light intensity function; a fourth main control module, which is used to obtain the optimal exposure and optimal fringe frequency of the measurement system according to environmental parameters to compensate for the original measurement parameters; and a fifth main control module, which is used to calculate the point cloud of the target object according to the compensated original measurement parameters and the collected light intensity function of the object to be measured.
[0149] The optical measurement system includes: a projection fringe generating device and two cameras. The projection fringe generating device is used to project periodic fringe projections onto the surface of the object to be measured, and the two cameras obtain the surface image of the object to be measured in real time. Of course, the system also includes at least one control system for controlling the coordinated actions of the various devices and executing the calculation or calculation program of any of the above methods.
[0150] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. 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 present invention.
Claims
1. A self-detection optimization method for a high-speed and high-precision structured light measurement system, characterized in that: The following steps are involved: S1 builds a structured light measurement system and calibrates the measurement system; S2 pre-projects a periodic fringe pattern onto the surface of the object to be measured, obtains a measured light intensity function under environmental interference, and constructs a light intensity noise model under environmental interference based on the measured light intensity function; S3: according to the light intensity noise model, the ambient light frequency is solved by the light intensity function under the environmental interference, and the optimal exposure time is obtained, and the threshold range of the saturated mask image is calculated by the light intensity function; S4 obtains the optimal exposure and optimal fringe frequency of the measurement system according to the environmental parameters to compensate for the original measurement parameters; S5 calculates the point cloud of the target object according to the compensated original measurement parameters and the collected light intensity function of the object to be measured.
2. The self-detection optimization method of a high-speed and high-precision structured light measurement system according to claim 1, characterized in that: In step S1, the optical measurement system includes: binocular cameras and a measurement object that are not arranged in a colinear manner. A fringe generating device is also arranged between the binocular cameras, and the fringe generating device is used to perform periodic fringe projection onto the measurement object.
3. The self-detection optimization method of a high-speed and high-precision structured light measurement system according to claim 1, characterized in that: Step S2 includes the following steps: S21 obtains grayscale information of the pixel points of the object to be measured by adopting the coding of the grayscale points of the image taken by the camera, and expresses the grayscale information as a measured light intensity function; S22 builds a light intensity noise model under the combined effects of ambient light and surface reflection of the object being measured; S23 solves the relationship between the wrapping phase error and the light intensity error based on the measured light intensity function and the light intensity noise model; S24 divides the phase error under the influence of multiple noises into the phase error under the overall influence and the phase error under the influence of periodic ambient light according to the relationship between the wrapped phase error and the light intensity error.
4. The self-detection optimization method of a high-speed and high-precision structured light measurement system according to claim 3, characterized in that: In step S21, the measured light intensity function is: Yo n (x, y)=A(x, y)+B(x, y)cos[φ(x, y)-2πn / N] Where A(x, y) is the background light intensity, B(x, y) is the modulation intensity, and φ(x, y) is the phase information; Preferably, in step S22, the light intensity noise model includes: TO n =A(x p ,and p ) =A 0 (x p ,and p )+ΔA n (x p ,and p ) In the formula, A n For the actual acquisition of background light intensity model, A 0 (x p ,y p ) is the ideal background light intensity, ΔA n (x p ,y p ) is the background light intensity error function, and the ambient light noise is assumed to be one-dimensional superimposable Gaussian noise. The probability density influence function of the light intensity noise under the influence of the probability density of the Gaussian mixture model is expressed as: In the formula, α k is the probability that the observed data belongs to the Kth sub-model, x is the target observed data in the sample data, θ k is the Gaussian distribution density function of the kth sub-model.
5. The self-detection optimization method of a high-speed and high-precision structured light measurement system according to claim 4, characterized in that: In step S23, the light intensity noise model is introduced into the measured light intensity function, and the light intensity error function is partially derived to obtain the relationship between the wrapped phase error and the light intensity error: Where Δφ is the phase error, ΔA n is the background light intensity error function, φ is the phase information, A n To actually collect the background light intensity model; Preferably, in step S24, the phase error Δφ under the influence of multiple noises is divided into two types of errors for modeling: Df=Df L +Df T Where Δφ is the phase error under the overall influence, Δφ L is the phase error under the influence of periodic ambient light, Δφ T It is the phase error under the influence of the reflection on the surface of the object to be measured.
6. The self-detection optimization method of a high-speed and high-precision structured light measurement system according to claim 5, characterized in that: The phase error Δφ under the influence of the periodic ambient light L The calculation model is as follows: The phase error Δφ under the influence of the surface reflection of the object to be measured T The calculation model is as follows: Where N is the number of phase shift steps, B is the intensity modulation, ΔA n is the background light intensity error function under the influence of periodic ambient light, ΔA i is the background light intensity error function under the influence of surface reflection, and φ is the phase information.
7. The self-detection optimization method of a high-speed and high-precision structured light measurement system according to claim 1, characterized in that: Step S3 includes: S31 solves the ambient light frequency through the light intensity function under environmental interference and obtains the most taboo exposure time. By analyzing the pre-projected light intensity function, it is found that in the four-step phase shift method of the light measurement system under the influence of periodic ambient light, the adjacent fringe projection steps will have a difference in the fringe collection light intensity and the fringe collection light intensity in the adjacent steps due to the influence of periodic ambient light. Let the frequency of the periodic ambient light influence be F L , and obtain F by solving the adjacent phases L : Where N is the number of phase shift steps, A n For the actual acquisition of background light intensity model, A 0 is the ideal background light intensity model. According to the F L Identify and compensate for the interval between projection exposure and camera acquisition triggering to obtain the best exposure time; S32 determines the effective range in fringe projection acquisition by setting a mask image according to the light intensity noise model: In the formula, ΔM k (x p ,y p ) is the mask range corresponding to pixel P, M k-1 (x p ,y p ) is the effective upper bound corresponding to pixel P, M k (x p ,y p ) is the effective lower bound corresponding to pixel P, is the maximum projector brightness corresponding to the upper bound, is the maximum projector brightness corresponding to the lower bound.
8. The self-detection optimization method of a high-speed and high-precision structured light measurement system according to claim 7, characterized in that: Also includes: By calculating the effective range collected in real time, an adaptive compensation function is set for the collected background light intensity A and modulation intensity B, where the modulation intensity B is set to: The average intensity is: In the formula, B p (x p ,y p ) is the modulation intensity, is the maximum acquisition brightness corresponding to the saturated pixel of the matched camera, L min (x p ,y p ) is the minimum brightness of the projected fringe pattern, A p (x p ,y p ) is the background light intensity function of pixel P collected by the device.
9. The self-detection optimization method of a high-speed and high-precision structured light measurement system according to claim 1, characterized in that: Step S4 includes the following steps: S41 processes the acquired fringes through the exposure function and the mask image to obtain the multi-parameter linear programming equations for the optimized projection fringes frequency: Where N is the number of phase shift steps, σ n is a Gaussian distribution variable, F L is the frequency of periodic ambient light, I0 is the light intensity function corresponding to point P, A p is the background light intensity function of the pixel at point P, B p is the acquisition modulation intensity function of the pixel at point P, Exp pro is the projector exposure time, Exp L It is the periodic exposure time of Huang Jing case; S42 expands the absolute phase range from 2π to 2πF based on the absolute phase required in the structured light reconstruction, where F is the total number of cycles of the set fringe pattern, and obtains the optimal fringe frequency within the range as follows: In the formula, (B P ) min is the minimum modulated light intensity function within the threshold range, σ n is a Gaussian distribution variable, σ φ is the standard deviation of the phase error.
10. A self-detection optimization system for a high-speed and high-precision structured light measurement system, characterized in that: include: A first main control module is used to construct an optical measurement system and calibrate the measurement system; The second main control module is used to pre-project a periodic fringe pattern onto the surface of the object to be measured, obtain a measured light intensity function under environmental interference, and construct a light intensity noise model under environmental interference based on the measured light intensity function; The third main control module is used to solve the ambient light frequency through the light intensity function under environmental interference according to the light intensity noise model, obtain the optimal exposure time, and calculate the threshold range of the saturated mask image through the light intensity function; The fourth main control module is used to obtain the optimal exposure and optimal fringe frequency of the measurement system according to the environmental parameters to compensate for the original measurement parameters; The fifth main control module is used to calculate the point cloud of the target object according to the compensated original measurement parameters and the collected light intensity function of the object to be measured.
Citation Information
Patent Citations
Adjustable receiver exposure times for active depth sensing systems
CN112585947A
High reflective surface three-dimensional vision measurement system and method
CN113237435A
High-dynamic surface topography measurement method
CN113340236A
Three-dimensional measurement method, system and device resistant to strong ambient light interference and storage medium
CN115187649A
Auto-determining device for environmental light source frequency
TW200413835A
Cited By
Three-dimensional measurement equipment and method for improving uniformity of projection brightness
CN119289898A
A three-dimensional measuring device and a method for increasing uniformity of projection brightness
CN119289898B
Three-dimensional vision measurement system based on multi-view structured light
CN120868899A
Three-dimensional reconstruction method and device based on multi-frequency stripe synchronous optimization and medium
CN121323527A
Complex shell detection method and system based on structured light scanning
CN121540086A
