Three-dimensional reconstruction method and system and electronic equipment

The structured light pattern and precise calibration information generated by the De Bruyne sequence solves the problems of environmental noise sensitivity and slow processing speed in structured light reconstruction technology, achieving efficient and high-precision three-dimensional reconstruction, adaptable to complex surfaces and high dynamic range Scene reconstruction needs.

CN118608696APending Publication Date: 2024-09-06HANGZHOU YUNJIA DIGITAL TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410784014.0
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

Technical Problem

Existing structured light reconstruction technology is too sensitive to environmental noise, has slow processing speed, and cannot effectively handle complex surfaces and high dynamic range scenes or perform high-precision reconstruction.

Method used

Using the structured light pattern generated by the De Bruyne sequence, by projecting at least two stripe patterns and capturing their deformations, a three-dimensional point cloud model is established based on accurate calibration information, and color and grayscale cameras are used for image acquisition and calibration to reduce ambient light. interference and increase processing speed and accuracy.

Benefits of technology

It achieves high-efficiency and high-precision structured light reconstruction, improves the processing capabilities of complex surfaces and high dynamic range scenes, reduces the impact of environmental noise, and significantly improves the robustness and accuracy of reconstruction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118608696A
    Figure CN118608696A
Patent Text Reader

Abstract

The invention relates to the technical field of three-dimensional measurement, in particular to a three-dimensional reconstruction method and system and electronic equipment. The three-dimensional reconstruction method comprises the steps that at least two stripe patterns are obtained, the stripe patterns are formed by projecting structured light patterns generated by pre-configured Debrueine sequences on the surface of a measured object, and the feature of each stripe pattern is matched with the code value of one corresponding Debrueine sequence. The calibration information comprises the calibration internal reference of the camera and the calibration light plane corresponding to the code value in a reference coding table, and the reference coding table is generated based on the pre-configured Debrueine sequence. And establishing a three-dimensional point cloud model of the measured object according to the at least two stripe patterns and the calibration information. According to the method, the structured light pattern is generated based on the pre-configured Debrueine sequence, the three-dimensional shape of the object is calculated by projecting the stripe pattern and capturing the deformation of the stripe pattern, high-efficiency and high-precision structured light reconstruction is realized, and various problems in the structured light reconstruction technology are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of three-dimensional measurement technology, and in particular to a three-dimensional reconstruction method, system and electronic device. Background Art

[0002] Structured light reconstruction is a non-contact 3D measurement technology that projects specific light patterns onto the surface of the object being measured and then restores the 3D shape of the object by analyzing the deformation of these patterns on the surface of the object.

[0003] Existing structured light reconstruction methods, such as binary and grayscale coding methods, can achieve good reconstruction effects in some scenarios, but usually require multi-step projection and complex decoding algorithms, which increases the complexity and computational cost of the system, and are sensitive to the reflective characteristics of the object surface and are easily disturbed by ambient light.

[0004] In addition, there are some schemes that reconstruct through color coding methods. Although they can provide more information, color distortion and color calibration problems limit their reconstruction accuracy and stability. Summary of the invention

[0005] One purpose of an embodiment of the present application is to provide a three-dimensional reconstruction method to solve the technical problems in structured light reconstruction technology that it is too sensitive to environmental noise, has a slow processing speed, and cannot handle complex surfaces, high dynamic range scenes or high-precision reconstruction well.

[0006] In a first aspect, an embodiment of the present application provides a three-dimensional reconstruction method, comprising:

[0007] Acquire at least two fringe patterns, wherein the fringe patterns are formed by projecting a structured light pattern generated by a preconfigured de Bruijn sequence onto a surface of a measured object, and the feature of each fringe pattern matches a code value of a corresponding de Bruijn sequence on the same type of features of the at least two fringe patterns;

[0008] Acquire calibration information, the calibration information including calibrated internal parameters after calibrating the internal parameters of the camera that collects the at least two fringe patterns, and calibrated light planes after calibrating the light planes corresponding to the code values ​​in the reference coding table, wherein the reference coding table is generated based on the preconfigured de Bruijn sequence;

[0009] A three-dimensional point cloud model of the object to be measured is established according to the at least two fringe patterns and the calibration information.

