A spectral three-dimensional imaging method, system and application based on fringe projection

The spectral three-dimensional imaging technology based on fringe projection solves the problem that existing technology cannot obtain spectral information of objects in real time, realizes real-time collection of three-dimensional space-spectral information and video-level spectral image reconstruction, and improves the efficiency of detection and analysis. quality.

CN117589086BActive Publication Date: 2024-08-30WESTLAKE UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311568394.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-22
Publication Date
2024-08-30
Estimated Expiration
2043-11-22

AI Technical Summary

Technical Problem

Existing three-dimensional measurement technology cannot obtain the spectral three-dimensional information of objects in real time in fields such as medical diagnosis, military survey, and cultural relic protection. It can only perform morphological reconstruction, which cannot meet the demand for spectral information.

Method used

A spectral three-dimensional imaging method based on fringe projection is used to project the sinusoidal fringe image through a projector, combined with the imaging lens, mask, dispersion prism and camera to obtain a two-dimensional compressed image containing spectral information, and use the pre-trained image reconstruction model to perform Reconstruction and integration of three-dimensional spectral images to achieve video-level spectral three-dimensional image reconstruction.

Benefits of technology

Real-time 3D spatial-spectral information acquisition and reconstruction of 3D samples is achieved, improving object shape detection quality and reconstruction frame rate, supporting dynamic rapid capture and analysis, and greatly improving object damage detection and pathological structure analysis capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117589086B
    Figure CN117589086B
Patent Text Reader

Abstract

The present application proposes a spectral three-dimensional imaging method, system and application based on fringe projection, including the following steps: using a projector to continuously project a sinusoidal fringe pattern onto the surface of a three-dimensional object to be measured and encoding it by a mask to obtain a coded image; the coded image is imaged on a dispersion prism through an objective lens to obtain a dispersion image, and the dispersion image is imaged in a camera through a tube lens to obtain at least one two-dimensional compressed image; using a pre-trained image reconstruction model to reconstruct each two-dimensional compressed image into at least two spectral images, and then three-dimensionally reconstructed to obtain a three-dimensional spectral image to form a three-dimensional spectral image set. This solution obtains spectral images through a model and combines fringe profilometry technology to obtain spectral three-dimensional images containing spectral information, thereby realizing real-time acquisition and reconstruction of three-dimensional space-spectral information of three-dimensional samples, and can realize video-level spectral three-dimensional image reconstruction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of three-dimensional measurement, and in particular to a spectral three-dimensional imaging method, system and application based on fringe projection. Background Art

[0002] Three-dimensional measurement technology has a wide range of applications in the fields of digital protection of cultural relics, industrial measurement, medical diagnosis, film and television entertainment, etc. The common use of structured light projection three-dimensional measurement has been widely used in the field of industrial three-dimensional measurement due to its large range, large field of view, high precision, and real-time performance. Three-dimensional surface measurement technology has broad application prospects in scientific research, industrial inspection and manufacturing, biomedical consumer electronics, etc., and is increasingly receiving attention and attention. In particular, face recognition technology based on structured light three-dimensional measurement has become a hot topic of research recently. Structured light three-dimensional surface measurement technology, as one of the important means to obtain real three-dimensional world information, has the advantage of quickly and accurately reconstructing the surface morphology of objects. With the development of information theory and the improvement of computer digital processing capabilities, the collection of multi-dimensional image information can be based on the design of physical models based on coding strategies, from compressing and collecting two-dimensional information through dimensionality reduction, and then using compressed sensing algorithms to restore three-dimensional or multi-dimensional information.

