Three-dimensional reconstruction method, system and equipment based on Debrueine sequence
By using the projection image of the De Bruyne sequence in the structured light reconstruction technology, the problem that the structured light reconstruction is susceptible to ambient light interference and the inability to measure moving objects is solved, achieving high-precision three-dimensional reconstruction and reducing the cost, which is suitable for Consumer electronics field.
Patent Information
- Application Number
- CN202410784017.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-09-06
AI Technical Summary
Existing structured light reconstruction technology is susceptible to ambient light interference and cannot be applied to the measurement of moving objects. Especially in the field of consumer electronics, there are limitations of high-cost laser projectors.
The three-dimensional reconstruction method based on the De Bruyne sequence is adopted, and the projection image generated by the De Bruyne sequence that conforms to the preset parameters is projected to the target scene through the projection equipment, and the binocular system is used for image acquisition and decoding to achieve three-dimensional reconstruction.
It improves the accuracy of three-dimensional reconstruction, reduces the impact of ambient light interference, can be used for the reconstruction of moving objects, reduces costs, and is suitable for the field of consumer electronics.
Smart Images

Figure CN118608697A
Abstract
Description
Technical field
[0001] Embodiments of the present application relate to the technical field of computer vision, and in particular to a three-dimensional reconstruction method, system and device based on De Bruyne sequences. Background technology
[0002] Binocular 3D reconstruction refers to the process of using image information obtained from two viewpoints (i.e., two cameras or binocular cameras) to restore the geometric structure and depth information of a 3D scene. Generally, the process of binocular 3D reconstruction can be divided into passive and active. Passive binocular 3D reconstruction does not require special light sources or projection equipment and can be carried out only with ordinary cameras. However, in complex scenes or scenes with few textures, The regional accuracy is low, and it is easily affected by ambient light, and the computational complexity is also high; active binocular 3D reconstruction uses special light sources or projection equipment (such as structured light or laser projection lamps) to project or illuminate the scene. After completing the optical decoding of the scene image, it is reconstructed with high accuracy and strong anti-environmental interference ability.
[0003] Currently, structured light mainly adopts the implementation form based on timing coding. Since timing coding needs to modulate periodic light source brightness, color, phase or frequency and other parameters, it cannot be applied to the measurement of moving objects. In addition, if a laser projector is used, there will be The higher cost makes it difficult to apply in the field of consumer electronics.
[0004] In view of this, it is necessary to propose a three-dimensional reconstruction method with higher accuracy, which is not susceptible to ambient light interference and can be used for the reconstruction of moving objects. Contents of the invention
[0005] One purpose of the embodiments of the present application is to provide a three-dimensional reconstruction method to solve the technical problem that the current structured light reconstruction technology is susceptible to ambient light interference and cannot be applied to the measurement of moving objects.
[0006] In a first aspect, embodiments of the present application provide a three-dimensional reconstruction method based on De Bruyne sequences, applied to a projection device, and the projection device is used to project a target scene. The method includes:
[0007] According to the preset parameters, determine the De Bruyne sequence that meets the preset parameters;
[0008] Generate a projection image according to the De Bruyne sequence;
[0009] The projection image is projected into the target scene, so that the binocular system performs three-dimensional reconstruction of the target scene after collecting images of the target scene.
[0010] In conjunction with the first aspect, in a possible implementation, determining a De Bruyne sequence that conforms to the preset parameters according to the preset parameters includes:
[0011] According to the preset parameters, determine the number of primitives and the length of the subsequence;
[0012] Determine an initial sequence according to the number of primitives and the length of the subsequence, the initial sequence corresponds to a plurality of subsequences, the length of each subsequence conforms to the length of the subsequence, and each of the subsequences is different from each other;
[0013] Based on the initial sequence, the De Bruyne sequence is determined.
[0014] In conjunction with the first aspect, in a possible implementation, determining the De Bruyne sequence according to the initial sequence includes:
[0015] Traverse the initial sequence and determine consecutive identical target primitives in the initial sequence;
[0016] Remove the target primitive from the initial sequence to obtain a target sequence;
[0017] The target sequence is stacked according to the preset sequence length to generate the De Bruyne sequence.
[0018] In conjunction with the first aspect, in a possible implementation, the projection image includes a first image and a second image, and generating a target image according to the De Bruyne sequence includes:
[0019] Determine the first combination of primitives and the second combination of primitives according to the number of primitives of the De Bruyne sequence;
[0020] Traverse the de Bruin sequence, respectively determine the first position information of the first primitive combination in the de Bruin sequence, and the first position information of the second primitive combination in the de Bruin sequence. the second location information;
[0021] The first projection image and the second projection image are generated respectively according to the first position information and the second position information.
[0022] In a second aspect, embodiments of the present application also propose a three-dimensional reconstruction method based on De Bruyne sequences, applied to binocular systems, and the method includes:
[0023] After the projection device projects the projection image to the target scene, image acquisition is performed on the target scene through the binocular system to obtain the target image within the target scene;
[0024] decoding the target image to determine the location and encoding of the projected image;
[0025] According to the position and encoding of the projected image, the target scene is three-dimensionally reconstructed.
[0026] With reference to the second aspect, in a possible implementation, the binocular system includes a first image acquisition device and a second image acquisition device, the target image includes a first image and a second image, and the binocular system The first image acquisition device is used to collect images of the target scene to generate a first image, and the second image acquisition device is used to collect images of the target scene to generate a second image.
[0027] In conjunction with the second aspect, in a possible implementation, decoding the target image to determine the position and encoding of the projected image includes:
[0028] Perform image fusion processing on the first image and the second image in the target image to determine the fused target image;
[0029] Perform De Bruyne sequence-based decoding on the fused target image to determine the position and encoding of the projection image;
[0030] The three-dimensional reconstruction of the target scene according to the position and encoding of the projection image includes:
[0031] Perform binocular matching based on the position and encoding of the projected image;
[0032] Based on the results of binocular matching, the three-dimensional point cloud of the target scene is reconstructed.
[0033] In a third aspect, embodiments of the present application provide an electronic device, including a memory and a processor. The memory is connected to the processor, and the processor is configured to execute one or more computer programs stored in the memory. When the processor executes the one or more computer programs, the electronic device implements the method described in the first aspect or the second aspect.
[0034] In a fourth aspect, embodiments of the present application provide a three-dimensional reconstruction system, including a projection device and a binocular system. The projection device and the binocular system are located in a preset target scene. The projection device is used to implement the first The three-dimensional reconstruction method described in the second aspect, the binocular system is used to implement the three-dimensional reconstruction method described in the second aspect.
[0035] In a fifth aspect, embodiments of the present application provide a computer-readable storage medium that stores a computer program. The computer program includes program instructions. When executed by a processor, the program instructions cause the The processor executes the method described in the above first or second aspect.
[0036] The embodiments of this application can achieve the following technical effects:
[0037] The embodiment of the present application adopts the fringe projection method, determines the De Bruin sequence that meets the parameters according to the preset parameters, and then generates a projection image according to the De Bruin sequence, and projects the projection image into the target scene. , ultimately allowing the binocular system to perform three-dimensional reconstruction of the target scene after collecting images of the target scene. Based on this method, when performing three-dimensional reconstruction of the target scene, the projection image based on the De Bruyne sequence is used as the stripe projection, so that the binocular system can decode accordingly after collecting the target scene image, that is, assisting the binoculars through stripe coding Matching to complete three-dimensional reconstruction. Compared with related technologies, this method has higher accuracy, is less susceptible to ambient light interference, and can be used for three-dimensional reconstruction of moving objects. Description of the drawings
[0038] In order to explain the technical solutions of the embodiments of the present application more clearly, the drawings needed to be used in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. , for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without exerting creative labor.
[0039] Figure 1 A schematic diagram of an application scenario of a three-dimensional reconstruction system provided by an embodiment of the present application;
[0040] Figure 2 A schematic flow chart of a three-dimensional reconstruction method based on De Bruyne sequences provided in the embodiment of the present application;
[0041] Figure 3 It is a schematic diagram of a stripe image provided by the embodiment of the present application;
[0042] Figure 4 It is a schematic diagram of another stripe image provided by the embodiment of the present application;
[0043] Figure 5 This is a schematic structural diagram of an electronic device provided by an embodiment of the present application. Detailed implementation
[0044] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application and are not used to limit the present application. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this application.
[0045] It should be noted that, if there is no conflict, various features in the embodiments of the present application can be combined with each other, and they are all within the protection scope of the present application. In addition, although the functional modules are divided in the device schematic diagram and the logical sequence is shown in the flowchart, in some cases, the modules may be divided into different modules in the device, or the order shown in the flowchart may be executed. or describe the steps. Furthermore, the words "first", "second", "third" and other words used in this application do not limit the data and execution order, but only distinguish the same or similar items with basically the same functions and effects.
[0046] Embodiments of the present application provide a three-dimensional reconstruction method, which is applied to a three-dimensional reconstruction system based on structured light.
[0047] On the first side, see Figure 1 , in one application scenario, the three-dimensional reconstruction system 100 includes a projection device 11 and a binocular system 12 . Among them, the projection device 11 is used to project a predetermined projection image into a fixed target scene 13. Correspondingly, after the projection device 11 completes its projection task, the binocular system 12 collects the image in the target scene, and uses the image within the The projection image projected by the projection device 11 is identified, decoded, and further binocularly matched, and finally three-dimensional reconstruction of the target scene is achieved.
[0048] It should be noted that the projection device 11 at least includes a structured light projector, and the projection device 11 is used to project the structured light pattern generated based on the De Bruyne sequence into the target scene 13 to form a stripe pattern. Furthermore, the structured light pattern can be generated by an external device and transmitted to the projection device 11 for projection, or a corresponding module can be integrated on the projection device 11 to generate the structured light pattern. In addition, the projection device 11 itself can be Configured to accurately project high-contrast, high-resolution structured light patterns.
[0049] The binocular system 12 at least includes a grayscale camera or a color camera. The binocular system 12 is used to collect an image in the target scene through the grayscale camera or the color camera. The image records the stripe pattern projected in the target scene (from the projected image). ). Further, the collection device 12 is configured to collect stripe patterns of different colors through each color camera.
[0050] In some embodiments, the binocular system 12 includes a first image acquisition device, a second image acquisition device, and at least one processing device with certain data processing capabilities. The processing device can be a computer, including at least a processor and a memory. The processing device passes The processor processes the collected stripe patterns, performs image decoding, matching and three-dimensional reconstruction, and stores the collected image data, calibration information and reconstructed three-dimensional point cloud model through the memory.
[0051] In addition, the above-mentioned three-dimensional reconstruction system may also include a display device, which is connected to the processing device 14. The display device is used to display the reconstructed three-dimensional point cloud model and related image data, so that the user can intuitively view and analyze the reconstruction results. The display device may be a liquid crystal display, a 3D display, a VR (Virtual Reality, virtual reality technology) head-mounted display, or any other display.
[0052] It can be understood that the embodiment of the present application uses the fringe projection method to calculate the three-dimensional shape of the object by projecting the fringe pattern and capturing its deformation, and generates the structured light pattern with the preconfigured De Bruyne sequence, so that the projection device is within the target scene Form stripe patterns to achieve high-efficiency and high-precision structured light reconstruction, solving the problems of structured light reconstruction technology that is too sensitive to environmental noise, too slow in processing, and unable to properly handle complex surfaces, high dynamic range scenes, or high-precision reconstruction. .
[0053] On the second side, see Figure 2 , The embodiment of this application provides a three-dimensional reconstruction method based on De Bruyne sequence, with the projection device as the execution subject. The method includes:
[0054] S10, according to the preset parameters, determine the De Bruyne sequence that meets the preset parameters;
[0055] It is understandable that traditional structured light reconstruction methods are sensitive to ambient light noise because these methods are easily interfered by external light during the encoding and decoding processes, causing deformation or distortion of the stripe pattern and affecting reconstruction accuracy. In addition, traditional methods such as binary encoding and grayscale encoding methods require multi-step projection and complex decoding algorithms, resulting in slow processing speed. Furthermore, when processing complex surfaces, due to the uneven surface reflection characteristics and the existence of high dynamic range scenes, the encoding stripe pattern is easily distorted, resulting in poor reconstruction results. During the encoding and decoding processes, errors accumulate, especially In high-precision reconstruction, these errors will significantly affect the final reconstruction results.
[0056] This embodiment uses the De Bruin sequence as the encoding method. Since the De Bruin sequence has unique autocorrelation and anti-interference capabilities, the encoding sequence can still maintain a high degree of matching when it is interfered by noise. This feature can effectively reduce the impact of ambient light on the encoding stripe pattern, thereby improving the robustness and accuracy of measurement. The embodiment of the present application utilizes the uniqueness and simplicity of the De Bruyne sequence to encode a large amount of information in a single projection, reducing the number of required projections. At the same time, the decoding process of the De Bruyne sequence is relatively simple and can quickly match the coding stripes, significantly improving the processing speed.
[0057] In addition, de Bruyne sequences are encoded with high resolution and accuracy, enabling the generation of stable stripe patterns on complex surfaces and high dynamic range scenes. Through accurate calibration and decoding, embodiments of the present application can maintain high reconstruction accuracy on complex surfaces and adapt to a variety of complex measurement environments.
[0058] Specifically, according to the preset parameters, determining the De Bruyne sequence that meets the preset parameters includes: determining the number of primitives and the length of the subsequence according to the preset parameters; determining the initial sequence according to the number of primitives and the length of the subsequence. The sequence corresponds to multiple subsequences, the length of each subsequence matches the length of the subsequence, and each subsequence is different from each other; based on the initial sequence, the De Bruyne sequence is determined.
[0059] More specifically, determining the De Bruyne sequence based on the initial sequence includes: traversing the initial sequence and determining consecutive identical target primitives in the initial sequence; removing the target primitives in the initial sequence to obtain the target sequence; following the preset Sequence length, stack the target sequence to generate a De Bruin sequence.
[0060] As an example and not a limitation, assuming that the number of primitives is 3 and the subsequence length is 3, the initial sequence of the De Bruin sequence can be constructed as follows: <000110102220020211122120121> , its length is 27, and the subsequences composed of any three adjacent primitives in the initial sequence (the end of the sequence and the beginning of the sequence are also considered adjacent) are different from each other. It is easy to understand that in order to improve the anti-interference of continuous coding, each of its primitives is traversed in the initial sequence, and the consecutive identical primitives are removed, and the target sequence is finally obtained: <001101022002021122120121> , then its length should be 24. After that, the De Bruyne sequence is stacked according to the preset sequence length n, and its length is extended to 24*n.
[0061] S20, generate a projection image according to the De Bruyne sequence;
[0062] Specifically, the projection image includes a first image and a second image. According to the De Bruin sequence, the step of generating the projection image includes: determining the first combination of primitives and the second primitive according to the number of primitives of the De Bruyne sequence. combination; traverse the de Bruin sequence, respectively determine the first position information of the first unit combination in the de Bruin sequence, and the second position information of the second unit combination in the de Bruin sequence; according to the The first position information and the second position information generate a first projection image and a second projection image respectively.
[0063] Still taking the De Bruyne sequence given above as an example, extract the sequence positions where the primitives 0 and 2 are located, and generate the stripe image G. The extracted sequence positions are <110010111111110011011010> , the sequence position where primitives 0 and 2 are located is marked as 1, the sequence position where primitive 1 is located is marked as 0, flag 1 indicates that there are stripes at the current position of the stripe image, and mark 0 indicates that there are no stripes at the current position of the stripe image, you can refer to Figure 3 , the finally obtained fringe image (i.e. one of the above-mentioned first or second projection images) is as follows Figure 3 shown.
[0064] Further, extract the sequence positions where primitives 1 and 2 are located to generate stripe image B. The extracted sequence positions are <001101011001011111110111> , mark the sequence position where primitives 1 and 2 are located as 1, mark the sequence position where primitive 0 is located as 0, mark 1 means that there are stripes at the current position of the stripe image, mark 0 means that there are no stripes at the current position of the stripe image, you can refer to Figure 4 , the final fringe image (i.e. the other one of the first or second projection images mentioned above) is as follows Figure 4 shown.
[0065] S30: Project the projection image into the target scene, so that the binocular system can perform three-dimensional reconstruction of the target scene after collecting images of the target scene.
[0066] It is easy to understand that after the stripe images G and B are respectively projected into the scene, the scene images are collected by the binocular system, image fusion is performed, and sequence decoding is performed to obtain the stripe positions and codes in the left and right views respectively. According to the stripe positions and codes in the left and right views, The stripe position and encoding are determined by the binocular system, and then the three-dimensional point cloud of the entire target scene is reconstructed.
[0067] In a third aspect, embodiments of the present application also provide a three-dimensional reconstruction method using a binocular system as the execution subject. The method includes: after the projection device projects the projection image to the target scene, image the target scene through the binocular system. Collect and obtain the target image in the target scene; decode the target image to determine the position and encoding of the projected image; perform three-dimensional reconstruction of the target scene based on the position and encoding of the projected image.
[0068] It should be noted that the above projection image is a stripe image based on the De Bruyne sequence generated by the projection device. For details, reference may be made to the above embodiments, and this embodiment will not be described again.
[0069] In this embodiment, the binocular system includes a first image acquisition device and a second image acquisition device, respectively used to acquire images of different scenes. Correspondingly, the above-mentioned target image includes the first image and the second image. The binocular system The first image acquisition device is used to collect images of the target scene to generate a first image, and the second image acquisition device is used to collect images of the target scene to generate a second image.
[0070] Further, the above-mentioned decoding of the target image to determine the position and encoding of the projected image includes: performing image fusion processing on the first image and the second image in the target image to determine the fused target image; The image undergoes De Bruyne sequence-based decoding to determine the location and encoding of the projected image;
[0071] Furthermore, three-dimensional reconstruction of the target scene is performed based on the position and coding of the projected image, including: performing binocular matching based on the position and coding of the projected image; and reconstructing the three-dimensional point cloud of the target scene based on the results of binocular matching.
[0072] It should be noted that in the above-mentioned embodiments, there is not necessarily a certain sequence between the above-mentioned steps. Those of ordinary skill in the art can understand from the description of the embodiments of the present application that in different embodiments, the above-mentioned steps There can be different execution orders, that is, they can be executed in parallel, they can be exchanged, etc.
[0073] As another aspect of the embodiments of the present application, the embodiments of the present application provide a three-dimensional reconstruction device. The three-dimensional reconstruction device can be a software module. The software module includes a number of instructions, which are stored in a memory. The processor can access the memory and call the instructions for execution to complete the three-dimensional reconstruction method described in the above embodiments.
[0074] In some embodiments, the three-dimensional reconstruction device can also be built by hardware devices. For example, the three-dimensional reconstruction device can be built by one or more than two chips. Each chip can work in coordination with each other to complete the above-mentioned implementation methods. The three-dimensional reconstruction method described. For another example, the three-dimensional reconstruction device can also be built from various types of logic devices, such as general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA), microcontrollers, ARM (Acorn RISC Machine) or other programmable logic devices, discrete gate or transistor logic, discrete hardware components, or any combination of these components.
[0075] It should be noted that the above-mentioned three-dimensional reconstruction device can execute the three-dimensional reconstruction method provided in the first aspect or the second aspect of the embodiment of the present application, and has corresponding functional modules and beneficial effects for executing the method. For technical details that are not described in detail in the embodiments of this device, please refer to the three-dimensional reconstruction methods provided in other embodiments of this application.
[0076] See Figure 5 , Figure 5This is a schematic structural diagram of an electronic device 400 provided by an embodiment of the present application, where the electronic device 400 is a processing device in the above three-dimensional reconstruction system. The electronic device 400 includes one or more processors 41 and memories 42 . Memory 42 is connected to one or more processors 41, for example via a bus.
[0077] The processor 41 is configured to support the electronic device 400 to perform corresponding functions in the methods in the above method embodiments. The processor 41 may be a central processing unit (CPU), a network processor (NP), a hardware chip or any combination thereof. The above-mentioned hardware chip may be an application specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The above-mentioned PLD can be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a general array logic (GAL) or any combination thereof.
[0078] The memory 42 is used to store program codes and the like. The memory may include volatile memory (VM), such as random access memory (RAM); the memory may also include non-volatile memory (NVM), such as read-only memory (read -only memory (ROM), flash memory (flash memory), hard disk drive (HDD) or solid-state drive (SSD); the memory 42 may also include a combination of the above types of memory.
[0079] The memory 42 may be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the three-dimensional reconstruction method in the embodiment of the present application. The processor 41 executes various functional applications and data processing of the three-dimensional reconstruction method and the three-dimensional reconstruction device by running non-volatile software programs, instructions and modules stored in the memory 42, that is, realizing the three-dimensional reconstruction provided by the above method embodiments. Methods and functions of each module or unit of the three-dimensional reconstruction device.
[0080] The memory 42 may include a program storage area and a data storage area, where the program storage area may store an operating system and an application program required for at least one function. The storage data area may store data created based on use of the three-dimensional reconstruction device and the like. In some embodiments, the memory 42 optionally includes memories remotely located relative to the processor 41, and these remote memories can be connected to the three-dimensional reconstruction device through a network. Examples of the above-mentioned networks include but are not limited to the Internet, intranets, local area networks, mobile communication networks and combinations thereof.
[0081] One or more modules are stored in the memory 42. When executed by one or more processors 41, the three-dimensional reconstruction method in any of the above method embodiments is executed. For example, the method steps described in the above method embodiments are executed to implement the above apparatus. The examples describe the functionality of the modules.
[0082] Embodiments of the present application also provide a computer-readable storage medium. The computer-readable storage medium stores a computer program. The computer program includes program instructions. When executed by a computer, the program instructions cause the computer to perform the method in the foregoing embodiments.
[0083] Those of ordinary skill in the art can understand that all or part of the processes in implementing the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The program can be stored in a computer-readable storage medium. When the program is executed, , may include the processes of the above method embodiments. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only memory (Read-Only memory, ROM) or a random access memory (Random Access memory, RAM), etc.
[0084] What is disclosed above is only the preferred embodiment of the present application. Of course, it cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application still fall within the scope of the present application.
Claims
1. A three-dimensional reconstruction method based on De Bruijn sequence, characterized in that: Applied to a projection device, the projection device is used to project onto a target scene, the method comprising: According to the preset parameters, determining a De Bruijn sequence that meets the preset parameters; generating a projection image according to the de Bruijn sequence; The projection image is projected into the target scene, so that the binocular system can perform three-dimensional reconstruction of the target scene after acquiring the image of the target scene.
2. The method according to claim 1, characterized in that Determining a de Bruijn sequence that meets the preset parameters according to the preset parameters includes: According to the preset parameters, determine the number of primitives and the length of subsequences; Determine an initial sequence according to the number of primitives and the length of the subsequence, wherein the initial sequence corresponds to a plurality of subsequences, the length of each subsequence conforms to the subsequence length, and the subsequences are different from each other; The de Bruijn sequence is determined according to the initial sequence.
3. The method according to claim 2, characterized in that Determining the de Bruijn sequence according to the initial sequence includes: Traversing the initial sequence, determining consecutive identical target primitives in the initial sequence; Removing the target motif from the initial sequence to obtain a target sequence; The target sequence is stacked according to a preset sequence length to generate the de Bruijn sequence.
4. The method according to claim 1, characterized in that: The projected image includes a first image and a second image, and generating a target image according to the de Bruijn sequence includes: Determining a first primitive combination and a second primitive combination according to the number of primitives of the de Bruijn sequence; Traversing the de Bruijn sequence, and respectively determining first position information of the first primitive combination in the de Bruijn sequence, and second position information of the second primitive combination in the de Bruijn sequence; The first projection image and the second projection image are generated according to the first position information and the second position information, respectively.
5. A three-dimensional reconstruction method based on the de Bruijn sequence, characterized in that: Applied to a binocular system, the method comprises: After the projection device projects the projection image onto the target scene, the binocular system is used to collect images of the target scene to obtain a target image in the target scene; Decoding the target image to determine the position and encoding of the projected image; The target scene is three-dimensionally reconstructed according to the position and encoding of the projection image.
6. The method according to claim 5, characterized in that The binocular system includes a first image acquisition device and a second image acquisition device, and the target image includes a first image and a second image. The binocular system acquires an image of the target scene through the first image acquisition device to generate a first image, and acquires an image of the target scene through the second image acquisition device to generate a second image.
7. The method according to claim 5, characterized in that The decoding of the target image to determine the position and encoding of the projection image includes: Performing image fusion processing on the first image and the second image in the target image to determine a fused target image; Decoding the fused target image based on the de Bruijn sequence to determine the position and encoding of the projection image; The three-dimensional reconstruction of the target scene according to the position and the encoding of the projection image comprises: Performing binocular matching according to the position and encoding of the projection image; According to the binocular matching result, the three-dimensional point cloud of the target scene is reconstructed.
8. A three-dimensional reconstruction system, characterized in that: It includes a projection device and a binocular system, wherein the projection device and the binocular system are arranged in a preset target scene, the projection device is used to implement the three-dimensional reconstruction method as described in any one of claims 1 to 4, and the binocular system is used to implement the method as described in any one of claims 5 to 7.
9. An electronic device, characterized in that: It includes a memory and a processor, the memory is connected to the processor, the processor is used to execute one or more computer programs stored in the memory, and when the processor executes the one or more computer programs, the electronic device implements the method as described in any one of claims 1-4 or 5-7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the method according to any one of claims 1 to 4 or 5 to 7.