[0010] Optionally, before acquiring at least two stripe patterns, the method further comprises:

[0011] The preconfigured De Bruijn sequence is formed based on a plurality of designated color value encodings, wherein the color of each stripe pattern is one of the plurality of designated color values;

[0012] The structured light pattern is generated according to the preconfigured de Bruijn sequence.

[0013] Optionally, the preconfigured De Bruijn sequence includes continuous encodings that match the three designated color values ​​of blue, green and cyan respectively, the color of one of the at least two stripe patterns is blue, and the color of the other of the at least two stripe patterns is green.

[0014] Optionally, establishing the three-dimensional point cloud model of the object to be measured according to the at least two fringe patterns and the calibration information includes:

[0015] Obtaining the center pixel coordinates of each of the stripe patterns and combining them into a code to be matched;

[0016] Matching the to-be-matched code with the reference code table to determine the reference code corresponding to each of the stripe patterns;

[0017] The three-dimensional point cloud model is established according to the reference code and the calibration information of each of the stripe patterns.

[0018] Optionally, establishing the three-dimensional point cloud model according to the reference code and the calibration information of each of the stripe patterns includes:

[0019] determining a calibration light plane of the fringe pattern according to the reference code;

[0020] The three-dimensional point cloud model is established according to the calibration light plane and the calibration internal parameters corresponding to each of the stripes.

[0021] Optionally, the camera includes a color camera and a grayscale camera, and the calibration information further includes a channel offset calibrated between the color camera and the grayscale camera;

[0022] Before obtaining the center pixel coordinates of each of the stripe patterns and combining them into a code to be matched, the method includes:

[0023] The at least two fringe patterns are corrected by calibrating the channel offset.

[0024] In a second aspect, an embodiment of the present application provides an electronic device, comprising a memory and a processor, wherein the memory is connected to the processor, and 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 any of the methods described above.

[0025] In a third aspect, an embodiment of the present application provides a three-dimensional reconstruction system, including:

[0026] A projection device, used to project a structured light pattern generated by a preconfigured de Bruijn sequence onto a surface of the object to be measured to form at least two fringe patterns;

[0027] A collection device, used for collecting the stripe pattern on the object to be measured;

[0028] a calibration device, the calibration device being connected to the projection device and the acquisition device respectively, and being used to calibrate the intrinsic parameters of the camera of the acquisition device and the light plane corresponding to the code value in the reference coding table respectively, wherein the reference coding table is generated based on the preconfigured de Bruijn sequence; and

[0029] As described above, the electronic device is connected to the projection device, the acquisition device and the calibration device respectively.

[0030] Optionally, the acquisition device includes:

[0031] A grayscale camera, the grayscale camera is connected to the calibration device and the electronic device respectively, and is used to collect grayscale images of the at least two stripe patterns;

[0032] a first color camera, the first color camera being connected to the calibration device and the electronic device respectively and being used to collect the stripe pattern of one specified color; and

[0033] A second color camera, wherein the second color camera is connected to the calibration device and the electronic device respectively, and is used to collect the stripe pattern of another specified color.

[0034] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein 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 any of the methods described above.

[0035] The embodiments of the present application can achieve the following technical effects: the embodiments of the present application adopt a fringe projection method to calculate the three-dimensional shape of an object by projecting a fringe pattern and capturing its deformation, and generate a structured light pattern with a preconfigured de Bruijn sequence, so that the projection device forms a fringe pattern on the surface of the object to be measured, thereby achieving high-efficiency and high-precision structured light reconstruction, and solving the problems in structured light reconstruction technology such as being too sensitive to environmental noise, too slow processing speed, and being unable to handle complex surfaces, high dynamic range scenes, or high-precision reconstruction. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0037] Figure 1 A schematic diagram of an application scenario of a three-dimensional reconstruction system provided in an embodiment of the present application;

[0038] Figure 2 A schematic diagram of a process flow of a three-dimensional reconstruction method provided in an embodiment of the present application;

[0039] Figure 3 is a schematic structural diagram of a three-dimensional reconstruction device provided in an embodiment of the present application;