[0003] Among many three-dimensional measurement technologies, fringe profilometry three-dimensional measurement technology is a technology that projects fringes onto the object to be measured, obtains deformed fringes containing the surface phase information of the object, and demodulates the three-dimensional surface data of the object to be measured. In the field of optics, sinusoidal fringes are often used to illuminate living biological samples, and the collected object light information is calculated and synthesized through CCD / CMOS to reconstruct the three-dimensional surface morphology of the three-dimensional object. However, this three-dimensional reconstruction method also does not have the ability to reconstruct spectral three-dimensional images. In other words, at present, the fringe profilometry three-dimensional measurement technology can only restore and reconstruct the three-dimensional morphology of the object to be measured. However, in some special occasions, such as medical diagnosis, military surveys, cultural relics damage monitoring, industrial safety testing, etc., it is far from enough to simply reconstruct the morphology of the target object, and it is also necessary to obtain the spectral information of the three-dimensional object. Therefore, how to reconstruct the spectral three-dimensional information of the object has become a difficult problem. Summary of the invention

[0004] The embodiments of the present application provide a spectral three-dimensional imaging method, system and application based on fringe projection, which obtains spectral images through a model and combines fringe profilometry technology to obtain spectral three-dimensional images containing spectral information, thereby realizing real-time acquisition and reconstruction of three-dimensional space-spectral information of three-dimensional samples, and can realize video-level spectral three-dimensional image reconstruction.

[0005] In a first aspect, an embodiment of the present application provides a spectral three-dimensional imaging method based on fringe projection, the method comprising:

[0006] A projector is used to continuously project the sinusoidal fringe pattern onto the surface of the three-dimensional object to be measured, and an imaging lens captures the light field of the three-dimensional object to be measured containing the projection information of the sinusoidal fringe pattern, and images it on a mask to be encoded to obtain a coded image;

[0007] The coded image is imaged on a dispersion prism through an objective lens to obtain a dispersion image, the dispersion image is imaged in a camera through a tube lens to obtain a two-dimensional compressed image, the camera acquires at least one two-dimensional compressed image at different time points, wherein the dispersion image is an image of different spectral bands with spatial dislocation;

[0008] A pre-trained image reconstruction model is used to reconstruct each two-dimensional compressed image into at least two spectral images of different spectral channels, and at least one spectral image of the same spectral channel is three-dimensionally reconstructed to obtain a three-dimensional spectral image. The three-dimensional spectral images of different spectral channels are integrated to form a three-dimensional spectral image set.

[0009] In a second aspect, an embodiment of the present application provides a spectral three-dimensional imaging system based on fringe projection, comprising:

[0010] A spectral three-dimensional imaging device, comprising a projector, an imaging lens, a mask, an objective lens, a dispersion prism, a tube lens and a camera arranged along an optical path, a three-dimensional imaging space for accommodating a three-dimensional sample is formed between the projector and the imaging lens, a sinusoidal fringe pattern is continuously projected onto the surface of a three-dimensional object to be measured by the projector, the imaging lens captures the light field of the three-dimensional object to be measured containing the projection information of the sinusoidal fringe pattern, and images it on the mask to be encoded to obtain an encoded image, the encoded image is imaged on the dispersion prism through the objective lens to obtain a dispersion image, the dispersion image is imaged in the camera through the tube lens to obtain a two-dimensional compressed image, the camera acquires at least one two-dimensional compressed image at different time points, wherein the dispersion image is an image of different spectral bands with spatial dislocation;

[0011] An image reconstruction unit is used to reconstruct a two-dimensional compressed image into a three-dimensional spectral image, wherein each two-dimensional compressed image is reconstructed into at least two spectral images of different spectral channels using a pre-trained image reconstruction model, at least one spectral image of the same spectral channel is three-dimensionally reconstructed to obtain a three-dimensional spectral image, and the three-dimensional spectral images of different spectral channels are integrated to form a three-dimensional spectral image set.

[0012] In a third aspect, an embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute a spectral three-dimensional imaging method based on fringe projection.

[0013] In a fourth aspect, an embodiment of the present application provides a readable storage medium, in which a computer program is stored. The computer program includes a program code for controlling a process to execute a process, and the process includes a spectral three-dimensional imaging method based on fringe projection.

[0014] The main contributions and innovations of the present invention are as follows:

