CN115248440A - TOF Depth Camera Based on Lattice Light Casting - Google Patents
TOF Depth Camera Based on Lattice Light Casting Download PDFInfo
- Publication number
- CN115248440A CN115248440A CN202110463787.5A CN202110463787A CN115248440A CN 115248440 A CN115248440 A CN 115248440A CN 202110463787 A CN202110463787 A CN 202110463787A CN 115248440 A CN115248440 A CN 115248440A
- Authority
- CN
- China
- Prior art keywords
- speckle
- infrared
- area
- target
- light
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S17/00—Systems using the reflection or reradiation of electromagnetic waves other than radio waves, e.g. lidar systems
- G01S17/02—Systems using the reflection of electromagnetic waves other than radio waves
- G01S17/06—Systems determining position data of a target
- G01S17/46—Indirect determination of position data
- G01S17/48—Active triangulation systems, i.e. using the transmission and reflection of electromagnetic waves other than radio waves
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S17/00—Systems using the reflection or reradiation of electromagnetic waves other than radio waves, e.g. lidar systems
- G01S17/88—Lidar systems specially adapted for specific applications
- G01S17/89—Lidar systems specially adapted for specific applications for mapping or imaging
- G01S17/894—3D imaging with simultaneous measurement of time-of-flight at a 2D array of receiver pixels, e.g. time-of-flight cameras or flash lidar
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/30—Transforming light or analogous information into electric information
- H04N5/33—Transforming infrared radiation
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Electromagnetism (AREA)
- Computer Networks & Wireless Communication (AREA)
- General Physics & Mathematics (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Length Measuring Devices By Optical Means (AREA)
Abstract
Description
技术领域technical field
本发明涉及深度相机,具体地,涉及一种基于点阵光投射的TOF深度相机。The present invention relates to a depth camera, in particular, to a TOF depth camera based on dot matrix light projection.
背景技术Background technique
时间飞行(Time of flight,TOF)深度相机通过发射特定波段的泛光光束,再利用传感器接收被测空间中物体的反射光束并测量光束在空间中的飞行时间来计算距离,从而获取被测空间的深度图像。TOF深度相机可同时获得灰度图像和深度图像,广泛应用在3D深度视觉相关的手势识别、人脸识别、3D建模、体感游戏、机器视觉、辅助对焦、安防、自动驾驶等技术领域。The Time of Flight (TOF) depth camera calculates the distance by emitting a flood beam of a specific band, and then uses the sensor to receive the reflected beam of the object in the measured space and measure the flight time of the beam in space to calculate the distance, thereby obtaining the measured space. depth image. TOF depth cameras can simultaneously obtain grayscale images and depth images, and are widely used in 3D depth vision related gesture recognition, face recognition, 3D modeling, somatosensory games, machine vision, assisted focus, security, automatic driving and other technical fields.
传统TOF深度相机假设接收光束在目标场景中仅被反射一次,而实际场景中总会存在镜面反射或漫反射材料表面,它会把入射光反射到各个方向,这样一来,TOF传感器接收到的可能是一次反射光束和多次反射光束的叠加,从而干扰TOF深度相机测量距离的准确性,这一效应称为多径干扰。The traditional TOF depth camera assumes that the received beam is only reflected once in the target scene, but there is always a specular or diffuse reflection material surface in the actual scene, which will reflect the incident light in all directions. In this way, the TOF sensor receives It may be the superposition of the single reflected beam and the multiple reflected beam, which interferes with the accuracy of the TOF depth camera's distance measurement, an effect called multipath interference.
传统的TOF深度相机通常包含一个光投射器和光接收传感器,光投射器向空间发射泛光光束以提供照明,光接收传感器接收反射回的泛光光束进行成像,深度计算装置通过发射光和接受光的相位延迟计算飞行时间,进而得到距离信息。采用这种方式测量深度有一些限制,比如环境光的干扰会影响测量的准确性,尤其是当环境光强度高于直接反射光的强度,导致光接收传感器接收到的信号主要是环境光,典型的场景是镜像多几个。The traditional TOF depth camera usually includes a light projector and a light receiving sensor. The light projector emits a flood beam to the space to provide illumination, the light receiving sensor receives the reflected flood beam for imaging, and the depth calculation device transmits and receives the light. The phase delay of , calculates the flight time, and then obtains the distance information. There are some limitations to measuring depth in this way. For example, the interference of ambient light will affect the accuracy of the measurement, especially when the intensity of ambient light is higher than that of the directly reflected light, resulting in the signal received by the light-receiving sensor is mainly ambient light. The scene is mirrored a few more.
镜面多径是扫地机器人场景中经常遇到的问题,地面是高反射率瓷砖,地面上的点对应的像素接收到的信号是直接反射(主径)和经过物体多次反射(次级径)的光信号的叠加。对于高反射率物体,主径的强度远低于次级径的强度,导致测量的地面深度偏离实际深度。Specular multipath is a frequently encountered problem in the sweeping robot scene. The ground is a tile with high reflectivity. The signals received by the pixels corresponding to the points on the ground are direct reflection (primary path) and multiple reflections from objects (secondary path). superposition of optical signals. For highly reflective objects, the intensity of the primary diameter is much lower than that of the secondary diameter, causing the measured ground depth to deviate from the actual depth.
发明内容SUMMARY OF THE INVENTION
针对现有技术中的缺陷,本发明的目的是提供一种基于点阵光投射的TOF深度相机。In view of the defects in the prior art, the purpose of the present invention is to provide a TOF depth camera based on dot matrix light projection.
根据本发明提供的基于点阵光投射的TOF深度相机,1、一种基于点阵光投射的TOF深度相机,其特征在于,包括如下模块:According to the TOF depth camera based on dot matrix light projection provided by the present invention, 1. A TOF depth camera based on dot matrix light projection is characterized in that, it includes the following modules:
结构光投射器,用于向目标投射结构光;Structured light projector for projecting structured light to the target;
红外相机,用于接收经所述目标反射后的结构光生成红外散斑图像和多张红外参考图像,所述红外参考图像为通过深度相机对一参考目标在多个不同的距离下采集生成;an infrared camera, configured to receive the structured light reflected by the target to generate an infrared speckle image and a plurality of infrared reference images, wherein the infrared reference images are collected and generated from a reference target at a plurality of different distances by a depth camera;
处理器模块,用于根据多帧红外散斑图像相位差生成目标的散斑深度图,所述散斑深度图包括红外散斑图像以及红外散斑图像中每一散斑点的深度数据,以及根据每一散斑点的深度数据确定对应的红外参考图像,进而根据该散斑点的像素坐标确定所述红外参考图像中所述散斑点对应的参考区域,将所述参考区域中每一子区域与对应的所述散斑点区域进行匹配确定出相关度最高的目标子区域,确定所述目标子区域与所述参考区域的中心偏移量,当所述偏移量大于预设置的阈值时,确定该散斑点区域为多径干扰点,进而去除所述红外散斑图像中的多径干扰点生成目标散斑图像。The processor module is configured to generate a speckle depth map of the target according to the phase difference of the multi-frame infrared speckle images, the speckle depth map includes the infrared speckle image and the depth data of each speckle in the infrared speckle image, and The depth data of each speckle determines the corresponding infrared reference image, and then determines the reference area corresponding to the speckle in the infrared reference image according to the pixel coordinates of the speckle, and associates each sub-area in the reference area with the corresponding reference area. The speckle area is matched to determine the target sub-area with the highest correlation, and the center offset between the target sub-area and the reference area is determined. When the offset is greater than a preset threshold, determine the The speckle area is a multipath interference point, and then the multipath interference point in the infrared speckle image is removed to generate a target speckle image.
优选地,在确定所述散斑点在所述红外参考图像中对应的参考区域时,包括如下步骤:Preferably, when determining the reference area corresponding to the speckle in the infrared reference image, the following steps are included:
步骤M1:获取每一散斑点的深度数据,根据所述深度数据确定该散斑点对应的目标表面点距离深度相机的距离;Step M1: obtain the depth data of each speckle, and determine the distance between the target surface point corresponding to the speckle and the depth camera according to the depth data;
步骤M2:根据所述距离确定在相同距离下采集的红外参考图像;Step M2: determine the infrared reference image collected at the same distance according to the distance;
步骤M3:根据该散斑点的像素坐标确定对应的所述红外参考图像中所述散斑点对应的参考区域。Step M3: Determine the reference area corresponding to the speckle in the corresponding infrared reference image according to the pixel coordinates of the speckle.
优选地,在确定该散斑点为多径干扰点时,包括如下步骤:Preferably, when determining that the speckle is a multipath interference point, the following steps are included:
步骤N1:计算所述散斑点区域与对应的所述参考区域左上角的一子区域相关度;Step N1: Calculate the correlation between the speckle area and a sub-area in the upper left corner of the corresponding reference area;
步骤N2:按照从左到右由上到下的顺序每次将所述子区域移动一个像素后计算该子区域与散斑点区域的相关度,直至确定出相关度最高的目标子区域;Step N2: according to the order from left to right and top to bottom, each time the sub-area is moved by one pixel, the correlation between the sub-area and the speckle area is calculated, until the target sub-area with the highest correlation is determined;
步骤N3:确定所述目标子区域与所述散斑点区域的中心偏移量,且当所述偏移量大于预设置的阈值时,确定该散斑点为多径干扰点。Step N3: Determine the center offset between the target sub-region and the speckle area, and when the offset is greater than a preset threshold, determine that the speckle is a multipath interference point.
优选地,所述相关度r的计算方法如下:Preferably, the calculation method of the correlation degree r is as follows:
其中,Amn为参考区域的幅度,为参考区域的平均幅度;Bmn为散斑点区域的幅度,为散斑点区域的平均幅度;m、n为像素坐标范围。Among them, A mn is the amplitude of the reference area, is the average amplitude of the reference area; B mn is the amplitude of the speckle area, is the average amplitude of the speckle area; m, n are the pixel coordinate range.
优选地,所述红外参考图像采集时包括如下步骤:Preferably, the acquisition of the infrared reference image includes the following steps:
步骤S101:在一距离通过所述结构光投射器向所述参考目标投射点阵光;Step S101: projecting lattice light to the reference target through the structured light projector at a distance;
步骤S102:通过所述红外相机的接收经所述参考目标反射后的所述点阵光生成一红外参考图像;Step S102: generating an infrared reference image by receiving the lattice light reflected by the reference target by the infrared camera;
步骤S103:重复执行步骤S101至步骤S102获取多个不同的距离下的红外参考图像。Step S103: Repeat steps S101 to S102 to obtain infrared reference images at different distances.
优选地,所述结构光投射器包括光源、光源驱动器以及光调制器;Preferably, the structured light projector includes a light source, a light source driver and a light modulator;
所述光源驱动器与所述光源连接,用于驱动所述光源发光;the light source driver is connected to the light source, and is used for driving the light source to emit light;
所述光调制器,用于将所述光源的投射的光调制呈结构光后向目标投射所述结构光。The light modulator is used for modulating the projected light of the light source into structured light and then projecting the structured light to a target.
优选地,所述红外相机包括沿光路设置的镜头、滤光片以及图像传感器,所述图像传感器设置有至少四个所述接收窗口;所述接收窗口的脉冲宽度大于或小于所述结构光的脉冲宽度;Preferably, the infrared camera comprises a lens, an optical filter and an image sensor arranged along the optical path, the image sensor is provided with at least four receiving windows; the pulse width of the receiving windows is larger or smaller than that of the structured light Pulse Width;
所述图像传感器,用于通过至少四个接收窗口接收至少四个所述结构光的光信号;所述至少四个接收窗口在时序上顺次排列,进而根据每一所述接收窗口到的光信号生成每一所述散斑深度图。The image sensor is configured to receive at least four light signals of the structured light through at least four receiving windows; the at least four receiving windows are sequentially arranged in time sequence, and then according to the light received by each receiving window The signal generates each of the speckle depth maps.
优选地,所述结构光为点阵光;所述点阵光呈如下预设定的形状分布:直线形、三角形、四边形、圆形、六边形、五边形、随机排布、空间编码排布以及准晶格排布。Preferably, the structured light is lattice light; the lattice light is distributed in the following preset shapes: linear, triangle, quadrangle, circle, hexagon, pentagon, random arrangement, spatial encoding arrangements and quasi-lattice arrangements.
优选地,所述散斑点区域的尺寸可以设置为5×5的像素区域,该散斑点区域包括一散斑点;Preferably, the size of the speckle area can be set as a 5×5 pixel area, and the speckle area includes a speckle;
所述参考区域的尺寸可以设置为8×8的像素区域;所述阈值设置为两个像素。The size of the reference area may be set to an 8×8 pixel area; the threshold value may be set to two pixels.
根据本发明提供的基于点阵光投射的TOF深度相机,包括如下模块:The TOF depth camera based on dot matrix light projection provided according to the present invention includes the following modules:
结构光投射器,用于向目标投射结构光;Structured light projector for projecting structured light to the target;
红外相机,用于采集红外散斑图像;Infrared camera for collecting infrared speckle images;
存储器,用于存储多张红外参考图像,所述红外参考图像为通过所述深度相机对一参考目标在多个不同的距离下预先采集生成,a memory for storing multiple infrared reference images, the infrared reference images are generated by pre-collecting a reference target at multiple different distances by the depth camera,
处理器模块,用于根据多帧红外散斑图像相位差生成目标的散斑深度图,所述散斑深度图包括红外散斑图像以及红外散斑图像中每一散斑点的深度数据,以及根据每一散斑点的深度数据确定对应的红外参考图像,进而根据该散斑点的像素坐标确定所述红外参考图像中所述散斑点对应的参考区域,将所述参考区域中每一子区域与对应的所述散斑点区域进行匹配确定出相关度最高的目标子区域,确定所述目标子区域与所述参考区域的中心偏移量,当所述偏移量大于预设置的阈值时,确定该散斑点区域为多径干扰点,进而去除所述红外散斑图像中的多径干扰点生成目标散斑图像。The processor module is configured to generate a speckle depth map of the target according to the phase difference of the multi-frame infrared speckle images, the speckle depth map includes the infrared speckle image and the depth data of each speckle in the infrared speckle image, and The depth data of each speckle determines the corresponding infrared reference image, and then determines the reference area corresponding to the speckle in the infrared reference image according to the pixel coordinates of the speckle, and associates each sub-area in the reference area with the corresponding reference area. The speckle area is matched to determine the target sub-area with the highest correlation, and the center offset between the target sub-area and the reference area is determined. When the offset is greater than a preset threshold, determine the The speckle area is a multipath interference point, and then the multipath interference point in the infrared speckle image is removed to generate a target speckle image.
与现有技术相比,本发明具有如下的有益效果:Compared with the prior art, the present invention has the following beneficial effects:
本发明中通过红外参考图像确定采集的红外散斑图像中每一散斑点的偏移量,且当所述偏移量大于预设置的阈值时,确定该散斑点区域为多径干扰点,进而去除所述红外散斑图像中的多径干扰点生成目标散斑图像,从而能够检测出镜像多径,并去除多径干扰,实现基于散斑点阵投射的TOF深度相机在扫地机器人上的应用。In the present invention, the offset of each speckle in the collected infrared speckle image is determined by the infrared reference image, and when the offset is greater than a preset threshold, the speckle area is determined to be a multipath interference point, and then The target speckle image is generated by removing the multipath interference points in the infrared speckle image, so that the mirror image multipath can be detected, and the multipath interference can be removed, so as to realize the application of the TOF depth camera based on speckle array projection on the sweeping robot.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。通过阅读参照以下附图对非限制性实施例所作的详细描述,本发明的其它特征、目的和优点将会变得更明显:In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to the provided drawings without creative work. Other features, objects and advantages of the present invention will become more apparent by reading the detailed description of non-limiting embodiments with reference to the following drawings:
图1为本发明实施例中基于点阵光投射的TOF深度相机的模块示意图;1 is a schematic diagram of a module of a TOF depth camera based on dot matrix light projection in an embodiment of the present invention;
图2为本发明实施例中确定散斑点对应参考区域的步骤流程图;2 is a flowchart of steps for determining a reference area corresponding to a speckle in an embodiment of the present invention;
图3为本发明实施例中确定散斑点为多径干扰点的步骤流程图;3 is a flow chart of steps for determining a speckle as a multipath interference point in an embodiment of the present invention;
图4为本发明实施例中采集红外参考图像的步骤流程图;FIG. 4 is a flowchart of steps for collecting an infrared reference image in an embodiment of the present invention;
图5为本发明实施例中结构光投射器的模块示意图;5 is a schematic diagram of a module of a structured light projector according to an embodiment of the present invention;
图6为本发明实施例中红外相机的模块示意图;6 is a schematic diagram of a module of an infrared camera in an embodiment of the present invention;
图7(a)、(b)、(c)为本发明实施例中点阵光非周期性排布的示意图;Figure 7 (a), (b), (c) are schematic diagrams of aperiodic arrangement of lattice light in an embodiment of the present invention;
图8为本发明变形例中基于点阵光投射的TOF深度相机的模块示意图。FIG. 8 is a schematic diagram of a module of a TOF depth camera based on dot matrix light projection in a modification of the present invention.
具体实施方式Detailed ways
下面结合具体实施例对本发明进行详细说明。以下实施例将有助于本领域的技术人员进一步理解本发明,但不以任何形式限制本发明。应当指出的是,对本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进。这些都属于本发明的保护范围。The present invention will be described in detail below with reference to specific embodiments. The following examples will help those skilled in the art to further understand the present invention, but do not limit the present invention in any form. It should be noted that, for those skilled in the art, several modifications and improvements can be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例,例如能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if present) in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It is to be understood that the data so used may be interchanged under appropriate circumstances so that the embodiments of the invention described herein can, for example, be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having" and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those expressly listed Rather, those steps or units may include other steps or units not expressly listed or inherent to these processes, methods, products or devices.
下面以具体地实施例对本发明的技术方案进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。The technical solutions of the present invention will be described in detail below with specific examples. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
本发明提供的基于点阵光投射的TOF深度相机,旨在解决现有技术中存在的问题。The TOF depth camera based on dot matrix light projection provided by the present invention aims to solve the problems existing in the prior art.
下面以具体地实施例对本发明的技术方案以及本申请的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。下面将结合附图,对本发明的实施例进行描述。The technical solutions of the present invention and how the technical solutions of the present application solve the above-mentioned technical problems will be described in detail below with specific examples. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present invention will be described below with reference to the accompanying drawings.
图1为本发明实施例中基于点阵光投射的TOF深度相机的模块示意图,如图1所示,本发明提供的基于点阵光投射的TOF深度相机,包括如下模块:1 is a schematic diagram of a module of a TOF depth camera based on dot matrix light projection in an embodiment of the present invention. As shown in FIG. 1 , the TOF depth camera based on dot matrix light projection provided by the present invention includes the following modules:
结构光投射器,用于向目标投射结构光;Structured light projector for projecting structured light to the target;
红外相机,用于接收经所述目标反射后的结构光生成红外散斑图像和多张红外参考图像,所述红外参考图像为通过深度相机对一参考目标在多个不同的距离下采集生成;an infrared camera, configured to receive the structured light reflected by the target to generate an infrared speckle image and a plurality of infrared reference images, wherein the infrared reference images are collected and generated from a reference target at a plurality of different distances by a depth camera;
处理器模块,用于根据多帧红外散斑图像相位差生成目标的散斑深度图,所述散斑深度图包括红外散斑图像以及红外散斑图像中每一散斑点的深度数据,以及根据每一散斑点的深度数据确定对应的红外参考图像,进而根据该散斑点的像素坐标确定所述红外参考图像中所述散斑点对应的参考区域,将所述参考区域中每一子区域与对应的所述散斑点区域进行匹配确定出相关度最高的目标子区域,确定所述目标子区域与所述参考区域的中心偏移量,当所述偏移量大于预设置的阈值时,确定该散斑点区域为多径干扰点,进而去除所述红外散斑图像中的多径干扰点生成目标散斑图像。The processor module is configured to generate a speckle depth map of the target according to the phase difference of the multi-frame infrared speckle images, the speckle depth map includes the infrared speckle image and the depth data of each speckle in the infrared speckle image, and The depth data of each speckle determines the corresponding infrared reference image, and then determines the reference area corresponding to the speckle in the infrared reference image according to the pixel coordinates of the speckle, and associates each sub-area in the reference area with the corresponding reference area. The speckle area is matched to determine the target sub-area with the highest correlation, and the center offset between the target sub-area and the reference area is determined. When the offset is greater than a preset threshold, determine the The speckle area is a multipath interference point, and then the multipath interference point in the infrared speckle image is removed to generate a target speckle image.
在本发明实施例中,所述红外相机为红外探测器,通过红外探测器接收经所述目标人物反射后的所述点阵光。In the embodiment of the present invention, the infrared camera is an infrared detector, and the lattice light reflected by the target person is received by the infrared detector.
所述红外散斑图像为深度相机距离所述目标人物距离在30至80厘米采集。所述深度相机采用TOF相机,且所述TOF相机的光投射器可以向所述目标投射点阵光。The infrared speckle image is collected by the depth camera at a distance of 30 to 80 cm from the target person. The depth camera adopts a TOF camera, and the light projector of the TOF camera can project a lattice light to the target.
在本发明实施例中,可以选择将多径干扰点直接删除生成目标散斑图像。In this embodiment of the present invention, it is possible to choose to directly delete the multipath interference points to generate the target speckle image.
本发明实施例中通过红外参考图像确定采集的红外散斑图像中每一散斑点的偏移量,且当所述偏移量大于预设置的阈值时,确定该散斑点区域为多径干扰点,进而去除所述红外散斑图像中的多径干扰点生成目标散斑图像,从而能够检测出镜像多径,并去除多径干扰,实现基于散斑点阵投射的TOF深度相机在扫地机器人上的应用。In this embodiment of the present invention, an infrared reference image is used to determine the offset of each speckle in the collected infrared speckle image, and when the offset is greater than a preset threshold, it is determined that the speckle area is a multipath interference point , and then remove the multipath interference points in the infrared speckle image to generate the target speckle image, so that the mirror multipath can be detected, and the multipath interference can be removed to realize the TOF depth camera based on speckle array projection on the sweeping robot. application.
图2为本发明实施例中确定散斑点对应参考区域的步骤流程图,如图2所示,在确定所述散斑点在所述红外参考图像中对应的参考区域时,包括如下步骤:FIG. 2 is a flowchart of steps for determining a reference area corresponding to a speckle in an embodiment of the present invention. As shown in FIG. 2 , when determining the reference area corresponding to the speckle in the infrared reference image, the following steps are included:
步骤M1:获取每一散斑点的深度数据,根据所述深度数据确定该散斑点对应的目标表面点距离深度相机的距离;Step M1: obtain the depth data of each speckle, and determine the distance between the target surface point corresponding to the speckle and the depth camera according to the depth data;
步骤M2:根据所述距离确定在相同距离下采集的红外参考图像;Step M2: determine the infrared reference image collected at the same distance according to the distance;
步骤M3:根据该散斑点的像素坐标确定对应的所述红外参考图像中所述散斑点对应的参考区域。Step M3: Determine the reference area corresponding to the speckle in the corresponding infrared reference image according to the pixel coordinates of the speckle.
在本发明实施例中,在所述红外散斑图像提取每一散斑点,根据该散斑点的深度数据确定距离,进而确定对应红外参考图像。In the embodiment of the present invention, each speckle is extracted from the infrared speckle image, the distance is determined according to the depth data of the speckle, and then the corresponding infrared reference image is determined.
且根据每一散斑点的像素坐标在所述红外参考图像中确定对应位置的参考区域。And according to the pixel coordinates of each scattered spot, the reference area of the corresponding position is determined in the infrared reference image.
图3为本发明实施例中确定散斑点为多径干扰点的步骤流程图,如图3所示,在确定该散斑点为多径干扰点时,包括如下步骤:FIG. 3 is a flowchart of steps for determining a speckle as a multipath interference point in an embodiment of the present invention. As shown in FIG. 3 , when determining the speckle as a multipath interference point, the following steps are included:
步骤N1:计算所述散斑点区域与对应的所述参考区域左上角的一子区域相关度;Step N1: Calculate the correlation between the speckle area and a sub-area in the upper left corner of the corresponding reference area;
步骤N2:按照从左到右由上到下的顺序每次将所述子区域移动一个像素后计算该子区域与散斑点区域的相关度,直至确定出相关度最高的目标子区域;Step N2: according to the order from left to right and top to bottom, each time the sub-area is moved by one pixel, the correlation between the sub-area and the speckle area is calculated, until the target sub-area with the highest correlation is determined;
步骤N3:确定所述目标子区域与所述散斑点区域的中心偏移量,且当所述偏移量大于预设置的阈值时,确定该散斑点为多径干扰点。Step N3: Determine the center offset between the target sub-region and the speckle area, and when the offset is greater than a preset threshold, determine that the speckle is a multipath interference point.
在本发明实施例中,所述散斑点区域的尺寸可以设置为5×5的像素区域,该像素区域包括一个散斑点;所述参考区域的尺寸可以设置为8×8的像素区域;所述阈值可以定为两个像素,即所述中心偏移量大于等于两个像素时,认定为该散斑点为多径干扰点。In this embodiment of the present invention, the size of the speckle area may be set as a 5×5 pixel area, and the pixel area includes one speckle; the size of the reference area may be set as an 8×8 pixel area; the The threshold may be set to two pixels, that is, when the center offset is greater than or equal to two pixels, the speckle is determined to be a multipath interference point.
在本发明实施例中,按照左到右由上到下的顺序逐个像素的方法将所述散斑点区域遍历所述参考区域中的每个像素。In this embodiment of the present invention, the speckle area is traversed through each pixel in the reference area in a pixel-by-pixel method in an order from left to right and from top to bottom.
在本发明实施例中,所述相关度r的计算方法如下:In the embodiment of the present invention, the calculation method of the correlation degree r is as follows:
其中,Amn为参考区域的幅度,为参考区域的平均幅度;Bmn为散斑点区域的幅度,为散斑点区域的平均幅度;m、n为像素坐标范围。Among them, A mn is the amplitude of the reference area, is the average amplitude of the reference area; B mn is the amplitude of the speckle area, is the average amplitude of the speckle area; m, n are the pixel coordinate range.
在本发明实施例中,所述幅度还可以采用灰度值、像素值、照度、光通量以及辐射功率中任一物理量表示。In this embodiment of the present invention, the amplitude may also be represented by any physical quantity among gray value, pixel value, illuminance, luminous flux, and radiation power.
图4为本发明实施例中采集红外参考图像的步骤流程图,如图4所示,所述红外参考图像采集时包括如下步骤:FIG. 4 is a flowchart of steps for collecting an infrared reference image in an embodiment of the present invention. As shown in FIG. 4 , the infrared reference image collection includes the following steps:
步骤S101:在一距离通过所述结构光投射器向所述参考目标投射点阵光;Step S101: projecting lattice light to the reference target through the structured light projector at a distance;
步骤S102:通过所述红外相机的接收经所述参考目标反射后的所述点阵光生成一红外参考图像;Step S102: generating an infrared reference image by receiving the lattice light reflected by the reference target by the infrared camera;
步骤S103:重复执行步骤S101至步骤S102获取多个不同的距离下的红外参考图像。Step S103: Repeat steps S101 to S102 to obtain infrared reference images at different distances.
在本发明实施例中,多个不同的距离下的红外参考图像可以预先采集后,存储在存储器中,供深度相机调取使用。所述参考目标可以采用棋盘格或平面板材等。In this embodiment of the present invention, a plurality of infrared reference images at different distances may be pre-collected and stored in a memory for retrieval and use by the depth camera. The reference target can be a checkerboard or a flat plate or the like.
图5为本发明实施例中结构光投射器的模块示意图,如图5所示,所述结构光投射器包括光源、光源驱动器以及光调制器;FIG. 5 is a schematic diagram of a module of a structured light projector in an embodiment of the present invention. As shown in FIG. 5 , the structured light projector includes a light source, a light source driver, and a light modulator;
所述光源驱动器与所述光源连接,用于驱动所述光源发光;the light source driver is connected to the light source, and is used for driving the light source to emit light;
所述光调制器,用于将所述光源的投射的光调制呈结构光后向目标投射所述结构光。The light modulator is used for modulating the projected light of the light source into structured light and then projecting the structured light to a target.
在本发明实施例中,所述光调制器采用衍射光栅(DOE)或空间光调制器(SLM)。In the embodiment of the present invention, the light modulator adopts a diffraction grating (DOE) or a spatial light modulator (SLM).
图6为本发明实施例中红外相机的模块示意图,如图6所示,所述红外相机包括沿光路设置的镜头、滤光片以及图像传感器,所述图像传感器设置有至少四个所述接收窗口;所述接收窗口的脉冲宽度大于或小于所述结构光的脉冲宽度;FIG. 6 is a schematic diagram of a module of an infrared camera in an embodiment of the present invention. As shown in FIG. 6 , the infrared camera includes a lens, a filter, and an image sensor arranged along an optical path, and the image sensor is provided with at least four receivers. a window; the pulse width of the receiving window is larger or smaller than the pulse width of the structured light;
所述图像传感器,用于通过至少四个接收窗口接收至少四个所述结构光的光信号;所述至少四个接收窗口在时序上顺次排列,进而根据每一所述接收窗口到的光信号生成每一所述散斑深度图。The image sensor is configured to receive at least four light signals of the structured light through at least four receiving windows; the at least four receiving windows are sequentially arranged in time sequence, and then according to the light received by each receiving window The signal generates each of the speckle depth maps.
所述图像传感器包括多个呈阵列分布的光探测器;The image sensor includes a plurality of photodetectors distributed in an array;
所述镜头,采用光学成像镜头,用于使得透过所述镜头进入光探测器阵列的所述准直光束的方向向量与光探测器呈一一对应关系;The lens adopts an optical imaging lens, which is used to make the direction vector of the collimated light beam entering the photodetector array through the lens to be in a one-to-one correspondence with the photodetector;
所述光探测器,用于接收经所述目标物体反射的准直光束。The light detector is used for receiving the collimated light beam reflected by the target object.
在本发明实施例中,为了过滤背景噪声,所述光学成像镜头内通常还装有窄带滤光片,使得所述光探测器阵列仅能通过预设的波长的入射准直光束。所述预设的波长可以为入射准直光束的波长,如950纳米,也可以为小于入射准直光束50纳米和大于入射准直光束50纳米之间。所述光探测器阵列可以呈周期或者非周期性排列。根据离散点阵光数量的需求,光探测器阵列可以是多个单点光探测器的组合或者是一个集成了多个光探测器的传感器芯片。为了进一步优化光探测器的灵敏度,一个离散点阵光在目标人物上的照射光斑可以对应一个或者多个光探测器。在多个光探测器对应同一个照射光斑时,每个探测器的信号可以通过电路连通,从而在能够合并为一个探测面积更大的光探测器。In the embodiment of the present invention, in order to filter background noise, a narrow-band filter is usually installed in the optical imaging lens, so that the photodetector array can only pass the incident collimated light beam with a preset wavelength. The preset wavelength may be the wavelength of the incident collimated beam, such as 950 nanometers, or may be between 50 nanometers smaller than the incident collimated beam and 50 nanometers greater than the incident collimated beam. The photodetector arrays may be arranged periodically or aperiodically. The photodetector array can be a combination of a plurality of single-point photodetectors or a sensor chip integrating a plurality of photodetectors according to the requirement of the discrete lattice light quantity. In order to further optimize the sensitivity of the photodetector, the illumination spot of a discrete lattice light on the target person may correspond to one or more photodetectors. When multiple photodetectors correspond to the same illumination spot, the signals of each detector can be connected through a circuit, so that they can be combined into a photodetector with a larger detection area.
在本发明实施例中,所述光探测器可以采用CMOS光传感器、CCD光传感器或SPAD光传感器。In this embodiment of the present invention, the light detector may use a CMOS light sensor, a CCD light sensor, or a SPAD light sensor.
在本发明实施例中,所述结构光为点阵光;所述点阵光呈如下预设定的形状分布:直线形、三角形、四边形、圆形、六边形、五边形、随机排布、空间编码排布以及准晶格排布。In the embodiment of the present invention, the structured light is lattice light; the lattice light is distributed in the following preset shapes: linear, triangle, quadrangle, circle, hexagon, pentagon, random arrangement fabrics, spatially encoded arrangements, and quasi-lattice arrangements.
图7(a)、(b)、(c)为本发明实施例中点阵光非周期性排布的示意图,如图7(a)所示,所述空间编码排布,具体为在在周期性排布中,缺省一部分的光束,从而实现排布位置的空间编码,在实际可以采用的编码不受限于图7(a)中示例;如图7(b)所示,所述随机排布,具体为准直光束的排布随机分布,使得不同位置的排布方式的相似性很小或者接近于零,如图7(c)所示,所述准晶格排布,具体为准直光束在近距离相邻位置非周期性排布,在远距离周期性排布。由于本发明在实现时受限于光学系统,实际准直光束在截面的排布可能存在畸变,比如发生拉伸、扭曲等。而每个准直光束在截面中的能量分布可以是圆形、圆环或椭圆形等者其他形状。在如7所示的这种排布方式,这种排布有利于对非确定目标的均匀采样,优化最终3D深度图的效果。Figures 7(a), (b), and (c) are schematic diagrams of aperiodic arrangement of lattice light in an embodiment of the present invention. As shown in Figure 7(a), the spatial encoding arrangement is specifically in the In the periodic arrangement, a part of the beams are defaulted to realize the spatial encoding of the arrangement position. The actual encoding that can be used is not limited to the example in Fig. 7(a); as shown in Fig. 7(b), the Random arrangement, specifically, the arrangement of collimated beams is randomly distributed, so that the similarity of the arrangement of different positions is small or close to zero, as shown in Figure 7(c), the quasi-lattice arrangement, specifically The collimated beams are arranged aperiodically at close proximity and periodically at long distances. Since the implementation of the present invention is limited by the optical system, the arrangement of the actual collimated beam in the cross-section may be distorted, such as stretching and twisting. The energy distribution of each collimated beam in the cross section can be circular, annular or elliptical or other shapes. In this arrangement as shown in 7, this arrangement is conducive to uniform sampling of non-deterministic targets and optimizes the effect of the final 3D depth map.
图8为本发明变形例中基于点阵光投射的TOF深度相机的模块示意图,如图8所示,本发明提供的基于点阵光投射的TOF深度相机,包括如下模块:8 is a schematic diagram of a module of a TOF depth camera based on dot matrix light projection in a modification of the present invention. As shown in FIG. 8 , the TOF depth camera based on dot matrix light projection provided by the present invention includes the following modules:
结构光投射器,用于向目标投射结构光;Structured light projector for projecting structured light to the target;
红外相机,用于接收经所述目标反射后的结构光生成红外散斑图像;an infrared camera, configured to receive the structured light reflected by the target to generate an infrared speckle image;
存储器,用于存储多张红外参考图像,所述红外参考图像为通过所述深度相机对一参考目标在多个不同的距离下预先采集生成,a memory for storing multiple infrared reference images, the infrared reference images are generated by pre-collecting a reference target at multiple different distances by the depth camera,
处理器模块,用于根据多帧红外散斑图像相位差生成目标的散斑深度图,所述散斑深度图包括红外散斑图像以及红外散斑图像中每一散斑点的深度数据,以及根据每一散斑点的深度数据确定对应的红外参考图像,进而根据该散斑点的像素坐标确定所述红外参考图像中所述散斑点对应的参考区域,将所述参考区域中每一子区域与对应的所述散斑点区域进行匹配确定出相关度最高的目标子区域,确定所述目标子区域与所述参考区域的中心偏移量,当所述偏移量大于预设置的阈值时,确定该散斑点区域为多径干扰点,进而去除所述红外散斑图像中的多径干扰点生成目标散斑图像。The processor module is configured to generate a speckle depth map of the target according to the phase difference of the multi-frame infrared speckle images, the speckle depth map includes the infrared speckle image and the depth data of each speckle in the infrared speckle image, and The depth data of each speckle determines the corresponding infrared reference image, and then determines the reference area corresponding to the speckle in the infrared reference image according to the pixel coordinates of the speckle, and associates each sub-area in the reference area with the corresponding reference area. The speckle area is matched to determine the target sub-area with the highest correlation, and the center offset between the target sub-area and the reference area is determined. When the offset is greater than a preset threshold, determine the The speckle area is a multipath interference point, and then the multipath interference point in the infrared speckle image is removed to generate a target speckle image.
在本发明变形例中,多个不同的距离下的红外参考图像可以预先采集后,存储在存储器中,供所述处理器模块调取使用。In a modification of the present invention, a plurality of infrared reference images at different distances may be pre-collected and stored in a memory for retrieval and use by the processor module.
本发明实施例中,通过红外参考图像确定采集的红外散斑图像中每一散斑点的偏移量,且当所述偏移量大于预设置的阈值时,确定该散斑点区域为多径干扰点,进而去除所述红外散斑图像中的多径干扰点生成目标散斑图像,从而能够检测出镜像多径,并去除多径干扰,实现基于散斑点阵投射的TOF深度相机在扫地机器人上的应用。In the embodiment of the present invention, the offset of each speckle in the collected infrared speckle image is determined by using the infrared reference image, and when the offset is greater than a preset threshold, it is determined that the speckle area is multipath interference and then remove the multipath interference points in the infrared speckle image to generate the target speckle image, so that the mirror image multipath can be detected, and the multipath interference can be removed, so as to realize the TOF depth camera based on speckle array projection on the sweeping robot Applications.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the various embodiments can be referred to each other. The above description of the disclosed embodiments enables any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
以上对本发明的具体实施例进行了描述。需要理解的是,本发明并不局限于上述特定实施方式,本领域技术人员可以在权利要求的范围内做出各种变形或修改,这并不影响本发明的实质内容。The specific embodiments of the present invention have been described above. It should be understood that the present invention is not limited to the above-mentioned specific embodiments, and those skilled in the art can make various variations or modifications within the scope of the claims, which do not affect the essential content of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110463787.5A CN115248440A (en) | 2021-04-26 | 2021-04-26 | TOF Depth Camera Based on Lattice Light Casting |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110463787.5A CN115248440A (en) | 2021-04-26 | 2021-04-26 | TOF Depth Camera Based on Lattice Light Casting |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115248440A true CN115248440A (en) | 2022-10-28 |
Family
ID=83696455
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110463787.5A Pending CN115248440A (en) | 2021-04-26 | 2021-04-26 | TOF Depth Camera Based on Lattice Light Casting |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115248440A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115953322A (en) * | 2023-01-15 | 2023-04-11 | 山东产研卫星信息技术产业研究院有限公司 | Stain removing method for satellite remote sensing image |
CN116008998A (en) * | 2022-11-17 | 2023-04-25 | 深圳市光鉴科技有限公司 | TOF camera and robot sweeps floor |
CN116067305A (en) * | 2023-02-09 | 2023-05-05 | 深圳市安思疆科技有限公司 | Structured light measurement system and measurement method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180341008A1 (en) * | 2017-05-24 | 2018-11-29 | Microsoft Technology Licensing, Llc | Multipath mitigation for time of flight system |
CN110049305A (en) * | 2017-12-18 | 2019-07-23 | 西安交通大学 | A kind of the structure light depth camera automatic correcting method and device of smart phone |
US20190339369A1 (en) * | 2018-05-04 | 2019-11-07 | Microsoft Technology Licensing, Llc | Field Calibration of a Structured Light Range-Sensor |
CN110689581A (en) * | 2018-07-06 | 2020-01-14 | Oppo广东移动通信有限公司 | Structured light module calibration method, electronic device, and computer-readable storage medium |
-
2021
- 2021-04-26 CN CN202110463787.5A patent/CN115248440A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180341008A1 (en) * | 2017-05-24 | 2018-11-29 | Microsoft Technology Licensing, Llc | Multipath mitigation for time of flight system |
CN110049305A (en) * | 2017-12-18 | 2019-07-23 | 西安交通大学 | A kind of the structure light depth camera automatic correcting method and device of smart phone |
US20190339369A1 (en) * | 2018-05-04 | 2019-11-07 | Microsoft Technology Licensing, Llc | Field Calibration of a Structured Light Range-Sensor |
CN110689581A (en) * | 2018-07-06 | 2020-01-14 | Oppo广东移动通信有限公司 | Structured light module calibration method, electronic device, and computer-readable storage medium |
Non-Patent Citations (1)
Title |
---|
张绍阳等: "利用激光散斑获取深度图", 中国光学, no. 06, 15 December 2016 (2016-12-15) * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116008998A (en) * | 2022-11-17 | 2023-04-25 | 深圳市光鉴科技有限公司 | TOF camera and robot sweeps floor |
CN115953322A (en) * | 2023-01-15 | 2023-04-11 | 山东产研卫星信息技术产业研究院有限公司 | Stain removing method for satellite remote sensing image |
CN115953322B (en) * | 2023-01-15 | 2023-07-14 | 山东产研卫星信息技术产业研究院有限公司 | Stain removing method for satellite remote sensing image |
CN116067305A (en) * | 2023-02-09 | 2023-05-05 | 深圳市安思疆科技有限公司 | Structured light measurement system and measurement method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US12235361B2 (en) | Illumination pattern for object depth measurement | |
US10791320B2 (en) | Non-uniform spatial resource allocation for depth mapping | |
CN111366941B (en) | TOF depth measurement device and method | |
US10041787B2 (en) | Object detection device | |
CN115248440A (en) | TOF Depth Camera Based on Lattice Light Casting | |
JP4290733B2 (en) | Three-dimensional shape measuring method and apparatus | |
US9599463B2 (en) | Object detection device | |
WO2020169727A1 (en) | Detector with a projector for illuminating at least one object | |
JP6531326B2 (en) | Optical detector | |
CN110824490A (en) | Dynamic distance measuring system and method | |
US20240077586A1 (en) | Method for generating intensity information having extended expression range by reflecting geometric characteristic of object, and lidar apparatus performing same method | |
US12087003B2 (en) | Auto calibration from epipolar line distance in projection pattern | |
CN103486979A (en) | Hybrid sensor | |
WO2021069400A1 (en) | Projector for illuminating at least one object | |
CN213903339U (en) | Rolling surface defect detection system | |
CN211148902U (en) | Transmitter and distance measurement system | |
US20240410688A1 (en) | Structured light pattern combined with projection of markers | |
CN203687882U (en) | Super-resolution 3D laser measurement system | |
US20250003739A1 (en) | Eye safety for projectors | |
CN115248445A (en) | TOF camera capable of automatic exposure | |
WO2024132461A1 (en) | Imaging device and method thereof | |
CN114697481A (en) | Simple depth camera | |
CN118642124A (en) | A TOF and line structured light fusion depth module and electronic device | |
CN114137496A (en) | Structured light based depth camera | |
CN115250316A (en) | TOF mirror surface multipath removal method, system, equipment and medium based on modulated light field |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |