Three-dimensional reconstruction method, device and electronic equipment for highly reflective moving objects
By screening images without reflections and constructing a target coefficient matrix and a light intensity matrix, the error problem caused by overexposure in the 3D reconstruction of highly reflective moving objects is solved, and a high-precision 3D reconstruction effect is achieved.
Patent Information
- Application Number
- CN202210764403.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-29
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-06-29
AI Technical Summary
When the existing technology realizes the three-dimensional reconstruction of highly reflective moving objects, due to the highly reflective material on the surface of the object, some areas are overexposed, and the image intensity cannot be effectively obtained, resulting in large errors and the inability to perform accurate three-dimensional reconstruction.
By acquiring multiple images with different phase shifts generated by a target highly reflective moving object under sinusoidal grating illumination, screening images without reflection, constructing a target coefficient matrix and a target light intensity matrix based on the number of phase shift steps and image light intensity, using These matrices perform three-dimensional reconstruction, filtering out the effects of reflective images.
It achieves high-precision three-dimensional reconstruction of highly reflective moving objects, reduces errors, and can accurately reconstruct the shape and motion information of highly reflective moving objects.
Smart Images

Figure CN115049789B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of three-dimensional reconstruction technology, and in particular to a three-dimensional reconstruction method, device and electronic equipment for highly reflective moving objects. Background Art
[0002] Optical 3D measurement technology has the advantages of being fast and non-contact, and is widely used in industrial manufacturing, medicine, entertainment, robotics and other fields. Phase Shifting Profilometry (PSP) has aroused widespread research interest in 3D reconstruction. In the current 3D imaging method based on PSP for highly reflective moving objects, since the surface of the object is made of highly reflective material, some areas of the image taken during the movement will be overexposed, so it is impossible to obtain effective image intensity. It is necessary to abandon the current overexposure step. However, if this step is directly abandoned, it will cause a relatively large error in the traditional PSP algorithm, and the highly reflective moving object cannot be accurately reconstructed. Summary of the invention
[0003] The purpose of the present application is to provide a three-dimensional reconstruction method, device and electronic equipment for highly reflective moving objects, which can accurately reconstruct highly reflective moving objects.
[0004] In a first aspect, an embodiment of the present application provides a method for three-dimensional reconstruction of a highly reflective moving object, the method comprising: obtaining multiple images with different phase shifts generated by the target highly reflective moving object under the illumination of a sinusoidal grating; screening a target image without reflection from the multiple images with different phase shifts; constructing a target coefficient matrix and a target light intensity matrix corresponding to the target highly reflective moving object based on the phase shift steps and image light intensities of the multiple target images; and performing three-dimensional reconstruction of the target highly reflective moving object according to the target coefficient matrix and the target light intensity matrix.
[0005] In a preferred embodiment of the present application, the step of performing three-dimensional reconstruction of the target highly reflective moving object according to the target coefficient matrix and the target light intensity matrix includes: calculating the first parameter and the second parameter according to the target coefficient matrix, the target light intensity matrix and a preset formula; the preset formula is as follows:
[0006] C (N×3) X (3×1) =I (N×1) ;
[0007] in, C (N×3) represents the coefficient matrix; I (N×1) represents the light intensity matrix; N represents the number of phase shift steps; A(x, y) is the background grayscale, B1(x, y) and B2(x, y) are the first parameter and the second parameter respectively;
[0008] The phase of the target highly reflective moving object is solved according to the first parameter and the second parameter to perform three-dimensional reconstruction.
[0009] In a preferred embodiment of the present application, the above-mentioned steps of constructing a target coefficient matrix and a target light intensity matrix corresponding to the target highly reflective moving object based on the phase shift steps and image light intensities of multiple target images include: obtaining a motion offset matrix of the target highly reflective moving object; constructing a target coefficient matrix according to the phase shift steps and motion offset matrix corresponding to the multiple target images; and constructing a target light intensity matrix based on the image light intensity corresponding to each target image.
[0010] In a preferred embodiment of the present application, the above-mentioned step of obtaining the motion offset matrix of the target highly reflective moving object includes: obtaining the rotation matrix and translation vector of the target highly reflective moving object; based on the rotation matrix and translation vector, determining the motion offset matrix of the target highly reflective moving object; the motion offset matrix includes the motion offset corresponding to each target image.
[0011] In a preferred embodiment of the present application, the step of constructing a target coefficient matrix based on the phase shift step numbers and motion offset matrices corresponding to multiple target images includes: substituting the phase shift step numbers corresponding to multiple target images and the motion offsets corresponding to each target image into a preset coefficient matrix corresponding to the stationary object to obtain the target coefficient matrix.
[0012] In a preferred embodiment of the present application, the step of substituting the phase shift steps corresponding to the multiple target images and the motion offset corresponding to each target image into the preset coefficient matrix corresponding to the stationary object to obtain the target coefficient matrix includes: determining the target coefficient matrix according to the following formula:
[0013]
[0014] in,
[0015] Represents the preset coefficient matrix of the stationary object; N represents the number of phase shift steps corresponding to multiple target images; Δθ1, Δθ2…Δθ N-2 , Δθ N-1 Indicates the motion offset corresponding to the N-1-step phase-shifted non-reflective image.
[0016] In a preferred embodiment of the present application, the step of solving the phase of the target highly reflective moving object according to the first parameter and the second parameter includes: solving the phase of the target highly reflective moving object according to the following formula:
[0017]
[0018] In a preferred embodiment of the present application, the construction process of the above preset formula is as follows:
[0019] Get the light intensity distribution expression I(x,y) of a sinusoidal grating projected on a moving object:
[0020]
[0021] Among them, A(x,y) is the background grayscale, which is determined by the refractive index of the object surface; B(x,y) is the light intensity difference, which is determined by the brightness difference of the projector grating lines; f is the frequency of the projected grating lines;
[0022] For the N-step phase shift case, the quantities to be determined in the light intensity distribution expression are A(x, y), B(x, y) and The nonlinear equations of are transformed into the linear equations about the quantities to be determined A(x,y), B1(x,y) and B2(x,y), as follows:
[0023]
[0024] Where i = 0, 1, 2, ..., N-2, N-1;
[0025]
[0026] That is, the set of equations to be solved can be transformed into the following matrix pattern:
[0027]
[0028] Abbreviated as: C (N×3) X (3×1) =I (N×1) .
[0029] In a second aspect, an embodiment of the present application also provides a three-dimensional reconstruction device for a highly reflective moving object, the device comprising: an image acquisition module, used to acquire multiple images with different phase shifts generated by the target highly reflective moving object under the illumination of a sinusoidal grating; a target image determination module, used to screen out target images without reflection from multiple images with different phase shifts; a matrix construction module, used to construct a target coefficient matrix and a target light intensity matrix corresponding to the target highly reflective moving object based on the phase shift steps and image light intensities of multiple target images; and a three-dimensional reconstruction module, used to perform three-dimensional reconstruction of the target highly reflective moving object according to the target coefficient matrix and the target light intensity matrix.
[0030] In a third aspect, an embodiment of the present application further provides an electronic device, including a processor and a memory, wherein the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the method described in the first aspect above.
[0031] In the three-dimensional reconstruction method, device and electronic device of a highly reflective moving object provided by the embodiments of the present application, a plurality of images with different phase shifts generated by the target highly reflective moving object under the illumination of a sinusoidal grating are first obtained; then, the target image without reflection is screened from the plurality of images with different phase shifts; based on the phase shift steps and image light intensity of the plurality of target images, a target coefficient matrix and a target light intensity matrix corresponding to the target highly reflective moving object are constructed; and the target highly reflective moving object is reconstructed in three dimensions according to the target coefficient matrix and the target light intensity matrix. This method can filter out the influence of the reflective image, and by constructing the target coefficient matrix and the target light intensity matrix based on the image without reflection, and then performing three-dimensional reconstruction, it is possible to achieve high-precision three-dimensional reconstruction of the highly reflective moving object. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0033] Figure 1 A flowchart of a method for three-dimensional reconstruction of a highly reflective moving object provided in an embodiment of the present application;
[0034] Figure 2 A flowchart of a method for three-dimensional reconstruction of a highly reflective moving object provided in an embodiment of the present application;
[0035] Figure 3 A flowchart of a method for three-dimensional reconstruction of a highly reflective moving object provided in an embodiment of the present application;
[0036] Figure 4 A comparison diagram showing the simulation effect of the method provided in the embodiment of the present application and the three-dimensional reconstruction of the traditional algorithm;
[0037] Figure 5 Another comparison diagram showing the simulation effect of the method provided in the embodiment of the present application and the three-dimensional reconstruction of the traditional algorithm;
[0038] Figure 6 A structural block diagram of a 3D reconstruction device for a highly reflective moving object provided in an embodiment of the present application;
[0039] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0040] The technical solution of the present application will be described clearly and completely below in conjunction with the embodiments. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0041] In the current PSP-based 3D imaging method for highly reflective moving objects, since the surface of the object is made of highly reflective material, some areas of the image taken during the movement will be overexposed, so it is impossible to obtain effective image intensity, and it is necessary to abandon the current overexposure step. However, if this step is directly abandoned, it will cause a relatively large error in the traditional PSP algorithm, and the highly reflective moving object cannot be accurately reconstructed. Based on this, the embodiments of the present application provide a 3D reconstruction method, device and electronic device for highly reflective moving objects, which can achieve high-precision 3D reconstruction of highly reflective moving objects by filtering out the influence of reflective images, constructing a target coefficient matrix and a target light intensity matrix based on images without reflection, and then performing 3D reconstruction, thereby achieving high-precision 3D reconstruction of highly reflective moving objects.
[0042] To facilitate understanding of this embodiment, a three-dimensional reconstruction method of a highly reflective moving object disclosed in an embodiment of the present application is first introduced in detail.
[0043] Figure 1 A flowchart of a method for three-dimensional reconstruction of a highly reflective moving object provided in an embodiment of the present application, the method comprising the following steps:
[0044] Step S102, acquiring a plurality of images with different phase shifts generated by the target highly reflective moving object under the illumination of the sinusoidal grating.
[0045] The target highly reflective moving object may be an object having a surface made of a material that is easily reflective, such as an object having a surface made of a material that is easily reflective, such as ceramic, metal, or the like.
[0046] In a specific implementation, a fringe pattern can be projected onto a target highly reflective moving object through a projector, and an image of the moving object can be captured through a camera, that is, a plurality of images with different phase shifts generated by the target highly reflective moving object under the illumination of a sinusoidal grating can be obtained. For a target highly reflective moving object, the captured image contains some reflective images due to the highly reflective properties of the surface material of the object.
[0047] Step S104: screening a target image without reflection from a plurality of images with different phase shifts.
[0048] In this step, the target image is an image without reflection, and three-dimensional reconstruction is performed using multiple target images to improve accuracy.
[0049] Step S106, constructing a target coefficient matrix and a target light intensity matrix corresponding to the target highly reflective moving object based on the phase shift steps and image light intensities of the multiple target images.
[0050] The above target coefficient matrix and target light intensity matrix are constructed through certain steps based on the phase shift steps and image light intensities of multiple target images. The specific construction process can be found in the subsequent description.
[0051] Step S108, performing three-dimensional reconstruction of the target high-reflective moving object according to the target coefficient matrix and the target light intensity matrix.
[0052] The three-dimensional reconstruction process is performed according to the target coefficient matrix and the target light intensity matrix, that is, the process of obtaining the phase of the target highly reflective moving object. The specific process is described later.
[0053] In the three-dimensional reconstruction method of a highly reflective moving object provided in an embodiment of the present application, a plurality of images with different phase shifts generated by the target highly reflective moving object under the illumination of a sinusoidal grating are first obtained; then, a target image without reflection is screened from the plurality of images with different phase shifts; based on the phase shift steps and image light intensity of the plurality of target images, a target coefficient matrix and a target light intensity matrix corresponding to the target highly reflective moving object are constructed; and the target highly reflective moving object is reconstructed in three dimensions according to the target coefficient matrix and the target light intensity matrix. This method can achieve high-precision three-dimensional reconstruction of highly reflective moving objects by filtering out the influence of reflective images, constructing a target coefficient matrix and a target light intensity matrix based on images without reflection, and then performing three-dimensional reconstruction.
[0054] An embodiment of the present application also provides another three-dimensional reconstruction method for highly reflective moving objects, which is implemented on the basis of the above-mentioned embodiment; this embodiment focuses on describing the construction process and the three-dimensional reconstruction process based on the target coefficient matrix and the target light intensity matrix.
[0055] See also Figure 2 As shown, the process of constructing a target coefficient matrix and a target light intensity matrix corresponding to a target highly reflective moving object based on the phase shift steps and image light intensities of multiple target images includes the following steps:
[0056] Step S202, obtaining a motion offset matrix of the target high-reflective moving object.
[0057] In specific implementation, the rotation matrix and translation vector of the target highly reflective moving object are first obtained; then based on the rotation matrix and translation vector, the motion offset matrix of the target highly reflective moving object is determined; the motion offset matrix includes the motion offset corresponding to each target image.
[0058] Step S204: construct a target coefficient matrix according to the phase shift steps and motion offset matrices corresponding to the multiple target images.
[0059] Specifically, the target coefficient matrix is determined according to the following formula:
[0060]
[0061] in,
[0062] Represents the preset coefficient matrix of the stationary object; N represents the number of phase shift steps corresponding to multiple target images; Δθ1, Δθ2…Δθ N-2 , Δθ N-1 Indicates the motion offset corresponding to the N-1-step phase-shifted non-reflective image.
[0063] After substituting the phase shift steps corresponding to the multiple target images and the motion offset corresponding to each target image into the preset coefficient matrix corresponding to the above-mentioned stationary object, the target coefficient matrix can be obtained.
[0064] Step S206: construct a target light intensity matrix based on the image light intensity corresponding to each target image.
[0065] See also Figure 3 As shown, the 3D reconstruction process is as follows:
[0066] Step S302, calculating the first parameter and the second parameter according to the target coefficient matrix, the target light intensity matrix and a preset formula;
[0067] The above preset formula is as follows:
[0068] C (N×3) X (3×1) =I (N×1) ;
[0069] in, C (N×3) represents the coefficient matrix; I (N×1) represents the light intensity matrix; N represents the number of phase shift steps; A(x, y) is the background grayscale, B1(x, y) and B2(x, y) are the first parameter and the second parameter respectively.
[0070] The construction process of the above preset formula is as follows:
[0071] Get the light intensity distribution expression I(x,y) of a sinusoidal grating projected on a moving object:
[0072]
[0073] Among them, A(x,y) is the background grayscale, which is determined by the refractive index of the object surface; B(x,y) is the light intensity difference, which is determined by the brightness difference of the projector grating lines; f is the frequency of the projected grating lines;
[0074] For the N-step phase shift case, the quantities to be determined in the light intensity distribution expression are A(x, y), B(x, y) and The nonlinear equations of are transformed into the linear equations about the quantities to be determined A(x,y), B1(x,y) and B2(x,y), as follows:
[0075]
[0076] Where i = 0, 1, 2, ..., N-2, N-1;
[0077]
[0078] That is, the set of equations to be solved can be transformed into the following matrix pattern:
[0079]
[0080] Abbreviated as: C (N×3) X (3×1) =I (N×1) .
[0081] Step S304, solving the phase of the target highly reflective moving object according to the first parameter and the second parameter to perform three-dimensional reconstruction.
[0082] Specifically, the phase of the target highly reflective moving object is solved according to the following formula:
[0083]
[0084] Among them, B1(x, y) and B2(x, y) are the first parameter and the second parameter respectively.
[0085] Figure 4 and Figure 5 A comparison chart of the simulation effects of three-dimensional reconstruction using the method provided in the embodiment of the present application and the traditional algorithm is shown. Figure 4 (a) The traditional algorithm processes the wrapped phase of the surface of a highly reflective object; Figure 4 (b) Processing the wrapping phase of the surface of a highly reflective object by the method of the embodiment of the present application; Figure 4 In (a), the phase error caused by overexposure can be clearly seen. Figure 4 The object surface wrapping phase obtained by processing using the method provided in the embodiment of the present application in (b) eliminates the error caused by overexposure. Figure 5 (a) is the phase difference of high reflection processed by traditional algorithm. Figure 5(b) The method provided in the embodiment of the present application is used to process the phase difference of high reflection. This method can well process the error caused by the moving object of high reflection.
[0086] In a three-dimensional reconstruction method for a highly reflective moving object provided in an embodiment of the present application, by screening non-reflective images, the coefficient matrix and the intensity matrix are updated according to these non-reflective non-equidistant phase-shifted images, and the phase of the object is further obtained. This method can well handle the errors caused by highly reflective moving objects and achieve accurate three-dimensional reconstruction of highly reflective moving objects.
[0087] Based on the above method embodiment, the present application embodiment also provides a 3D reconstruction device for a highly reflective moving object, see Figure 6 As shown, the device comprises:
[0088] An image acquisition module 42 is used to acquire a plurality of images with different phase shifts generated when a target highly reflective moving object is illuminated by a sinusoidal grating; a target image determination module 44 is used to screen a target image without reflection from a plurality of images with different phase shifts; a matrix construction module 46 is used to construct a target coefficient matrix and a target light intensity matrix corresponding to the target highly reflective moving object based on the phase shift steps and image light intensities of the plurality of target images; a three-dimensional reconstruction module 48 is used to perform three-dimensional reconstruction of the target highly reflective moving object based on the target coefficient matrix and the target light intensity matrix.
[0089] In a preferred embodiment of the present application, the above-mentioned three-dimensional reconstruction module 48 is also used to calculate the first parameter and the second parameter according to the target coefficient matrix, the target light intensity matrix and a preset formula; the preset formula is as follows:
[0090] C (N×3) X (3×1) =I (N×1) ;
[0091] in, C (N×3) represents the coefficient matrix; I (N×1) represents the light intensity matrix; N represents the number of phase shift steps; A(x, y) is the background grayscale, B1(x, y) and B2(x, y) are the first parameter and the second parameter respectively;
[0092] The phase of the target highly reflective moving object is solved according to the first parameter and the second parameter to perform three-dimensional reconstruction.
[0093] In a preferred embodiment of the present application, the above-mentioned matrix construction module 46 is also used to obtain the motion offset matrix of the target highly reflective moving object; construct a target coefficient matrix according to the phase shift steps and motion offset matrix corresponding to multiple target images; and construct a target light intensity matrix based on the image light intensity corresponding to each target image.
[0094] In a preferred embodiment of the present application, the above-mentioned matrix construction module 46 is also used to obtain the rotation matrix and translation vector of the target highly reflective moving object; based on the rotation matrix and translation vector, the motion offset matrix of the target highly reflective moving object is determined; the motion offset matrix includes the motion offset corresponding to each target image.
[0095] In a preferred embodiment of the present application, the matrix construction module 46 is further used to substitute the phase shift steps corresponding to the multiple target images and the motion offset corresponding to each target image into the preset coefficient matrix corresponding to the stationary object to obtain the target coefficient matrix.
[0096] In a preferred embodiment of the present application, the matrix construction module 46 is further used to determine the target coefficient matrix according to the following formula:
[0097]
[0098] in,
[0099] Represents the preset coefficient matrix of the stationary object; N represents the number of phase shift steps corresponding to multiple target images; Δθ1, Δθ2…Δθ N-2 , Δθ N-1 Indicates the motion offset corresponding to the N-1-step phase-shifted non-reflective image.
[0100] The above-mentioned 3D reconstruction module 48 is also used to solve the phase of the target high-reflective moving object according to the following formula:
[0101]
[0102] In a preferred embodiment of the present application, the above device further includes a formula construction module for performing the following construction process:
[0103] Get the light intensity distribution expression I(x,y) of a sinusoidal grating projected on a moving object:
[0104]
[0105] Among them, A(x,y) is the background grayscale, which is determined by the refractive index of the object surface; B(x,y) is the light intensity difference, which is determined by the brightness difference of the projector grating lines; f is the frequency of the projected grating lines;
[0106] For the N-step phase shift case, the quantities to be determined in the light intensity distribution expression are A(x, y), B(x, y) and The nonlinear equations of are transformed into the linear equations about the quantities to be determined A(x,y), B1(x,y) and B2(x,y), as follows:
[0107]
[0108] Where i = 0, 1, 2, ..., N-2, N-1;
[0109]
[0110] That is, the set of equations to be solved can be transformed into the following matrix pattern:
[0111]
[0112] Abbreviated as: C (N×3) X (3×1) =I (N×1) .
[0113] The device provided in the embodiment of the present application has the same implementation principle and technical effects as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the embodiment of the device, reference may be made to the corresponding contents in the aforementioned method embodiment.
[0114] The present application also provides an electronic device, such as Figure 7 As shown, it is a schematic diagram of the structure of the electronic device, wherein the electronic device includes a processor 51 and a memory 50, the memory 50 stores computer executable instructions that can be executed by the processor 51, and the processor 51 executes the computer executable instructions to implement the above method.
[0115] exist Figure 7 In the illustrated embodiment, the electronic device further includes a bus 52 and a communication interface 53 , wherein the processor 51 , the communication interface 53 and the memory 50 are connected via the bus 52 .
[0116] Among them, the memory 50 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 53 (which can be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. can be used. The bus 52 can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus 52 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0117] The processor 51 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 51. The above processor 51 can be a general processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to execute, or the hardware and software modules in the decoding processor are combined and executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor 51 reads the information in the memory and completes the steps of the method of the above embodiment in combination with its hardware.
[0118] An embodiment of the present application also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the above method. The specific implementation can be found in the aforementioned method embodiment, which will not be repeated here.
[0119] The computer program products of the methods, devices, and electronic devices provided in the embodiments of the present application include a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the previous method embodiments. The specific implementation can be found in the method embodiments, which will not be repeated here.
[0120] Unless otherwise specifically stated, the relative steps, numerical expressions and values of the components and steps set forth in these embodiments do not limit the scope of the present application.
[0121] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0122] In the description of the present application, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present application. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0123] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A three-dimensional reconstruction method for a highly reflective moving object, characterized in that: The method comprises: Acquire multiple images with different phase shifts generated by a target highly reflective moving object under the illumination of a sinusoidal grating; and select a target image without reflective conditions from the multiple images with different phase shifts; Obtaining a motion offset matrix of the target highly reflective moving object; constructing a target coefficient matrix according to the phase shift steps corresponding to a plurality of the target images and the motion offset matrix; constructing a target light intensity matrix based on the image light intensity corresponding to each of the target images; The first parameter and the second parameter are calculated according to the target coefficient matrix, the target light intensity matrix and a preset formula; the preset formula is as follows: ; in, ; represents the coefficient matrix; represents the light intensity matrix; N represents the number of phase shift steps; is the background grayscale, and are the first parameter and the second parameter respectively; The phase of the target highly reflective moving object is solved according to the first parameter and the second parameter to perform three-dimensional reconstruction.
2. The method according to claim 1, characterized in that The step of obtaining the motion offset matrix of the target highly reflective moving object comprises: Obtaining the rotation matrix and translation vector of the target highly reflective moving object; Based on the rotation matrix and the translation vector, a motion offset matrix of the target highly reflective moving object is determined; the motion offset matrix includes a motion offset corresponding to each of the target images.
3. The method according to claim 1, characterized in that The step of constructing a target coefficient matrix according to the phase shift steps corresponding to the plurality of target images and the motion offset matrix comprises: The phase shift step numbers corresponding to the multiple target images and the motion offset corresponding to each target image are substituted into the preset coefficient matrix corresponding to the stationary object to obtain the target coefficient matrix.
4. The method according to claim 3, characterized in that Substituting the phase shift steps corresponding to the plurality of target images and the motion offset corresponding to each target image into a preset coefficient matrix corresponding to the stationary object to obtain the target coefficient matrix comprises: The target coefficient matrix is determined according to the following formula: ; in, represents a preset coefficient matrix of a stationary object; N represents the number of phase shift steps corresponding to the plurality of target images; , … , Indicates the motion offset corresponding to the N-1-step phase-shifted non-reflective image.
5. The method according to claim 1, characterized in that The step of solving the phase of the target highly reflective moving object according to the first parameter and the second parameter comprises: The phase of the target highly reflective moving object is solved according to the following formula: : 。 6. The method according to claim 1, characterized in that The construction process of the preset formula is as follows: Get the light intensity distribution expression of a sinusoidal grating projected on the moving object : ; in, is the background grayscale, which is determined by the refractive index of the object surface; is the light intensity difference, which is determined by the brightness difference of the projector grid lines; ƒ is the frequency of the projected grid lines; For the case of N-step phase shift, the quantity to be determined in the light intensity distribution expression is expanded by trigonometric functions: , and The nonlinear equations are transformed into the equations about the quantity to be solved , and The linear equations are as follows: ; Where i=0,1,2,…,N-2,N-1; ; ; That is, the set of equations to be solved can be transformed into the following matrix pattern: ; In short: .
7. A 3D reconstruction device for a highly reflective moving object, characterized in that: The device comprises: An image acquisition module is used to acquire multiple images with different phase shifts generated by a target highly reflective moving object under the illumination of a sinusoidal grating; A target image determination module, used for screening a target image without reflection from the plurality of images with different phase shifts; A matrix construction module is used to obtain the motion offset matrix of the target highly reflective moving object; construct a target coefficient matrix according to the phase shift steps corresponding to a plurality of the target images and the motion offset matrix; and construct a target light intensity matrix based on the image light intensity corresponding to each of the target images; The three-dimensional reconstruction module is used to calculate the first parameter and the second parameter according to the target coefficient matrix, the target light intensity matrix and a preset formula; the preset formula is as follows: ; in, ; represents the coefficient matrix; represents the light intensity matrix; N represents the number of phase shift steps; is the background grayscale, and are the first parameter and the second parameter respectively; The phase of the target highly reflective moving object is solved according to the first parameter and the second parameter to perform three-dimensional reconstruction.
8. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Three-dimensional reconstruction system and method based on front-back fusion imaging
CN111652967A
Image measurement method of high-speed moving object and computer readable storage medium
CN111854632A
Single-stripe moving object three-dimensional reconstruction method based on phase shift profilometry
CN113066164A