[0015] This solution can obtain the three-dimensional appearance of an object in a non-contact manner, and quickly capture it through a camera to achieve fast image acquisition, thereby improving the reconstruction speed of three-dimensional images; this solution reconstructs compressed two-dimensional images through a deep learning algorithm to obtain spectral information, and fuses images in the same spectral channel to obtain a three-dimensional spectral image. This solution collects the three-dimensional spatial-spectral information of three-dimensional samples in real time for real-time reconstruction, thereby achieving video-level spectral three-dimensional image reconstruction; this solution controls the triggering of the projector and the camera through an FPGA chip to ensure the accuracy of the projector and the camera, and can also correct it in time when the accuracy deviates; this solution obtains different spectral images with spatial dislocation through a dispersion prism and images them through an integral method to obtain a two-dimensional compressed image containing spectral information. This solution reconstructs video-level three-dimensional spectral images in real-time, efficiently, and with high quality, so that this solution can dynamically and quickly capture and analyze damage detection and pathological structures of objects, greatly improving the appearance detection quality and reconstruction frame rate of objects, and realizing low-cost pathological analysis of three-dimensional samples.

[0016] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0018] Figure 1 is a flow chart of a spectral three-dimensional imaging method based on fringe projection according to an embodiment of the present application;

[0019] Figure 2 is a structural diagram of a device for acquiring a two-dimensional compressed image according to an embodiment of the present application;

[0020] Figure 3 is a schematic diagram of a method for acquiring a three-dimensional spectral image according to an embodiment of the present application;

[0021] Figure 4 is a structural block diagram of a spectral three-dimensional imaging system based on fringe projection according to an embodiment of the present application;

[0022] Figure 5 It is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0023] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with one or more embodiments of this specification. Instead, they are merely examples of devices and methods consistent with some aspects of one or more embodiments of this specification as detailed in the appended claims.

[0024] It should be noted that: in other embodiments, the steps of the corresponding method are not necessarily performed in the order shown and described in this specification. In some other embodiments, the steps included in the method may be more or less than those described in this specification. In addition, a single step described in this specification may be decomposed into multiple steps for description in other embodiments; and multiple steps described in this specification may be combined into a single step for description in other embodiments.

[0025] Embodiment 1

[0026] About Stripe:

[0027] About Coded Aperture: A technique called Coded Aperture Snapshot Compressed Spectral Imaging (CASSI) has been proposed to compress high-dimensional image information into low-dimensional images for acquisition and reconstruction. However, the common application of CASSI is mainly for two-dimensional image reconstruction, and it does not have the ability to reconstruct three-dimensional information.

[0028] This scheme combines the snapshot spectral compression reconstruction algorithm and the three-dimensional morphology reconstruction algorithm to propose a spectral three-dimensional imaging method and system based on fringe projection. The method can obtain the three-dimensional morphology of the object in a non-contact manner, and realize the system and device for rapid acquisition of the object's spectral information distribution. It has faster imaging and reconstruction speed than traditional three-dimensional morphology reconstruction and spectral information scanning. In this way, it can realize the dynamic and rapid capture and analysis of the damage detection and pathological structure of the object, greatly improving the object's morphology detection quality and reconstruction frame rate, and achieving the effect of low-cost pathological analysis of three-dimensional samples.

[0029] The present application embodiment provides a spectral three-dimensional imaging method based on fringe projection, specifically, referring to Figure 1 , the method comprising:

[0030] A projector is used to continuously project the sinusoidal fringe pattern onto the surface of the three-dimensional object to be measured, and an imaging lens captures the light field of the three-dimensional object to be measured containing the projection information of the sinusoidal fringe pattern, and images it on a mask to be encoded to obtain a coded image;

[0031] The coded image is imaged on a dispersion prism through an objective lens to obtain a dispersion image, the dispersion image is imaged in a camera through a tube lens to obtain a two-dimensional compressed image, the camera acquires at least one two-dimensional compressed image at different time points, wherein the dispersion image is an image of different spectral bands with spatial dislocation;