[0040] Figure 4 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0041] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0042] It should be noted that, if there is no conflict, the various features in the embodiments of the present application can be combined with each other, all within the scope of protection of the present application. In addition, although the functional module division is performed in the device schematic diagram and the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in a sequence different from the module division in the device or the flow chart. Furthermore, the words "first", "second", "third", etc. used in this application do not limit the data and execution order, but only distinguish the same items or similar items with basically the same functions and effects.

[0043] The embodiment of the present application provides a three-dimensional reconstruction method, which is applied to a three-dimensional reconstruction system based on structured light.

[0044] In the first place, see Figure 1 In one application scenario, the three-dimensional reconstruction system 100 includes a projection device, an acquisition device 12, a calibration device 13, and a processing device 14. The projection device and any one of the projection devices are connected to the calibration device 13 and the processing device 14, respectively.

[0045] The projection device includes at least a structured light projector, and the projection device is used to project a structured light pattern generated based on the de Bruijn sequence onto the surface of the object to form a stripe pattern. Further, the projection device is configured to accurately project a high-resolution structured light pattern.

[0046] The acquisition device 12 includes at least a grayscale camera and a color camera, and is used to acquire an image of the object 15 through the grayscale camera and the color camera, wherein the image records the stripe pattern projected on the surface of the object 15. Furthermore, the acquisition device 12 is configured to acquire stripe patterns of different colors through each color camera.

[0047] In some embodiments, the acquisition device 12 includes a grayscale camera, a first color camera, and a second color camera. The grayscale camera is connected to the calibration device 13 and the processing device 14, respectively, for acquiring grayscale images of at least two stripe patterns. The first color camera is connected to the calibration device 13 and the processing device 14, respectively, for acquiring a stripe pattern of one specified color. The second color camera is connected to the calibration device 13 and the processing device 14, respectively, for acquiring a stripe pattern of another specified color.

[0048] The calibration device 13 at least includes a calibration plate and related calibration tools. The calibration device 13 is used to calibrate the internal parameters of each camera of the acquisition device 12 and the light plane corresponding to the code value in the reference coding table, so as to obtain the calibration internal parameters of each camera and the calibration light plane corresponding to the code value in the reference coding table. Among them, the internal parameters of the camera include focal length, principal point coordinates, distortion coefficient, etc. For example, the calibration plate is usually a high-precision chessboard or dot pattern, and the calibration tool includes calibration software and auxiliary tools (such as a mobile platform). These devices and tools need to have high precision and stability to ensure the accuracy of the calibration results. In addition, the calibration of the light plane corresponding to the code value in the reference coding table requires not only the calibration of the parameters of the projection device, but also the calibration of the parameters of the camera and the geometric relationship between the two. The calibration process can refer to the existing related technology and will not be repeated here.

[0049] The processing device 14 can be a computer, which includes at least a processor and a memory. The processing device 14 processes the collected stripe pattern through the processor, 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.

[0050] In addition, the 3D reconstruction system 100 may also include a display device, which is connected to the processing device 14 and is used to display the reconstructed 3D 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) head mounted display, or the like.

[0051] It can be understood that the embodiment of the present application adopts a fringe projection method to calculate the three-dimensional shape of an object by projecting a fringe pattern and capturing its deformation, and generates a structured light pattern with a preconfigured de Bruijn sequence, so that the projection device forms a fringe pattern on the surface of the object 15 to be measured, thereby achieving high-efficiency and high-precision structured light reconstruction, and solving the problems in structured light reconstruction technology such as being too sensitive to environmental noise, too slow processing speed, and being unable to handle complex surfaces, high dynamic range scenes, or high-precision reconstruction.

[0052] In the second aspect, see Figure 2 The embodiment of the present application provides a three-dimensional reconstruction method, with a processing device as the execution subject, the method comprising:

[0053] S21. Obtain at least two stripe patterns.

[0054] In this step, the stripe pattern is formed by projecting a structured light pattern generated by a preconfigured de Bruijn sequence onto the surface of the object to be measured. On the same type of features of at least two stripe patterns, the features of each stripe pattern match the code value of a corresponding de Bruijn sequence.

