Super-large optical surface deflection imaging method based on camera array and storage medium
Through the ultra-large optical surface deflection imaging method of the camera array, combined with phase-shifted fringe pattern projection and binocular deflection search, the global continuous surface shape reconstruction of the extremely large optical surface is achieved, solving the binocular deflection reconstruction area limitations and non-standard The problem of missing point cloud data in the public field of view improves the reconstruction efficiency and accuracy.
Patent Information
- Application Number
- CN202410459439.4
- 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 binocular deflectometry imaging system is limited by the algorithm in the reconstruction area, the reconstruction area is small, and it is difficult to adapt to the reconstruction of non-standard free-form surfaces. In particular, the lack of point cloud data in non-public fields of view leads to low acquisition and stitching efficiency of the imaging system. .
Using a camera array-based ultra-large optical surface deflection imaging method, through phase-shifted fringe pattern projection, camera and screen pixel matching point calculation, binocular deflection search and reconstruction, camera array point cloud joint optimization, surface shape initialization and monocular Deflectometry iterative integral reconstruction achieves accurate reconstruction of the global continuous surface shape of extremely large optical surfaces.
It achieves accurate reconstruction of the global continuous surface shape of an extremely large optical surface, breaks through the limitations of binocular deflection public field of view reconstruction areas, eliminates gaps between point clouds, and is suitable for industrial measurement environments. It has a wide range of applications, high accuracy, and adaptability. powerful.
Smart Images