[0032] A pre-trained image reconstruction model is used to reconstruct each two-dimensional compressed image into at least two spectral images of different spectral channels, and at least one spectral image of the same spectral channel is three-dimensionally reconstructed to obtain a three-dimensional spectral image. The three-dimensional spectral images of different spectral channels are integrated to form a three-dimensional spectral image set.

[0033] In this scheme, a spectral three-dimensional imaging device based on fringe projection for obtaining a two-dimensional compressed image is shown in FIG. Figure 2 As shown, the spectral three-dimensional imaging device based on fringe projection includes: a projector, an imaging lens, a mask, an objective lens, a dispersion prism, a tube lens and a camera arranged along the optical path, a three-dimensional imaging space for accommodating a three-dimensional sample is formed between the projector and the imaging lens, wherein the projector projects a sinusoidal fringe pattern toward the three-dimensional imaging space, and the mask encodes the light field of the three-dimensional object to be measured with the sinusoidal fringe pattern information collected by the imaging lens and encodes it.

[0034] The structure of the spectral three-dimensional imaging device is introduced as follows:

[0035] The light source of the projector is a broadband light source, and the sinusoidal fringe pattern can be generated by C++, Python or Matlab. In Matlab, the sine function change curve is taken as an example, and its minimum value is set to black, the maximum value is set to white, and the others are set to black and white gradient. Put the value corresponding to the sine function into Mat, and a fringe image will be obtained.

[0036] In this solution, the imaging lens, objective lens, and tube lens are all optical imaging devices, which can magnify / reduce the image under certain circumstances.

[0037] In this solution, the mask is a static optical quartz slice made by photolithography technology, and the image formed on the mask is modulated by the binary randomly distributed mask information on the mask to become a coded image with coded information.

[0038] In this solution, the dispersion prism disperses the encoded image into images of different spectral bands with spatial dislocation.

[0039] In the step of "imaging the dispersion image through a tube mirror to obtain a two-dimensional compressed image in a camera", the spectral dimension in the dispersion image is integrated by a CCD / CMOS photosensitive chip in the camera to obtain the two-dimensional compressed image.

[0040] Specifically, CCD and CMOS are both camera imaging elements. CCD is a charge-coupled device, and its working method is to use the light from the lens to make the capacitor of each photodiode accumulate a certain amount of charge, and the amount of charge is proportional to the incident light intensity at that location; while CMOS is a complementary metal oxide semiconductor, and each pixel's photodiode is connected to an amplifier and ADC circuit to read out the value of the pixel.

[0041] This solution uses an FPGA chip to control the triggering of the projector and the camera, and the refresh rate of the projector is a positive integer multiple of the camera refresh rate.

[0042] Specifically, the FPGA chip is used to control the triggering of the projector and the camera to ensure that the projector and the camera run at the same time, and the accuracy of the projector and the camera can be guaranteed. When the accuracy deviates, it can be corrected in time.

[0043] Specifically, the purpose of setting the refresh rate of the projector to a positive integer multiple of the refresh rate of the camera is that the camera can capture the phase difference more accurately and improve the phase resolution to perform three-dimensional reconstruction more accurately.

[0044] Exemplarily, this solution sets the refresh rate of the projector to 4 times that of the camera, that is, the projector plays 4 images while the camera captures 1 compressed image.

[0045] In this scheme, in the step of "using a pre-trained image reconstruction model to reconstruct each two-dimensional compressed image into at least two spectral images of different spectral channels", the image reconstruction model uses snapshot compression imaging technology to reconstruct each two-dimensional compressed image to obtain spectral images of different spectral channels.

[0046] Specifically, this scheme uses a deep learning-based snapshot compression imaging (SCI) system image reconstruction method to construct an image reconstruction model. The snapshot compression imaging system image reconstruction method has powerful feature extraction capabilities to obtain fast and high-quality images.

[0047] Exemplarily, the basic architecture of the image reconstruction model in this solution can be the following:

[0048] End-to-End Deep Neural Network

[0049] Deep-unfolding

[0050] Plug-and-Play algorithm framework (PnP);