[0055] Among them, the so-called same type of features between at least two stripe patterns are at least one of color features, width features, direction features (such as the direction of the stripe image), spacing features, shape features, etc. In different application scenarios, they can be configured according to actual needs. By way of example, the same type of features referred to in the embodiment of the present application are color features.

[0056] S22. Obtain calibration information.

[0057] In this step, the calibration information includes calibrated internal parameters obtained by calibrating the internal parameters of the camera that collects at least two fringe patterns, and calibrated light planes obtained by calibrating the light planes corresponding to the code values ​​in the reference coding table.

[0058] The reference code table is generated based on the preconfigured De Bruijn sequence, which contains the reference code of each fringe pattern and its corresponding calibration light plane information. The calibration internal parameters include the camera's calibrated focal length, principal point coordinates, distortion parameters, etc.

[0059] S23. Establish a three-dimensional point cloud model of the object to be measured according to at least two fringe patterns and calibration information.

[0060] Exemplarily, in this step, according to the deformation degree and calibration information of each stripe pattern, the pixels in the image are mapped to the three-dimensional space, and the three-dimensional coordinates corresponding to each pixel are calculated. The three-dimensional coordinate points under multiple perspectives are fused using triangulation or other three-dimensional reconstruction algorithms to generate a complete three-dimensional point cloud model.

[0061] Understandably, traditional structured light reconstruction methods are sensitive to ambient light noise because these methods are easily disturbed by external light during the encoding and decoding process, resulting in deformation or distortion of the stripe pattern, affecting the 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 speeds. Furthermore, when processing complex surfaces, due to the uneven surface reflection characteristics and the presence of high dynamic range scenes, the encoded stripe pattern is easily distorted, resulting in poor reconstruction effects, and during the encoding and decoding process, there is error accumulation, especially in high-precision reconstruction, these errors will significantly affect the final reconstruction results.

[0062] The embodiment of the present application adopts the De Bruijn sequence as the encoding method. Since the De Bruijn sequence has unique autocorrelation and anti-interference ability, the encoding sequence can still maintain a high degree of matching when interfered by noise. This characteristic can effectively reduce the influence of ambient light on the coded stripe pattern, thereby improving the robustness and accuracy of the measurement. The embodiment of the present application utilizes the uniqueness and simplicity of the De Bruijn sequence, and can encode a large amount of information in a single projection, reducing the number of projections required. At the same time, the decoding process of the De Bruijn sequence is relatively simple, and the coded stripes can be quickly matched, which significantly improves the processing speed.

[0063] In addition, the encoding of the de Bruijn sequence has high resolution and accuracy, and can generate stable fringe patterns on complex surfaces and high dynamic range scenes. Through precise calibration and decoding, the embodiment of the present application can maintain high reconstruction accuracy on complex surfaces and adapt to a variety of complex measurement environments.

[0064] Furthermore, the embodiments of the present application also combine accurate calibration information, which not only improves the ability to resist interference from environmental noise, but also simplifies the processing process, improves speed and accuracy, and performs particularly well in complex surfaces and high dynamic range scenes.

[0065] In some embodiments, before step S21, the method further includes the step of processing the collected stripe pattern image, wherein the processing step includes image denoising, contrast enhancement and stripe pattern recognition to obtain at least two stripe patterns.

[0066] In some embodiments, after step S23, the following steps are further included:

[0067] S24. Post-processing the initially generated 3D point cloud model, including denoising, point cloud registration and hole filling.

[0068] S25. Use the existing point cloud processing algorithm to further refine and optimize the point cloud to ensure that the final generated three-dimensional point cloud model has high accuracy and integrity.

[0069] In some embodiments, before step S21, the following steps are further included:

[0070] S21a, encoding to form a preconfigured De Bruijn sequence based on a plurality of designated color values, wherein the color of each stripe pattern is one of the plurality of designated color values.

[0071] In this step, the specified color value set is initialized first, a basic De Bruijn sequence is generated, the numbers in the generated De Bruijn sequence are mapped to specific color codes, and then the mapped color code sequence is output to ensure that the subsequence composed of any three adjacent codes appears uniquely in the entire sequence.

[0072] S21b, generating a structured light pattern according to a preconfigured De Bruijn sequence.

