Mirror surface object local deformation area reconstruction method based on binocular deflection imaging system and storage medium
By combining the binocular deflection imaging system with Zernike polynomial fitting and path integration algorithms, the problem of insufficient accuracy and error accumulation in the local deformation reconstruction of mirror objects is solved, high-precision local deformation area positioning and correction is achieved, and the deformation parts are enhanced. three-dimensional information acquisition.
Patent Information
- Application Number
- CN202410459442.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-17
- Publication Date
- 2024-08-23
AI Technical Summary
The existing technology has insufficient accuracy and error accumulation effect in the reconstruction of local deformation of mirror objects. In particular, the gradient integration method is difficult to accurately capture the local deformation, and the path integral is susceptible to error interference.
Using a method based on the binocular deflection imaging system, through imaging system calibration, camera and screen pixel matching, binocular deflection reconstruction, mode fitting surface shape reconstruction, Zernike polynomial fitting, gradient difference analysis and path integration Combined, the precise positioning and correction of the local deformation area of the mirror object can be achieved.
It improves the reconstruction accuracy of local deformation areas of mirror objects, reduces smoothing effects and step transitions, enhances the positioning accuracy and reconstruction accuracy of deformation areas, and provides richer three-dimensional information to support subsequent classification and automatic polishing of deformed parts. .
Smart Images