[0051] The algorithm formula for the image reconstruction model is as follows:

[0052] y=Ax+g

[0053] Among them, A is the sensing matrix, g is the observation noise, x represents the input two-dimensional compressed image, and y is the output spectral image.

[0054] Specifically, in this solution, a large number of two-dimensional compressed images and their corresponding spectral images are used as training samples to train the image reconstruction model to obtain a pre-trained image reconstruction model.

[0055] It is worth mentioning that the construction method of the image reconstruction model in this scheme is not limited to the above deep learning algorithm, and all algorithms that can reconstruct spectral images such as unified iterative algorithms can also be used.

[0056] In the step of "reconstructing at least one spectral image of the same spectral channel in three dimensions to obtain a three-dimensional spectral image", different spectral images in the same spectral channel are used to calculate fringe phases, and a three-dimensional spectral image is obtained according to the fringe phases.

[0057] Specifically, the three-dimensional spectral image is obtained as follows: Figure 3 As shown, the spectral image of each spectral channel can be reconstructed into three-dimensional spectral images of different spectra to form a three-dimensional spectral image set.

[0058] In the step of "calculating the fringe phase using different spectral images in the same spectral channel", this solution uses a four-step phase shift method to calculate, that is, to calculate the fringe phase using four two-dimensional compressed images. The specific process is as follows:

[0059] The projection intensity of the sinusoidal fringes is calculated by formula 1:

[0060] I0(x,y)=A(x,y)+B(x,y)cosφ(x,y) (Formula 1)

[0061] Among them, the light intensity I is a function of the fringe phase φ, A is the background light intensity, B is the modulation depth, and x and y are the two-dimensional spatial coordinates.

[0062] When the sinusoidal fringe pattern is projected onto the surface of the three-dimensional object to be measured, if the reflection loss of the object is not considered, the intensity of the reflected fringe light of the object is as shown in Formula 2:

[0063] I r (x,y)=A(x,y)+B(x,y)cosφ r (x,y) (Formula 2)

[0064] The difference between Formula 1 and Formula 2 lies in the phase difference. Assume that the phase difference k = 2π / T·d / l, where T is the period of the sinusoidal fringe, d is the distance between the camera and the projection, and l is the distance from the camera to the reference surface. Then, the fringe after the height modulation of the three-dimensional object to be measured is as shown in Formula 3:

[0065] I r =R[A+Bcos(φ+k·h)] (Formula 3)

[0066] Wherein, h is the height of the three-dimensional object to be measured.

[0067] When using a camera to take four two-dimensional compressed images, the fringe phase of the sinusoidal fringe pattern is shifted by π / 2 each time, and Formula 5 is obtained:

[0068] I1=A+Bcos(φ)

[0069]

[0070] I3=A+Bcos(φ+π)

[0071]

[0072] According to formula 5, the fringe phase can be obtained as: where φ is the fringe phase.

[0073] In some embodiments, when using the four-step phase shift method to obtain the phase, it is necessary to use a phase unwrapping algorithm to deal with the phase wrapping problem. The phase wrapping problem is due to the periodic characteristics of the phase, which will cause phase mutations or jumps, resulting in the phase value exceeding one period (usually 2π), making it impossible to accurately measure the phase difference.

[0074] In this solution, the height and phase relationship of the three-dimensional object to be measured can be solved by the phase unwrapping algorithm and the height of the object can be obtained as:

[0075]

[0076] In this solution, the phase wrapping problem can be solved by any phase unwrapping algorithm, and this solution does not limit this. Similarly, any phase shift algorithm can also be used to calculate the phase difference.

[0077] Specifically, this solution can quickly obtain the three-dimensional morphology of an object in a non-contact manner to achieve video-level spectral three-dimensional image reconstruction, and this solution can dynamically and quickly capture and analyze the damage detection and pathological structure of the object, greatly improving the morphology detection quality and reconstruction frame rate of the object, and realizing low-cost pathological analysis of three-dimensional samples.