[0073] It can be understood that the above encoding method can be effectively applied to fringe projection and three-dimensional reconstruction systems to improve the accuracy and reliability of the systems.

[0074] In some embodiments, the preconfigured de Bruijn sequence includes continuous codes that match three specified color values ​​of blue, green, and cyan respectively, the color of one of the at least two stripe patterns is blue, and the color of another of the at least two stripe patterns is green.

[0075] It can be understood that step S21a further uses the de Bruijn sequence to output a sequence of three color codes of blue, green, and cyan, so that a sequence composed of any three adjacent codes is unique.

[0076] In some embodiments, step S23 includes:

[0077] S231, obtaining the center pixel coordinates of each stripe pattern and combining them into a code to be matched.

[0078] S232, matching the code to be matched with the reference code table to determine the reference code corresponding to each stripe pattern.

[0079] S233, establishing a three-dimensional point cloud model according to the reference code and calibration information of each stripe pattern.

[0080] It can be understood that the embodiment of the present application extracts the center pixel coordinates of the stripe pattern and matches them with the reference coding table, and establishes a three-dimensional point cloud model in combination with calibration information. This method improves the accuracy and robustness of three-dimensional reconstruction.

[0081] In some implementations, step S233 includes:

[0082] S2331. Determine a calibration light plane of the stripe pattern according to a reference code.

[0083] In this step, the calibration light plane refers to the plane used to describe the standard position and direction of the fringe pattern in the three-dimensional space when the projection system and the camera system perform three-dimensional reconstruction. It is predetermined by the calibration process and is used to map the two-dimensional image coordinates to the three-dimensional space coordinates.

[0084] S2332. Establish a three-dimensional point cloud model based on the calibration light planes and calibration internal parameters corresponding to each stripe.

[0085] Exemplarily, in this step, the camera intrinsic parameters are used to convert the image coordinates into normalized coordinates to eliminate the effects of distortion, and then the normalized coordinates are mapped to three-dimensional space according to the equations of the calibrated light plane. The three-dimensional coordinate points of all the stripe patterns are combined to generate a complete three-dimensional point cloud model.

[0086] In some embodiments, the camera includes a color camera and a grayscale camera, the calibration information also includes a calibrated channel offset between the color camera and the grayscale camera, and before step S231, it also includes: correcting at least two stripe patterns by the calibrated channel offset.

[0087] It can be understood that fusing the color information captured by the color camera and the brightness information captured by the grayscale camera can improve the accuracy and robustness of stripe pattern recognition. By calibrating the channel offset between the color camera and the grayscale camera and correcting the image offset between the two, the captured images are spatially aligned, thereby improving the registration accuracy of the overall image.

[0088] It should be noted that, in each of the above-mentioned embodiments, there is not necessarily a certain order between the above-mentioned steps. A person skilled in the art can understand, based on the description of the embodiments of the present application, that in different embodiments, the above-mentioned steps may have different execution orders, that is, they may be executed in parallel, may be executed interchangeably, and so on.

[0089] As another aspect of the embodiment of the present application, the embodiment of the present application provides a 3D reconstruction device, wherein the 3D reconstruction device can be a software module, the software module includes a number of instructions, which are stored in a memory, and the processor can access the memory and call the instructions for execution to complete the 3D reconstruction method described in each of the above embodiments.

[0090] In some embodiments, the 3D reconstruction device can also be constructed by hardware devices, for example, the 3D reconstruction device can be constructed by one or more chips, and the chips can work in coordination with each other to complete the 3D reconstruction methods described in the above embodiments. For another example, the 3D reconstruction device can also be constructed by various logic devices, such as a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), a single-chip microcomputer, an ARM (Acorn RISC Machine) or other programmable logic devices, discrete gate or transistor logic, discrete hardware components, or any combination of these components.

[0091] See also Figure 3 The three-dimensional reconstruction device of the embodiment of the present application includes a first acquisition module 31, a second acquisition module 32 and a first processing module 33.

