Mapping 3D depth map data onto 2D images
The method maps 3D depth map data onto 2D images using a 3D range sensor and 2D camera, addressing the complexity and reliability issues of stereo cameras by calibrating the system with a fluorescent target, enhancing depth data correlation.
Patent Information
- Application Number
- JP2021568002
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-05-12
- Filing Date
- 2020-05-07
- Publication Date
- 2024-08-14
- Estimated Expiration
- 2040-05-07
AI Technical Summary
Conventional methods for combining 3D depth map information with 2D images rely on stereo cameras, which are less reliable when feature points are difficult to detect and involve complex, error-prone calculations, especially with changing camera specifications.
A method for mapping 3D depth map data onto a 2D image using a 3D range sensor and a 2D camera, leveraging the direct relationship between depth map information and 2D images through beam projection, utilizing a fluorescent target to calibrate the system and derive a direct positional relationship.
Enables accurate mapping of 3D depth data onto 2D images without relying on feature points, simplifying depth calculations and improving accuracy by directly correlating 3D distances with 2D positions.
Smart Images

Figure 0007534330000002 
Figure 0007534330000003 
Figure 0007534330000009
Abstract
Description
[Technical field]
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS This application claims priority to U.S. Provisional Patent Application No. 62 / 846,696, filed May 12, 2019, which is incorporated by reference herein in its entirety. [Background technology]
[0002] U.S. Patent Application Nos. 14 / 920,246, 15 / 149,323, and 15 / 149,429 describe various configurations of distance sensors that may be useful in a variety of applications, including security, gaming, control of unmanned vehicles, robotic or autonomous machine operation, and other applications.
[0003] The distance sensors described in these applications include a projection system (e.g., including a laser, diffractive optical elements, and / or other cooperating components) that projects a light beam of a wavelength substantially invisible to the human eye (e.g., infrared) into a field of view. The light beam spreads to produce a pattern (dots, dashes, or other artifacts) that can be detected by an appropriate receiving system (e.g., lenses, image capture devices, and / or other components). When the pattern is incident on an object in the field of view, the distance of the object from the sensor can be calculated based on the appearance of the pattern (e.g., the positional relationship of the dots, dashes, or other artifacts) in one or more images of the field of view, which may be captured by the receiving system of the sensor. The shape and dimensions of the object can also be determined.
[0004] For example, the appearance of the pattern may change depending on the distance to the object. As an example, if the pattern includes a pattern of dots, the dots may appear closer to each other when the object is closer to the sensor and may appear farther apart when the object is farther away from the sensor. Summary of the Invention [Means for solving the problem]
[0005] In one example, a method performed by the processing system includes controlling a three-dimensional distance sensor to project a light pattern onto a target surface, the light pattern including a plurality of light points; controlling a two-dimensional camera to acquire a first image of the light pattern on the target surface, the two-dimensional camera having a fixed position relative to the three-dimensional distance sensor; controlling a receiving system of the three-dimensional distance sensor to acquire a second image of the light pattern on the target surface; and associating a set of two-dimensional coordinates of a first light point of the plurality of light points with distance coordinates of the set of three-dimensional coordinates of the first light point to form a single set of coordinates of the first light point, the set of two-dimensional coordinates being acquired from the first image and the set of three-dimensional coordinates being acquired from the second image, and deriving a relational equation from the single set of coordinates, the relational equation describing a relationship between a distance of the receiving system to the target surface and a position of the first light point on the image sensor of the two-dimensional camera.
[0006] In another example, a non-transitory machine-readable storage medium is encoded with instructions executable by a processor that, when executed, cause the processor to perform operations including: controlling a three-dimensional distance sensor to project a light pattern onto a target surface, the light pattern including a plurality of light points; controlling a two-dimensional camera to capture a first image of the light pattern on the target surface, the two-dimensional camera having a fixed position relative to the three-dimensional distance sensor; controlling a receiving system of the three-dimensional distance sensor to capture a second image of the light pattern on the target surface; associating a set of two-dimensional coordinates of a first light point of the plurality of light points with distance coordinates of the set of three-dimensional coordinates of the first light point to form a single set of coordinates for the first light point, the set of two-dimensional coordinates being obtained from the first image and the set of three-dimensional coordinates being obtained from the second image; and deriving a relational equation from the single set of coordinates, the relational equation describing a relationship between a distance of the receiving system to the target surface and a position of the first light point on the image sensor of the two-dimensional camera.
[0007] In another example, an apparatus includes a processor and a non-transitory machine-readable storage medium encoded with instructions executable by the processor. The instructions, when executed, cause the processor to perform operations including: controlling a three-dimensional distance sensor to project a light pattern onto a target surface, the light pattern including a plurality of light points; controlling a two-dimensional camera to acquire a first image of the light pattern on the target surface, the two-dimensional camera having a fixed position relative to the three-dimensional distance sensor; controlling a receiving system of the three-dimensional distance sensor to acquire a second image of the light pattern on the target surface; associating a set of two-dimensional coordinates of a first light point of the plurality of light points with distance coordinates of the set of three-dimensional coordinates of the first light point to form a single set of coordinates of the first light point, the set of two-dimensional coordinates being acquired from the first image and the set of three-dimensional coordinates being acquired from the second image; and deriving a relational equation from the single set of coordinates, the relational equation describing a relationship between a distance of the receiving system to the target surface and a position of the first light point on the image sensor of the two-dimensional camera. [Brief description of the drawings]
[0008] [Figure 1] FIG. 2 is a side view of an exemplary distance sensor. [Diagram 2] 2 is a side view of an exemplary system including the three-dimensional range sensor of FIG. 1 and a two-dimensional camera. [Diagram 3] 3 is a flow diagram illustrating an example of a method for calibrating a three-dimensional distance sensor, such as the distance sensor shown in FIG. 1 or FIG. 2, according to the present disclosure. [Figure 4] 3 is a flow diagram illustrating an example of a method for calibrating a system including a 3D range sensor and a 2D camera, such as the system shown in FIG. 2, according to the present disclosure, so that 3D depth map information can be mapped onto a 2D image. [Figure 5A] FIG. 2 illustrates an exemplary image that may be captured by a receiving system of a 3D distance sensor. [Figure 5B]FIG. 2 illustrates an exemplary image that may be captured by a 2D camera. [Figure 6] 4 is a flow diagram illustrating an example of a method for mapping three-dimensional depth map information acquired by a three-dimensional range sensor onto a two-dimensional image acquired by a two-dimensional camera. [Figure 7] FIG. 1 is a high-level block diagram of an example electronic device for mapping three-dimensional depth map data onto a two-dimensional image. [Figure 8] FIG. 4 is a schematic diagram showing an example of how the relationship derived in the method of FIG. 3 can be derived. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] This disclosure broadly describes a method, computer-readable medium, and apparatus for mapping three-dimensional (3D) depth map data onto a two-dimensional (2D) image. As mentioned above, distance sensors such as those described in U.S. Patent Application Nos. 14 / 920,246, 15 / 149,323, and 15 / 149,429 determine the distance to an object (and potentially the shape and dimensions of the object) by projecting a light beam that spreads to create a pattern (e.g., a dot, a dash, or another artifact) in a field of view that includes the object. The light beam may be projected from one or more laser light sources that emit light at wavelengths that are substantially invisible to the human eye but that are visible to an appropriate detector (e.g., of a receiving system). The 3D distance to the object may then be calculated based on the appearance of the pattern to the detector.
[0010] The calculated 3D distances may be used for a variety of applications, including security (e.g., facial recognition to gain access to secured locations and / or resources), navigation (e.g., for unmanned vehicles), and other applications. 3D depth map information as obtained from the 3D distance calculations may also be combined with 2D image data to enable a more intuitive depth display. For example, although the contour of an object or curved surface may be difficult to recognize when only 3D depth map information is available, the contour may be more accurately identified and reproduced when mapped to 2D image information of the same object or surface.
[0011] Conventional techniques for combining 3D depth map information with 2D images typically rely on the use of a stereo camera. For example, a stereo camera may be used to detect feature points on an object such as a checkerboard. The relative positional relationship between the imaging rays of the two cameras may be known prior to feature point detection, for example by calibration. In this case, the 3D position of the object is then calculated by solving an equation relating the 2D image position of the object to the imaging light position.
[0012] This technique may work well when feature points are easy to detect, but is less reliable when feature points are not easily detectable. Furthermore, depth calculations tend to be very complex because they involve many steps, many of which may rely on asymptotic and / or approximate calculations that are prone to error. Depth calculations may become even more complex when the 2D camera specifications are multi-valued (e.g., due to zoom and / or focus) or have fast rates of change.
[0013] Examples of the present disclosure provide a method for mapping 3D depth map data onto a 2D image that is not affected by the presence of feature points on the object being imaged. Instead, examples of the present disclosure exploit the direct relationship between the depth map information and the 2D image, using a projection beam that a 3D distance sensor uses for ranging. Thus, in one example, a 3D depth map is acquired, for example, by a 3D distance sensor using beam projection.
[0014] In a further example, a system comprising a 3D distance sensor and a 2D camera may be calibrated to determine the relationship between depth map information and the 2D image using a fluorescent target (e.g., a target made from a material that emits fluorescence when excited by infrared light).
[0015] It should be noted that the use of terms such as "first," "second," "third," etc. does not necessarily imply that the examples of the present disclosure require a certain number of elements or items. For example, referring to a "third image" does not necessarily imply that a "first image" and a "second image" are present. Rather, such terminology may be used herein to distinguish between elements or items of the same type (e.g., to distinguish between two or more different images).
[0016] 1 is a side view of an example distance sensor 100, such as any of the sensors described above. As shown in FIG. 1, the distance sensor 100 may generally include a light projection system 102 and a light receiving system 104.
[0017] The projection system 102 may generally include a laser emitter 106 and a diffractive optical element (DOE) 108. The laser emitter 106 may include a laser light emitting diode (LED) that emits a light beam at a wavelength that is substantially invisible to the human eye (e.g., infrared light). In one example, the laser emitter 106 includes a vertical cavity surface emitting laser (VCSEL).
[0018] The DOE 108 may include optical components such as a diffraction grating, a holographic film, or a conical mirror arranged to split the light beam emitted by the laser emitter 106 into multiple light beams 110. Although FIG. 1 shows a single laser emitter 106 and DOE 108 pair, it should be noted that the projection system may include any number of laser emitter / DOE pairs. For example, multiple laser emitter / DOE pairs may be arranged around the receiving system 104, so that, for example, the receiving system 104 is located at the center of the multiple laser emitter / DOE pairs. In this case, each of the multiple laser emitter / DOE pairs may be configured similarly to the laser emitter 106 and DOE 108 shown in FIG. 1.
[0019] In one example, the multiple light beams 110 fan out in multiple different directions from a central axis C. The angle between each pair of beams in the multiple light beams 110 may be equal. When the multiple light beams 110 are incident on the surface 112, each beam may generate artifacts on the surface 112, such as dots, dashes, etc. Collectively, the artifacts generated by the multiple light beams 110 form the pattern from which a distance to an object may be calculated. For example, the pattern may include a grid in which the multiple artifacts are arranged in rows and columns.
[0020] At least a portion of the pattern (e.g., at least a portion of the artifacts forming the pattern) may be detected by the light receiving system 104, which may include a camera configured to detect light at wavelengths of light emitted by the light projecting system 102. For example, the light receiving system 104 may generally include an image sensor 114 (e.g., a 3D image sensor), a bandpass filter 116, and a lens 118. Portions of the light beams 110 may reflect from the surface 112 and pass through the lens 118 of the light receiving system to the bandpass filter 116. The bandpass filter may be configured to allow light of a certain wavelength (e.g., infrared) to pass to the image sensor 114 while filtering out all other wavelengths. The image sensor 114 may be an active pixel sensor (APS) that includes a plurality of pixel sensor units, where each pixel sensor unit includes a photodetector and at least one active transistor. The pixel sensor unit may absorb photons of light that pass through the bandpass filter 116. In this manner, the image sensor 114 may generate a 3D image of the surface 112 .
[0021] As mentioned above, the appearance of the pattern produced on the surface 112 by the multiple light beams 110 may vary depending on the distance to the surface 112. As an example, if the pattern includes a pattern of dots, the dots may appear closer to each other when the surface 112 is closer to the distance sensor 100 and may appear farther apart from each other when the surface 112 is farther away from the distance sensor 100. The trajectories (i.e., ranges of motion) of the dots may thereby appear closer together or farther apart from each other.
[0022] The trajectory of the dot is determined by the positional relationship between the projection system 102 and the receiving system 104 of the range sensor in the plane (e.g., horizontal) and elevation directions (e.g., perpendicular to the horizontal). The trajectory of the dot may be seen as a radial pattern or a line (as shown in inset 120 of FIG. 1) and describes the movement of the dot as the distance between the range sensor 100 and the object (e.g., surface 112) onto which the projection pattern is projected changes. More specifically, the trajectory of the dot describes the movement of the dot relative to the image sensor 114 of the range sensor due to the change in distance.
[0023] For example, inset 120 shows an example trajectory for multiple artifacts that may be generated on surface 112 by multiple light beams 110. Taking trajectory 122 as an example, trajectory 122 shows the physical range that a corresponding dot (or another artifact) p may move to when the distance between distance sensor 100 and surface 112 changes. As shown by trajectory 122, light receiving system 104 may see point p at a first position p(a) when the distance between distance sensor 100 and surface 112 is equal to distance A, and may see point p at a second position p(b) when the distance between distance sensor 100 and surface 112 is equal to distance B.
[0024] Figure 2 is a side view of an exemplary system including the 3D range sensor 100 of Figure 1 and a 2D camera 200. The range sensor 100 may be the same range sensor 100 shown in Figure 1, so the same reference numbers are used to refer to the same components in Figure 2.
[0025] The 2D camera 200 may generally include an image sensor 202 (e.g., a 2D image sensor), a cutoff filter 204, and a lens 206. Light reflecting from a surface (e.g., the surface 112) may pass through the lens 206 to the cutoff filter 204. In one example, the cutoff filter is an infrared cutoff filter (i.e., a filter that reflects infrared wavelengths while allowing other wavelengths of light to pass). The image sensor 202 may be an active pixel sensor (APS) that includes a plurality of pixel sensor units, where each pixel sensor unit includes a photodetector and at least one active transistor. Photons of light passing through the cutoff filter 204 may be absorbed by the pixel sensor units of the image sensor 202, which may generate a corresponding 2D image of the surface 112.
[0026] As mentioned above, the light emitted by the light projection system 102 of the 3D distance sensor 100 may be infrared light, and the light receiving system 104 of the distance sensor 100 may block wavelengths outside the infrared range to minimize the effect of external light noise on distance measurements. However, if the 2D camera 200 includes an infrared cutoff filter, the 2D camera 200 may not be able to detect points of the projection pattern generated by the 3D distance sensor 100 (including, for example, points p(a) / p(b)).
[0027] Thus, for calibration purposes (e.g., to calibrate the system of FIG. 2 such that a relationship between 3D depth map information and 2D images can be determined), in one example, the surface 112 may include a fluorescent material. In particular, the surface 112 may be formed of an infrared fluorescent material, i.e., a material that emits fluorescence when excited by infrared light. In this case, when a point p is generated on the surface 112 by an infrared light beam, the location on the surface 112 at which the point p is visible will emit fluorescence that can be detected by the image sensor 202 of the 2D camera 200.
[0028] As a result, the 3D distance sensor 100 may calculate the position of the point p in a three-dimensional (x, y, z) coordinate space based on the reflected infrared light. The two-dimensional camera 200 may simultaneously calculate the position of the point p in a two-dimensional (u, v) image sensor coordinate system based on the emission of fluorescent light by the surface 112. The 3D (x, y, z) coordinates may then be directly mapped to 2D (u, v) coordinates, which gives the positional relationship between the light receiving system 104 of the 3D distance sensor 100 and the 2D camera 200. In other words, the 2D position of the point p (in the 2D image) may be mapped to the 3D object distance of the same point. This mapping may subsequently allow the 2D position of another point to be mapped to the 3D object distance of another point.
[0029] In one example, the phosphor screen 112 has a size smaller than the size of the field of view of the 3D distance sensor 100 and the size of the field of view of the 2D camera 200. The phosphor screen 112 may also be shaped to improve the efficiency of the calibration process. For example, a shape such as a rectangle may be easier to recognize, while a planar surface may simplify the distance relationships to be calculated.
[0030] Figure 3 is a flow diagram illustrating an example of a method 300 for calibrating a three-dimensional distance sensor, such as distance sensor 100 shown in Figure 1 or Figure 2, in accordance with the present disclosure. Method 300 may be performed by a processor in communication with (and receiving image data from) the 3D distance sensor and the 2D camera, such as, for example, processor 702 shown in Figure 7. Alternatively, method 300 may be performed by a processor that is part of the 3D distance sensor or the 2D camera. For illustrative purposes, method 300 is described as being performed by a processing system.
[0031] The method 300 may start at step 302. In step 304, the processing system may control the 3D distance sensor to project a light pattern onto the target surface. As described above, the light pattern may include a pattern of light points (or another projection artifact such as dots, dashes, multiple x's, etc.), where each light point may be generated by each light beam emitted by a light projection system of the 3D distance sensor. In particular, each light point may be generated as each light beam is incident on the target surface. The light beam may include a beam of infrared light (or another wavelength of light that is substantially invisible to the human eye but visible to a light receiving system of the 3D distance sensor).
[0032] The target surface used in step 304 may, for example, comprise a three-dimensional target, where different parts of the target surface may be at different distances from a receiving system of a 3D distance sensor.
[0033] In step 306, the processing system may control the 3D distance sensor to acquire an image of the light pattern on the target surface. As described above, in one example, the 3D distance sensor may include a receiving system including an infrared bandpass filter and a 3D image sensor. The receiving system may capture an image of the light pattern as projected onto the target surface and may transmit the image (e.g., via a wired or wireless connection) to the processing system.
[0034] In step 308, the processing system may calculate the distance between the light receiving system of the 3D distance sensor and the first light point (of the light pattern) based on the image. In one example, the distance may be calculated using any of the techniques discussed in U.S. Patent Application Nos. 14 / 920,246, 15 / 149,323, and 15 / 149,429. In a further example, the distance may be calculated in this manner for more than one light point (e.g., the first light point and at least one second light point).
[0035] In step 310, the processing system may store the distance calculated in step 308 in association with a position of the first light point on the 3D image sensor of the 3D distance sensor. If the distance calculated in step 308 was calculated for multiple light points, the distance and corresponding image sensor position may be stored for all light points of the multiple light points.
[0036] In step 312, the processing system may derive a relational equation describing the relationship between the distance of the light receiving system of the 3D distance sensor to the target surface (in this case, this distance may vary continuously) and the position of the first light point on the 3D image sensor. In one example, the distance between the light receiving system and multiple light points may be calculated in step 308 as described above. In this case, multiple relational equations may be derived in step 312. For example, if the light projection system of the 3D distance sensor emits n light beams (n>1), a relational equation may be derived for each beam (e.g., for each light point generated by one of the beams) and stored in a memory accessible to the processing system such that n separate relational equations are derived.
[0037] The method 300 may end at step 314 .
[0038] 8 is a schematic diagram illustrating one example of how the relationships derived in step 312 of method 300 may be derived. Like reference numbers are used for similar elements to those shown in FIGS.
[0039] As shown in Fig. 8, the target surface 112 may be moved to change the distance to the 3D range sensor 100 as described above. Respective positions of the target surface 112 are shown as planes 1121-1123 in Fig. 8. Although three planes are shown for ease of explanation and illustration, it will be understood that any number of planes (e.g., n planes) may be used. The same point may be imaged on each plane, with z1 indicating the z (linear distance from the 3D range sensor 100) position of the point on plane 1121, z2 indicating the position of the point on plane 1122, and z3 indicating the position of the point on plane 1123.
[0040] The same point may also be imaged onto the image sensor 114, (p x1 ,p y1 , z1) denotes the x, y (camera image) position in the image sensor 114 for a point in the first plane 1121, and (p x2 ,p y2 , z2) denotes the x, y (plane) position on the image sensor 114 for a point in the second plane 1122, and (p x3 ,p y3 , z3) indicate the x, y (plane) position on the image sensor 114 for a point in the third plane 1123.
[0041] Thus, the z-positions of points at various distances from the 3D image sensor 100 are plotted against corresponding p x , p y It may also be matched against the location.
[0042] In one example, the z-position is expressed as p for each in-plane point, as shown in drawing 802. x , p y A curve 804 may be fitted to the data points in the plot 802, where l represents the length along the curve 804. Thus, in one example, the p x , p yThe position may be obtained from the z-position of a given point by an approximation function f, expressed as an example below: z=f1(p x ,p y )=f2(l) (Equation 1)
[0043] Figure 4 is a flow diagram illustrating an example of a method 400 for calibrating a system including a 3D range sensor and a 2D camera, such as the system shown in Figure 2, by which 3D depth map information may be mapped onto a 2D image in accordance with the present disclosure. Method 400 may be performed after the 3D range sensor has been calibrated independently of the system, for example, as described above in connection with Figure 3.
[0044] Method 400 may be performed by a processor in communication with (and receiving image data from) the 3D range sensor and the 2D camera, such as, for example, processor 702 shown in Figure 7. Alternatively, method 400 may be performed by a processor that is part of the 3D range sensor or the 2D camera. For purposes of illustration, method 400 is described as being performed by a processing system.
[0045] Method 400 may start at step 402. In step 404, the processing system may control the 3D distance sensor to project a light pattern onto a target surface. That is, the light pattern may be the same light pattern used to calibrate the 3D distance sensor (e.g., according to method 300 described above), but the target surface onto which the light pattern is currently projected may be a different target surface than the target surface used to calibrate the 3D distance sensor. For step 404, the target surface may include, for example, a two-dimensional target, such that all parts of the target surface are at the same distance from the light receiving system of the 3D distance sensor. In one example, the target surface may include a planar target. The target surface may also be rectangular in shape to facilitate calibration. If the light pattern is generated by an infrared light beam, the target surface may include an infrared fluorescent material, i.e., a material that emits fluorescence when excited by infrared light.
[0046] In step 406, the processing system may control the light receiving system of the 2D camera and the 3D distance sensor to simultaneously capture a first image and a second image of the light pattern on the target surface, respectively, where the 2D camera has a fixed position relative to the 3D distance sensor, i.e., the positional relationship between the 3D distance sensor and the 2D camera is fixed. As mentioned above, in one example, the 2D camera may include an infrared cutoff filter and a 2D image sensor.
[0047] FIG. 5A shows an exemplary image 500 (e.g., the “second image” from step 406) that may be captured, for example, by a light receiving system of a 3D distance sensor, while FIG. 5B shows an exemplary image 502 (e.g., the “first image” from step 406) that may be captured by a 2D camera.
[0048] As shown, image 500 may depict the locations of multiple light points of the light pattern. A subset of the multiple light points may be incident on the target surface (shown in dashed lines at 506). However, image 500 may depict even light points that are not incident on the target surface 506 because the image sensor of the 3D distance sensor may detect infrared light emitted by the projection system.
[0049] In contrast, image 502 may depict only a subset 508 of the light points incident on target surface 506 because the image sensor of the 2D camera may only detect the fluorescence emitted by target surface 506 when infrared light is incident on target surface 506, but may not detect the infrared light itself. This allows the 2D camera to image a smaller portion of the light pattern than the 3D range sensor image.
[0050] The 2D camera and the 3D distance sensor may capture first and second images, respectively, of the light pattern as projected onto the target surface, and may transmit the first and second images to a processing system (e.g., via a wired or wireless connection).
[0051] In step 408, the processing system may associate the 2D coordinates of the first light point as obtained from the first image with the distance between the first light point and the 3D distance sensor as obtained from the second image. That is, the (u,v) coordinates of the first light point on the 2D image sensor of the 2D camera are associated with the (z) coordinates of the first light point on the 3D image sensor of the 3D distance sensor to generate a single set of coordinates (u,v,z) for the first light point. In one example, the first light point is identified (e.g., identified as the same light point) in both the second and third images based on the relative positions of the light point in the light pattern. For example, referring again to FIGS. 5A and 5B, the light point 504 may be identified as the same light point in the images 500 and 502 based on the position of the light point 504 relative to another light point.
[0052] In step 410, the processing system may determine whether to move the target surface. In one example, steps 404-408 are repeated multiple times to calibrate the positional relationship between the 3D distance sensor and the 2D camera, where the target surface is moved each time to change the distance between the target surface and the 3D distance sensor (and between the target surface and the 2D camera).
[0053] If, in step 410, the processing system concludes that the target surface should be moved to enable additional measurements, method 400 may return to step 404, with the processing system proceeding as described above, where the target surface may now be moved to change the distance.
[0054] However, if the processing system concludes in step 410 that the target surface should not be moved to enable additional measurements, the method 400 may proceed to step 412. In step 412, the processing system may derive a relational equation describing a relationship between a distance of the light receiving system of the 3D distance sensor to the target surface (where this distance may vary continuously) and a position of the first light point on the 2D image sensor. In one example, as described in relation to step 408, a single set of coordinates may be formed for a subset of the multiple light points including the first light point and at least one additional light point.
[0055] For example, if steps 404-408 are repeated k times (k>1), the relation is expressed as a function of multiple data points (u1, v1, z1), (u2, v2, z2)...(u k ,v k ,z k ) The relationship may be stored in a memory accessible to the processing system. The relationship may be derived as described above in connection with Equation 1.
[0056] The method 400 may end at step 414 .
[0057] Figure 6 is a flow diagram illustrating an example of a method 600 for mapping three-dimensional depth map information acquired by a three-dimensional range sensor onto a two-dimensional image acquired by a two-dimensional camera. Method 600 may be performed by a processor in communication with (and receiving image data from) the 3D range sensor and the 2D camera, such as, for example, processor 702 shown in Figure 7. Alternatively, method 600 may be performed by a processor that is part of the 3D range sensor or the 2D camera. For illustrative purposes, method 600 is described as being performed by a processing system.
[0058] Method 600 may begin at step 602. In step 604, the processing system may control the 3D distance sensor to project a light pattern onto an object (e.g., an object other than the target surface used in calibration methods 300 and 400). That is, the light pattern may be the same light pattern used to calibrate the 3D distance sensor and the 2D camera (e.g., according to methods 300 and 400 described above), but the object onto which the light pattern is currently projected may be a different object than the target surface used for calibration. For example, the object may be an object being imaged.
[0059] In step 606, the processing system may control the light receiving system of the 2D camera and the 3D distance sensor to simultaneously capture a third image and a fourth image of the light pattern on the object, respectively, where the 2D camera has a fixed position relative to the 3D distance sensor, i.e., the positional relationship between the 3D distance sensor and the 2D camera is fixed.
[0060] In step 608, the processing system may identify the 2D (u,v) coordinates of the second light point of the light pattern based on the 3D distance (z) coordinate measured by the 3D distance sensor and the second relationship derived by method 400 (i.e., a relationship describing the relationship between the distance of the light receiving system of the 3D distance sensor to the second target surface and the position of the first light point on the 2D image sensor).
[0061] The method 600 may end at step 610 .
[0062] In some examples, the 2D camera may have zoom and / or focus capabilities. In this case, method 400 may be performed with the lens of the 2D camera set to a fixed value. Any coordinate recorded by the 2D camera is then associated in memory with the fixed value of the lens setting as well as with the corresponding 3D coordinate from the 3D distance sensor. Method 400 may be repeated with multiple different fixed values for the lens setting, in which case the characteristic values used in each iteration of method 400 are associated with the corresponding coordinates in memory. In this case, any derived second relationship may also be associated in memory with the corresponding value of the lens setting.
[0063] It should be noted that, although not explicitly specified, some of the blocks, functions, or operations of the above-described methods 300, 400, or 600 may include storage, display, and / or output for a particular application. In other words, any data, records, views, and / or intermediate results discussed in methods 300, 400, or 600 may be stored, displayed, and / or output to another device depending on the particular application. Furthermore, a block, function, or operation of FIG. 3, 4, or 6 that lists or includes a decision operation does not mean that both branches of the decision operation are performed. That is, one of the branches of the decision operation may not be performed depending on the outcome of the decision operation.
[0064] In one example, as described above, the p x , p y Once the position is determined based on the z-position of a light point, the p x , p y The positions may be easily determined because the spacing between light points in the projection pattern is known a priori, for example, the x and y distances between a given light point and adjacent light points are known before the projection pattern is projected onto the object.
[0065] In a further example, the first light point p x , p yThe z-position may be determined using a relatively small target surface whose distance from the 3D distance sensor is varied. For example, the small target surface may be small enough to ensure that only one light point (e.g., a first light point) of the projection pattern is incident on the target surface. Then, the first light point p x , p y Once the z position is determined, the positions of other light points within the projection pattern can be determined as described above from the known spacing of the projection pattern.
[0066] 7 is a high-level block diagram of an example electronic device 700 for mapping 3D depth map data onto a 2D image. As such, the electronic device 700 may be implemented as a processor of an electronic device or system such as a range sensor.
[0067] As shown in FIG. 7, the electronic device 700 includes a hardware processor element 702, such as a central processing unit (CPU), microprocessor, or multi-core processor, memory 704, such as random access memory (RAM) and / or read only memory (ROM), a module 705 for mapping 3D depth map data onto a 2D image, and various input / output devices 706, including, but not limited to, storage devices, tape drives, floppy drives, hard disk drives, or compact disk drives, receivers, transmitters, displays, output ports, input ports, and user input devices such as a keyboard, keypad, mouse, microphone, camera, laser light source, LED light source, etc.
[0068] It should be noted that although one processor element is shown, electronic device 700 may utilize multiple processor elements. Additionally, although one electronic device 700 is shown in the figure, if the method as described above is implemented in a distributed or parallel manner for a particular illustrative example, i.e., blocks of the method or the entire method are implemented across multiple electronic devices or parallel electronic devices, then electronic device 700 in this figure is intended to represent each of those multiple electronic devices.
[0069] It should be noted that the present disclosure may be implemented by machine-readable instructions and / or in a combination of machine-readable instructions and hardware (e.g., an application specific integrated circuit (ASIC), a programmable logic array (PLA) including a field programmable gate array (FPGA), or a state machine deployed in a hardware device, a general purpose computer, or any other hardware equivalent), e.g., computer readable instructions relating to the above methods may be used to configure a hardware processor to perform the blocks, functions and / or operations of the above disclosed methods.
[0070] In one example, instructions and data, e.g., machine-readable instructions, for this module or process 705 for mapping 3D depth map data onto a 2D image may be loaded into memory 704 and executed by hardware processor element 702 to implement the blocks, functions, or operations described above in connection with methods 300, 400, and 600. Furthermore, when a hardware processor executes instructions to perform an "operation," this may include a hardware processor that performs the operation directly and / or facilitates, directs, or cooperates with another hardware device or component, e.g., a co-processor, etc., to perform the operation.
[0071] A processor that executes machine-readable instructions for the above-mentioned method may be understood to be a programmed processor or a dedicated processor. Thus, the present module 905 for mapping 3D depth map data onto a 2D image of the present disclosure may be stored in a tangible or physical (broadly speaking, non-transitory) computer-readable storage device or medium, such as a volatile memory, a non-volatile memory, a ROM memory, a RAM memory, a magnetic or optical drive, device, or diskette. More specifically, the computer-readable storage device may comprise any physical device that provides the ability to store information, such as data and / or instructions, accessed by a processor, or an electronic device, such as a computer or controller of a safety sensor system.
[0072] It will be appreciated that variations of the above and other features and functions, or alternatives thereof, may be combined into many different other systems or applications. Various presently unforeseen or unanticipated alternatives, modifications, or variations thereof may be made thereafter, which are also intended to be encompassed by the following claims.
Claims
1. 1. A method comprising: controlling, by a processing system, the three-dimensional distance sensor to project a light pattern onto a target surface, the light pattern including a plurality of light points; controlling, by the processing system, a two-dimensional camera to capture a first image of the light pattern on the target surface, the two-dimensional camera having a fixed position relative to the three-dimensional distance sensor; controlling, by the processing system, a light receiving system of the three-dimensional distance sensor to obtain a second image of the light pattern on the target surface; associating, by the processing system, a set of two-dimensional coordinates of a first light point of the plurality of light points with distance coordinates of the set of three-dimensional coordinates of the first light point to form a single set of coordinates for the first light point, the set of two-dimensional coordinates being obtained from the first image and the set of three-dimensional coordinates being obtained from the second image; deriving, by the processing system, a relational equation from the single set of coordinates, the relational equation describing a relationship between a distance of the light receiving system to the target surface and a position of the first light point on an image sensor of the two-dimensional camera; A method comprising:
2. The method of claim 1 , wherein the three-dimensional distance sensor is calibrated using a three-dimensional target prior to the step of controlling the three-dimensional distance sensor to project the light pattern.
3. The method of claim 1 , wherein the light pattern comprises infrared light and the light receiving system comprises an infrared bandpass filter.
4. The method of claim 3 , wherein the two-dimensional camera includes an infrared cutoff filter.
5. The method of claim 4 , wherein the target surface comprises a material that emits fluorescent light when excited by infrared light.
6. The method of claim 5 , wherein the target surface has a planar shape.
7. The method of claim 1 , wherein the first image and the second image are simultaneously acquired by the two-dimensional camera and the three-dimensional distance sensor, respectively.
8. The method of claim 1 , wherein the set of two-dimensional coordinates of a first light point describes a position of the first light point on an image sensor of the two-dimensional camera.
9. The method of claim 1 , wherein the relationship is derived from a single set of coordinates formed for a subset of the plurality of light points, the subset including the first light point and at least one additional light point.
10. 2. The method of claim 1, wherein the associating step includes identifying, by the processing system, the first light point in the first image and the second image based on a position of the first light point relative to other light points of the plurality of light points.
11. After the relating step but before the deriving step, 2. The method of claim 1, further comprising the steps of: repeating, by the processing system, the steps of controlling the three-dimensional distance sensor to project a light pattern, the steps of controlling the two-dimensional camera, the steps of controlling the light receiving system of the three-dimensional distance sensor, and the associating steps, wherein the repeating steps are performed after the target surface is moved to change the distance between the target surface and the three-dimensional distance sensor and the distance between the target surface and the two-dimensional camera.
12. After the deriving step, controlling, by the processing system, the two-dimensional camera to capture a third image of the light pattern on an object other than the target surface; controlling, by the processing system, the light receiving system of the three-dimensional distance sensor to acquire a fourth image of the light pattern on the object, the third image and the fourth image being acquired simultaneously; identifying, by the processing system, a set of two-dimensional coordinates for a second light point of the plurality of light points based on the three-dimensional distance coordinates of the second light point measured by the three-dimensional distance sensor and the relationship; The method of claim 1 further comprising:
13. The method of claim 1 , wherein the lens of the two-dimensional camera is set to a fixed value that controls the zoom or focus of the lens.
14. The method of claim 13 , wherein the associating step includes associating the fixed value with the single set of coordinates.
15. After the relating step but before the deriving step, 15. The method of claim 14, further comprising the step of repeating, by the processing system, the steps of controlling the three-dimensional distance sensor to project a light pattern, the step of controlling the two-dimensional camera, the step of controlling the light receiving system of the three-dimensional distance sensor, and the step of associating, wherein the step of repeating is performed after the fixed value is set to a new fixed value.
16. A non-transitory machine-readable storage medium encoded with instructions executable by a processor that, when executed, cause the processor to perform operations, including: controlling a three-dimensional distance sensor to project a light pattern onto a target surface, the light pattern including a plurality of light points; controlling a two-dimensional camera to capture a first image of the light pattern on the target surface, the two-dimensional camera having a fixed position relative to the three-dimensional distance sensor; controlling a light receiving system of the three-dimensional distance sensor to obtain a second image of the light pattern on the target surface; relating a set of two-dimensional coordinates of a first light point of the plurality of light points to distance coordinates of the set of three-dimensional coordinates of the first light point to form a single set of coordinates for the first light point, the set of two-dimensional coordinates being obtained from the first image and the set of three-dimensional coordinates being obtained from the second image; deriving a relational equation from the single set of coordinates, the relational equation describing a relationship between a distance of the light receiving system to the target surface and a position of the first light point on an image sensor of the two-dimensional camera; A non-transitory machine-readable storage medium comprising:
17. 17. The non-transitory machine-readable storage medium of claim 16, wherein the light pattern includes infrared light, the light receiving system includes an infrared bandpass filter, and the two-dimensional camera includes an infrared cutoff filter.
18. 20. The non-transitory machine-readable storage medium of claim 17, wherein the target surface comprises a material that emits fluorescent light when excited by infrared light.
19. After the deriving step, controlling the two-dimensional camera to capture a third image of the light pattern on an object other than the target surface; controlling the light receiving system of the three-dimensional distance sensor to acquire a fourth image of the light pattern on the object, the third image and the fourth image being acquired simultaneously; Identifying a set of two-dimensional coordinates for the second light point among the plurality of light points based on the three-dimensional distance coordinates of the second light point measured by the three-dimensional distance sensor and the relational expression; 20. The non-transitory machine-readable storage medium of claim 16, further comprising:
20. 1. An apparatus comprising: A processor; A non-transitory machine-readable storage medium encoded with instructions executable by the processor, the instructions, when executed, causing the processor to perform operations, including: controlling a three-dimensional distance sensor to project a light pattern onto a target surface, the light pattern including a plurality of light points; controlling a two-dimensional camera to capture a first image of the light pattern on the target surface, the two-dimensional camera having a fixed position relative to the three-dimensional distance sensor; controlling a light receiving system of the three-dimensional distance sensor to obtain a second image of the light pattern on the target surface; relating a set of two-dimensional coordinates of a first light point of the plurality of light points to distance coordinates of the set of three-dimensional coordinates of the first light point to form a single set of coordinates for the first light point, the set of two-dimensional coordinates being obtained from the first image and the set of three-dimensional coordinates being obtained from the second image; deriving a relational equation from the single set of coordinates, the relational equation describing a relationship between a distance of the light receiving system to the target surface and a position of the first light point on an image sensor of the two-dimensional camera; A non-transitory machine-readable storage medium, The device comprises:
Citation Information
Patent Citations
Image input apparatus and calibration method
JP2007064723A
Field calibration of stereo cameras with a projector
US20180249142A1