[0078] In this scheme, in the step of "integrating three-dimensional spectral images of different spectral channels to form a three-dimensional spectral image set", the number of three-dimensional spectral images in the three-dimensional spectral image set is the same as the number of spectral channels, and the number of spectral images in each spectral channel is the same as the number of two-dimensional compressed images.

[0079] In some embodiments, the spectral band of the projector LED light source in this solution is 400nm-760nm, and the image reconstruction model reconstructs a two-dimensional compressed image into 60 spectral images, and each spectral image of a two-dimensional compressed image has a different spectral channel.

[0080] Embodiment 2

[0081] Based on the same idea, refer to Figure 4 , the present application also proposes a spectral three-dimensional imaging system based on fringe projection, comprising:

[0082] A spectral three-dimensional imaging device, comprising a projector, an imaging lens, a mask, an objective lens, a dispersion prism, a tube lens and a camera arranged along an optical path, a three-dimensional imaging space for accommodating a three-dimensional sample is formed between the projector and the imaging lens, a sinusoidal fringe pattern is continuously projected onto the surface of a three-dimensional object to be measured by the projector, the imaging lens captures the light field of the three-dimensional object to be measured containing the projection information of the sinusoidal fringe pattern, and images it on the mask to be encoded to obtain an encoded image, the encoded image is imaged on the dispersion prism through the objective lens to obtain a dispersion image, the dispersion image is imaged in the camera through the tube lens to obtain a two-dimensional compressed image, the camera acquires at least one two-dimensional compressed image at different time points, wherein the dispersion image is an image of different spectral bands with spatial dislocation;

[0083] An image reconstruction unit, used for reconstructing a two-dimensional compressed image into a three-dimensional spectral image, wherein each two-dimensional compressed image is reconstructed into at least two spectral images of different spectral channels using a pre-trained image reconstruction model, at least one spectral image of the same spectral channel is three-dimensionally reconstructed to obtain a three-dimensional spectral image, and the three-dimensional spectral images of different spectral channels are integrated to form a three-dimensional spectral image set;

[0084] Embodiment 3

[0085] This embodiment also provides an electronic device, referring to Figure 5 , including a memory 404 and a processor 402, wherein the memory 404 stores a computer program, and the processor 402 is configured to run the computer program to execute the steps in any one of the above-mentioned spectral three-dimensional imaging methods based on fringe projection.

[0086] Specifically, the processor 402 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0087] Among them, the memory 404 may include a large capacity memory 404 for data or instructions. By way of example and not limitation, the memory 404 may include a hard disk drive (HDD), a floppy disk drive, a solid state drive (SSD), a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory 404 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 404 may be inside or outside the data processing device. In a specific embodiment, the memory 404 is a non-volatile memory. In a specific embodiment, the memory 404 includes a read-only memory (ROM) and a random access memory (RAM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (Programmable Read-Only Memory, PROM for short), an erasable PROM (Erasable Programmable Read-Only Memory, EPROM for short), an electrically erasable PROM (Electrically Erasable Programmable Read-Only Memory, EEPROM for short), an electrically alterable ROM (Electrically Alterable Read-Only Memory, EAROM for short) or a flash memory (FLASH) or a combination of two or more of these. Under appropriate circumstances, the RAM can be a static random access memory (Static Random-Access Memory, abbreviated as SRAM) or a dynamic random access memory (Dynamic Random Access Memory, abbreviated as DRAM), wherein the DRAM can be a fast page mode dynamic random access memory 404 (Fast Page Mode Dynamic Random Access Memory, abbreviated as FPMDRAM), an extended data output dynamic random access memory (Extended Date Out Dynamic Random Access Memory, abbreviated as EDODRAM), a synchronous dynamic random access memory (Synchronous Dynamic Random-Access Memory, abbreviated as SDRAM), etc.

[0088] The memory 404 may be used to store or cache various data files required for processing and / or communication, as well as possible computer program instructions executed by the processor 402 .

[0089] The processor 402 reads and executes computer program instructions stored in the memory 404 to implement any one of the fringe projection-based spectral three-dimensional imaging methods, systems, and applications in the above-mentioned embodiments.

[0090] Optionally, the electronic device may further include a transmission device 406 and an input / output device 408 , wherein the transmission device 406 is connected to the processor 402 , and the input / output device 408 is connected to the processor 402 .

[0091] The transmission device 406 can be used to receive or send data via a network. The specific examples of the above-mentioned network may include a wired or wireless network provided by a communication provider of the electronic device. In one example, the transmission device includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 406 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0092] The input and output device 408 is used to input or output information. In this embodiment, the input information may be a sinusoidal fringe pattern, a coded image, etc., and the output information may be a spectral image, a spectral three-dimensional imaging result, etc.