[0092] The first acquisition module 31 is used to acquire at least two stripe patterns, and the stripe patterns are formed by projecting a structured light pattern generated by a preconfigured De Bruijn sequence onto the surface of the object to be measured, and on the same type of features of at least two stripe patterns, the features of each stripe pattern match the code value of a corresponding De Bruijn sequence. The second acquisition module 32 is used to acquire calibration information, and the calibration information includes calibration internal parameters after calibrating the internal parameters of the camera that collects at least two stripe patterns, and calibration light planes after calibrating the light planes corresponding to the code values ​​in the reference coding table, wherein the reference coding table is generated based on the preconfigured De Bruijn sequence. The first processing module 33 is used to establish a three-dimensional point cloud model of the object to be measured based on at least two stripe patterns and calibration information.

[0093] It can be understood that the embodiment of the present application adopts a fringe projection method to calculate the three-dimensional shape of an object by projecting a fringe pattern and capturing its deformation, and generates a structured light pattern with a preconfigured de Bruijn sequence, so that the projection device forms a fringe pattern on the surface of the object being measured, thereby achieving high-efficiency and high-precision structured light reconstruction, and solving the problems in structured light reconstruction technology such as being too sensitive to environmental noise, too slow processing speed, and being unable to handle complex surfaces, high dynamic range scenes, or high-precision reconstruction.

[0094] In some embodiments, the 3D reconstruction device further includes a second processing module and a third processing module, wherein the second processing module is used to encode a preconfigured De Bruijn sequence based on a plurality of designated color values, and the color of each stripe pattern is one of the plurality of designated color values. The third processing module is used to generate a structured light pattern according to the preconfigured De Bruijn sequence.

[0095] In some embodiments, the first processing module 33 is specifically used to: obtain the central pixel coordinates of each stripe pattern and combine them into a code to be matched; match the code to be matched with the reference code table to determine the reference code corresponding to each stripe pattern; and establish a three-dimensional point cloud model based on the reference code and calibration information of each stripe pattern.

[0096] In some embodiments, the first processing module 33 is specifically used to: determine the calibration light plane of the stripe pattern according to the reference code; and establish a three-dimensional point cloud model according to the calibration light plane and calibration internal parameters corresponding to each stripe.

[0097] In some embodiments, the first processing module 33 is further specifically configured to calibrate at least two fringe patterns by using a calibrated channel offset.

[0098] It should be noted that the above-mentioned 3D reconstruction device can execute the 3D reconstruction method provided in the embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method. For technical details not fully described in the embodiment of the 3D reconstruction device, please refer to the 3D reconstruction method provided in the embodiment of the present application.

[0099] See also Figure 4 , Figure 4 1 is a schematic diagram of the structure of an electronic device 400 provided in an embodiment of the present application, wherein the electronic device 400 is a processing device in the above-mentioned three-dimensional reconstruction system. The electronic device 400 includes one or more processors 41 and a memory 42. The memory 42 is connected to the one or more processors 41, for example, connected to the processor 41 via a bus.

[0100] The processor 41 is configured to support the electronic device 400 to perform the corresponding functions in the method in the above method embodiment. The processor 41 can be a central processing unit (CPU), a network processor (NP), a hardware chip or any combination thereof. The above hardware chip can be an application specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The above PLD can be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.

[0101] The memory 42 is used to store program codes, etc. The memory may include a volatile memory (VM), such as a random access memory (RAM); the memory may also include a non-volatile memory (NVM), such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD); the memory 42 may also include a combination of the above-mentioned types of memory.

[0102] The memory 42 can 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 the non-volatile software programs, instructions and modules stored in the memory 42, that is, realizes the functions of the three-dimensional reconstruction method and each module or unit of the three-dimensional reconstruction device provided in the above method embodiment.

[0103] The memory 42 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required by at least one function. The data storage area may store data created according to the use of the three-dimensional reconstruction device, etc. In some embodiments, the memory 42 may optionally include a memory remotely arranged relative to the processor 41, and these remote memories may be connected to the three-dimensional reconstruction device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0104] One or more modules are stored in the memory 42, and 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 realize the functions of the modules described in the above device embodiments.

[0105] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. The computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the method of the aforementioned embodiment.

[0106] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0107] The above disclosure is only the preferred embodiment of the present application, which certainly 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 are still within the scope covered by the present application.