Figure CN118537480A
Abstract
Description
Technical Field
[0001] The present invention mainly relates to the application field of vision technology in industry, and in particular to a method and storage medium for reconstructing the local deformation area of a mirror object based on a binocular deflection imaging system. Background Art
[0002] Mirror objects are commonly found in aerospace, biomedical engineering, new energy and other fields. Figure 1 As shown, since the surface quality during the processing will be affected by factors such as cutting conditions, environment, and material properties, large mirrors are prone to local deformations such as particles, shallow pits, and bubbles, which in turn affect their optical properties.
[0003] As a non-contact measurement method, deflectometry imaging is widely used to reconstruct the morphology of mirror objects and is suitable for various industrial scenarios. However, deflectometry imaging uses gradient integrals to achieve surface reconstruction, which is usually based on the assumption of surface smoothness, such as modal fitting gradient integral method and surface reconstruction based on orthogonal basis function integrals. Similar to Fourier transform, its orthogonal basis function is a global function with infinite subsets. The integral approximation of a finite number of orthogonal basis functions will cause local deformations to be smoothed or ignored, and is only suitable for slowly varying surface recovery. Although the path integral algorithm based on the integral correlation between gradient and height can achieve the characterization of local deformations, it is easily affected by errors, resulting in error accumulation effects, which causes step jumps in the reconstructed surface shape. Summary of the invention
[0004] The technical problem to be solved by the present invention is: in view of the technical problems existing in the prior art, the present invention provides a method and storage medium for reconstructing the local deformation area of a mirror object based on a binocular deflection imaging system, which has a simple principle, a wide range of applications and high precision.
[0005] In order to solve the above technical problems, the present invention adopts the following technical solutions: A method for reconstructing a local deformation area of a mirror object based on a binocular deflection imaging system, comprising: Step S1: Imaging system calibration; Step S2: matching camera and screen pixels; Step S3: binocular deflectometry reconstruction: based on binocular deflectometry iterative search, obtain the three-dimensional point cloud and surface normal of the surface of the object to be measured within the common field of view of adjacent cameras; Step S4: modal fitting surface reconstruction: modal fitting surface reconstruction, based on the surface normal obtained in step S3, Zernike polynomial fitting is applied to complete the surface morphology reconstruction of the object to be measured; Step S5: local deformation area positioning; based on the smoothness of the Zernike polynomial fitting surface shape, calculate the gradient value; refer to the surface shape height and calculate another gradient value with the angle bisector; analysis shows that there is a large difference between the two in the deformation area, and the deformation area is positioned by calculating the gradient difference between the two and using threshold analysis; Step S6: Correction of the local deformed area; based on the deformed area obtained in step S5, path integral is applied to complete the reconstruction.
[0006] As a further improvement of the method of the present invention: in the step S1, the calibration pattern is displayed on the screen, and with the help of an unmarked plane mirror, the camera captures a virtual image of the calibration pattern displayed on the screen, performs system parameter calibration, and obtains the intrinsic parameters and distortion parameters of the camera, as well as the extrinsic parameters between the cameras and the extrinsic parameters between the camera and the screen.
[0007] As a further improvement of the method of the present invention: in step S2, the screen displays the phase-shifted fringe pattern on the object to be measured, and the fringe dephasing and unwrapping algorithms are applied to the pattern captured by the camera to obtain a pixel matching pair between the camera and the screen.
[0008] As a further improvement of the method of the present invention: the process of step S2 includes: Step S201: generating a screen display phase-shift fringe pattern; Use the screen to display the phase-shifted fringe pattern, which is generated by the following formula: (1) In the formula, superscript Indicates that the light intensity value belongs to the screen, represents the average light intensity, represents the amplitude, Represents the pixel coordinates on the screen, Represents the phase value corresponding to the pixel coordinate, represents the phase shift index, Control the phase value of the cosine function; Step S202: The image is reflected by the object to be tested and then received by the camera. The light intensity value received by the camera is expressed as: (2) In the formula, superscript Indicates that the light intensity value belongs to the camera imaging plane, represents the pixel coordinates of the imaging plane; Represents the average light intensity received by the camera, Indicates the amplitude received by the camera; In pixels The phase value at ; there are three unknown quantities in the formula that need to be solved, namely , and ; Among them, the phase value The solution is generally solved by the least squares method, that is: (3) Step S203: the original fringe image captured by the camera is subjected to the above operation to obtain a wrapped phase; unwrapping is performed to remove periodic ambiguity and obtain an absolute phase.
[0009] As a further improvement of the method of the present invention: the process of step S4 includes: Step S401: Reconstructing the surface shape using a modal fitting method; Zernike polynomials are a series of basis functions with orthogonality on the unit circle. They are used to fit the surface to be measured in the form of linear combination. The fitting formula is: (4) in is the polar coordinate parameter, are subterms of the Zernike polynomial, are the coefficients of the subterms, and the subscripts n and m follow the Noll numbering; Find the partial derivative of formula (4) and establish the relationship between the gradient and the Zernike polynomial: (5) The surface gradient value is converted based on the surface normal of the object to be measured obtained in step S3, specifically: (6) In the formula, and Respectively and Directional gradient; Assume that the surface of the object to be measured has points to be fitted, then the matrix form of formula (5) is expressed as: (7) In the formula, and Respectively represent Points in and The gradient value in the direction; in the above formula, the gradient information and the partial derivatives of the Zernike polynomial are known; Step S402: The coefficients of the Zernike polynomials can be solved by matrix operations, and the Zernike polynomials are used to characterize the measured surface shape.
[0010] As a further improvement of the method of the present invention: the process of step S5 includes: Step S501: Calculate the gradient field of the surface shape based on the Zernike reconstruction surface shape result: Calculate the gradient field of the surface shape based on the Zernike reconstruction surface shape result: (8) The superscript Indicates that the gradient value is calculated from the actual depth value. Reconstruct depth values for Zernike, and Two adjacent points are and Distance in direction; The formula for the gradient calculated based on the normal vector calculated based on the angle bisector is expressed as: (9) in To reflect light, is the incident light, and the coordinates of the measured point are , the screen coordinates are , the camera optical center coordinates are , is the distance from the measured point to the screen, is the distance from the measured point to the camera; the screen coordinates are determined by step S2; Step S502: Calculate the difference between the two gradients to locate the deformation area; Calculate the difference between the two gradients obtained by formula (8) and formula (9): (10).
[0011] As a further improvement of the method of the present invention: in the step S6, the surface integral is performed using the Zernike polynomial gradient value outside the deformation area, while the surface integral is performed using the normal gradient of step S3 within the deformation area.
[0012] As a further improvement of the method of the present invention: the process of step S6 includes: taking a certain point on the surface shape as the starting point, integrating along a certain path, and based on the positioning prior of the local deformation area in step S5, the surface shape correction formula is expressed as: (11) In the formula To set the threshold, When it is greater than or equal to the threshold, the depth is calculated according to the path integral gradient value; on the contrary, when When it is less than the threshold, the depth is calculated according to the Zernike gradient value; In the same way, get the path along The depth value correction formula in the direction is expressed as: (12) Formula (11) and Formula (12) are the processes of surface correction based on the path integral algorithm. The local deformation area can be accurately located according to the gradient difference threshold, and the surface gradient obtained by Zernike polynomial in the non-local deformation area is integrated.
[0013] The present invention further provides a storage medium, which can be read by a computer or a processor and stores a computer program for executing the above method.
[0014] Compared with the prior art, the advantages of the present invention are: 1. The method and storage medium for reconstructing the local deformation area of a mirror object based on a binocular deflectometry imaging system of the present invention have simple principles, wide application range, and high precision. Aiming at the shortcomings of the traditional method, the present invention realizes accurate positioning of the local deformation area based on the inherent gradient sensitivity of deflectometry on the basis of modal fitting gradient integral, and then completes the surface shape correction of the local deformation area through the path integral algorithm. The present invention organically combines the modal fitting gradient integral with the path integral algorithm. The fused method can compensate for the potential smoothing effect of the modal fitting gradient integral surface shape. At the same time, because the path integral is limited to the local deformation area, the step transition of the path integral can be weakened.
[0015] 2. The method and storage medium for reconstructing the local deformation area of a mirror object based on a binocular deflection imaging system of the present invention realizes the positioning of the deformation area by utilizing the difference in the gradient fields of the two surface reconstruction methods; the Zernike polynomial fitting algorithm and the path integral algorithm are integrated to achieve noise suppression of the gradient data while retaining the sensitivity of the gradient integral, thereby improving the reconstruction accuracy of the deformation area.
[0016] 3. The method and storage medium for reconstructing the local deformation area of a mirror object based on a binocular deflection imaging system of the present invention realizes accurate positioning of the local deformation area by comparing the difference between the gradient calculated based on the gradient information and the gradient calculated based on the surface shape information; it further integrates two surface shape reconstruction algorithms based on modal fitting and path integral, that is, it retains the noise suppression ability of modal fitting and inherits the sensitivity of path integral to gradient. The present invention can realize accurate reconstruction of the local deformation area of the mirror target, thereby providing richer three-dimensional information for the subsequent classification of the deformation part, and can also provide necessary depth data for the automatic grinding of abnormal deformation. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a schematic diagram of the local deformation of a mirror object.
[0018] Figure 2 It is a schematic diagram of the structure of the measurement system of the present invention when it is applied specifically.
[0019] Figure 3 It is a schematic diagram of the iterative reconstruction principle of binocular deflectometry in a specific application example of the present invention.
[0020] Figure 4 These are the first 28 orthogonal basis terms of the Zernike polynomial fitting in the specific application example of the present invention.
[0021] Figure 5 It is a schematic diagram of an example of the Zernike polynomial surface fitting result in a specific application example of the present invention.
[0022] Figure 6 is a schematic diagram of the gradient difference when there is a height error.
[0023] Figure 7 It is a schematic diagram of performing three-dimensional reconstruction of the surface of an object to be measured based on binocular vision constraints in a specific application example of the present invention.
[0024] Figure 8 There are two different local deformation areas of the mirror, where (a) is the surface reconstruction result containing a convex spherical surface, and (b) is the surface reconstruction result containing a square groove.
[0025] Fig. 9 The figures are the reconstruction results of the deformed area using three different reconstruction methods; (a) is the Zernike polynomial fitting result of the convex sphere; (b) is the path integration result of the convex sphere; (c) is the reconstruction result of the convex sphere using the method of the present invention; (d) is the Zernike polynomial fitting result of the square groove; (e) is the path integration result of the square groove; and (f) is the reconstruction result of the square groove using the method of the present invention.
[0026] Fig.10 It is a schematic flow diagram of the method of the present invention.
[0027] Legend: 1. Camera; 2. Camera; 3. Screen; 4. Object under test. DETAILED DESCRIPTION
[0028] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0029] like Figure 2 As shown, it is a schematic diagram of the application scenario of the method of the present invention in a specific application example. The present invention is applied to a deformation area measurement system of a mirror deformation area based on binocular deflectometry. The measurement system is composed of a camera 1, a camera 2 and a screen 3. The object to be measured 4 is placed in the area shown in the figure. The screen 3 is used to display a phase-shifted fringe pattern. The object to be measured 4 is used to reflect the pattern displayed on the display screen to the camera. The camera 1 and the camera 2 are used to receive the distorted fringe pattern reflected by the object to be measured.
[0030] like Fig.10 As shown, the method for reconstructing the local deformation area of a mirror object based on a binocular deflection imaging system of the present invention comprises: Step S1: Imaging system calibration; The calibration pattern is displayed on the screen, and with the help of a markless plane mirror, the camera captures the virtual image of the calibration pattern displayed on the screen, and then the system parameters are calibrated.
[0031] Step S2: matching camera and screen pixels; The screen displays the phase-shifted fringe pattern on the object to be measured, and the fringe dephasing and unwrapping algorithms are applied to the pattern captured by the camera to obtain the pixel matching pairs between the camera and the screen.
[0032] Step S3: binocular deflectometry reconstruction; Based on the iterative search of binocular deflectometry, the three-dimensional point cloud and surface normal of the object to be measured within the common field of view of adjacent cameras are obtained.
[0033] Step S4: modal fitting surface shape reconstruction; Modal fitting surface reconstruction, based on the surface normal obtained in step S3, applies Zernike polynomial fitting to complete the surface morphology reconstruction of the object to be tested.
[0034] Step S5: local deformation area positioning; Based on the smoothness of the Zernike polynomial fitting surface, the gradient value is calculated; at the same time, another gradient value is calculated using the angle bisector with reference to the surface height; analysis shows that there is a large difference between the two in the deformation area, so the gradient difference between the two is calculated, and the positioning of the deformation area is achieved by threshold analysis.
[0035] Step S6: Correction of local deformation area; Based on the deformation area obtained in step S5, path integration is applied in a targeted manner, and the surface integral is performed using the Zernike polynomial gradient value outside the deformation area, while the surface integral is performed using the normal gradient of step S3 within the deformation area.
[0036] In general, by adopting the above method provided by the present invention, accurate reconstruction of the local deformation area can be achieved.
[0037] In the binocular deflectometry imaging system, the screen and the camera are located on the same side, the object to be measured is located opposite to the two, and the screen is not within the camera's field of view. Therefore, in the specific application example, the deflectometry imaging system calibration in step S1 is to use a plane mirror to deflect light so that the screen virtual image is within the camera's field of view, and to provide multi-viewing angle constraints by moving the plane mirror. Through system calibration, the camera's intrinsic parameters and distortion parameters, as well as the extrinsic parameters between cameras and between the camera and the screen are obtained.
[0038] In a specific application example, the process of step S2 includes: Step S201: generating a screen display phase-shift fringe pattern; In a binocular deflectometry imaging system, in order to obtain a pixel matching pair between the camera and the screen, a screen display phase-shifted fringe pattern is generally used, and its generation formula is as follows: (1) In the formula, superscript Indicates that the light intensity value belongs to the screen, represents the average light intensity, represents the amplitude, Represents the pixel coordinates on the screen, Represents the phase value corresponding to the pixel coordinate, represents the phase shift index, Controls the phase value of the cosine function.
[0039] Step S202: The image is reflected by the object to be tested and then received by the camera. The light intensity value received by the camera is expressed as: (2) In the formula, superscript Indicates that the light intensity value belongs to the camera imaging plane, represents the pixel coordinates of the imaging plane; Represents the average light intensity received by the camera, Indicates the amplitude received by the camera; In pixels The phase value at . There are three unknown quantities in the formula that need to be solved, namely , and Among them, the phase value The solution is generally solved by the least squares method, that is: (3) Step S203: The original fringe image captured by the camera is subjected to the above calculation to obtain the wrapped phase, such as Figure 3 As shown, the wrapped phase appears as a two-dimensional sawtooth wave on the image; in order to obtain the unique matching point between the camera and the screen, unwrapping is required to further remove the periodic ambiguity and obtain the absolute phase.
[0040] In a specific application example, step S3 is based on the surface normal consistency of the object to be measured. By assuming the position of the object's three-dimensional points, the object's three-dimensional points that meet the normal consistency are searched and obtained, the surface morphology of the object to be measured is reconstructed and the surface normal is obtained.
[0041] Since the core of the binocular deflectometry reconstruction algorithm in step S3 is still optical triangulation, the reconstruction accuracy generally stops at the micron level. In order to make full use of the sensitivity of deflectometry imaging to gradients, it is necessary to further apply surface shape integration to improve the accuracy. On this basis, in a specific application example, the steps of step S4 may include the following according to actual needs: Step S401: Reconstructing the surface shape using a modal fitting method; For ease of introduction, the specific reconstruction process is introduced here by taking Zernike polynomials as an example, but the protection scope is not limited to this example.
[0042] like Figure 4 As shown in the figure, Zernike polynomials are a series of basis functions with orthogonality on the unit circle. These functions are used to fit the surface to be measured in the form of linear combination. The fitting formula is: (4) in is the polar coordinate parameter, are subterms of the Zernike polynomial, are the coefficients of the subterms, and the subscripts n and m follow the Noll numbering.
[0043] By taking the partial derivative of formula (4), we can establish the relationship between the gradient and the Zernike polynomial: (5) The surface gradient value is converted based on the surface normal of the object to be measured obtained in step S3, specifically: (6) In the formula, and Respectively and Direction gradient.
[0044] Assume that the surface of the object to be measured has points to be fitted, then the matrix form of formula (5) can be expressed as: (7) In the formula, and Respectively represent Points in and The gradient value in the direction. In the above formula, the gradient information and the partial derivatives of the Zernike polynomial are known.
[0045] Step S402: The coefficients of the Zernike polynomials can be solved by matrix operations, so that the Zernike polynomials can be used to characterize the measured surface shape.
[0046] In a specific application example, step S5 includes: Step S501: Calculate the gradient field of the surface shape based on the Zernike reconstruction surface shape result: like Figure 5 As shown in the figure, since only a limited number of polynomial terms are used in the Zernike polynomial fitting, the high-frequency local deformation in the reconstructed surface shape will be filtered out, and the reconstructed result will lose some detail information. Then, the gradient field of the surface shape is calculated on the Zernike reconstruction surface shape result: (8) The superscript Indicates that the gradient value is calculated from the actual depth value. Reconstruct depth values for Zernike, and Two adjacent points are and Due to the smoothing effect of Zernike itself, the gradient field calculated by formula (8) is smaller overall.
[0047] However, if Figure 6 As shown in the figure, although there is a big discrepancy between the Zernike polynomial fitting surface shape and the real surface shape in the local deformation area, the normal vector obtained based on the angle bisector and the real normal vector are still highly consistent with each other with the Zenike reconstructed depth value as a reference. That is, the height error has little effect on the calculation of the normal vector. Among them, the formula for the gradient calculated based on the normal vector calculated based on the angle bisector can be expressed as: (9) in To reflect light, is the incident light, and the coordinates of the measured point are , the screen coordinates are , the camera optical center coordinates are , is the distance from the measured point to the screen, is the distance from the measured point to the camera. The screen coordinates are determined by step S2.
[0048] Step S502: Calculate the difference between the two gradients to locate the deformation area; Calculate the difference between the two gradients obtained by formula (8) and formula (9): (10) The gradient change caused by the height value is much smaller than the gradient change caused by the surface normal vector. Therefore, in formula (10), the gradient difference and The area with larger and The area with smaller values is the smooth area. The threshold is set to filter the gradient difference obtained in formula (10) to locate the deformation area.
[0049] In a specific application example, the detailed process of step S6 includes: Taking a certain point on the surface as the starting point, integrating along a certain path, and referring to the local deformation area positioning prior in step S5, the surface correction formula can be expressed as: (11) In the formula To set the threshold, When it is greater than or equal to the threshold, the depth is calculated according to the path integral gradient value; on the contrary, when When it is less than the threshold, the depth is calculated according to the Zernike gradient value. The depth value correction formula in the direction is expressed as: (12) Formula (11) and Formula (12) are the processes of surface correction based on the path integral algorithm. On the one hand, the local deformation area can be accurately located according to the gradient difference threshold, thereby avoiding the error accumulation caused by the long integral path. On the other hand, the surface gradient obtained by Zernike polynomial in the non-local deformation area is integrated to retain the anti-interference ability of this method.
[0050] The present invention further provides a storage medium, which can be read by a computer or a processor and stores a computer program for executing the above method.
[0051] Those skilled in the art should understand that the above-mentioned embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application can take the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the process Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the functions specified in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0052] In a specific application example, Figure 2 In the imaging system shown, a plane mirror is placed on the opposite side of the camera and the screen to deflect the screen light so that the virtual image of the screen is within the field of view of the camera. In addition, during the calibration process, the camera and the screen are fixed, and the movement of the calibration plate (screen) is replaced by moving the plane mirror. After multiple acquisitions, the system calibration is performed to achieve the calibration of the intrinsic parameters and distortion parameters of camera 1 and camera 2; the calibration of the rotation matrix and translation vector between camera 1 and camera 2; and the calibration of the rotation matrix and translation vector between the camera and the screen.
[0053] like Figure 7As shown in the figure, based on binocular vision constraints, the surface of the object to be measured is reconstructed in three dimensions. The light emitted from the object is reflected by the object and reaches the camera 1. Department, The incident light at point , the ray passes through the optical center of camera 1 and , and the mirror point to be determined is on this ray. In the previous step, we have obtained Click the corresponding display screen Then, the target point position is searched through an iterative algorithm. Now the known conditions are point, point, Ray, target point is located on the ray Assuming the target point is located at Using the internal and external parameters between cameras, we can get Mapping point to camera 2 .same, Point display screen coordinate point It is also known that according to the vector , and , Normals can be calculated separately and .if and Equal, then point is the real target point, but in the actual process, due to the existence of noise and error, and It is difficult to be completely equal, so we set a threshold ,when The position of the target point is considered to have been obtained. The point cloud image of the target can be obtained by iterating all the pixels to be reconstructed on the camera imaging plane as above. At the same time, during the calculation process, the normal and After the iterations are complete, take the average:
[0054] It is the surface normal of the object to be measured.
[0055] To demonstrate the effectiveness and accuracy of the present invention, two different types of defects are investigated: 1) Convex spherical surface ( Figure 8 (a)): The protrusion height is 2 μm and the radius is 0.5 mm; 2) Square groove ( Figure 8 (b)): Depth: 0.5 μm, width: 10 μm, length: 20 μm, Fig. 9 The figures are the reconstruction results of the deformed area using three different reconstruction methods; (a) is the Zernike polynomial fitting result of the convex sphere; (b) is the path integration result of the convex sphere; (c) is the reconstruction result of the convex sphere using the method of the present invention; (d) is the Zernike polynomial fitting result of the square groove; (e) is the path integration result of the square groove; and (f) is the reconstruction result of the square groove using the method of the present invention.
[0056] The analysis results show that the smoothing effect of Zernike polynomial fitting cannot accurately reconstruct the convex spherical surface and the square groove, and the reconstruction results are all planes. The path integral is interfered by noise, and the surface shape fluctuates greatly. The method proposed in the present invention combines Zernike polynomial fitting with the path integral algorithm, which can effectively weaken noise interference and accurately reconstruct the defect area.
[0057] The above are only preferred embodiments of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should be regarded as the protection scope of the present invention.
Claims
1. A method for reconstructing the local deformation area of a mirror object based on a binocular deflection imaging system, characterized in that: include: Step S1: Imaging system calibration; Step S2: matching camera and screen pixels; Step S3: binocular deflectometry reconstruction: based on binocular deflectometry iterative search, obtain the three-dimensional point cloud and surface normal of the surface of the object to be measured within the common field of view of adjacent cameras; Step S4: modal fitting surface reconstruction: modal fitting surface reconstruction, based on the surface normal obtained in step S3, Zernike polynomial fitting is applied to complete the surface morphology reconstruction of the object to be measured; Step S5: local deformation area positioning; based on the smoothness of the Zernike polynomial fitting surface shape, calculate the gradient value; refer to the surface shape height and calculate another gradient value with the angle bisector; analysis shows that there is a large difference between the two in the deformation area, and the deformation area is positioned by calculating the gradient difference between the two and using threshold analysis; Step S6: Correction of the local deformed area; based on the deformed area obtained in step S5, path integral is applied to complete the reconstruction.
2. The method for reconstructing the local deformation area of a mirror object based on a binocular deflection imaging system according to claim 1, characterized in that: In step S1, the calibration pattern is displayed on the screen, and the camera captures a virtual image of the calibration pattern displayed on the screen with the aid of an unmarked plane mirror, performs system parameter calibration, and obtains the intrinsic parameters and distortion parameters of the camera, as well as the extrinsic parameters between the cameras and between the camera and the screen.
3. The method for reconstructing the local deformation area of a mirror object based on a binocular deflection imaging system according to claim 1, characterized in that: In step S2, the screen displays the phase-shifted fringe pattern on the object to be measured, and the fringe dephasing and unwrapping algorithms are applied to the pattern captured by the camera to obtain pixel matching pairs between the camera and the screen.
4. The method for reconstructing the local deformation area of a mirror object based on a binocular deflection imaging system according to claim 3, characterized in that: The process of step S2 includes: Step S201: generating a screen display phase-shift fringe pattern; Use the screen to display the phase-shifted fringe pattern, which is generated by the following formula: (1) In the formula, superscript Indicates that the light intensity value belongs to the screen, represents the average light intensity, represents the amplitude, Represents the pixel coordinates on the screen, Represents the phase value corresponding to the pixel coordinate, represents the phase shift index, Control the phase value of the cosine function; Step S202: The image is reflected by the object to be tested and then received by the camera. The light intensity value received by the camera is expressed as: (2) In the formula, superscript Indicates that the light intensity value belongs to the camera imaging plane, represents the pixel coordinates of the imaging plane; Represents the average light intensity received by the camera, Indicates the amplitude received by the camera; In pixels The phase value at ; there are three unknown quantities in the formula that need to be solved, namely , and ; Among them, the phase value The solution is generally solved by the least squares method, that is: (3) Step S203: the original fringe image captured by the camera is subjected to the above operation to obtain a wrapped phase; unwrapping is performed to remove periodic ambiguity and obtain an absolute phase.
5. The method for reconstructing the local deformation area of a mirror object based on a binocular deflection imaging system according to any one of claims 1 to 4, characterized in that: The process of step S4 includes: Step S401: Reconstructing the surface shape using a modal fitting method; Zernike polynomials are a series of basis functions with orthogonality on the unit circle. They are used to fit the surface to be measured in the form of linear combination. The fitting formula is: (4) in is the polar coordinate parameter, are subterms of the Zernike polynomial, are the coefficients of the subterms, and the subscripts n and m follow the Noll numbering; Find the partial derivative of formula (4) and establish the relationship between the gradient and the Zernike polynomial: (5) The surface gradient value is converted based on the surface normal of the object to be measured obtained in step S3, specifically: (6) In the formula, and Respectively and Directional gradient; Assume that the surface of the object to be measured has points to be fitted, then the matrix form of formula (5) is expressed as: (7) In the formula, and Respectively represent Points in and The gradient value in the direction; in the above formula, the gradient information and the partial derivatives of the Zernike polynomial are known; Step S402: The coefficients of the Zernike polynomials can be solved by matrix operations, and the Zernike polynomials are used to characterize the measured surface shape.
6. The method for reconstructing the local deformation area of a mirror object based on a binocular deflection imaging system according to any one of claims 1 to 4, characterized in that: The process of step S5 includes: Step S501: Calculate the gradient field of the surface shape based on the Zernike reconstruction surface shape result: Calculate the gradient field of the surface shape based on the Zernike reconstruction surface shape result: (8) The superscript Indicates that the gradient value is calculated from the actual depth value. Reconstruct depth values for Zernike, and Two adjacent points are and Distance in direction; The formula for the gradient calculated based on the normal vector calculated based on the angle bisector is expressed as: (9) in To reflect light, is the incident light, and the coordinates of the measured point are , the screen coordinates are , the camera optical center coordinates are , is the distance from the measured point to the screen, is the distance from the measured point to the camera; the screen coordinates are determined by step S2; Step S502: Calculate the difference between the two gradients to locate the deformation area; Calculate the difference between the two gradients obtained by formula (8) and formula (9): (10)。 7. The method for reconstructing the local deformation area of a mirror object based on a binocular deflection imaging system according to any one of claims 1 to 4, characterized in that: In step S6, the surface integral is performed using the Zernike polynomial gradient value outside the deformation region, and the surface integral is performed using the normal gradient of step S3 within the deformation region.
8. The method for reconstructing the local deformation area of a mirror object based on a binocular deflection imaging system according to claim 7, characterized in that: The process of step S6 includes: taking a certain point on the surface as the starting point, integrating along a certain path, and based on the positioning prior of the local deformation area in step S5, the surface correction formula is expressed as: (11) In the formula To set the threshold, When it is greater than or equal to the threshold, the depth is calculated according to the path integral gradient value; on the contrary, when When it is less than the threshold, the depth is calculated according to the Zernike gradient value; In the same way, get the path along The depth value correction formula in the direction is expressed as: (12) Formula (11) and Formula (12) are the processes of surface correction based on the path integral algorithm. The local deformation area can be accurately located according to the gradient difference threshold, and the surface gradient obtained by Zernike polynomial in the non-local deformation area is integrated.
9. A storage medium, which can be read by a computer or a processor, characterized in that: The storage medium stores a computer program for executing any one of the methods in claims 1 to 8.
Citation Information
Cited By
Specular object detection method and system based on fusion of single-phase measurement deflectometry and tactile sensing
WO2025200483A1
