Three-dimensional imaging processing system, method and device, electronic equipment and storage medium
Through the combination of event cameras and projectors, epipolar constraints and parallax constraints are used to filter the event flow in the unconstrained interval, solving the problems of strong ambient light and multiple reflection interference in 3D imaging, and improving the quality and reliability of 3D imaging. .
Patent Information
- Application Number
- CN202310346179.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-03
- Publication Date
- 2024-10-15
AI Technical Summary
Existing 3D imaging technology is difficult to effectively eliminate multipath interference when faced with strong ambient light and multiple reflections, affecting the quality and reliability of 3D point clouds. Moreover, existing methods require a large number of projection patterns or strict hardware constraints, which limits the its application.
Using a combination of event cameras and projectors, projection patterns are collected through event streams, and epipolar constraints and parallax constraints are used to filter event streams in unconstrained intervals to generate high-quality point cloud coordinates to achieve strong ambient light and multiple Reflective anti-interference.
It effectively resists ambient light and multiple reflection interference, improves the quality and reliability of three-dimensional imaging, reduces the number of projection patterns and the need for hardware constraints, and improves the system's anti-interference capability.
Smart Images

Figure CN118781256A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer vision technology, and in particular to a three-dimensional imaging processing system, method, device, electronic equipment and storage medium. Background Art
[0002] In the past decade, AGV navigation and other applications require 3D sensors to help robots perceive the environment. However, in many scenarios, there are interferences that affect the quality of the 3D point cloud and prevent the robot from making correct decisions. For example, strong ambient light will significantly reduce the range and accuracy of 3D sensing; smooth surfaces such as marble and mirrors cause multiple reflections in the scene, resulting in erroneous parts on the point cloud. These problems seriously affect the reliability of 3D sensors. Existing elimination methods can be divided into three working principles: light transmission matrix, adaptive projection, and epipolar alignment.
[0003] The optical transmission matrix method eliminates multipath interference from the retrieved optical transmission coefficients. The optical transmission coefficient for each pixel is obtained by projecting a large number of Fourier patterns. By applying an epipolar constraint to the optical transmission coefficient, the direct path and multipath of the reflection can be distinguished. However, since one pattern can only obtain one component in the frequency domain, the number of projected patterns is related to the complexity of the scene. A regular scene often requires many patterns, such as 1,036,800. The position of the object to be measured in the field of view is determined based on the rough measurement results, and only the position is encoded and projected to reduce the number of projections. However, tens of thousands of projection patterns are still required to obtain better measurement results.
[0004] The adaptive projection method eliminates multipath interference by adjusting the projection pattern to avoid multiple reflections. Assuming that multiple reflections are usually caused by partial projection patterns, one line is projected at a time to determine which lines produce multipath. Then they project complementary projection patterns to avoid inter-regional multipath interference. However, the number of projected patterns ranges from hundreds to thousands because the method requires the number of patterns to be equal to the resolution of the projector. In addition, when there are multiple reflective surfaces in the scene, the projection patterns used for 3D reconstruction will also increase proportionally. A single column of stripe patterns is projected with a DMD projector to form an active binocular system. Although the system can distinguish multipath line by line, more than 1,000 patterns are projected depending on the required spatial resolution.
[0005] The ideal epipolar imaging model can effectively overcome the interference of strong ambient light. For an imaging system that has undergone strict hardware epipolar correction, each horizontal straight line scanned by the projector corresponds to a horizontal epipolar line on the camera imaging plane. The line scan of the rolling shutter camera can obtain the acquisition of a single epipolar line, thereby suppressing the interference of ambient light. However, since the rolling shutter camera can only scan line by line, and the system hardware cannot be adjusted to perfect epipolar leveling, the camera needs to shoot multiple lines to stably capture the projection area, resulting in a decrease in the ability to resist ambient light interference. On the other hand, once the imaging hardware posture changes, the hardware needs to be readjusted to the correction state, and the epipolar relationship cannot be corrected by calibration. The fragility of the hardware restricts the application of this method in actual scenarios.
[0006] As can be seen from the above, existing methods usually need to introduce a large number of additional projection patterns or strict rotation and displacement constraints when performing multipath elimination on three-dimensional imaging. They are unable to combat the impact of strong ambient light and multiple reflections. Summary of the invention
[0007] In view of the problems existing in the prior art, the present invention provides a three-dimensional imaging processing system, method, device, electronic equipment and storage medium.
[0008] In a first aspect, the present invention provides a three-dimensional imaging processing system, comprising:
[0009] It includes an event camera, a projector including a laser and a galvanometer, and a controller, wherein:
[0010] The projector is used to scan a target scene to produce a projection pattern;
[0011] The event camera is used to collect the projection pattern reflected by the target scene in the form of event stream;
[0012] The controller is used to:
[0013] Determine that a pulse signal synchronously emitted when the projector projects the first pixel is received, record the initial timestamp of the event stream, determine each timestamp projected by the projector based on the initial timestamp and a preset projection pixel frequency, and obtain the projection pixel corresponding to each timestamp;
[0014] Determine the valid coordinate interval on the camera plane at each timestamp based on the coordinates of the projection pixel corresponding to each timestamp on the projector plane, and preset limit constraints and parallax constraints, and filter out the event stream outside the valid coordinate interval;
[0015] Accumulating events in the event streams retained at each time stamp to obtain a projection pattern, and determining an adjustment parallax based on the projection pattern;
[0016] The point cloud coordinates of the projection pixel are determined according to the adjusted parallax and the coordinates of the projection pixel corresponding to each time stamp on the projector plane, and a three-dimensional image is generated according to the point cloud coordinates.
[0017] In one embodiment, the controller, in the process of determining to adjust the parallax based on the projection pattern, is specifically configured to:
[0018] determining a wrap phase and a Gray code encoding value based on the projection pattern;
[0019] determining an unwrapping phase according to the wrapping phase and the Gray code encoding value;
[0020] Binocular matching is performed according to the unwrapped phase and a preset projector phase to obtain an adjusted parallax.
[0021] In one embodiment, the controller, in the process of determining the wrapping phase and the Gray code value based on the projection pattern, is specifically configured to:
[0022] Based on the projection pattern, the following calculation formula is used to determine the winding phase and the Gray code encoding value;
[0023]
[0024]
[0025] Where N is the number of projection patterns, I m is the gray value at the projection pixel position of the mth projection pattern; φ wtap is the winding phase; Gray code encoding values are G0, G1, ..., G M-1 .
[0026] In one embodiment, the controller, during the process of determining the unwrapping phase according to the wrapping phase and the Gray code value, is specifically configured to:
[0027] Determine the unwinding phase using the following calculation formula according to the wrapping phase and the Gray code encoding value;
[0028]
[0029] Among them, φ unwrap is the unwinding phase, φ wrap is the winding phase.
[0030] In one embodiment, the limit constraint condition includes: the projector scans a line with a y-direction height of y and an x-direction interval of [-x, x] on the calibrated plane, and the corresponding y-direction threshold interval on the calibrated camera plane is [y-kx, y+kx];
[0031] in, f is the focal length of the projector, is the angle between the projector plane and the epipolar line.
[0032] In one embodiment, the parallax constraint condition includes: the projection pixel is on the calibrated projection plane coordinate (x, y), and the y coordinate of the event camera on the calibrated plane at the current timestamp is y, and the x coordinate interval is Wherein, d0 is the reference parallax, and Δd is the parallax range.
[0033] In a second aspect, the present invention provides a three-dimensional imaging processing method based on the above three-dimensional imaging processing system, comprising:
[0034] Determine that a pulse signal synchronously emitted when the projector projects the first pixel is received, record the initial timestamp of the event stream, determine each timestamp projected by the projector based on the initial timestamp and a preset projection pixel frequency, and obtain the projection pixel corresponding to each timestamp;
[0035] Determine the valid coordinate interval on the camera plane at each timestamp based on the coordinates of the projection pixel corresponding to each timestamp on the projector plane, and preset limit constraints and parallax constraints, and filter out the event stream outside the valid coordinate interval;
[0036] Accumulating events in the event streams retained at each time stamp to obtain a projection pattern, and determining an adjustment parallax based on the projection pattern;
[0037] The point cloud coordinates of the projection pixel are determined according to the adjusted parallax and the coordinates of the projection pixel corresponding to each time stamp on the projector plane, and a three-dimensional image is generated according to the point cloud coordinates.
[0038] In a third aspect, the present invention provides a three-dimensional imaging processing device, comprising:
[0039] An acquisition module, used to determine the pulse signal synchronously sent when the projector projects the first pixel, record the initial timestamp of the event stream, determine each timestamp projected by the projector based on the initial timestamp and a preset projection pixel frequency, and acquire the projection pixel corresponding to each timestamp;
[0040] A screening module, for determining a valid coordinate interval on the camera plane at each timestamp based on the coordinates of the projection pixel on the projector plane corresponding to each timestamp, and preset limit constraints and parallax constraints, and filtering out event streams outside the valid coordinate interval;
[0041] A calculation module, configured to accumulate events in the event streams retained at each time stamp to obtain a projection pattern, and determine an adjustment parallax based on the projection pattern;
[0042] A generating module is used to determine the point cloud coordinates of the projection pixel according to the adjusted parallax and the coordinates of the projection pixel corresponding to each timestamp on the projector plane, and generate a three-dimensional image according to the point cloud coordinates.
[0043] In a fourth aspect, the present invention provides an electronic device, comprising a memory and a memory storing a computer program, wherein the processor implements the steps of the above-mentioned three-dimensional imaging processing method when executing the program.
[0044] In a fifth aspect, the present invention provides a processor-readable storage medium, wherein the processor-readable storage medium stores a computer program, and the computer program is used to enable the processor to execute the steps of the above-mentioned three-dimensional imaging processing method.
[0045] The three-dimensional imaging processing system, method, device, electronic device and storage medium provided by the present invention use a combination of a projector and an event camera, wherein the projector scans a projection pattern in a scene, and the event camera captures the projection pattern reflected by the scene. The high dynamic characteristics of the event camera are used to resist ambient light, and an interval mapping between the actual projection area and the event camera plane is obtained through polar constraints and parallax constraints. After filtering out the event stream in the unconstrained interval, point cloud coordinates of pixels with good quality are generated based on the accumulation of the event stream to obtain the projection image, thereby achieving the effect of resisting interference from strong ambient light and multiple reflections. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0047] Figure 1 It is a structural schematic diagram of the three-dimensional imaging processing system provided by the present invention;
[0048] Figure 2 It is a schematic diagram of selecting a threshold for removing multiple reflections based on a projector angle provided by the present invention;
[0049] Figure 3 (a) is a schematic diagram of removing event flows from multiple reflections under linear constraints provided by the present invention;
[0050] Figure 3 (b) is a schematic diagram of removing event streams from multiple reflections under parallax constraints provided by the present invention;
[0051] Figure 4 It is a schematic diagram of a multiple reflection removal event stream at a certain timestamp provided by the present invention;
[0052] Figure 5 It is a comparison diagram of the multiple reflections provided by the present invention on the projection image before and after filtering;
[0053] Figure 6 It is a comparison diagram of multiple reflections provided by the present invention before and after filtering on the depth map;
[0054] Figure 7 It is a schematic flow chart of the three-dimensional imaging processing method provided by the present invention;
[0055] Figure 8 is a schematic structural diagram of a three-dimensional imaging processing device provided by the present invention;
[0056] Fig. 9 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0057] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are 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.
[0058] Figure 1 A schematic diagram of the structure of a three-dimensional imaging processing system provided by the present invention is shown in FIG. Figure 1 The three-dimensional imaging processing system includes an event camera 11, a projector including a laser light source 12 and a galvanometer 13, and a controller 14, wherein:
[0059] A projector, used for scanning a target scene to produce a projection pattern;
[0060] An event camera, used to collect the projection pattern reflected by the target scene in the form of an event stream;
[0061] Controller for:
[0062] Determine that a pulse signal synchronously sent when the projector projects the first pixel is received, record the initial timestamp of the event stream, determine each timestamp of the projector projection based on the initial timestamp and a preset projection pixel frequency, and obtain the projection pixel corresponding to each timestamp;
[0063] Based on the coordinates of the projected pixels corresponding to each timestamp on the projector plane, as well as the preset limit constraints and parallax constraints, the valid coordinate interval on the camera plane at each timestamp is determined, and the event stream outside the valid coordinate interval is filtered out;
[0064] Accumulating events in the event streams retained at each time stamp to obtain a projection pattern, and determining and adjusting the parallax based on the projection pattern;
[0065] The point cloud coordinates of the projection pixel are determined according to the adjusted parallax and the coordinates of the projection pixel corresponding to each time stamp on the projector plane, and a three-dimensional image is generated according to the point cloud coordinates.
[0066] Regarding the three-dimensional imaging processing system, it should be noted that the intelligent robot needs to perceive the environment when performing actions. However, in many scenarios, there is interference from ambient light and multiple reflections, which affects the quality of the robot's acquisition of three-dimensional point cloud coordinates. For this reason, the three-dimensional imaging processing system mentioned in the present invention can be applied to intelligent robots.
[0067] The present invention is a three-dimensional imaging processing system based on an event camera (DVS camera) and two-dimensional galvanometer scanning, which can achieve the effect of restoring a three-dimensional point cloud under the influence of strong ambient light and multiple reflections.
[0068] In the present invention, the projector includes a laser and a two-dimensional galvanometer. The laser is responsible for receiving the control signal of the controller to quickly adjust the output brightness, and the two-dimensional galvanometer is responsible for projecting the laser point row by row and column by column onto the target scene. The row scanning and column scanning frequencies of the two-dimensional galvanometer are controlled by the control board.
[0069] Taking a projector projecting an image of H*W pixels as an example, if the image frame rate is f, the column scanning frequency is H*f, the row scanning frequency is f, and the laser modulation frequency is H*W*f.
[0070] The DVS camera is a biomimetic sensor with a microsecond response time that records an asynchronous stream of brightness changes per pixel, called an "event". The event camera generates an event by detecting the brightness change of each pixel. It is more suitable for use in high-dynamic and high-speed environments, with the advantages of high dynamic range (HDR), high temporal resolution and no motion blur. Therefore, the DVS camera is responsible for receiving the projected pattern returned from the target scene in the form of an event stream.
[0071] Because DVS cameras do not have the concept of frames, synchronization can be achieved based on the first pixel projection signal of the laser and the timestamp returned by the DVS camera. The controller is responsible for outputting control signals to the laser, galvanometer, and DVS camera, and receiving and processing the event stream from the DVS camera.
[0072] In the present invention, the controller determines the pulse signal synchronously sent when the projector projects the first pixel, records the initial timestamp of the event stream, and can determine the various timestamps projected by the projector based on the initial timestamp and the preset projection pixel frequency, and obtain the projection pixels corresponding to each timestamp.
[0073] For example, when the laser and the galvanometer project the first pixel, a pulse signal is generated synchronously. After receiving the pulse signal, the controller immediately reads the current timestamp t0 from the event stream (x, y, p, t). If the projection pixel frequency is H*W*f, then it can be known that the timestamp of the projection of the Nth pixel is t0+N / (H*W*f). Different timestamps correspond to different projection pixels.
[0074] In the present invention, it is necessary to filter out the event stream under the influence of strong ambient light and multiple reflections. That is to say, under the influence of strong ambient light and multiple reflections, the event stream collected by the event camera will be more scattered and cannot be concentrated within the normal range. Therefore, it is necessary to reasonably filter out the scattered event stream.
[0075] In the present invention, based on the coordinates of the projection pixels corresponding to each timestamp on the projector plane, and preset limit constraints and parallax constraints, the valid coordinate interval on the camera plane at each timestamp is determined, and the event stream outside the valid coordinate interval is filtered out.
[0076] After the event stream is properly filtered out, the events in the event stream retained at each time stamp are accumulated to obtain a projection pattern, and the adjustment parallax is determined based on the projection pattern.
[0077] The point cloud coordinates of the projection pixel are determined according to the adjusted parallax and the coordinates of the projection pixel corresponding to each time stamp on the projector plane, and a three-dimensional image is generated according to the point cloud coordinates.
[0078] The three-dimensional imaging processing system provided by the present invention uses a combination of a projector and an event camera. The projector scans a projection pattern in a scene, and the event camera shoots the projection pattern reflected by the scene. The high dynamic characteristics of the event camera are used to resist ambient light. Through polar constraints and parallax constraints, an interval mapping between the actual projection area and the plane of the event camera is obtained. After filtering out the event stream in the unconstrained interval, the point cloud coordinates of pixels with good quality are generated based on the accumulation of the event stream to obtain the projection image, thereby achieving the effect of resisting strong ambient light and multiple reflection interference.
[0079] In a further system of the above system, the processing process of determining the valid coordinate interval on the camera plane at each timestamp based on the coordinates of the projected pixel corresponding to each timestamp on the projector plane, and the preset limit constraint condition and parallax constraint condition is explained as follows:
[0080] Remap the DVS pixel coordinates according to the epipolar correction. According to the epipolar correction algorithm, the projector can be operated by the rotation matrix R1 and the projection matrix P1, and the camera can be operated by the rotation matrix R2 and the projection matrix P2, so that the points on the same epipolar plane are located in the same row of the calibrated projector plane and camera plane. R1 and R2 can be 3*3 rotation matrices.
[0081] The projection matrices P1 and P2 are:
[0082]
[0083]
[0084] Where T x is the distance between the projector optical center and the camera optical center, c x , c y is the xy coordinate of the projector optical center, c' x , c' y is the xy coordinate of the camera optical center and the projector focal length f.
[0085] Therefore, no matter how far the scene point is, the corresponding point of a certain pixel of the projector in the camera can only appear in the corresponding row. However, in general, the scanning direction of the projector does not strictly follow the epipolar direction, and the DVS time resolution is not infinitely small. Figure 2 As shown, when the focal length of the projector is f, there is an angle between the projector plane and the polar line When , the coordinates of the endpoint of the scanning line at a height y from the optical center are:
[0086]
[0087] The coordinates of the endpoints projected onto the projector plane after being projected onto the binocular standard are:
[0088]
[0089] So the slope on the plane after polar calibration is:
[0090]
[0091] This means that if the projector scans a line with a y-direction height of y and an x-direction interval of [-x, x] on the calibrated plane within the minimum resolution time of the DVS, then the corresponding y-direction threshold interval on the calibrated camera plane is [y-kx, y+kx], and only multiple reflections outside this interval will be filtered out (e.g. Figure 3 (a)). Where f is the focal length of the projector, is the angle between the projector plane and the epipolar line.
[0092] In order to improve the multiple reflection filtering effect, a depth measurement range constraint can be added. Figure 3 As shown in (b), if the reference depth is z0, the depth range is Δz.
[0093] According to z=T x f / -[d-(c x -c' x )], the reference parallax d0 and parallax range Δd on the camera plane after calibration can be obtained, effectively reducing the size of the interval where multiple reflections cannot be filtered out.
[0094] Therefore, the projection pixel has the coordinates (x, y) on the projection plane after calibration, and the y coordinate of the event camera on the calibrated plane at the current timestamp is y, and the interval of the x coordinate is Wherein, d0 is the reference parallax, and Δd is the parallax range.
[0095] The current projected pixel of the projector is determined based on the timestamp, and multiple reflection filtering is performed on the event stream based on the epipolar constraints and parallax constraints of the projected pixel. First, the coordinates of the current projected pixel on the projector plane are calculated based on the synchronization signal and the projection frequency:
[0096]
[0097] Where H is the pixel height of the projector frame, W is the pixel width of the projector frame, and N is the pixel number of the current projection.
[0098] Then, according to the rotation matrix R1 of the epipolar correction and the projection matrix P1, the projection plane coordinates (x, y) of the projection pixel after calibration are calculated. Then, according to the parallax constraint, the y coordinate of the DVS camera on the calibrated plane at the current timestamp is y, and the x coordinate is All events outside the interval are filtered out, such as Figure 4 shown.
[0099] In the present invention, the processing process of the controller determining the adjustment of the parallax based on the projection pattern is explained, which is specifically used for:
[0100] determining a wrap phase and a Gray code encoding value based on the projected pattern;
[0101] Determine an unwrapping phase according to the wrapping phase and the Gray code encoding value;
[0102] Binocular matching is performed according to the unwrapped phase and the preset projector phase to obtain the adjusted parallax.
[0103] The events in the event stream are accumulated to obtain the projection pattern returned by the scene. The starting point of the accumulation time is usually set to the timestamp of the synchronization signal, and the accumulation time length is set to the period 1 / f of one projection frame. After obtaining the accumulated projection pattern, the wrapping phase and Gray code encoding value are calculated from N patterns according to the following calculation formula.
[0104]
[0105]
[0106] Where N is the number of projection patterns, I m is the gray value at the projection pixel position of the mth projection pattern; φ wtap is the winding phase; Gray code encoding values are G0, G1, ..., G M-1 .
[0107] The unwinding phase is then determined according to the following calculation formula.
[0108]
[0109] Among them, φ unwrap is the unwinding phase, φ wrap is the winding phase.
[0110] Binocular matching is performed according to the unwrapped phase and the preset projector phase to obtain the adjusted parallax.
[0111] See also Figure 5 , comparison of multiple reflections before and after filtering on the projection image.
[0112] See also Figure 6 ,Comparison of multiple reflections before and after filtering on the depth map.
[0113] The point cloud coordinates of the projection pixel are determined according to the coordinates of the projection pixel corresponding to each time stamp on the projector plane and a three-dimensional image is generated according to the point cloud coordinates.
[0114] For example, binocular matching is performed based on the calculated phase and the projector phase to calculate the adjusted parallax d, and then the point cloud coordinates (X, Y, Z) are calculated according to the following formula:
[0115]
[0116] Among them, the matrix Q is:
[0117]
[0118] The three-dimensional imaging processing method provided by the present invention is described below. The three-dimensional imaging processing method described below and the three-dimensional imaging processing system described above can be referred to each other.
[0119] Figure 7 A schematic flow chart of a three-dimensional imaging processing method based on the above three-dimensional imaging processing system provided by the present invention is shown. Figure 7 , the method comprising:
[0120] 71. Determine that a pulse signal synchronously sent when the projector projects the first pixel is received, record the initial timestamp of the event stream, determine each timestamp of the projector projection based on the initial timestamp and a preset projection pixel frequency, and obtain the projection pixel corresponding to each timestamp;
[0121] 72. Determine the valid coordinate interval on the camera plane at each timestamp based on the coordinates of the projection pixel corresponding to each timestamp on the projector plane, as well as the preset limit constraint and parallax constraint, and filter out the event stream outside the valid coordinate interval;
[0122] 73. Accumulate events in the event streams retained at each time stamp to obtain a projection pattern, and determine an adjustment parallax based on the projection pattern;
[0123] 74. Determine the point cloud coordinates of the projection pixel according to the adjusted parallax and the coordinates of the projection pixel corresponding to each timestamp on the projector plane, and generate a three-dimensional image according to the point cloud coordinates.
[0124] In a further method of the above method, adjusting the parallax based on the projection pattern is determined, comprising:
[0125] determining a wrap phase and a Gray code encoding value based on the projected pattern;
[0126] Determine an unwrapping phase according to the wrapping phase and the Gray code encoding value;
[0127] Binocular matching is performed according to the unwrapped phase and the preset projector phase to obtain the adjusted parallax.
[0128] In a further method of the above method, determining the wrapping phase and the Gray code encoding value based on the projection pattern includes:
[0129] Based on the projection pattern, the following calculation formula is used to determine the winding phase and Gray code encoding value;
[0130]
[0131]
[0132] Where N is the number of projection patterns, I mis the gray value at the projection pixel position of the mth projection pattern; φ wtap is the winding phase; Gray code encoding values are G0, G1, ..., G M-1 .
[0133] In a further method of the above method, determining the unwrapping phase according to the wrapping phase and the Gray code value comprises:
[0134] The unwinding phase is determined using the following calculation formula according to the winding phase and the Gray code encoding value;
[0135]
[0136] Among them, φ unwrap is the unwinding phase, φ wrap is the winding phase.
[0137] In a further method of the above method, the limit constraint condition includes: the projector scans a line with a y-direction height of y and an x-direction interval of [-x, x] on the calibrated plane, and the corresponding y-direction threshold interval on the calibrated camera plane is [y-kx, y+kx];
[0138] in, f is the focal length of the projector, is the angle between the projector plane and the epipolar line.
[0139] In a further method of the above method, the parallax constraint condition includes: the projection pixel is on the calibrated projection plane coordinate (x, y), and the y coordinate of the event camera on the calibrated plane at the current timestamp is y, and the x coordinate interval is Wherein, d0 is the reference parallax, and Δd is the parallax range.
[0140] Since the method described in the embodiment of the present invention has the same principle as the system described in the above embodiment, a more detailed explanation will not be repeated here.
[0141] The three-dimensional imaging processing method provided by the present invention uses a combination of a projector and an event camera, wherein the projector scans a projection pattern in a scene, and the event camera captures the projection pattern reflected by the scene. The high dynamic characteristics of the event camera are used to resist ambient light, and an interval mapping between an actual projection area and an event camera plane is obtained through polar constraints and parallax constraints. After filtering out the event stream in the non-constrained interval, point cloud coordinates of pixels with good quality are generated based on the accumulation of the event stream to obtain a projection image, thereby achieving an effect of resisting interference from strong ambient light and multiple reflections.
[0142] The three-dimensional imaging processing device provided by the present invention is described below. The three-dimensional imaging processing device described below and the three-dimensional imaging processing method described above can be referred to each other.
[0143] Figure 8 A schematic diagram of the structure of a three-dimensional imaging processing device provided by the present invention is shown in FIG. Figure 8 The device includes an acquisition module 81, a screening module 82, a calculation module 83 and a generation module 84, wherein:
[0144] An acquisition module 81 is used to determine the pulse signal synchronously sent when the projector projects the first pixel, record the initial timestamp of the event stream, determine each timestamp of the projector projection based on the initial timestamp and a preset projection pixel frequency, and obtain the projection pixel corresponding to each timestamp;
[0145] A screening module 82 is used to determine the valid coordinate interval on the camera plane at each timestamp based on the coordinates of the projection pixel corresponding to each timestamp on the projector plane, and preset limit constraints and parallax constraints, and filter out the event stream outside the valid coordinate interval;
[0146] A calculation module 83, configured to accumulate events in the event streams retained at each time stamp to obtain a projection pattern, and determine an adjustment parallax based on the projection pattern;
[0147] The generating module 84 is used to determine the point cloud coordinates of the projection pixel according to the adjusted parallax and the coordinates of the projection pixel corresponding to each time stamp on the projector plane, and generate a three-dimensional image according to the point cloud coordinates.
[0148] Since the principle of the device described in the embodiment of the present invention is the same as that of the method described in the above embodiment, a more detailed explanation will not be repeated here.
[0149] It should be noted that, in the embodiments of the present invention, the relevant functional modules can be implemented by a hardware processor.
[0150] The three-dimensional imaging processing device provided by the present invention uses a combination of a projector and an event camera. The projector scans a projection pattern in a scene, and the event camera shoots the projection pattern reflected by the scene. The high dynamic characteristics of the event camera are used to resist ambient light. Through polar constraints and parallax constraints, an interval mapping between the actual projection area and the event camera plane is obtained. After filtering out the event stream in the unconstrained interval, the point cloud coordinates of pixels with better quality are generated based on the accumulation of the event stream to obtain the projection image, thereby achieving the effect of resisting strong ambient light and multiple reflection interference.
[0151] Fig. 9 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4As shown, the electronic device may include: a processor 41, a communication interface 42, a memory 43 and a communication bus 44, wherein the processor 41, the communication interface 42 and the memory 43 communicate with each other through the communication bus 44. The processor 41 may call a computer program in the memory 43 to execute the steps of the three-dimensional imaging processing method, for example, including: determining to receive a pulse signal synchronously sent when the projector projects the first pixel, recording the initial timestamp of the event stream, determining each time stamp projected by the projector based on the initial timestamp and a preset projection pixel frequency, and obtaining the projection pixels corresponding to each time stamp; determining the valid coordinate interval on the camera plane under each time stamp based on the coordinates of the projection pixel corresponding to each time stamp on the projector plane, and the preset limit constraint condition and parallax constraint condition, and filtering the event stream outside the valid coordinate interval; accumulating the events in the event stream retained under each time stamp to obtain a projection pattern, and determining the adjustment parallax based on the projection pattern; determining the point cloud coordinates of the projection pixel according to the adjusted parallax and the coordinates of the projection pixel corresponding to each time stamp on the projector plane, and generating a three-dimensional image according to the point cloud coordinates.
[0152] In addition, the logic instructions in the above-mentioned memory 43 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0153] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the steps of a three-dimensional imaging processing method, for example, including: determining that a pulse signal synchronously emitted when the projector projects the first pixel is received, recording the initial timestamp of the event stream, determining each time stamp projected by the projector based on the initial timestamp and a preset projection pixel frequency, and obtaining the projection pixels corresponding to each time stamp; determining a valid coordinate interval on the camera plane under each time stamp based on the coordinates of the projection pixel corresponding to each time stamp on the projector plane, as well as preset limit constraints and parallax constraints, and filtering out event streams outside the valid coordinate interval; accumulating events in the event streams retained under each time stamp to obtain a projection pattern, and determining an adjustment parallax based on the projection pattern; determining the point cloud coordinates of the projection pixel based on the adjusted parallax and the coordinates of the projection pixel corresponding to each time stamp on the projector plane, and generating a three-dimensional image based on the point cloud coordinates.
[0154] On the other hand, an embodiment of the present invention further provides a processor-readable storage medium, wherein the processor-readable storage medium stores a computer program, wherein the computer program is used to enable the processor to execute the steps of a three-dimensional imaging processing method, for example, including: determining that a pulse signal synchronously emitted when the projector projects the first pixel is received, recording an initial timestamp of the event stream, determining each timestamp projected by the projector based on the initial timestamp and a preset projection pixel frequency, and obtaining projection pixels corresponding to each timestamp; determining a valid coordinate interval on the camera plane at each timestamp based on the coordinates of the projection pixel corresponding to each timestamp on the projector plane, as well as preset limit constraints and parallax constraints, and filtering out event streams outside the valid coordinate interval; accumulating events in the event streams retained at each timestamp to obtain a projection pattern, and determining an adjustment parallax based on the projection pattern; determining point cloud coordinates of the projection pixel based on the adjusted parallax and the coordinates of the projection pixel corresponding to each timestamp on the projector plane, and generating a three-dimensional image based on the point cloud coordinates.
[0155] The processor-readable storage medium can be any available medium or data storage device that can be accessed by the processor, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NANDFLASH), solid-state drive (SSD)), etc.
[0156] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0157] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0158] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A three-dimensional imaging processing system, characterized in that: It includes an event camera, a projector including a laser and a galvanometer, and a controller, wherein: The projector is used to scan a target scene to produce a projection pattern; The event camera is used to collect the projection pattern reflected by the target scene in the form of event stream; The controller is used to: Determine that a pulse signal synchronously emitted when the projector projects the first pixel is received, record the initial timestamp of the event stream, determine each timestamp projected by the projector based on the initial timestamp and a preset projection pixel frequency, and obtain the projection pixel corresponding to each timestamp; Determine the valid coordinate interval on the camera plane at each timestamp based on the coordinates of the projection pixel corresponding to each timestamp on the projector plane, and preset limit constraints and parallax constraints, and filter out the event stream outside the valid coordinate interval; Accumulating events in the event streams retained at each time stamp to obtain a projection pattern, and determining an adjustment parallax based on the projection pattern; The point cloud coordinates of the projection pixel are determined according to the adjusted parallax and the coordinates of the projection pixel corresponding to each time stamp on the projector plane, and a three-dimensional image is generated according to the point cloud coordinates.
2. The three-dimensional imaging processing system according to claim 1, characterized in that: The controller, in the process of determining the adjustment of the parallax based on the projection pattern, is specifically used to: determining a wrap phase and a Gray code encoding value based on the projection pattern; determining an unwrapping phase according to the wrapping phase and the Gray code encoding value; Binocular matching is performed according to the unwrapped phase and a preset projector phase to obtain an adjusted parallax.
3. The three-dimensional imaging processing system according to claim 2, characterized in that: The controller is specifically used in the process of determining the winding phase and the Gray code value based on the projection pattern: Based on the projection pattern, the following calculation formula is used to determine the winding phase and the Gray code encoding value; Where N is the number of projection patterns, I m is the gray value at the projection pixel position of the mth projection pattern; φ wtap is the winding phase; Gray code encoding values are G0, G1, ..., G M-1 .
4. The three-dimensional imaging processing system according to claim 3, characterized in that: The controller, in the process of determining the unwrapping phase according to the wrapping phase and the Gray code encoding value, is specifically used to: Determine the unwinding phase using the following calculation formula according to the wrapping phase and the Gray code encoding value; Among them, φ unwrap is the unwinding phase, φ wrap is the winding phase.
5. The three-dimensional imaging processing system according to claim 1, characterized in that: The limit constraint condition includes: the projector scans a line on the calibrated plane with a y-direction height of y and an x-direction interval of [-x, x], then the corresponding y-direction threshold interval on the calibrated camera plane is [y-kx, y+kx]; in, f is the focal length of the projector, is the angle between the projector plane and the epipolar line.
6. The three-dimensional imaging processing system according to claim 5, characterized in that: The parallax constraint condition includes: the projection pixel is on the calibrated projection plane coordinate (x, y), and the y coordinate of the event camera on the calibrated plane at the current timestamp is y, and the x coordinate interval is Wherein, d0 is the reference parallax, and Δd is the parallax range.
7. A three-dimensional imaging processing method based on the three-dimensional imaging processing system according to any one of claims 1 to 6, characterized in that: include: Determine that a pulse signal synchronously emitted when the projector projects the first pixel is received, record the initial timestamp of the event stream, determine each timestamp projected by the projector based on the initial timestamp and a preset projection pixel frequency, and obtain the projection pixel corresponding to each timestamp; Determine the valid coordinate interval on the camera plane at each timestamp based on the coordinates of the projection pixel corresponding to each timestamp on the projector plane, and preset limit constraints and parallax constraints, and filter out the event stream outside the valid coordinate interval; Accumulating events in the event streams retained at each time stamp to obtain a projection pattern, and determining an adjustment parallax based on the projection pattern; The point cloud coordinates of the projection pixel are determined according to the adjusted parallax and the coordinates of the projection pixel corresponding to each time stamp on the projector plane, and a three-dimensional image is generated according to the point cloud coordinates.
8. A three-dimensional imaging processing device, characterized in that: include: An acquisition module, used to determine the pulse signal synchronously sent when the projector projects the first pixel, record the initial timestamp of the event stream, determine each timestamp projected by the projector based on the initial timestamp and a preset projection pixel frequency, and acquire the projection pixel corresponding to each timestamp; A screening module, for determining a valid coordinate interval on the camera plane at each timestamp based on the coordinates of the projection pixel on the projector plane corresponding to each timestamp, and preset limit constraints and parallax constraints, and filtering out event streams outside the valid coordinate interval; A calculation module, configured to accumulate events in the event streams retained at each time stamp to obtain a projection pattern, and determine an adjustment parallax based on the projection pattern; A generating module is used to determine the point cloud coordinates of the projection pixel according to the adjusted parallax and the coordinates of the projection pixel corresponding to each timestamp on the projector plane, and generate a three-dimensional image according to the point cloud coordinates.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the three-dimensional imaging processing method as claimed in claim 7 are implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the three-dimensional imaging processing method as claimed in claim 7 are implemented.
Citation Information
Cited By
3D imaging method and system based on hybrid event camera
CN119935019A