Claims

1. A three-dimensional reconstruction method, characterized in that: include: Acquire at least two fringe patterns, wherein the fringe patterns are formed by projecting a structured light pattern generated by a preconfigured de Bruijn sequence onto a surface of a measured object, and the feature of each fringe pattern matches a code value of a corresponding de Bruijn sequence on the same type of features of the at least two fringe patterns; Acquire calibration information, the calibration information including calibrated internal parameters after calibrating the internal parameters of the camera that collects the at least two fringe patterns, and calibrated light planes after calibrating the light planes corresponding to the code values ​​in the reference coding table, wherein the reference coding table is generated based on the preconfigured de Bruijn sequence; A three-dimensional point cloud model of the object to be measured is established according to the at least two fringe patterns and the calibration information.

2. The three-dimensional reconstruction method according to claim 1, characterized in that: Before obtaining at least two stripe patterns, the method includes: The preconfigured De Bruijn sequence is formed based on a plurality of designated color value encodings, wherein the color of each stripe pattern is one of the plurality of designated color values; The structured light pattern is generated according to the preconfigured de Bruijn sequence.

3. The three-dimensional reconstruction method according to claim 2, characterized in that: The preconfigured De Bruijn sequence includes continuous encodings that match the three designated color values ​​of blue, green, and cyan respectively, the color of one of the at least two stripe patterns is blue, and the color of the other of the at least two stripe patterns is green.

4. The three-dimensional reconstruction method according to claim 2, characterized in that: The step of establishing the three-dimensional point cloud model of the object to be measured according to the at least two fringe patterns and the calibration information comprises: Obtaining the center pixel coordinates of each of the stripe patterns and combining them into a code to be matched; Matching the to-be-matched code with the reference code table to determine the reference code corresponding to each of the stripe patterns; The three-dimensional point cloud model is established according to the reference code and the calibration information of each of the stripe patterns.

5. The three-dimensional reconstruction method according to claim 4, characterized in that: The establishing of the three-dimensional point cloud model according to the reference code and the calibration information of each of the stripe patterns comprises: determining a calibration light plane of the fringe pattern according to the reference code; The three-dimensional point cloud model is established according to the calibration light plane and the calibration internal parameters corresponding to each of the stripes.

6. The three-dimensional reconstruction method according to claim 4, characterized in that: The camera includes a color camera and a grayscale camera, and the calibration information also includes a channel offset calibrated between the color camera and the grayscale camera; Before obtaining the center pixel coordinates of each of the stripe patterns and combining them into a code to be matched, the method includes: The at least two fringe patterns are corrected by calibrating the channel offset.

7. An electronic device, characterized in that: The electronic device comprises a memory and a processor, wherein the memory is connected to the processor, and 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 according to any one of claims 1 to 6.

8. A three-dimensional reconstruction system, characterized in that: include: A projection device, used to project a structured light pattern generated by a preconfigured de Bruijn sequence onto a surface of the object to be measured to form at least two fringe patterns; A collection device, used for collecting the stripe pattern on the object to be measured; A calibration device, the calibration device is connected to the projection device and the acquisition device respectively, and is used to calibrate the internal parameters of the camera of the acquisition device and the light plane corresponding to the code value in the reference coding table, wherein the reference coding table is generated based on the preconfigured de Bruijn sequence; as well as The electronic device as described in claim 7, wherein the electronic device is connected to the projection device, the acquisition device and the calibration device respectively.

9. The three-dimensional reconstruction system according to claim 8, characterized in that: The acquisition equipment comprises: A grayscale camera, the grayscale camera is connected to the calibration device and the electronic device respectively, and is used to collect grayscale images of the at least two stripe patterns; a first color camera, the first color camera being connected to the calibration device and the electronic device respectively and being used to collect the stripe pattern of one designated color; and A second color camera, wherein the second color camera is connected to the calibration device and the electronic device respectively, and is used to collect the stripe pattern of another specified color.

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 is caused to perform the method according to any one of claims 1 to 6.

Citation Information

Cited By

  • Oral cavity three-dimensional scanning system and control method thereof, electronic equipment and storage medium

    CN120388132A