[0093] Optionally, in this embodiment, the processor 402 may be configured to perform the following steps through a computer program:

[0094] S101, using a projector to continuously project the sinusoidal fringe pattern onto the surface of the three-dimensional object to be measured, and an imaging lens captures the light field of the three-dimensional object to be measured containing the projection information of the sinusoidal fringe pattern, and images it on a mask to be encoded to obtain a coded image;

[0095] S102, the coded image is imaged on a dispersion prism through an objective lens to obtain a dispersion image, the dispersion image is imaged in a camera through a tube lens to obtain a two-dimensional compressed image, the camera acquires at least one two-dimensional compressed image at different time points, wherein the dispersion image is an image of different spectral bands with spatial dislocation;

[0096] S103, using a pre-trained image reconstruction model to reconstruct each two-dimensional compressed image into at least two spectral images of different spectral channels, performing three-dimensional reconstruction on at least one spectral image of the same spectral channel to obtain a three-dimensional spectral image, and integrating the three-dimensional spectral images of different spectral channels to form a three-dimensional spectral image set.

[0097] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0098] In general, various embodiments may be implemented in hardware or dedicated circuits, software, logic, or any combination thereof. Some aspects of the invention may be implemented in hardware, while other aspects may be implemented in firmware or software that may be executed by a controller, microprocessor, or other computing device, but the invention is not limited thereto. Although various aspects of the invention may be shown and described as block diagrams, flow charts, or using some other graphical representation, it should be understood that, as non-limiting examples, the boxes, devices, systems, techniques, or methods described herein may be implemented in hardware, software, firmware, dedicated circuits or logic, general-purpose hardware or controllers or other computing devices, or some combination thereof.

[0099] Embodiments of the present invention may be implemented by computer software that is executable by a data processor of a mobile device, such as in a processor entity, or by hardware, or by a combination of software and hardware. Computer software or programs (also referred to as program products) including software routines, applets and / or macros may be stored in any device-readable data storage medium, and they include program instructions for performing specific tasks. A computer program product may include one or more computer executable components configured to perform an embodiment when the program is run. One or more computer executable components may be at least one software code or a portion thereof. In addition, at this point, it should be noted that, for example, Figure 5 Any block of the logic flow in the program may represent program steps, or interconnected logic circuits, blocks and functions, or a combination of program steps and logic circuits, blocks and functions. The software may be stored on physical media such as memory chips or storage blocks implemented within a processor, magnetic media such as hard disks or floppy disks, and optical media such as, for example, DVDs and their data variants, CDs, etc. Physical media are non-transitory media.

