A nonlinear correction method and system based on binary fringe projector calibration
Through the nonlinear correction method based on binary fringes, the internal parameter matrix and distortion coefficient of the projector are calculated, which solves the problem of large errors in traditional projector calibration, improves the projection rate and accuracy, and achieves a more accurate projection effect.
Patent Information
- Application Number
- CN202411092160.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-09
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-08-09
AI Technical Summary
In traditional projector calibration technology, the absolute phase obtained using the sinusoidal fringe scheme is not accurate enough, resulting in large errors in the internal and external parameters of the projector, affecting the accuracy and quality of the projected image.
A nonlinear correction method based on binary fringes is adopted. By obtaining binary fringes and sinusoidal phase-shifted fringe patterns, sinusoidal symmetry encoding is used to generate binary encoding fringes, which are projected on a circular calibration plate to obtain multiple sets of calibration patterns and calculate features. Based on the expanded phase and three-dimensional point coordinates of the point, the internal parameter matrix and distortion coefficient of the projector are calculated to perform nonlinear correction.
The projection rate is increased, the projector's re-projection error is reduced, the calibration accuracy is improved, non-linear errors are eliminated, and the accuracy of the projected image is improved.
Smart Images

Figure CN118603510B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of projector technology and optical measurement technology, and in particular to a nonlinear correction method and system based on binary fringe projector calibration. Background Art
[0002] With the development of computer vision and image processing technology, projector calibration technology has also been continuously improved and applied, providing reliable technical support for projection needs in various fields. Since the projector itself has certain optical distortion and errors, these errors will have an adverse effect on the projection effect. Therefore, by accurately calibrating the projector, these errors can be eliminated and the quality and accuracy of the projected image can be improved.
[0003] In projector calibration, a specific calibration board or pattern is usually used for calibration. By projecting a specific pattern or structure onto the calibration board, and then using a camera or other sensor to capture the actual projection result, the projector parameters are calculated, including the projection center, distortion coefficient, relative position, etc. These parameters can be used to correct the projected image so that it presents an accurate shape and size on the target surface. Most traditional fringe projection technology solutions are to calibrate the projector according to the projected sinusoidal fringes, but the absolute phase obtained by this solution is not accurate enough, and the errors in the calculated internal and external parameters of the projector are large. Summary of the invention
[0004] In order to solve the deficiencies mentioned in the above background technology, the purpose of the present invention is to provide a nonlinear correction method and system based on binary fringe projector calibration, which has a fast projection rate and can efficiently complete the calibration of the projector.
[0005] In a first aspect, the purpose of the present invention can be achieved by the following technical solution: a nonlinear correction method based on binary fringe projector calibration, the method comprising the following steps:
[0006] Obtain binary fringes and sinusoidal phase-shifted fringes patterns, encode the binary fringes by using the sinusoidal phase-shifted fringes patterns and utilizing sinusoidal symmetry to generate binary coded fringes for calibration; project the binary coded fringes for calibration onto a circular calibration plate respectively, change the position of the circular calibration plate, and obtain multiple sets of calibration patterns;
[0007] According to multiple sets of calibration patterns, the pixel coordinates of a certain feature point on the multiple sets of calibration patterns are segmented on the camera captured image, and the unfolded phase of the feature point is obtained using a special algorithm;
[0008] Obtain the output resolution and number of fringe cycles of the projector, and obtain the vertical and horizontal coordinates of the camera pixel coordinates of the feature point on the projection plane according to the unfolding phase of the feature point and the output resolution and number of fringe cycles of the projector;
[0009] The camera pixel coordinates of the feature points correspond to the vertical and horizontal coordinates on the projection plane, and the three-dimensional point coordinate information corresponding to the pixel is calculated through the three-dimensional point coordinate formula. The intrinsic parameter matrix and distortion coefficient of the projector are calculated according to the three-dimensional point coordinate information corresponding to each feature point pixel. The nonlinear correction of the projector is completed using the intrinsic parameter matrix and distortion coefficient of the projector.
[0010] In combination with the first aspect, in some implementations of the first aspect, the method further includes: the sinusoidal phase shift fringes are as follows:
[0011]
[0012] In the formula, is the pixel coordinate, is the acquired sinusoidal image, is the background light intensity, b is the reflectivity of the object surface, is the phase principal value to be solved, and N represents N-step phase shift.
[0013] In combination with the first aspect, in some implementations of the first aspect, the method further includes: the algorithm is as follows:
[0014]
[0015] In the formula, To obtain the sinusoidal fringe image, is a coded black and white stripe image, and the digital subscript m is the serial number of the coded pattern. A completely black image.
[0016] In combination with the first aspect, in some implementations of the first aspect, the method further includes: a calculation process of the three-dimensional point coordinate information corresponding to the pixel is as follows:
[0017] According to the camera pixel coordinates , obtain the deformed phase map, match it with the ideal phase map according to the principle of minimizing the phase difference, and obtain the corresponding pixel coordinate point of the projector , the corresponding three-dimensional coordinate information is obtained through the formula:
[0018]
[0019] In the formula, is the camera's projection matrix, is the projection matrix of the projector, , , is the corresponding three-dimensional point coordinate information, is the pixel coordinate of the projector.
[0020] In combination with the first aspect, in some implementations of the first aspect, the method further includes: calculating the internal parameter matrix:
[0021]
[0022] In the formula, is the intrinsic parameter matrix of the projector, Represents the projector extrinsic matrix , represents the actual pixel coordinates of the projector, Indicates the calculated Secondary image projection point The projection coordinates of .
[0023] In combination with the first aspect, in some implementations of the first aspect, the method further includes: a calibration process of the projector:
[0024] The pixel coordinates of the projector in each set of calibration patterns are converted into image coordinates using the formula:
[0025]
[0026] in, and All represent the internal parameters of the projector. represents the image coordinates, Perform normalization processing;
[0027] The image coordinates Transformed into world 3D coordinates ;
[0028] The projector's internal parameters are used to transform the world 3D coordinates of the corner points into 3D coordinates in the camera coordinate system.
[0029] The formula is:
[0030] Where R and t are the external parameters of the projector.
[0031] In a second aspect, in order to achieve the above-mentioned purpose, the present invention discloses a nonlinear correction system based on binary fringe projector calibration, comprising:
[0032] The encoding module is used to obtain binary fringes and sinusoidal phase-shifted fringes patterns, encode the binary fringes by using the sinusoidal phase-shifted fringes patterns and the sinusoidal symmetry to generate binary coded fringes for calibration; the binary coded fringes for calibration are projected onto a circular calibration plate respectively, and the positions of the circular calibration plate are changed to obtain multiple sets of calibration patterns;
[0033] The feature point acquisition module is used to segment the pixel coordinates of a feature point on the multiple sets of calibration patterns on the camera captured image according to the multiple sets of calibration patterns, and obtain the unfolded phase of the feature point using a special algorithm;
[0034] A coordinate acquisition module is used to obtain the output resolution and the number of fringe cycles of the projector, and obtain the vertical and horizontal coordinates of the camera pixel coordinates of the feature point on the projection plane according to the unfolding phase of the feature point and the output resolution and the number of fringe cycles of the projector;
[0035] The nonlinear correction module is used to use the camera pixel coordinates of the feature points to correspond to the vertical and horizontal coordinates on the projection plane through the three-dimensional point coordinate formula to calculate the three-dimensional point coordinate information corresponding to the pixel, calculate the intrinsic parameter matrix and distortion coefficient of the projector according to the three-dimensional point coordinate information corresponding to each feature point pixel, and use the intrinsic parameter matrix and distortion coefficient of the projector to complete the nonlinear correction of the projector.
[0036] In combination with the second aspect, in some implementations of the second aspect, the system further includes: the sinusoidal phase shift stripes in the encoding module are as follows:
[0037]
[0038] In the formula, is the pixel coordinate, is the acquired sinusoidal image, is the background light intensity, b is the reflectivity of the object surface, is the phase principal value to be solved, and N represents N-step phase shift.
[0039] The algorithm in the feature point acquisition module is as follows:
[0040]
[0041] In the formula, To obtain the sinusoidal fringe image, is a coded black and white stripe image, and the digital subscript m is the serial number of the coded pattern. A completely black image;
[0042] The calculation process of the three-dimensional point coordinate information corresponding to the pixel in the nonlinear correction module is as follows:
[0043] According to the camera pixel coordinates , obtain the deformed phase map, match it with the ideal phase map according to the principle of minimizing the phase difference, and obtain the corresponding pixel coordinate point of the projector , the corresponding three-dimensional coordinate information is obtained through the formula:
[0044]
[0045] In the formula, is the camera's projection matrix, is the projection matrix of the projector, , , is the corresponding three-dimensional point coordinate information, is the pixel coordinate of the projector;
[0046] Calculation of the internal parameter matrix in the nonlinear correction module:
[0047]
[0048] In the formula, is the intrinsic parameter matrix of the projector, Represents the projector extrinsic matrix , represents the actual pixel coordinates of the projector, Indicates the calculated Secondary image projection point The projection coordinates of .
[0049] The calibration process of the projector in the nonlinear correction module:
[0050] The pixel coordinates of the projector in each set of calibration patterns are converted into image coordinates using the formula:
[0051]
[0052] in, and All represent the internal parameters of the projector. represents the image coordinates, Perform normalization processing;
[0053] The image coordinates Transformed into world 3D coordinates ;
[0054] The projector's internal parameters are used to transform the world 3D coordinates of the corner points into 3D coordinates in the camera coordinate system.
[0055] The formula is:
[0056] Where R and t are the external parameters of the projector.
[0057] In another aspect of the present invention, in order to achieve the above-mentioned purpose, a terminal device is disclosed, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein the memory stores a computer program capable of running on the processor, and when the processor loads and executes the computer program, a nonlinear correction method based on binary fringe projector calibration as described above is adopted.
[0058] In another aspect of the present invention, in order to achieve the above-mentioned purpose, a computer-readable storage medium is disclosed, in which a computer program is stored. When the computer program is loaded and executed by a processor, a nonlinear correction method based on binary fringe projector calibration as described above is adopted.
[0059] Beneficial effects of the present invention:
[0060] The present invention replaces traditional sinusoidal stripes with binary stripes, thereby improving the projection rate; by shooting multiple groups of calibration plates at different positions, the projected binary stripes are used to calibrate the projector, which is beneficial to reducing the reprojection error of the projector and improving the calibration accuracy; and the nonlinear error of the projector is eliminated. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0062] Figure 1 It is a schematic flow chart of the method of the present invention;
[0063] Figure 2 A schematic diagram of the binary encoding principle used in an embodiment of the present invention;
[0064] Figure 3 It is a schematic diagram of the system structure of the present invention. DETAILED DESCRIPTION
[0065] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0066] Embodiment 1:
[0067] The following is an introduction to the relevant terms involved in the embodiments of the present application:
[0068] like Figure 1 As shown, a nonlinear correction method based on binary fringe projector calibration includes the following steps:
[0069] S101: Obtain binary fringes and sinusoidal phase-shifted fringes patterns, encode the binary fringes by using the sinusoidal phase-shifted fringes patterns and sinusoidal symmetry to generate binary coded fringes for calibration; project the binary coded fringes for calibration onto a circular calibration plate respectively, change the position of the circular calibration plate, and obtain multiple sets of calibration patterns;
[0070] Specifically, Figure 2 The binary coding principle diagram shown in the figure encodes the binary pattern into two periods, and the coding pattern is M-shaped. The sinusoidal stripes are symmetrically divided into different intervals, and the overall pattern is a double triangle wave. The remaining stripe periods are realized by displacement to form 8 binary stripes.
[0071] In this embodiment, each set of calibration patterns includes 49 circular calibration plate images, including 16 binary horizontal stripes and 16 binary vertical stripes, as well as 13 gray codes and 4 black and white images.
[0072] Projector calibration requires multiple sets of calibration patterns. Each set of calibration patterns requires changing the position of the circular checkerboard. To ensure data reliability, at least 15 sets of calibration patterns must be obtained.
[0073] Among them, the sinusoidal phase shift fringes are as follows:
[0074]
[0075] In the formula, is the pixel coordinate, is the acquired sinusoidal image, is the background light intensity, b is the reflectivity of the object surface, is the phase principal value to be solved, and N represents N-step phase shift.
[0076] S102: according to the multiple groups of calibration patterns, pixel coordinates of a certain feature point on the multiple groups of calibration patterns are segmented on the camera captured image, and an algorithm is used to obtain an unfolded phase of the feature point;
[0077] The algorithm is as follows:
[0078]
[0079] In the formula, To obtain the sinusoidal fringe image, is a coded black and white stripe image, and the digital subscript m is the serial number of the coded pattern. A completely black image.
[0080] S103: Obtain the output resolution and the number of fringe periods of the projector, and obtain the vertical and horizontal coordinates of the camera pixel coordinates of the feature point on the projection plane according to the unfolding phase of the feature point and the output resolution and the number of fringe periods of the projector;
[0081] S104: The three-dimensional point coordinate information corresponding to the pixel is calculated using the three-dimensional point coordinate formula using the vertical and horizontal coordinates on the projection plane corresponding to the camera pixel coordinates of the feature point. The intrinsic parameter matrix and distortion coefficient of the projector are calculated based on the three-dimensional point coordinate information corresponding to each feature point pixel. The nonlinear correction of the projector is completed using the intrinsic parameter matrix and distortion coefficient of the projector.
[0082] The calculation process of the three-dimensional point coordinate information corresponding to the pixel is as follows:
[0083] According to the camera pixel coordinates , obtain the deformed phase map, match it with the ideal phase map according to the principle of minimizing the phase difference, and obtain the corresponding pixel coordinate point of the projector , the corresponding three-dimensional coordinate information is obtained through the formula:
[0084]
[0085] In the formula, is the camera's projection matrix, is the projection matrix of the projector, , , is the corresponding three-dimensional point coordinate information, is the pixel coordinate of the projector.
[0086] Calculation of the internal parameter matrix:
[0087]
[0088] In the formula, is the intrinsic parameter matrix of the projector, Represents the projector extrinsic matrix , represents the actual pixel coordinates of the projector, Indicates the calculated Secondary image projection point The projection coordinates of .
[0089] Projector calibration process:
[0090] The pixel coordinates of the projector in each set of calibration patterns are converted into image coordinates using the formula:
[0091]
[0092] in, and All represent the internal parameters of the projector. represents the image coordinates, Perform normalization processing;
[0093] The image coordinates Transformed into world 3D coordinates ;
[0094] The projector's internal parameters are used to transform the world 3D coordinates of the corner points into 3D coordinates in the camera coordinate system.
[0095] The formula is:
[0096] Where R and t are the external parameters of the projector.
[0097] In this embodiment, the projector is used to project binary stripes, and the camera is used to collect the calibration plate pattern obtained by the projector projecting the binary stripes. The position of the circular calibration plate can be adjusted and does not need to be fixed at the same position.
[0098] Embodiment 2: In the second aspect, as Figure 3 As shown, in order to achieve the above purpose, the present invention discloses a nonlinear correction system based on binary fringe projector calibration, comprising:
[0099] The encoding module 11 is used to obtain binary fringes and sinusoidal phase-shifted fringes patterns, encode the binary fringes by using the sinusoidal phase-shifted fringes patterns and sinusoidal symmetry to generate binary coded fringes for calibration; project the binary coded fringes for calibration onto a circular calibration plate respectively, change the position with the circular calibration plate, and obtain multiple sets of calibration patterns;
[0100] The feature point acquisition module 12 is used to segment the pixel coordinates of a feature point on the multiple sets of calibration patterns on the camera captured image according to the multiple sets of calibration patterns, and obtain the unfolded phase of the feature point using a special algorithm;
[0101] A coordinate acquisition module 13 is used to acquire the output resolution and the number of fringe cycles of the projector, and obtain the vertical and horizontal coordinates of the camera pixel coordinates of the feature point on the projection plane corresponding to the feature point according to the unfolding phase of the feature point and the output resolution and the number of fringe cycles of the projector;
[0102] The nonlinear correction module 14 is used to use the camera pixel coordinates of the feature point to correspond to the vertical and horizontal coordinates on the projection plane through the three-dimensional point coordinate formula to calculate the three-dimensional point coordinate information corresponding to the pixel, calculate the intrinsic parameter matrix and distortion coefficient of the projector according to the three-dimensional point coordinate information corresponding to each feature point pixel, and use the intrinsic parameter matrix and distortion coefficient of the projector to complete the nonlinear correction of the projector.
[0103] In combination with the second aspect, in some implementations of the second aspect, the system further includes: the sinusoidal phase shift stripes in the encoding module 11 are as follows:
[0104]
[0105] In the formula, is the pixel coordinate, is the acquired sinusoidal image, is the background light intensity, b is the reflectivity of the object surface, is the phase principal value to be solved, and N represents N-step phase shift.
[0106] The algorithm in the feature point acquisition module 12 is as follows:
[0107]
[0108] In the formula, To obtain the sinusoidal fringe image, is a coded black and white stripe image, and the digital subscript m is the serial number of the coded pattern. A completely black image;
[0109] The calculation process of the three-dimensional point coordinate information corresponding to the pixel in the nonlinear correction module 14 is as follows:
[0110] According to the camera pixel coordinates , obtain the deformed phase map, match it with the ideal phase map according to the principle of minimizing the phase difference, and obtain the corresponding pixel coordinate point of the projector , the corresponding three-dimensional coordinate information is obtained through the formula:
[0111]
[0112] In the formula, is the camera's projection matrix, is the projection matrix of the projector, , , is the corresponding three-dimensional point coordinate information, is the pixel coordinate of the projector;
[0113] Calculation of the internal parameter matrix in the nonlinear correction module 14:
[0114]
[0115] In the formula, is the intrinsic parameter matrix of the projector, Represents the projector extrinsic matrix , represents the actual pixel coordinates of the projector, Indicates the calculated Secondary image projection point The projection coordinates of .
[0116] The calibration process of the projector in the nonlinear correction module 14:
[0117] The pixel coordinates of the projector in each set of calibration patterns are converted into image coordinates using the formula:
[0118]
[0119] in, and All represent the internal parameters of the projector. represents the image coordinates, Perform normalization processing;
[0120] The image coordinates Transformed into world 3D coordinates ;
[0121] The projector's internal parameters are used to transform the world 3D coordinates of the corner points into 3D coordinates in the camera coordinate system.
[0122] The formula is:
[0123] Where R and t are the external parameters of the projector.
[0124] Based on the same inventive concept, the present invention also provides a computer device, which includes: one or more processors, and a memory for storing one or more computer programs; the program includes program instructions, and the processor is used to execute the program instructions stored in the memory. The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. It is the computing core and control core of the terminal, which is used to implement one or more instructions, specifically for loading and executing one or more instructions in a computer storage medium to implement the above method.
[0125] It should be further explained that, based on the same inventive concept, the present invention also provides a computer storage medium, on which a computer program is stored, and the computer program is executed by the processor to execute the above method. The storage medium can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electrical, magnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0126] In the description of this specification, the description with reference to the terms "one embodiment", "example", "specific example", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0127] The above shows and describes the basic principles, main features and advantages of the present disclosure. Those skilled in the art should understand that the present disclosure is not limited by the above embodiments, and the above embodiments and descriptions are only for explaining the principles of the present disclosure. Without departing from the spirit and scope of the present disclosure, the present disclosure may have various changes and improvements, and these changes and improvements fall within the scope of the present disclosure to be protected.
Claims
1. A nonlinear correction method based on binary fringe projector calibration, characterized in that: The method comprises the following steps: Obtain binary fringes and sinusoidal phase-shifted fringes patterns, encode the binary fringes by using the sinusoidal phase-shifted fringes patterns and utilizing sinusoidal symmetry to generate binary coded fringes for calibration; project the binary coded fringes for calibration onto a circular calibration plate respectively, change the position of the circular calibration plate, and obtain multiple sets of calibration patterns; The sinusoidal phase shift fringes are as follows: In the formula, is the pixel coordinate, is the acquired sinusoidal image, is the background light intensity, b is the reflectivity of the object surface, is the phase principal value to be solved, N represents N-step phase shift; According to multiple groups of calibration patterns, the pixel coordinates of a certain feature point on the multiple groups of calibration patterns are segmented on the camera captured image, and the unfolded phase of the feature point is obtained by using an algorithm; The algorithm is as follows: In the formula, To obtain the sinusoidal fringe image, is a coded black and white stripe image, and the digital subscript m is the serial number of the coded pattern. A completely black image; Obtain the output resolution and number of fringe cycles of the projector, and obtain the vertical and horizontal coordinates of the camera pixel coordinates of the feature point on the projection plane according to the unfolding phase of the feature point and the output resolution and number of fringe cycles of the projector; The three-dimensional point coordinate information corresponding to the pixel is calculated by using the three-dimensional point coordinate formula using the vertical and horizontal coordinates on the projection plane corresponding to the camera pixel coordinates of the feature point. The intrinsic parameter matrix and distortion coefficient of the projector are calculated according to the three-dimensional point coordinate information corresponding to each feature point pixel. The nonlinear correction of the projector is completed using the intrinsic parameter matrix and distortion coefficient of the projector. The calculation process of the three-dimensional point coordinate information corresponding to the pixel is as follows: According to the camera pixel coordinates , obtain the deformed phase map, match it with the ideal phase map according to the principle of minimizing the phase difference, and obtain the corresponding pixel coordinate point of the projector , the corresponding three-dimensional coordinate information is obtained through the formula: In the formula, is the camera's projection matrix, is the projection matrix of the projector, , , is the corresponding three-dimensional point coordinate information, is the pixel coordinate of the projector; Calculation of the internal parameter matrix: In the formula, is the intrinsic parameter matrix of the projector, Represents the projector extrinsic matrix , represents the actual pixel coordinates of the projector, Indicates the calculated Secondary image projection point The projection coordinates of The calibration process of the projector: The pixel coordinates of the projector in each set of calibration patterns are converted into image coordinates using the formula: in, and Both represent the internal parameters of the projector. represents the image coordinates, Perform normalization processing; The image coordinates Transformed into world 3D coordinates ; The projector's internal parameters are used to transform the world 3D coordinates of the corner points into 3D coordinates in the camera coordinate system. The formula is: Where R and t are the external parameters of the projector.
2. A nonlinear correction system based on binary fringe projector calibration, characterized in that: include: The encoding module is used to obtain binary fringes and sinusoidal phase-shifted fringes patterns, encode the binary fringes by using the sinusoidal phase-shifted fringes patterns and the sinusoidal symmetry to generate binary coded fringes for calibration; the binary coded fringes for calibration are projected onto a circular calibration plate respectively, and the positions of the circular calibration plate are changed to obtain multiple sets of calibration patterns; The sinusoidal phase shift fringes in the encoding module are as follows: In the formula, is the pixel coordinate, is the acquired sinusoidal image, is the background light intensity, b is the reflectivity of the object surface, is the phase principal value to be solved, N represents N-step phase shift; The algorithm in the feature point acquisition module is as follows: In the formula, To obtain the sinusoidal fringe image, is a coded black and white stripe image, and the digital subscript m is the serial number of the coded pattern. A completely black image; The feature point acquisition module is used to segment the pixel coordinates of a feature point on the multiple sets of calibration patterns on the camera captured image according to the multiple sets of calibration patterns, and obtain the unfolded phase of the feature point by using an algorithm; A coordinate acquisition module is used to obtain the output resolution and the number of fringe cycles of the projector, and obtain the vertical and horizontal coordinates of the camera pixel coordinates of the feature point on the projection plane according to the unfolding phase of the feature point and the output resolution and the number of fringe cycles of the projector; A nonlinear correction module is used to calculate the three-dimensional point coordinate information corresponding to the pixel by using the vertical and horizontal coordinates on the projection plane corresponding to the camera pixel coordinates of the feature point through the three-dimensional point coordinate formula, calculate the intrinsic parameter matrix and distortion coefficient of the projector according to the three-dimensional point coordinate information corresponding to each feature point pixel, and use the intrinsic parameter matrix and distortion coefficient of the projector to complete the nonlinear correction of the projector; The calculation process of the three-dimensional point coordinate information corresponding to the pixel in the nonlinear correction module is as follows: According to the camera pixel coordinates , obtain the deformed phase map, match it with the ideal phase map according to the principle of minimizing the phase difference, and obtain the corresponding pixel coordinate point of the projector , the corresponding three-dimensional coordinate information is obtained through the formula: In the formula, is the camera's projection matrix, is the projection matrix of the projector, , , is the corresponding three-dimensional point coordinate information, is the pixel coordinate of the projector; Calculation of the internal parameter matrix in the nonlinear correction module: In the formula, is the intrinsic parameter matrix of the projector, Represents the projector extrinsic matrix , represents the actual pixel coordinates of the projector, Indicates the calculated Secondary image projection point The projection coordinates of Calibration process of the projector in the nonlinear correction module: The pixel coordinates of the projector in each set of calibration patterns are converted into image coordinates using the formula: in, and Both represent the internal parameters of the projector. represents the image coordinates, Perform normalization processing; The image coordinates Transformed into world 3D coordinates ; The projector's internal parameters are used to transform the world 3D coordinates of the corner points into 3D coordinates in the camera coordinate system. The formula is: Where R and t are the external parameters of the projector.
3. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, characterized in that: The memory stores a computer program that can be run on the processor. When the processor loads and executes the computer program, the nonlinear correction method based on binary fringe projector calibration described in claim 1 is adopted.
4. A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, characterized in that: When the computer program is loaded and executed by the processor, the nonlinear correction method based on binary fringe projector calibration described in claim 1 is adopted.