Figure CN118533099A
Abstract
Description
Technical Field
[0001] The present invention mainly relates to the application field of vision technology in industry, and in particular to a camera array-based ultra-large optical surface deflection imaging method and storage medium. Background Art
[0002] With the improvement of optical processing technology, the precision of optical surfaces is getting higher and higher, and higher requirements are also put forward for its quality inspection. As a non-contact optical surface morphology reconstruction method, deflectometry imaging has the advantages of fast imaging speed, high reconstruction accuracy and strong robustness, and has been widely used in the field of optical surface measurement.
[0003] Among them, the binocular deflectometry imaging system is more popular in industrial applications because it does not require prior knowledge of the surface shape of the object being measured and has high flexibility. However, binocular deflectometry is limited by the algorithm, and the reconstruction area is limited to the public field of view between adjacent cameras, so the reconstruction area is small. By increasing the number of cameras, the reconstruction area can be expanded. However, the lack of point cloud data in the non-public field of view poses certain challenges to the imaging system acquisition rhythm and the subsequent stitching and registration of point clouds.
[0004] To this end, practitioners Wei et al. proposed a marker-based stitching method, which uses markers to stitch point clouds reconstructed from different perspectives to achieve the purpose of expanding the reconstruction area. However, in order to achieve complete reconstruction of the object being measured, the moving path needs to be planned in advance, and the imaging system needs to be sampled multiple times, resulting in low reconstruction efficiency.
[0005] Another practitioner, Ren et al., proposed to achieve 3D reconstruction of the surface shape of the common area between cameras based on a binocular deflection imaging system, and then match the area with the prior shape of the object to obtain the initial surface shape of the non-common area, and finally use the gradient data to perform gradient integration on the non-common field of view area to expand the surface reconstruction area. However, this method requires the participation of the prior surface shape and is difficult to adapt to the reconstruction of non-standard free-form surfaces. Summary of the invention
[0006] The technical problem to be solved by the present invention is: in response to the technical problems existing in the prior art, the present invention provides a camera array-based ultra-large optical surface deflection imaging method and storage medium with simple principle, wide application range and high precision.
[0007] In order to solve the above technical problems, the present invention adopts the following technical solutions: A method for deflection imaging of a very large optical surface based on a camera array, comprising: Step S1: Projecting a phase-shifted fringe pattern; displaying the fringe pattern on the surface of the object to be tested on a screen, and receiving the distorted fringe pattern reflected by the object to be tested by a plurality of cameras; Step S2: Calculate the pixel matching points between the camera and the screen; apply fringe deconvolution and unwrapping algorithms to obtain pixel matching pairs between the camera and the screen; Step S3: binocular deflectometry search and 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: Joint optimization of camera array point clouds; Joint optimization of camera array point clouds to eliminate gap errors between different point clouds; Step S5: initializing the surface shape; initializing the nominal surface shape of all camera pixels containing phase values; Step S6: Monocular deflectometry iterative integral reconstruction; calculating the surface gradient, and reconstructing the overall surface shape by an alternating iterative algorithm of surface shape optimization-gradient value update.
[0008] As a further improvement of the method of the present invention: in step S1, phase shift fringes are used, and the generation formula thereof 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, given by From the range of values, we can see that the phase of the cosine function is limited to range, i.e. the first complete cycle.
[0009] As a further improvement of the method of the present invention: in the step S2, a control command is issued to display the generated phase-shifted fringe pattern, and a distorted image is generated by collecting the reflection from the surface of the object to be measured; 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 ; The image is presented as a two-dimensional sawtooth wave-shaped wrapped phase, and the absolute phase is solved. After the unwrapping is completed, the pixel matching between the camera imaging plane and the display screen is obtained.
[0010] As a further improvement of the method of the present invention: in the step S3, based on the iterative search of binocular deflectometry, 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 are obtained; in the camera array deflectometry imaging system, a minimum binocular deflectometry imaging system is formed by two adjacent cameras to obtain multiple point cloud data.
[0011] As a further improvement of the method of the present invention: in step S4, the camera array reconstructed point cloud data is jointly optimized, and the process includes: Unify the coordinate system of the point cloud data; set a world coordinate system, obtain the rotation matrix and translation vector of each main camera to the coordinate system, and the coordinate transformation formula of the point cloud is: (4) in Represents the point cloud coordinates after the unified coordinate system, express and They represent the rotation matrix and translation vector of the original point cloud to the world coordinate system respectively; The point cloud data after the unified coordinate system is jointly optimized; the point cloud data under multiple cameras is extracted and the normal vector is reconstructed; according to the law of mirror reflection, the normal vector is calculated by the bisector of the angle between the incident light and the reflected light, that is: (5) in represents the normal vector, represents the reflected light vector, represents the incident light vector; the reflected light vector is determined by the line between the three-dimensional point and its corresponding camera light; in the camera array deflection imaging system, the calculation formula for reflected light under different cameras is: (6) Subscript represents the camera index from which the data was reconstructed, and Represents the main camera index, Represents the translation vector from the main camera to the world coordinate system; is the coordinate after being unified by formula (5); Extract the normal vector data of all cameras, and perform surface integration using the Zernike polynomial. The fitting formula is: (7) in is the polar coordinate parameter, are sub-terms of the Zernike polynomials, and different polynomials are orthogonal on the unit circle; is the coefficient of this sub-item.
[0012] As a further improvement of the method of the present invention: in step S5, the process of initializing the nominal face shape includes: Based on the height of the point cloud data obtained in step S3, plane parameter fitting is performed on the data containing the non-public field of view; Initialize the nominal surface shape of all data containing phase in the current continuous area using plane parameters; Traverse all the pixels to complete the nominal surface initialization. As a further improvement of the method of the present invention: in the step S6, the iterative integration process is optimized based on the ray tracing error; after the nominal surface shape is initialized in step S4, the spatial posture among the camera, the object to be measured and the light source has actually been determined in space, and the gradient vector field of the object to be measured is initialized at this time to prepare for the subsequent surface shape iteration; the gradient field is calculated based on the nominal surface shape of step S5; according to the law of reflection, the incident angle is equal to the reflection angle, and the angle bisector coincides with the surface normal of the object to be measured.
[0013] As a further improvement of the method of the present invention: after the nominal surface shape is initialized, the height of the object to be measured is known, and the height-slope ambiguity problem in the deflectometry is decoupled and converted into a sub-problem of obtaining the surface shape of the object to be measured based on the gradient vector field; the iterative optimization is an alternating iterative method that accepts the surface shape error, recalculates the gradient vector field, and then updates the surface shape, gradually corrects the gradient vector field and the gradient integration result in an alternating manner, and after the algorithm converges, the ultra-large optical surface reconstruction within the camera field of view is completed.
[0014] 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.
[0015] Compared with the prior art, the advantages of the present invention are: 1. The camera array-based ultra-large optical surface deflection imaging method and storage medium of the present invention have simple principles, wide application range and high precision. Based on the binocular deflection imaging system, the method can ultimately achieve accurate reconstruction of the global continuous surface shape of an ultra-large optical surface through processes such as multi-camera joint optimization and surface shape alternating iteration.
[0016] 2. The camera array-based ultra-large optical surface deflection imaging method and storage medium of the present invention integrates binocular deflectometry reconstruction with monocular deflectometry surface integral algorithm, breaks through the limitation of binocular deflectometry common field of view reconstruction area, eliminates the gaps between point clouds, and realizes complete optical surface reconstruction of ultra-large field of view.
[0017] 3. The ultra-large optical surface deflection imaging method and storage medium based on camera array of the present invention do not need to refer to the prior surface shape of the object to be measured, do not impose strict restrictions on the distance to the object to be measured, can better adapt to industrial measurement environments, and the number of cameras in the camera array can be expanded according to demand.
[0018] 4. The camera array-based ultra-large optical surface deflection imaging method and storage medium of the present invention adopt a single large LCD screen as a diffuse light source, and regard the adjacent cameras in the camera array as independent binocular deflection imaging subsystems. Each subsystem reconstructs the mirror area in the common field of view of the adjacent cameras according to the binocular deflection reconstruction algorithm. On this basis, a method for reconstructing an ultra-large optical surface is proposed, taking the local surface shape of the optical surface reconstructed by binocular deflection imaging as a priori, to achieve the reconstruction and expansion of the non-overlapping islands and side skirt areas between cameras. The method first applies a multi-camera point cloud joint optimization algorithm to the point cloud surface shape gap caused by the system error in the reconstruction process of each binocular deflection imaging subsystem. The optimized point cloud data can effectively eliminate noise and surface shape gaps; secondly, the surface shape of all data within the field of view of the camera array is initialized based on the optimized point cloud data, and the gradient vector field is initialized based on the surface shape height reference. Finally, for the initialized surface shape error, the global optimization of the surface shape is achieved in an alternating iterative manner. The optimized ultra-large optical surface can effectively maintain the measurement accuracy of the overall surface shape of the optical surface, while taking into account the continuity and consistency of the global shape. The algorithm proposed in the present invention can achieve accurate reconstruction of ultra-large optical surfaces and has a wide range of application scenarios in the fields of automobile manufacturing, aerospace, new energy, etc. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 It is a structural schematic diagram of a four-eye deflection imaging system in a specific application example of the present invention.
[0020] Figure 2 It is a schematic diagram of the process of the present invention.
[0021] Figure 3 It is a schematic diagram of horizontal and vertical stripes in a specific application example of the present invention.
[0022] Figure 4 It is a schematic diagram of three-dimensional point search using binocular deflection in a specific application example of the present invention.
[0023] Figure 5 It is a schematic diagram of the binocular deflection reconstruction result of the camera array in a specific application example of the present invention.
[0024] Figure 6 It is a schematic diagram of the nominal surface shape result of the present invention in a specific application example.
[0025] Figure 7It is a schematic diagram of gradient calculation in a specific application example of the present invention.
[0026] Figure 8 It is a schematic diagram for comparing reconstruction results of the present invention in a specific application example.
[0027] Legend: 1. Display screen; 2. Object to be measured; 3. Camera; 4. Camera; 5. Camera; 6. Camera; 7. Computer. 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 1 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 measurement system provided by a method for reconstructing a super-large optical surface based on a camera array. The measurement system includes a display screen 1, an object to be measured 2, a camera 3, a camera 4, a camera 5, a camera 6 and a computer 7, wherein the display screen 1 is used to receive a phase-shifted fringe pattern transmitted by the computer 7 and display the pattern in full screen; the object to be measured 2 is used to reflect the pattern displayed on the display screen 1 to the camera array; the camera array includes cameras 3, 4, 5 and 6, which are used to receive the distorted fringe pattern reflected by the object to be measured 2. The computer 7 is used to control the display screen 1 to display the pattern, receive the pattern collected by the camera array and perform subsequent reconstruction operations.
[0030] like Figure 2 As shown, the ultra-large optical surface deflection imaging method based on a camera array of the present invention comprises the following steps: Step S1: Projecting a phase-shifted fringe pattern; displaying the fringe pattern on the surface of the object to be tested on a screen, and receiving the distorted fringe pattern reflected by the object to be tested by a plurality of cameras (four for example); Step S2: Calculate the pixel matching points between the camera and the screen; apply fringe deconvolution and unwrapping algorithms to obtain pixel matching pairs between the camera and the screen; Step S3: binocular deflectometry search and 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: Joint optimization of camera array point clouds: Joint optimization of camera array point clouds to eliminate gap errors between different point clouds caused by various errors; Step S5: initializing the surface shape; based on the point cloud depth value in step S4, performing nominal surface shape initialization on all camera pixels containing phase values; Step S6: Monocular deflectometry iterative integral reconstruction; based on step S5, the nominal surface shape is obtained, the surface gradient is calculated, and the reconstruction of the overall surface shape is achieved by an alternating iterative algorithm of surface shape optimization-gradient value update.
[0031] In a specific application example, in step S1, in a deflectometry imaging system, in order to obtain pixel matching pairs between a camera and a screen, the screen needs to display a pattern with rich textures.
[0032] Among them, phase-shift fringes are the most widely used, and their 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, given by From the range of values, we can see that the phase of the cosine function is limited to In the range of the first complete cycle, the horizontal and vertical stripes generated by formula (1) are as follows Figure 3 shown.
[0033] In a specific application example, in step S2, a control command is issued to display the generated phase-shifted fringe pattern, and a distorted image is generated by collecting the reflection from the surface of the object to be measured; the light intensity value received by the camera can be 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) However, since the sine and cosine functions in formula (3) are both periodic functions, The phase is also periodic, which is shown as a two-dimensional sawtooth wave-shaped wrapped phase on the image. Therefore, it is necessary to further remove the periodic ambiguity, that is, to solve the absolute phase. After the unwrapping is completed, the pixel matching between the camera imaging plane and the display screen can be obtained.
[0034] In a specific application example, in step S3, based on the iterative search of binocular deflectometry, 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 are obtained. Figure 4 As shown, is a direction vector from point 1 on the imaging plane of camera 1 With the light heart The connection is confirmed. The directions of the light received from the environment are , and the three-dimensional points on the surface of the object to be measured are Somewhere on the corresponding ray. The corresponding point of the screen pixel is However, in the only known and Under the condition of , the 3D points on the surface of the object to be measured cannot be determined, and the camera 2 cannot directly provide parallax constraints. In the binocular deflectometry reconstruction process, the 3D points need to be determined by searching, that is, the position of the object point to be measured needs to be assumed first. Figure 4 In the example, first assume that the three-dimensional point is Then according to , and The angle bisector unit vector can be calculated , and from the law of mirror reflection, we know that the angle bisector is also the assumed point At the same time, based on the rotation matrix and translation vector between the two cameras, Can be reprojected to camera 2 Point. and the normal vector And the screen space pose can determine the screen point . Figure 4 Assumed in The point is not on the surface of the object to be measured, and the normal vector It is not reliable, the calculated There is also a problem. The corresponding point of the screen pixel is ,therefore and There is a distance error between them, that is, , along the direction vector Different 3D points can be assumed if and only if the assumed 3D points are located exactly on the surface of the object to be measured, that is, Figure 4In At point , the normal vector calculated at this time coincides with the actual direction vector of the surface, so camera 2 is based on Calculated The peak point of the light response curve If the distance error is 0, the assumed point is on the surface of the object to be measured. However, in the actual measurement process, it is usually necessary to set a threshold because of noise interference. , that is: when When the 3D point on the surface of the object to be measured is found, the 3D point search is terminated. By traversing all the pixel points on the imaging plane of camera 1, the reconstruction of the 3D point on the surface of the object to be measured can be completed. In a four-eye deflection imaging system, two adjacent cameras form a minimum binocular deflection imaging system, and ultimately three point cloud data can be obtained. Therefore, three point cloud data can be obtained. In this embodiment, an iterative search based on binocular deflectometry is performed to obtain the 3D point cloud and surface normal of the surface of the object to be measured within the common field of view of adjacent cameras. In a camera array deflection imaging system, two adjacent cameras form a minimum binocular deflection imaging system, and ultimately multiple point cloud data can be obtained.
[0035] like Figure 5 As shown, in a specific application example, in step S4, affected by factors such as system calibration accuracy, imaging angle and noise, the point cloud quality obtained by different camera combinations based on binocular deflection iterative reconstruction is different and will be mixed with noise points. In order to ensure the accuracy of subsequent surface shape iterative integration, it is necessary to jointly optimize the camera array reconstructed point cloud data.
[0036] Among them, the point cloud data obtained by iterative reconstruction between adjacent cameras will have coordinates in different camera coordinate systems when there are multiple main cameras. To ensure the normal progress of joint optimization, the coordinate system of the point cloud data must be unified first. Set a world coordinate system and obtain the rotation matrix and translation vector of each main camera to the coordinate system. Then the coordinate transformation formula of the point cloud is: (4) in Represents the point cloud coordinates after the unified coordinate system, express and They represent the rotation matrix and translation vector of the original point cloud to the world coordinate system respectively.
[0037] Next, the point cloud data in the unified coordinate system is jointly optimized. The core of the joint optimization is to extract the point cloud data under multiple cameras and reconstruct the normal vector. According to the law of mirror reflection, the normal vector is calculated by the bisector of the angle between the incident light and the reflected light, that is: (5) in represents the normal vector, represents the reflected light vector, Represents the incident light vector. The reflected light vector is determined by the line between the 3D point and its corresponding camera light. In the camera array deflection imaging system, the calculation formula for reflected light under different cameras can be summarized as: (6) Subscript represents the camera index from which the data was reconstructed, and Represents the main camera index, Represents the translation vector of the main camera to the world coordinate system. is the coordinate after being unified by formula (5).
[0038] Then, the normal vector data of all cameras are extracted, and the surface shape is integrated using the Zernike polynomial. The fitting formula is: (7) in is the polar coordinate parameter, are sub-terms of the Zernike polynomials, and different polynomials are orthogonal on the unit circle; is the coefficient of this sub-term. In practical applications, a finite-order polynomial, such as the first 36 terms, is generally used to express the surface shape. By taking the partial derivative of formula (7), the relationship between the gradient and the Zernike polynomial can be established: (8) Assume that the surface of the object to be measured has points to be fitted, then the matrix form of formula (8) can be expressed as: (9) in and Respectively represent Points in and The gradient value in the direction can be calculated based on the projection of the normal vector in the horizontal and vertical directions: (10) In a specific application example, in step S5, the nominal surface shape initialization is an essential step before the surface shape iteration. In the SCOTs algorithm, the optimization constraint equation is to minimize the ray tracing deviation, and the accuracy of the initialized surface shape will cause non-monotonic deviation in ray tracing. This deviation will be regarded as the error gradually converging during the iteration process. Therefore, even if there is a deviation in the nominal surface shape, it will gradually approach the true surface shape in the subsequent iterative optimization process. In actual measurement, there is no point cloud data in the non-public field of view of the camera, and an attempt is made to initialize it with a plane equation to provide a height value for subsequent gradient calculations.
[0039] First, based on the point cloud data height obtained in step 3, plane parameter fitting is performed on the data containing the non-public field of view. Assume that the point cloud data has a total of 3D points, the 3D coordinates of these points can be expressed as ,in . Use singular value decomposition to perform the following operations: (4) in , and The column vectors of the coordinates of the three directions of the point set, , and are the average values of the corresponding quantities respectively. Through the above singular value decomposition, the plane normal vector can be obtained as: . Furthermore, the distance between the plane and the origin can be expressed as: (5) Use the plane parameters to initialize the nominal surface shape of all data containing phase in the current continuous area (including the non-public area of the camera). The three-dimensional points of the surface shape correspond to the camera pixels one by one. Let the coordinates of the pixel points to be calculated be: , then the calculation process of the nominal surface 3D point of the pixel point is: (6) (7) in represents the camera intrinsic parameter matrix, Represents the calculated nominal surface 3D point.
[0040] It should be pointed out that the nominal surface 3D points need to be established in the world coordinate system. The calculation process shown in formula (6) and formula (7) uses the camera as the world coordinate system. In the camera array deflectometry imaging system, the nominal surface calculation between multiple cameras should also be in the main camera coordinate system. An additional coordinate transformation is required, and equations (6) and (7) should become: (8) (9) in, and Represents the rotation matrix and translation vector between the current main camera and the world coordinate system. Figure 6 As shown, the nominal surface shape initialization can be completed by traversing all the pixel points.
[0041] In a specific application example, in step S6, the iterative integration process needs to be optimized based on the ray tracing error. After the nominal surface shape is initialized in step S4, the spatial pose between the camera, the object to be measured and the light source has actually been determined in space. At this time, the gradient vector field of the object to be measured can be initialized to prepare for the subsequent surface shape iteration. Different from step S4, the gradient field will be calculated based on the nominal surface shape of step S5. Figure 7 As shown, according to the law of reflection, the incident angle is equal to the reflection angle, and then the angle bisector coincides with the surface normal of the object to be measured. Then the calculation formula of the surface normal of the object to be measured is: (8) The coordinates of the measured points in the nominal surface shape 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. It should be noted that all the above coordinates are in the world coordinate system.
[0042] After the nominal surface shape is initialized, the height of the object to be measured is known (although there is an error), and the height-slope ambiguity problem in deflectometry is decoupled, and the problem becomes a sub-problem of obtaining the surface shape of the object to be measured based on the gradient vector field.
[0043] Iterative optimization is an alternating iterative method that accepts surface errors, recalculates the gradient vector field, and then updates the surface shape. This method gradually corrects the gradient vector field and gradient integral results in an alternating manner. After the algorithm converges, the reconstruction of the ultra-large optical surface within the camera's field of view (public field of view + non-public field of view) can be completed.
[0044] 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.
[0045] 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.
[0046] To verify the effectiveness and accuracy of the present invention, in a specific application example, Figure 1 The imaging system shown in the figure uses the algorithm proposed in the present invention to reconstruct the paint surface of the car door area. The reconstruction result is shown in FIG. Figure 8 As shown in the figure, the left side shows the camera acquisition data, the middle shows the reconstruction result based on binocular deflectometry, and the right side shows the method of the present invention. It can be seen from the results that the algorithm of the present invention can effectively improve the face reconstruction area.
Claims
1. A method for deflection imaging of a very large optical surface based on a camera array, characterized in that: include: Step S1: Phase-shifted fringe pattern projection; The fringe pattern is displayed on the screen on the surface of the object to be tested, and several cameras receive the distorted fringe pattern reflected by the object to be tested; Step S2: Calculate the matching points between the camera and the screen pixels; Apply fringe dephasing and unwrapping algorithms to obtain pixel matching pairs between the camera and the screen; Step S3: binocular deflectometry search and 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: Joint optimization of camera array point clouds; Joint optimization of camera array point clouds to eliminate gap errors between different point clouds; Step S5: face shape initialization; Initialize the nominal surface shape of all camera pixels containing phase values; Step S6: Monocular deflectometry iterative integral reconstruction; calculating the surface gradient, and reconstructing the overall surface shape by an alternating iterative algorithm of surface shape optimization-gradient value update.
2. The method for deflection imaging of a very large optical surface based on a camera array according to claim 1, characterized in that: In step S1, phase shift fringes are used, and the generation formula thereof 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, given by From the range of values, we can see that the phase of the cosine function is limited to range, i.e. the first complete cycle.
3. The method for deflection imaging of a very large optical surface based on a camera array according to claim 1, characterized in that: In step S2, a control command is issued to display the generated phase-shifted fringe pattern, and a distorted image is generated by collecting the reflection from the surface of the object to be measured; 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 ; The image is presented as a two-dimensional sawtooth wave-shaped wrapped phase, and the absolute phase is solved. After the unwrapping is completed, the pixel matching between the camera imaging plane and the display screen is obtained.
4. The method for deflection imaging of a very large optical surface based on a camera array according to claim 1, characterized in that: In step S3, based on the iterative search of binocular deflectometry, 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 are obtained; in the camera array deflectometry imaging system, two adjacent cameras form a minimum binocular deflectometry imaging system to obtain multiple point cloud data.
5. The method for deflection imaging of a very large optical surface based on a camera array according to any one of claims 1 to 4, characterized in that: In step S4, the camera array reconstructed point cloud data is jointly optimized, and the process includes: Unify the coordinate system of the point cloud data; set a world coordinate system, obtain the rotation matrix and translation vector of each main camera to the coordinate system, and the coordinate transformation formula of the point cloud is: (4) in Represents the point cloud coordinates after the unified coordinate system, express and They represent the rotation matrix and translation vector of the original point cloud to the world coordinate system respectively; The point cloud data after the unified coordinate system is jointly optimized; the point cloud data under multiple cameras is extracted and the normal vector is reconstructed; according to the law of mirror reflection, the normal vector is calculated by the bisector of the angle between the incident light and the reflected light, that is: (5) in represents the normal vector, represents the reflected light vector, represents the incident light vector; the reflected light vector is determined by the line between the three-dimensional point and its corresponding camera light; in the camera array deflection imaging system, the calculation formula for reflected light under different cameras is: (6) Subscript represents the camera index from which the data was reconstructed, and Represents the main camera index, Represents the translation vector from the main camera to the world coordinate system; is the coordinate after being unified by formula (5); Extract the normal vector data of all cameras, and perform surface integration using the Zernike polynomial. The fitting formula is: (7) in is the polar coordinate parameter, are sub-terms of the Zernike polynomials, and different polynomials are orthogonal on the unit circle; is the coefficient of this sub-item.
6. The method for deflection imaging of a very large optical surface based on a camera array according to any one of claims 1 to 4, characterized in that: In step S5, the process of initializing the nominal face shape includes: Based on the height of the point cloud data obtained in step S3, plane parameter fitting is performed on the data containing the non-public field of view; Initialize the nominal surface shape of all data containing phase in the current continuous area using plane parameters; Traverse all the pixels to complete the nominal surface initialization.
7. The method for deflection imaging of a very large optical surface based on a camera array according to any one of claims 1 to 4, characterized in that: In step S6, the iterative integration process is optimized based on the ray tracing error; After the nominal surface shape is initialized in step S4, the spatial poses among the camera, the object to be measured and the light source have actually been determined in space. At this time, the gradient vector field of the object to be measured is initialized to prepare for the subsequent surface shape iteration; the gradient field is calculated based on the nominal surface shape of step S5; according to the law of reflection, the incident angle is equal to the reflection angle, and the angle bisector coincides with the surface normal of the object to be measured.
8. The camera array-based ultra-large optical surface deflection imaging method according to claim 7, characterized in that: After the nominal surface shape is initialized, the height of the object to be measured is known, and the height-slope ambiguity problem in deflectometry is decoupled and converted into a sub-problem of obtaining the surface shape of the object to be measured based on the gradient vector field; the iterative optimization is an alternating iterative method that accepts the surface shape error, recalculates the gradient vector field, and then updates the surface shape, gradually corrects the gradient vector field and the gradient integration result in an alternating manner, and after the algorithm converges, the ultra-large optical surface reconstruction within the camera field of view is completed.
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.