[0100] Those skilled in the art should understand that the technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0101] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A spectral three-dimensional imaging method based on fringe projection, characterized in that: The following steps are involved: A projector is used to continuously project the sinusoidal fringe pattern onto the surface of the three-dimensional object to be measured, and an imaging lens captures the light field of the three-dimensional object to be measured containing the projection information of the sinusoidal fringe pattern, and images it on a mask to be encoded to obtain a coded image; The coded image is imaged on a dispersion prism through an objective lens to obtain a dispersion image, the dispersion image is imaged in a camera through a tube lens to obtain a two-dimensional compressed image, the camera acquires at least one two-dimensional compressed image at different time points, wherein the dispersion image is an image of different spectral bands with spatial dislocation; A pre-trained image reconstruction model is used to reconstruct each two-dimensional compressed image into at least two spectral images of different spectral channels, wherein the image reconstruction model uses snapshot compression imaging technology to reconstruct each two-dimensional compressed image to obtain spectral images of different spectral channels, and at least one spectral image of the same spectral channel is three-dimensionally reconstructed to obtain a three-dimensional spectral image, wherein different spectral images in the same spectral channel are used to calculate the fringe phase, and a three-dimensional spectral image is obtained according to the fringe phase, and the three-dimensional spectral images of different spectral channels are integrated to form a three-dimensional spectral image set, wherein the number of three-dimensional spectral images in the three-dimensional spectral image set is the same as the number of spectral channels, and the number of spectral images in each spectral channel is the same as the number of two-dimensional compressed images.

2. The spectral three-dimensional imaging method based on fringe projection according to claim 1, characterized in that: In the step of "the dispersion image is imaged by a tube mirror to obtain a two-dimensional compressed image in a camera", the spectral dimension in the dispersion image is integrated by a CCD / CMOS photosensitive chip in the camera to obtain the two-dimensional compressed image.

3. The spectral three-dimensional imaging method based on fringe projection according to claim 1, characterized in that: This solution uses an FPGA chip to control the triggering of the projector and the camera, and the refresh rate of the projector is a positive integer multiple of the camera refresh rate.

4. The spectral three-dimensional imaging method based on fringe projection according to claim 1, characterized in that: The mask is a static optical quartz slice made by photolithography.

5. A spectral three-dimensional imaging system based on fringe projection, characterized in that: include: A spectral three-dimensional imaging device, comprising a projector, an imaging lens, a mask, an objective lens, a dispersion prism, a tube lens and a camera arranged along an optical path, wherein a three-dimensional imaging space for accommodating a three-dimensional sample is formed between the projector and the imaging lens, a sinusoidal fringe pattern is continuously projected onto a surface of a three-dimensional object to be measured by the projector, the imaging lens captures a light field of the three-dimensional object to be measured containing projection information of the sinusoidal fringe pattern, and images the light field on the mask to be encoded to obtain a coded image, the coded image is imaged on the dispersion prism through the objective lens to obtain a dispersion image, the dispersion image is imaged in the camera through the tube lens to obtain a two-dimensional compressed image, the camera acquires at least one two-dimensional compressed image at different time points, wherein the dispersion image is an image of different spectral bands with spatial dislocation; An image reconstruction unit is used to reconstruct a two-dimensional compressed image into a three-dimensional spectral image, wherein a pre-trained image reconstruction model is used to reconstruct each two-dimensional compressed image into at least two spectral images of different spectral channels, wherein the image reconstruction model uses snapshot compression imaging technology to reconstruct each two-dimensional compressed image to obtain spectral images of different spectral channels, and at least one spectral image of the same spectral channel is three-dimensionally reconstructed to obtain a three-dimensional spectral image, wherein different spectral images in the same spectral channel are used to calculate fringe phases, and a three-dimensional spectral image is obtained according to the fringe phases, and the three-dimensional spectral images of different spectral channels are integrated to form a three-dimensional spectral image set, wherein the number of three-dimensional spectral images in the three-dimensional spectral image set is the same as the number of spectral channels, and the number of spectral images in each spectral channel is the same as the number of two-dimensional compressed images.

6. An electronic device comprising a memory and a processor, characterized in that: The memory stores a computer program, and the processor is configured to run the computer program to execute the spectral three-dimensional imaging method based on fringe projection according to any one of claims 1 to 4.

7. A readable storage medium, characterized in that: The readable storage medium stores a computer program, wherein the computer program includes a program code for controlling a process to execute a process, wherein the process includes a spectral three-dimensional imaging method based on fringe projection according to any one of claims 1-4.

Citation Information

Patent Citations

  • Structured light three-dimensional measurement method for encoding fringe level based on phase shift amount

    CN109974626A

  • Single-exposure compression hyperspectral imaging system and method

    CN116183522A