Mobile phone depth camera 3D scanning system based on infrared dot matrix distance measurement
By using infrared lattice ranging technology in the 3D scanning system of the mobile phone's depth camera, combined with illumination information and jitter analysis, screening and processing of infrared light points solves the problem of scanning accuracy of the mobile phone's depth camera under changing backgrounds and jitter, and achieves a better Efficient 3D image generation.
Patent Information
- Application Number
- CN202410674639.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2024-09-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing mobile phone depth camera 3D scanning system based on infrared ranging technology is difficult to completely solve the problems of interference signals and noise when dealing with changing background infrared light and handheld device jitter, resulting in a decrease in imaging accuracy.
A mobile phone depth camera 3D scanning system based on infrared dot matrix ranging is used, including a projection distribution module, a capture acquisition module and a calibration verification module. The infrared light points are analyzed and filtered through illumination information and imaging information, and the depth information is calculated using triangulation. , and integrate it into three-dimensional point cloud data, eliminating unusable infrared light points to improve scanning accuracy.
By analyzing the lighting conditions and jitter status during the scanning process, the data processing pressure is reduced, the accuracy of 3D image generation is improved, the data complexity of 3D reconstruction is alleviated, and fast and accurate 3D scanning is achieved.
Smart Images

Figure CN118655548A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer vision technology, and more specifically, to a mobile phone depth camera 3D scanning system based on infrared dot matrix ranging. Background Art
[0002] The mobile phone depth camera 3D scanning system is a system that uses optical technology to capture and measure the three-dimensional shape of an object. It is used on the front or rear camera of the mobile phone for functions such as facial recognition and augmented reality. The existing mobile phone depth camera 3D scanning based on infrared ranging technology can avoid infrared light interference under strong light background, but it still cannot completely solve the 3D scanning combined with the changing background infrared light and the jitter of the handheld device. During the scanning process, the jitter signal is filtered and the strong light background is denoised. It is very likely that the interference signal is not eliminated thoroughly enough, or too many effective signals are eliminated, resulting in a decrease in imaging accuracy. Screening the effective infrared light points of the infrared dot matrix can make up for the defects of incomplete or excessive filtering.
[0003] In order to solve the above defects, a technical solution is now proposed. Summary of the invention
[0004] The purpose of the present invention is to provide a mobile phone depth camera 3D scanning system based on infrared dot matrix ranging to solve the deficiencies in the background technology.
[0005] In order to achieve the above-mentioned object, the present invention provides the following technical solutions: a 3D scanning system of a mobile phone depth camera based on infrared dot matrix ranging, comprising a projection distribution module, a capture acquisition module, a calibration verification module, and a depth processing module;
[0006] The projection distribution module is used to start the infrared dot matrix projector of the mobile phone's depth camera 3D scanning system to cover the infrared light spots;
[0007] The capture module is used to capture infrared light spots reflected from the surface of an object using the infrared camera of the mobile phone's depth camera 3D scanning system;
[0008] The calibration verification module is used to analyze and classify infrared light spots according to illumination information and imaging information, filter infrared light spots in the scanned image, and remove unusable infrared light spots;
[0009] The depth processing module is used to calculate the depth information of the infrared light spots according to the deformation of the infrared light spots by using the triangulation method, and integrate the depth information of the infrared light spots into three-dimensional point cloud data.
[0010] Preferably, the illumination information includes the infrared light spot efficiency coefficient and the overload coefficient, and the imaging information includes the jitter frequency and the jitter amplitude.
[0011] Preferably, the method for analyzing according to the illumination information is:
[0012] The infrared light spot efficiency coefficient is calibrated as Dme, the overload coefficient is Peo, the light noise analysis model is constructed, and the light noise transfer index Lnt is calculated. The calculation expression is Lnt = ln(|α1*Dme+α2*Peo|+1), where α1 and α2 are the weight coefficients of the infrared light spot efficiency coefficient and the overload coefficient, respectively, and α1 and α2 are both greater than 0;
[0013] The reflection intensity of the reflected infrared light spot is set with a highlight upper limit Hr and a shadow lower limit Sr, and the reflection intensity of the highlight upper limit is greater than the reflection intensity of the shadow lower limit. The reflection intensity of the infrared light spot is calibrated as Re. When the reflection intensity Re of the infrared light spot is greater than the highlight upper limit Hr, the infrared light spot is marked as a highlight light spot. When the reflection intensity Re of the infrared light spot is less than the shadow lower limit Sr, the infrared light spot is marked as a shadow light spot. The total number of infrared light spots emitted by the infrared dot matrix projector is Tor, the number of infrared photoelectric reflections received by the infrared camera is Tae, the number of highlight light spots is Reh, and the number of shadow light spots is Res. The calculation expression of the infrared light spot efficiency coefficient is:
[0014] The infrared dot matrix projector is turned on periodically. During the off period of the infrared dot matrix projector, the infrared camera captures the infrared reflection intensity of the target object. The peak intensity of the reflection signal captured by the infrared camera is Rp. r is the number of the infrared scanning image, and r = {1, 2, 3…t}. The total area of the infrared reflection area of the target object in the calibrated infrared scanning image is Ar. The area of the area where the reflection signal reaches the peak intensity Rp in the infrared reflection area of the target object is Or. Where t is a positive integer, the calculation expression of the overload coefficient is:
[0015] Preferably, the method for analyzing according to the imaging information is:
[0016] The jitter frequency of the mobile phone depth camera in infrared scanning is calibrated as Jf, and the jitter amplitude is Ja. The stable depth index Sd of the infrared scanning image is calculated. The expression is Sd = β1*Jf+β2*Ja, where β1 and β2 are the weight coefficients of the jitter frequency and jitter amplitude, respectively, and both β1 and β2 are greater than 0;
[0017] The jitter frequency and jitter amplitude are obtained through the built-in sensors of the mobile phone, including accelerometer and gyroscope.
[0018] Preferably, the logic for screening infrared light spots in the scanned image according to the illumination information and the imaging information is:
[0019] When the light noise transfer index Lnt is less than the light noise transfer threshold Lm, and the stable depth index Sd is greater than the stable depth threshold Sn, the infrared scanning image is marked as an unbalanced and unstable image, and all infrared light spots of the infrared scanning image are removed;
[0020] When the light noise transfer index Lnt is greater than or equal to the light noise transfer threshold Lm and the stable depth index Sd is greater than the stable depth threshold Sn, and when the light noise transfer index Lnt is less than the light noise transfer threshold Lm and the stable depth index Sd is less than or equal to the stable depth threshold Sn, the infrared scanning image is marked as a critical image, and the highlight points and shadow points of the infrared scanning image are removed;
[0021] When the illumination noise transfer index Lnt is greater than or equal to the illumination noise transfer threshold Lm, and the stable depth index Sd is less than or equal to the stable depth threshold Sn, the infrared scanning image is marked as an accurate image, and all infrared light spots of the infrared scanning image are retained.
[0022] Preferably, the logic of calculating the depth information of the infrared light point using triangulation is:
[0023] Depth ranging is performed based on the retained light spots of the critical image and all the infrared light spots of the precise image. The captured infrared dot matrix image is processed to identify the pixel coordinates of each infrared light spot in the camera image plane. The identified infrared light spots are matched with the preset ideal dot matrix pattern to determine the identity of each infrared light spot. The disparity d of each infrared light spot is calculated through the pixel coordinates in the image plane. The disparity is the horizontal displacement between the emission point and the capture point. The depth distance S of each light spot is calculated using triangulation. The calculation expression is: Where Bd is the distance between the infrared dot matrix projector and the infrared camera, Fl is the focal length of the infrared camera, and d is the parallax of the infrared light spot.
[0024] Preferably, the method of integrating the depth information of the infrared light spot into three-dimensional point cloud data is:
[0025] According to the parameters of the infrared camera, the depth value of each pixel is projected into three-dimensional space. After the three-dimensional point cloud is generated, the mesh is generated and optimized. The point cloud data is reconstructed into a three-dimensional surface mesh using a surface reconstruction algorithm or a triangulation algorithm, and the generated mesh model is optimized.
[0026] In the above technical solution, the technical effects and advantages provided by the present invention are:
[0027] This application analyzes the lighting conditions and jitter status during the scanning process, classifies the captured infrared light spots, eliminates unusable infrared light spots, reduces data processing pressure, alleviates the data complexity of three-dimensional reconstruction, and can greatly improve the generation accuracy of three-dimensional images while performing fast three-dimensional scanning. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0029] Figure 1 It is a system module diagram of the present invention. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0031] Example 1
[0032] See also Figure 1 As shown, the present invention is a mobile phone depth camera 3D scanning system based on infrared dot matrix ranging, including a projection distribution module, a capture acquisition module, a calibration verification module, and a depth processing module;
[0033] The projection distribution module is used to start the infrared dot matrix projector of the mobile phone's depth camera 3D scanning system to cover the infrared light spots;
[0034] The capture module is used to capture infrared light spots reflected from the surface of an object using the infrared camera of the mobile phone's depth camera 3D scanning system;
[0035] The calibration verification module is used to classify infrared light spots according to illumination information and imaging information, filter infrared light spots in the scanned image, and remove unusable infrared light spots;
[0036] The depth processing module is used to calculate the depth information of the infrared light spots according to the deformation of the infrared light spots by using the triangulation method, and integrate the depth information of the infrared light spots into three-dimensional point cloud data.
[0037] The mobile phone depth camera contains an infrared transmitter, which can emit infrared light. The infrared transmitter decomposes the infrared light into a series of regular infrared dot arrays through specific optical elements. The infrared dot arrays are arranged in a grid or dot pattern. The infrared dot arrays are evenly projected onto the target object through the optical elements and cover the entire surface of the target object. The projected infrared dot arrays have regular patterns. The regular patterns will be deformed due to the undulations and shapes of the object surface when reflected back to the infrared camera. The infrared camera of the mobile phone depth camera is responsible for capturing the reflected infrared dot array images. The infrared camera and the infrared transmitter are integrated into the same component. The emission and capture of the infrared dot arrays are performed synchronously to ensure that the position and shape of each reflected light point can be accurately captured.
[0038] It should be noted that the infrared transmitter is a laser diode or a light emitting diode that can emit light signals of infrared wavelengths, and the optical element can be an optical lens or a grating;
[0039] 3D scanning with a mobile phone depth camera is based on infrared light reflecting off a target object to obtain depth information of the target object. If there is interference from other infrared light sources in the scanning environment, it will have a great impact on the infrared dot matrix ranging of the mobile phone depth camera. Typical application scenarios include 3D scanning of target objects exposed to direct sunlight outdoors. Sunlight contains a large amount of infrared light. If the ambient light is too strong, the infrared light of the sunlight will overlap with the infrared light emitted by the mobile phone camera under direct sunlight. The infrared component in the strong ambient light will increase the background noise. The overlapping infrared light will interfere with the reflected infrared light dot matrix captured by the camera. The infrared camera will find it difficult to distinguish between the infrared dot matrix emitted by itself and the infrared signal emitted by the background light source. Excessive background infrared light will cause the infrared camera to receive infrared light. The dot matrix signal is submerged in the background noise, which reduces the signal-to-noise ratio and affects the accuracy of depth measurement. At the same time, the sensor of the infrared camera is designed to detect infrared light within a specific intensity range. In a strong light environment, the surface of the target object will reflect more infrared light signals, which complicates the reflection path of the infrared dot matrix. Multiple reflections and scattering make it difficult for the infrared camera to accurately capture the infrared dot matrix reflected from the surface of the object. The ambient infrared light intensity is too high, causing the sensor to be overloaded or saturated, and unable to correctly capture and process the reflected signal of the infrared dot matrix. In addition, the infrared dot matrix diffuses and decays faster on the surface of the object under an overly strong ambient light background. Diffusion and attenuation weaken the reflected signal, making it difficult for the camera to capture a clear dot matrix image, which in turn affects the accuracy of depth measurement.
[0040] On the other hand, the mobile phone depth camera is a component attached to the mobile phone. The user holds the mobile phone and uses the mobile phone depth camera to scan the target object. However, it is difficult to keep the handheld device completely stable. Hand shaking will cause the captured image and depth data to be unstable, blurry or erroneous. During the scanning process of the target object, the instability in movement will cause discontinuous data capture, affecting the integrity and accuracy of the 3D model. If the movement speed is too fast, the speed changes unevenly, and the scanning angle changes too quickly, the camera will not be able to capture enough depth information, resulting in data loss.
[0041] When the phone shakes, the image and depth information captured by the camera may be intermittent or lost. Some areas may lack depth data during the scanning process, resulting in holes or gaps in the 3D model. Rapid shaking can cause blurred images and depth data, especially at slow shutter speeds. Blurred data makes the details of the 3D model unclear, affecting accuracy and quality. Jitter can cause the captured point cloud data to shift and deform, and the generated 3D model geometry to be distorted, which cannot accurately reflect the true shape of the object. Parallax is the key to depth calculation. Jitter can cause the camera to be unstable when capturing infrared dot matrix, which in turn affects parallax calculation and causes parallax calculation errors. It will directly lead to inaccurate depth information and affect the accuracy of the overall 3D reconstruction. In the process of multi-frame data registration and alignment, jitter will increase the inconsistency between different frames, making it difficult to perform accurate registration. Misalignment and misalignment will occur when multi-frame data is synthesized, affecting the integrity and accuracy of the final 3D model. Jitter will introduce additional motion noise, causing the original depth data to contain more errors and noise. Increased noise will affect the smoothness and accuracy of the 3D model, and post-processing steps must be performed to reduce noise and correct it. Jitter may force users to slow down the scanning speed or scan certain areas repeatedly, increasing scanning time and user operation difficulty, reducing scanning efficiency, and worsening user experience.
[0042] Classify infrared light spots according to illumination information and imaging information, and remove invalid infrared light spots to improve noise reduction and alleviate the pressure of depth data modeling of mobile phone depth cameras;
[0043] The illumination information includes the infrared light spot efficiency coefficient and the overload coefficient. The infrared light spot efficiency coefficient is calibrated as Dme and the overload coefficient is Peo. The illumination noise analysis model is constructed to calculate the illumination noise transfer index Lnt. The calculation expression is Lnt = ln(|α1*Dme+α2*Peo|+1), where α1 and α2 are the weight coefficients of the infrared light spot efficiency coefficient and the overload coefficient, respectively, and both α1 and α2 are greater than 0.
[0044] The reflection intensity of the reflected infrared light spot is set with a highlight upper limit Hr and a shadow lower limit Sr, and the reflection intensity of the highlight upper limit is greater than the reflection intensity of the shadow lower limit. The reflection intensity of the infrared light spot is calibrated as Re. When the reflection intensity Re of the infrared light spot is greater than the highlight upper limit Hr, the infrared light spot is marked as a highlight light spot. When the reflection intensity Re of the infrared light spot is less than the shadow lower limit Sr, the infrared light spot is marked as a shadow light spot. The total number of infrared light spots emitted by the infrared dot matrix projector is Tor, the number of infrared photoelectric reflections received by the infrared camera is Tae, the number of highlight light spots is Reh, and the number of shadow light spots is Res. The calculation expression of the infrared light spot efficiency coefficient is:
[0045] The infrared dot matrix projector is turned on periodically. During the off period of the infrared dot matrix projector, the infrared camera captures the infrared reflection intensity of the target object. The peak intensity of the reflection signal captured by the infrared camera is Rp. r is the number of the infrared scanning image, and r = {1, 2, 3…t}. The total area of the infrared reflection area of the target object in the calibrated infrared scanning image is Ar. The area of the area where the reflection signal reaches the peak intensity Rp in the infrared reflection area of the target object is Or. Where t is a positive integer, the calculation expression of the overload coefficient is:
[0046] The imaging information includes the jitter frequency and jitter amplitude. The jitter frequency of the mobile phone depth camera in the infrared scan is calibrated as Jf, and the jitter amplitude is Ja. The stable depth index Sd of the infrared scan image is calculated. The expression is Sd = β1*Jf+β2*Ja, where β1 and β2 are the weight coefficients of the jitter frequency and jitter amplitude, respectively, and both β1 and β2 are greater than 0.
[0047] The jitter frequency and amplitude are obtained through the built-in sensors of the mobile phone, including accelerometers and gyroscopes. The accelerometer is used to measure linear acceleration, that is, the movement acceleration of the mobile phone in all directions. The three-axis accelerometer can detect the acceleration changes in the three directions of X, Y and Z. The gyroscope is used to measure angular velocity, that is, the rotation rate of the mobile phone around each axis. The three-axis gyroscope can detect the rotation rate around the X, Y and Z axes.
[0048] The data of the accelerometer and the gyroscope are collected at a high frequency. According to the real-time collection of the X, Y and Z axis data of the accelerometer and the X, Y and Z axis data of the gyroscope, the collected raw data are filtered and the noise is removed to extract effective jitter information. The noise removal includes low-pass filtering and high-pass filtering. The acceleration and angular velocity data in the time domain are converted to the frequency domain through frequency domain analysis. The main jitter frequency can be determined by analyzing the spectrum peak in the frequency domain, and the main jitter frequency component is extracted therefrom. The power spectrum density is calculated to analyze the energy of each frequency component, and the significant jitter frequency and amplitude are extracted therefrom. According to the change amplitude of the acceleration and angular velocity, the amplitude information of the jitter is calculated. For the accelerometer data, the standard deviation or root mean square value of the acceleration change is calculated. The accelerometer data is time-integrated to calculate the velocity and displacement so as to analyze the jitter of the lower frequency. For the gyroscope data, the amplitude of the angular velocity change is calculated. The gyroscope data is time-integrated to calculate the rotation angle so as to analyze the amplitude and frequency of the rotation jitter.
[0049] Preset the light noise transfer threshold Lm, compare the calculated light noise transfer index Lnt with the light noise transfer threshold, preset the stable depth threshold Sn, compare the calculated stable depth index Sd with the stable depth threshold, and classify and mark the validity of the infrared scanning image;
[0050] When the light noise transfer index Lnt is less than the light noise transfer threshold Lm, and the stable depth index Sd is greater than the stable depth threshold Sn, the infrared scanning image is marked as an unbalanced and unstable image, and all infrared light spots of the infrared scanning image are removed;
[0051] When the light noise transfer index Lnt is greater than or equal to the light noise transfer threshold Lm and the stable depth index Sd is greater than the stable depth threshold Sn, and when the light noise transfer index Lnt is less than the light noise transfer threshold Lm and the stable depth index Sd is less than or equal to the stable depth threshold Sn, the infrared scanning image is marked as a critical image, and the highlight points and shadow points of the infrared scanning image are removed;
[0052] When the light noise transfer index Lnt is greater than or equal to the light noise transfer threshold Lm, and the stable depth index Sd is less than or equal to the stable depth threshold Sn, the infrared scanning image is marked as an accurate image, and all infrared light spots of the infrared scanning image are retained;
[0053] Depth ranging is performed based on the retained light spots of the critical image and all the infrared light spots of the precise image. The captured infrared dot matrix image is processed to identify the pixel coordinates of each infrared light spot in the camera image plane. The identified infrared light spots are matched with the preset ideal dot matrix pattern to determine the identity of each infrared light spot. The disparity d of each infrared light spot is calculated through the pixel coordinates in the image plane. The disparity is the horizontal displacement between the emission point and the capture point. The depth distance S of each light spot is calculated using triangulation. The calculation expression is: Where Bd is the distance between the infrared dot matrix projector and the infrared camera, Fl is the focal length of the infrared camera, and d is the parallax of the infrared light spot;
[0054] The depth information of each light point is combined into a depth map to represent the three-dimensional structure of the object surface, and the depth map is post-processed. The post-processing process includes:
[0055] Denoising: Apply filters to smooth the depth map and remove random noise. The filters include mean filtering, median filtering, and Gaussian filtering. You can also use bilateral filtering to retain edge features while smoothing the depth map. The bilateral filter takes into account the spatial relationship and intensity differences between pixels, and can effectively reduce noise without blurring the edges.
[0056] Fill missing data: Use neighboring pixel values for interpolation filling, such as linear interpolation, spline interpolation, etc. You can also use image restoration algorithms, such as texture-based restoration or Laplace equation-based restoration, for complex filling;
[0057] Smoothing: Use the mean algorithm to reduce sharp changes in the depth map and generate smooth and continuous depth data. The Laplace operator can be used to iteratively smooth the depth map to reduce high-frequency noise. The depth map can also be smoothed by calculating the mean of the local neighborhood.
[0058] Alignment and stitching: Accurate alignment is achieved by iteratively minimizing the distance between two sets of point clouds, or by using feature point matching and global optimization methods to align and stitch multi-view depth maps, align and stitch data from different viewpoints or frames, and generate a complete 3D model.
[0059] Edge preservation and detail enhancement: Use edge detection operators to preserve edges and identify important edges. After smoothing, use the detected edge information to enhance important edges and details.
[0060] Point cloud conversion: According to the parameters of the infrared camera, the depth value of each pixel is projected into three-dimensional space to generate a three-dimensional point cloud;
[0061] Mesh generation and optimization: Use Poisson surface reconstruction or Delaunay triangulation algorithm to reconstruct point cloud data into a 3D surface mesh, optimize the generated mesh model, reduce redundant faces and vertices, and improve model quality and rendering efficiency.
[0062] This application analyzes the lighting conditions and jitter status during the scanning process, classifies the captured infrared light spots, eliminates unusable infrared light spots, reduces data processing pressure, alleviates the data complexity of three-dimensional reconstruction, and can greatly improve the generation accuracy of three-dimensional images while performing fast three-dimensional scanning.
[0063] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters in the formula are set by technicians in this field according to actual conditions.
[0064] The above embodiments can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented by software, the above embodiments can be implemented in whole or in part in the form of computer program goods. The computer program goods include one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.
[0065] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0066] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0067] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0068] If the functions are implemented in the form of software functional units and sold or used as independent goods, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of software goods, which are stored in a storage medium and include several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.
[0069] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A mobile phone depth camera 3D scanning system based on infrared dot matrix ranging, characterized in that: It includes projection distribution module, capture acquisition module, calibration verification module and depth processing module; The projection distribution module is used to start the infrared dot matrix projector of the mobile phone's depth camera 3D scanning system to cover the infrared light spots; The capture module is used to capture infrared light spots reflected from the surface of an object using the infrared camera of the mobile phone's depth camera 3D scanning system; The calibration verification module is used to analyze and classify infrared light spots according to illumination information and imaging information, filter infrared light spots in the scanned image, and remove unusable infrared light spots; The depth processing module is used to calculate the depth information of the infrared light spots according to the deformation of the infrared light spots by using the triangulation method, and integrate the depth information of the infrared light spots into three-dimensional point cloud data.
2. The mobile phone depth camera 3D scanning system based on infrared dot matrix ranging according to claim 1 is characterized in that: The illumination information includes the infrared light spot efficiency coefficient and overload coefficient, and the imaging information includes the jitter frequency and jitter amplitude.
3. The mobile phone depth camera 3D scanning system based on infrared dot matrix ranging according to claim 2 is characterized in that: The method for analyzing based on lighting information is: The infrared light spot efficiency coefficient is calibrated as Dme, the overload coefficient is Peo, the light noise analysis model is constructed, and the light noise transfer index Lnt is calculated. The calculation expression is Lnt = ln(|α1*Dme+α2*Peo|+1), where α1 and α2 are the weight coefficients of the infrared light spot efficiency coefficient and the overload coefficient, respectively, and α1 and α2 are both greater than 0; The reflection intensity of the reflected infrared light spot is set with a highlight upper limit Hr and a shadow lower limit Sr, and the reflection intensity of the highlight upper limit is greater than the reflection intensity of the shadow lower limit. The reflection intensity of the infrared light spot is calibrated as Re. When the reflection intensity Re of the infrared light spot is greater than the highlight upper limit Hr, the infrared light spot is marked as a highlight light spot. When the reflection intensity Re of the infrared light spot is less than the shadow lower limit Sr, the infrared light spot is marked as a shadow light spot. The total number of infrared light spots emitted by the infrared dot matrix projector is Tor, the number of infrared photoelectric reflections received by the infrared camera is Tae, the number of highlight light spots is Reh, and the number of shadow light spots is Res. The calculation expression of the infrared light spot efficiency coefficient is: The infrared dot matrix projector is turned on periodically. During the off period of the infrared dot matrix projector, the infrared camera captures the infrared reflection intensity of the target object. The peak intensity of the reflection signal captured by the infrared camera is Rp. r is the number of the infrared scanning image, and r = {1, 2, 3…t}. The total area of the infrared reflection area of the target object in the calibrated infrared scanning image is Ar. The area of the area where the reflection signal reaches the peak intensity Rp in the infrared reflection area of the target object is Or. Where t is a positive integer, the calculation expression of the overload coefficient is:
4. The mobile phone depth camera 3D scanning system based on infrared dot matrix ranging according to claim 2 is characterized in that: The method of analysis based on imaging information is: The jitter frequency of the mobile phone depth camera in infrared scanning is calibrated as Jf, and the jitter amplitude is Ja. The stable depth index Sd of the infrared scanning image is calculated. The expression is Sd = β1*Jf+β2*Ja, where β1 and β2 are the weight coefficients of the jitter frequency and jitter amplitude, respectively, and both β1 and β2 are greater than 0; The jitter frequency and jitter amplitude are obtained through the built-in sensors of the mobile phone, including accelerometer and gyroscope.
5. The mobile phone depth camera 3D scanning system based on infrared dot matrix ranging according to claim 4 is characterized in that: The logic for filtering infrared light spots in the scanned image based on illumination information and imaging information is as follows: When the light noise transfer index Lnt is less than the light noise transfer threshold Lm, and the stable depth index Sd is greater than the stable depth threshold Sn, the infrared scanning image is marked as an unbalanced and unstable image, and all infrared light spots of the infrared scanning image are removed; When the light noise transfer index Lnt is greater than or equal to the light noise transfer threshold Lm and the stable depth index Sd is greater than the stable depth threshold Sn, and when the light noise transfer index Lnt is less than the light noise transfer threshold Lm and the stable depth index Sd is less than or equal to the stable depth threshold Sn, the infrared scanning image is marked as a critical image, and the highlight points and shadow points of the infrared scanning image are removed; When the illumination noise transfer index Lnt is greater than or equal to the illumination noise transfer threshold Lm, and the stable depth index Sd is less than or equal to the stable depth threshold Sn, the infrared scanning image is marked as an accurate image, and all infrared light spots of the infrared scanning image are retained.
6. The mobile phone depth camera 3D scanning system based on infrared dot matrix ranging according to claim 5 is characterized in that: The logic of calculating the depth information of infrared light points using triangulation is: Depth ranging is performed based on the retained light spots of the critical image and all the infrared light spots of the precise image. The captured infrared dot matrix image is processed to identify the pixel coordinates of each infrared light spot in the camera image plane. The identified infrared light spots are matched with the preset ideal dot matrix pattern to determine the identity of each infrared light spot. The disparity d of each infrared light spot is calculated through the pixel coordinates in the image plane. The disparity is the horizontal displacement between the emission point and the capture point. The depth distance S of each light spot is calculated using triangulation. The calculation expression is: Where Bd is the distance between the infrared dot matrix projector and the infrared camera, Fl is the focal length of the infrared camera, and d is the parallax of the infrared light spot.
7. The mobile phone depth camera 3D scanning system based on infrared dot matrix ranging according to claim 6, characterized in that: The method of integrating the depth information of infrared light points into three-dimensional point cloud data is: According to the parameters of the infrared camera, the depth value of each pixel is projected into three-dimensional space. After the three-dimensional point cloud is generated, the mesh is generated and optimized. The point cloud data is reconstructed into a three-dimensional surface mesh using a surface reconstruction algorithm or a triangulation algorithm, and the generated mesh model is optimized.
Citation Information
Cited By
Method and system for measuring geological exploration rock-soil depth
CN119469041A
Field number identification method and device
CN120954008A
