WO2018120027A1 - Method and apparatus for detecting obstacles - Google Patents
Method and apparatus for detecting obstacles Download PDFInfo
- Publication number
- WO2018120027A1 WO2018120027A1 PCT/CN2016/113524 CN2016113524W WO2018120027A1 WO 2018120027 A1 WO2018120027 A1 WO 2018120027A1 CN 2016113524 W CN2016113524 W CN 2016113524W WO 2018120027 A1 WO2018120027 A1 WO 2018120027A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- obstacle
- type
- area
- determining
- pixel
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/50—Depth or shape recovery
- G06T7/55—Depth or shape recovery from multiple images
- G06T7/593—Depth or shape recovery from multiple images from stereo images
Definitions
- the present application relates to the field of computer vision technology, and in particular, to an obstacle detection method and apparatus.
- obstacle avoidance is one of the basic functions necessary, and how to effectively detect obstacles on the road surface is a key problem that the obstacle avoidance system needs to solve.
- obstacle detection methods include non-visual detection methods based on infrared rays, ultrasonic waves, and non-stereoscopic vision detection methods based on a single camera.
- non-visual detection methods such as infrared rays and ultrasonic waves have limited detection accuracy, and can only detect large obstacles and cannot detect small obstacles, so safety is achieved. Poor; based on the obstacle detection method of a single camera, it is often necessary to specify the area of interest. For complex environments, it cannot automatically detect the road surface and obstacles.
- the embodiment of the present application provides an obstacle detection method and device, which mainly solves the problem that the detection accuracy of obstacles existing in the prior art is limited.
- the present application provides an obstacle detection method, including:
- each pixel point corresponds to a pixel category, and each pixel point in the depth image corresponds to a depth value; according to each pixel point in the pixel image a pixel class determining a road surface area in the area to be detected and a first type of obstacle in the road surface area; and determining a second type of obstacle in the area to be detected according to the depth image; according to the pixel image And the depth image determines a spatial location of the first type of obstacle and determines a spatial location of the second type of obstacle based on the depth image.
- the present application provides an obstacle detecting apparatus, including: an acquiring unit, configured to respectively acquire a pixel image and a depth image corresponding to an area to be detected, where each pixel point corresponds to a pixel category, the depth Each of the pixel points in the image corresponds to the depth value; the obstacle determining unit is configured to determine a road surface area in the to-be-detected area and the road surface according to a pixel category of each pixel point in the pixel image acquired by the acquiring unit a first type of obstacle in the area; and determining, according to the depth image acquired by the acquiring unit, a second type of obstacle in the area to be detected; a position determining unit, configured to determine according to the pixel image and the depth image The spatial position of the first type of obstacle determined by the obstacle determination unit and the spatial position of the second type of obstacle determined by the obstacle determination unit according to the depth image.
- the present application provides a computer storage medium for storing computer software instructions comprising program code designed to perform the obstacle detection method of the first aspect.
- the present application provides a computer program product that can be directly loaded into an internal memory of a computer and includes software code, and the computer program can be loaded and executed by a computer to implement the obstacle detection described in the first aspect. method.
- the present application provides an electronic device, including: a memory, a communication interface, and a processor, the memory is configured to store computer executable code, and the processor is configured to execute the computer executable code control to perform the first aspect
- the obstacle detecting method the communication interface is used for data transmission between the electronic device and an external device.
- the present application provides a robot, including the electronic device of the fifth aspect.
- the solution provided by the present application obtains a pixel image and a depth image corresponding to the to-be-detected area, where each pixel point corresponds to a pixel category, and each pixel point in the depth image corresponds to a depth value; a pixel class of each pixel determines a road surface area in the area to be detected and a first type of obstacle in the road surface area; and determines a second type of obstacle in the area to be detected according to the depth image; and finally determines according to the pixel image and the depth image
- the spatial location of the first type of obstacle and the spatial location of the second type of obstacle based on the depth image, and various obstacles in the prior art Compared with the object detection method, the detection accuracy of the obstacle is limited.
- the volume image can detect the volume in the area to be detected through the depth image. Large obstacles, therefore, can obtain a more comprehensive obstacle in the area to be detected; in addition, after detecting the obstacle, the present application can also output the spatial position of the obstacle, which is helpful for obstacle avoidance decision.
- FIG. 1 is a schematic structural diagram of an obstacle avoidance system according to an embodiment of the present application.
- FIG. 2 is a schematic diagram of a depth image corresponding to an area to be detected and an area to be detected according to an embodiment of the present disclosure
- FIG. 3 is a schematic flowchart diagram of an obstacle detection method according to an embodiment of the present application.
- FIG. 4 is a schematic diagram of a pixel image and a depth image corresponding to a to-be-detected area and a to-be-detected area according to an embodiment of the present disclosure
- FIG. 5 to FIG. 7 are schematic flowcharts of a method for detecting an obstacle provided by an embodiment of the present application.
- FIG. 8 to FIG. 10 are schematic structural diagrams of an obstacle detecting device according to an embodiment of the present application.
- FIG. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
- the obstacle avoidance system is used to detect whether there is an obstacle in a specific area, and can be applied to a mobile robot or a guide blind system. Obstacle detection is the basic function of the obstacle avoidance system.
- the embodiment of the present application provides an obstacle avoidance system.
- the obstacle avoidance system 10 includes: an image collection device 11 , an obstacle detection device 12 , and a decision device 13 .
- the image capturing device 11 is configured to collect image information of a specific region for performing obstacle detection, such as an image in front of the mobile robot, and transmit the collected image information to the obstacle detecting device 12;
- the image acquisition device includes one or more cameras that capture planar images, a binocular camera that collects stereoscopic images, and the like.
- the obstacle detecting device 12 is configured to process the image information transmitted by the image capturing device 11 to obtain information on whether or not the obstacle and the outline, size, position, type, and the like of the obstacle are included, and transmit the processed information to the decision device 13.
- the decision device 13 is configured to make a decision on how to avoid obstacles according to the information sent by the obstacle detecting device 12, and the decision device may be a device having a processing operation function, such as a server.
- the specific implementation of the image capturing device 11 and the determining device 13 can refer to the prior art, and details are not described herein again.
- a depth image also referred to as a range image, is an image that takes a distance (or depth) from an image collector, such as a binocular camera, to a point in a region to be detected as a pixel value. It can directly reflect the geometry of the visible surface of the object, that is, it can directly determine the contour of each object.
- the depth image can be calculated as point cloud data through coordinate conversion, and the point cloud data with rules and necessary information can also be inversely counted as depth image data.
- each pixel represents the distance from the object to the camera plane at the particular (x,y) coordinate in the field of view of the image collector.
- the purpose of detecting an obstacle can be achieved according to the distance in the depth image and the contour of each object. As shown in FIG.
- the image to be detected shown in the left figure is photographed and processed to obtain a depth image shown in the right image.
- different brightness values indicate different distances, and the brighter the color, the more the target distance is. near.
- the specific implementation principle of the depth image and the specific implementation process of the obstacle detection according to the depth image may refer to the prior art, and details are not described herein again.
- the present application determines the road surface area from the area to be detected by acquiring the pixel information corresponding to the area to be detected, and then detects the small obstacles in the road surface area.
- an embodiment of the present invention provides an obstacle detection method, which can detect not only a large obstacle but also a small obstacle, and can further obtain a three-dimensional spatial position of the obstacle according to the depth image.
- the method is applicable to the system shown in FIG. 1.
- the subject of the method is the obstacle detecting device 12.
- the method includes:
- Step 101 Acquire a pixel image and a depth image corresponding to the to-be-detected area, respectively.
- each pixel point in the pixel image corresponds to a pixel category.
- one implementation manner of the pixel image is: capturing a detection area, obtaining a two-dimensional color image corresponding to the to-be-detected area; and combining a preset correspondence relationship between a pixel value including a pixel point and a pixel category, A pixel value of each pixel in the two-dimensional color image is analyzed, a category of each pixel is determined, and the pixel image is generated, in which pixels of the same pixel category have the same value, or The colors are the same.
- the preset correspondence relationship includes a corresponding relationship between a pixel value and a road surface pixel, and the generated corresponding pixel image is a binary image, and the pixel category corresponding to each pixel point in the binary image is a road surface pixel.
- the area composed of all road pixels is the road surface area, and the area composed of all non-road pixels is the non-road area.
- Each pixel point in the depth image corresponds to a depth value.
- the specific implementation of the depth image can refer to the prior art, and details are not described herein again.
- an embodiment of the present invention provides two-dimensional color corresponding to an area to be detected.
- the pixel type corresponding to each pixel of the white area in the pixel image is a road surface pixel, and thus the white area may be referred to as a road surface area.
- the pixel type corresponding to each pixel of the black area is a non-road pixel, and therefore, the black area may be referred to as a non-road area.
- Step 102 Determine a road surface area in a to-be-detected area and a first type of obstacle in the road surface area according to a pixel category of each pixel point in the pixel image; and determine a second type of obstacle in the area to be detected according to the depth image.
- an area composed of pixels of all the pixel types of the road surface pixels is determined as the road surface area, and an area composed of the pixel points of all the pixel types of the non-road pixels is determined as Non-road area.
- the road surface area After determining the road surface area, by detecting the target obstacle in the road surface area or by detecting the contour lines of the road surface area and the non-road surface area, it is further detected whether there is a non-road area in which the contour line of the non-road surface area is surrounded by the contour line of the road surface area.
- the obstacles in the road surface area are detected in an equal manner. Such an obstacle obtained by analyzing a pixel image in the embodiment of the present application is referred to as a first type of obstacle.
- the first type of obstacle may not contain all of the obstacles in the area to be detected. Therefore, in the embodiment of the present application, the contour of each object in the depth image is determined according to the depth image, thereby determining an obstacle in the area to be detected, and after obtaining the depth image, the depth image is segmented into different according to the set depth threshold.
- a sub-image of depth each sub-image contains only objects within a certain depth range, and the contour information of each sub-image (ie, the contour of the object) is detected to determine an obstacle in the area to be detected.
- determining an obstacle according to the depth image reference may be made to the prior art, and details are not described herein again.
- the obstacle obtained by analyzing the depth image in the embodiment of the present application is referred to as a second type of obstacle.
- Step 103 Determine a spatial location of the first type of obstacle according to the pixel image and the depth image, and determine a spatial location of the second type of obstacle according to the depth image.
- the first type of obstacle For the first type of obstacle, determining, according to the coordinates of each obstacle in the pixel image of the first type of obstacle, each obstacle in the first type of obstacle in the to-be-detected area Two-dimensional position; then according to each of the first type of obstacles Determining, in a two-dimensional position of the obstacle to be detected, a coordinate of each obstacle in the first type of obstacle in the depth image; and then each obstacle according to the first type of obstacle Determining, in the pixel corresponding to the coordinates in the depth image, a depth value of each obstacle in the first type of obstacle; according to each obstacle in the first type of obstacle, in the to-be-detected area
- the two-dimensional position and the depth value in the middle obtain the spatial position of each obstacle in the first type of obstacle.
- each obstacle in the second type of obstacle is in the area to be detected
- the two-dimensional position and depth values give the spatial position of each obstacle in the second type of obstacle.
- the solution provided by the present application obtains a pixel image and a depth image corresponding to the to-be-detected area, where each pixel point corresponds to a pixel category, and each pixel point in the depth image corresponds to a depth value; a pixel class of each pixel determines a road surface area in the area to be detected and a first type of obstacle in the road surface area; and determines a second type of obstacle in the area to be detected according to the depth image; and finally determines according to the pixel image and the depth image
- the spatial position of the first type of obstacle and the spatial position of the second type of obstacle according to the depth image are compared with the obstacle detection accuracy of various obstacle detection methods in the prior art, and the invention can detect by the pixel image
- a type of obstacle to the road surface area such as a small obstacle in the road surface, can detect a large volume obstacle in the area to be detected through the depth image, and thus can comprehensively detect the obstacle in the area to be detected.
- the present application is also capable of
- the embodiment of the present application also provides an obstacle detection method for the second type. Obstructions that do not affect travel are excluded from the obstacle.
- the second type of obstacle may be determined after the determining the road surface area in the area to be detected according to the pixel type of each pixel in the pixel image. As shown in FIG. 5, the method further includes:
- Step 201 Determine a two-dimensional position of the road surface area in the area to be detected.
- the two-dimensional position of the road surface area in the area to be detected can be determined.
- Step 202 Determine a road surface area in the depth image according to a two-dimensional position of the road surface area in the to-be-detected area.
- the road surface represented by the depth image may be determined according to the two-dimensional position. region.
- the two-dimensional position in the area to be detected can be determined according to the road surface area. Determining the preliminary range of the road surface area. If the pixel values of other pixel points are the same as the pixel values of the initially determined road surface area, the pixel points are also determined as the pixel points of the road surface area, thereby obtaining the final road surface area. .
- Step 203 Screen an obstacle located in the road surface area from the second type of obstacle.
- the obstacles outside the road surface area of the second type of obstacles that is, the obstacles that do not affect the advancement, can be deleted from the second type of obstacles.
- step 102 the road surface area in the to-be-detected area and the first type of obstacle in the road surface area are determined in the pixel category according to each pixel point in the pixel image. And determining the second type of obstacle in the area to be detected according to the depth image, as shown in FIG. 6, the method further includes:
- Step 301 Determine, according to coordinates of each obstacle in the pixel image of the first type of obstacle, a two-dimensional position of each obstacle in the to-be-detected area in the first type of obstacle.
- Step 302 According to each obstacle in the second type of obstacle, sitting in the depth image The two-dimensional positions of each obstacle in the second type of obstacle in the area to be detected are respectively determined.
- Step 303 When there is a target obstacle that belongs to the first type of obstacle and belongs to the second type of obstacle and has the same two-dimensional position in the area to be detected, from the first type of obstacle or the second type of obstacle Delete the target obstacle.
- each obstacle in the first type of obstacle and the second type of obstacle is determined in the area to be detected.
- the obstacle can be regarded as belonging to the first type of obstacle and the second type of obstacle and repeated calculation Obstacle.
- the contour information, the position information, and the category of the obstacle may be separately determined, so that the obstacle avoidance decision can be made. Provide more complete decision information.
- step 103 After determining the spatial position of the first type of obstacle according to the pixel image and the depth image and determining the spatial position of the second type of obstacle according to the depth image, in step 103, as shown in FIG.
- the method also includes:
- Step 401 Output spatial position information and contour information of the first type of obstacle whose depth value is within a preset range, and spatial position information and contour information of the second type of obstacle.
- the preset range can be set and adjusted according to actual needs.
- spatial position information and contour information of an obstacle within a depth of two meters can be output, ignoring further obstacles.
- the obstacle detection method provided by the present application is a real-time detection process, which can be detected all the time during the traveling, so that the obstacles outside the preset range may have no influence on the current travel, and the depth values at the obstacles may be After the preset range, continue to detect.
- the obstacle detecting device 12 can transmit the information obtained in step 401 to the decision device so that the decision device 13 makes an obstacle avoidance decision based on the information.
- the embodiment of the present application may perform the division of the function module on the obstacle detection device according to the above method example.
- each function module may be divided according to each function, or two or more functions may be integrated into one processing module.
- the above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of the module in the embodiment of the present application is schematic, and is only a logical function division, and the actual implementation may have another division manner.
- FIG. 8 is a schematic diagram showing a possible structure of the obstacle detecting device involved in the above embodiment.
- the obstacle detecting device includes: an acquiring unit 501, and an obstacle determination. Unit 502 and location determining unit 503.
- the obtaining unit 501 is configured to support the obstacle detecting device to execute the process 101 in FIG. 3;
- the obstacle determining unit 502 is configured to support the obstacle detecting device to perform step 102 in FIG. 3, step 202, step 203 in FIG. 5, FIG. Step 303;
- the position determining unit 503 is configured to support the obstacle detecting device to perform step 103 in FIG. 3, step 201 in FIG. 5, step 301 and step 302 in FIG. All the related content of the steps involved in the foregoing method embodiments may be referred to the functional descriptions of the corresponding functional modules, and details are not described herein again.
- the obstacle detecting device further includes an output unit 601 for supporting the obstacle detecting device to execute the process 401 in FIG. 7.
- FIG. 10 shows a possible structural diagram of the obstacle detecting apparatus involved in the above embodiment.
- the obstacle detecting device includes a processing module 701 and a communication module 702.
- the processing module 701 is configured to perform control management on the action of the obstacle detecting device.
- the processing module 701 is configured to support the obstacle detecting device to perform the processes 102 and 103 in FIG. 3, and the processes 201, 202, and 203 in FIG. Processes 301, 302, 303 in 6, and/or other processes for the techniques described herein.
- the communication module 702 is configured to support communication between the obstacle detecting device and other network entities, for example, with the function module or network shown in FIG. Communication between the bodies.
- the obstacle detecting device may further include a storage module 703 for storing program codes and data of the obstacle detecting device.
- the processing module 701 can be a processor or a controller, for example, a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), and an application-specific integrated circuit (Application-Specific Integrated Circuit (ASIC), Field Programmable Gate Array (FPGA) or other programmable logic device, transistor logic device, hardware component, or any combination thereof. It is possible to implement or carry out the various illustrative logical blocks, modules and circuits described in connection with the present disclosure.
- the processor may also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like.
- the communication module 702 can be a transceiver, a transceiver circuit, a communication interface, or the like.
- the storage module 703 can be a memory.
- the obstacle detecting device When the processing module 701 is a processor, the communication module 702 is a transceiver, and the storage module 703 is a memory, the obstacle detecting device according to the embodiment of the present application may be the electronic device shown in FIG.
- the electronic device includes a processor 801, a communication interface 802 memory 803, and a bus 804.
- the processor 801, the communication interface 802, and the memory 803 are connected to each other through a bus 804; the bus 804 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA). Bus, etc.
- PCI Peripheral Component Interconnect
- EISA Extended Industry Standard Architecture
- the bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 11, but it does not mean that there is only one bus or one type of bus.
- the steps of a method or algorithm described in connection with the present disclosure may be implemented in a hardware or may be implemented by a processor executing software instructions.
- the software instructions may be composed of corresponding software modules, which may be stored in a random access memory (RAM), a flash memory, a read only memory (ROM), an erasable programmable read only memory ( Erasable Programmable ROM (EPROM), electrically erasable programmable read only memory (EEPROM), registers, hard disk, removable hard disk, compact disk read only (CD-ROM) or any other form of storage medium known in the art.
- An exemplary storage medium is coupled to the processor to enable the processor to read information from, and write information to, the storage medium.
- the storage medium can also be The components of the processor.
- the processor and the storage medium can be located in an ASIC.
- the functions described herein can be implemented in hardware, software, firmware, or any combination thereof.
- the functions may be stored in a computer readable medium or transmitted as one or more instructions or code on a computer readable medium.
- Computer readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one location to another.
- a storage medium may be any available media that can be accessed by a general purpose or special purpose computer.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Image Processing (AREA)
- Image Analysis (AREA)
Abstract
Description
本申请涉及计算机视觉技术领域,尤其涉及一种障碍物检测方法及装置。The present application relates to the field of computer vision technology, and in particular, to an obstacle detection method and apparatus.
在移动机器人和导盲系统中,避障是必需的基本功能之一,而如何有效的检测出行进路面上的障碍物,是避障系统需要解决的关键问题。In mobile robots and blind guide systems, obstacle avoidance is one of the basic functions necessary, and how to effectively detect obstacles on the road surface is a key problem that the obstacle avoidance system needs to solve.
目前,常用的障碍物检测方式包括基于红外线、超声波等非视觉检测方式;以及基于单个摄像机的非立体视觉检测方式。然而这两种方式都存在相应的缺陷和不足,其中,使用红外线、超声波等非视觉检测方式,其检测精度有限,只能检测体积较大的障碍物,无法检测到微小障碍物,因此安全性较差;而基于单个摄像机的障碍物检测方式,往往需要指定感兴趣区域,对于复杂环境,其无法自动检测路面区域和障碍物。At present, commonly used obstacle detection methods include non-visual detection methods based on infrared rays, ultrasonic waves, and non-stereoscopic vision detection methods based on a single camera. However, there are corresponding defects and deficiencies in these two methods. Among them, non-visual detection methods such as infrared rays and ultrasonic waves have limited detection accuracy, and can only detect large obstacles and cannot detect small obstacles, so safety is achieved. Poor; based on the obstacle detection method of a single camera, it is often necessary to specify the area of interest. For complex environments, it cannot automatically detect the road surface and obstacles.
发明内容Summary of the invention
本申请的实施例提供一种障碍物检测方法及装置,主要解决现有技术中存在的障碍物检测精度有限的问题。The embodiment of the present application provides an obstacle detection method and device, which mainly solves the problem that the detection accuracy of obstacles existing in the prior art is limited.
为达到上述目的,本申请的实施例采用如下技术方案:To achieve the above objective, the embodiment of the present application adopts the following technical solutions:
第一方面,本申请提供一种障碍物检测方法,包括:In a first aspect, the present application provides an obstacle detection method, including:
分别获取待检测区域对应的像素图像和深度图像,所述像素图像中各个像素点与像素类别对应,所述深度图像中各个像素点与深度值对应;根据所述像素图像中的各个像素点的像素类别确定所述待检测区域中的路面区域以及所述路面区域中的第一类障碍物;以及根据所述深度图像确定所述待检测区域中的第二类障碍物;根据所述像素图像和深度图像确定所述第一类障碍物的空间位置以及根据所述深度图像确定所述第二类障碍物的空间位置。 Obtaining, respectively, a pixel image and a depth image corresponding to the to-be-detected area, where each pixel point corresponds to a pixel category, and each pixel point in the depth image corresponds to a depth value; according to each pixel point in the pixel image a pixel class determining a road surface area in the area to be detected and a first type of obstacle in the road surface area; and determining a second type of obstacle in the area to be detected according to the depth image; according to the pixel image And the depth image determines a spatial location of the first type of obstacle and determines a spatial location of the second type of obstacle based on the depth image.
第二方面,本申请提供一种障碍物检测装置,包括:获取单元,用于分别获取待检测区域对应的像素图像和深度图像,所述像素图像中各个像素点与像素类别对应,所述深度图像中各个像素点与深度值对应;障碍物确定单元,用于根据所述获取单元获取的所述像素图像中的各个像素点的像素类别确定所述待检测区域中的路面区域以及所述路面区域中的第一类障碍物;以及根据所述获取单元获取的所述深度图像确定所述待检测区域中的第二类障碍物;位置确定单元,用于根据所述像素图像和深度图像确定所述障碍物确定单元确定的第一类障碍物的空间位置以及根据所述深度图像确定所述障碍物确定单元确定的第二类障碍物的空间位置。In a second aspect, the present application provides an obstacle detecting apparatus, including: an acquiring unit, configured to respectively acquire a pixel image and a depth image corresponding to an area to be detected, where each pixel point corresponds to a pixel category, the depth Each of the pixel points in the image corresponds to the depth value; the obstacle determining unit is configured to determine a road surface area in the to-be-detected area and the road surface according to a pixel category of each pixel point in the pixel image acquired by the acquiring unit a first type of obstacle in the area; and determining, according to the depth image acquired by the acquiring unit, a second type of obstacle in the area to be detected; a position determining unit, configured to determine according to the pixel image and the depth image The spatial position of the first type of obstacle determined by the obstacle determination unit and the spatial position of the second type of obstacle determined by the obstacle determination unit according to the depth image.
第三方面,本申请提供一种计算机存储介质,用于储存计算机软件指令,其包含执行第一方面所述的障碍物检测方法所设计的程序代码。In a third aspect, the present application provides a computer storage medium for storing computer software instructions comprising program code designed to perform the obstacle detection method of the first aspect.
第四方面,本申请提供一种计算机程序产品,可直接加载到计算机的内部存储器中,并含有软件代码,所述计算机程序经由计算机载入并执行后能够实现第一方面所述的障碍物检测方法。In a fourth aspect, the present application provides a computer program product that can be directly loaded into an internal memory of a computer and includes software code, and the computer program can be loaded and executed by a computer to implement the obstacle detection described in the first aspect. method.
第五方面,本申请提供一种电子设备,包括:存储器、通信接口和处理器,所述存储器用于存储计算机可执行代码,所述处理器用于执行所述计算机可执行代码控制执行第一方面所述障碍物检测方法,所述通信接口用于所述电子设备与外部设备的数据传输。In a fifth aspect, the present application provides an electronic device, including: a memory, a communication interface, and a processor, the memory is configured to store computer executable code, and the processor is configured to execute the computer executable code control to perform the first aspect The obstacle detecting method, the communication interface is used for data transmission between the electronic device and an external device.
第六方面,本申请提供一种机器人,包括第五方面所述的电子设备。In a sixth aspect, the present application provides a robot, including the electronic device of the fifth aspect.
本申请提供的方案,通过分别获取待检测区域对应的像素图像和深度图像,该像素图像中各个像素点与像素类别对应,该深度图像中各个像素点与深度值对应;再根据像素图像中的各个像素点的像素类别确定待检测区域中的路面区域以及路面区域中的第一类障碍物;以及根据深度图像确定待检测区域中的第二类障碍物;最后再根据像素图像和深度图像确定第一类障碍物的空间位置以及根据深度图像确定第二类障碍物的空间位置,与现有技术中的各种障碍 物检测方法障碍物检测精度有限相比,本申请由于通过像素图像能够检测到路面区域中的一类障碍物,如路面中的微小障碍物,通过深度图像能够检测到待检测区域中的体积较大的障碍物,因此,能够得到待检测区域中的较为全面的障碍物;此外,在检测出障碍物后,本申请还能够输出障碍物的空间位置,有助于避障决策。The solution provided by the present application obtains a pixel image and a depth image corresponding to the to-be-detected area, where each pixel point corresponds to a pixel category, and each pixel point in the depth image corresponds to a depth value; a pixel class of each pixel determines a road surface area in the area to be detected and a first type of obstacle in the road surface area; and determines a second type of obstacle in the area to be detected according to the depth image; and finally determines according to the pixel image and the depth image The spatial location of the first type of obstacle and the spatial location of the second type of obstacle based on the depth image, and various obstacles in the prior art Compared with the object detection method, the detection accuracy of the obstacle is limited. Compared with the obstacle image in the road surface area, such as a small obstacle in the road surface, the volume image can detect the volume in the area to be detected through the depth image. Large obstacles, therefore, can obtain a more comprehensive obstacle in the area to be detected; in addition, after detecting the obstacle, the present application can also output the spatial position of the obstacle, which is helpful for obstacle avoidance decision.
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings to be used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present application, and other drawings can be obtained according to the drawings without any creative work for those skilled in the art.
图1为本申请实施例提供的避障系统的架构示意图;1 is a schematic structural diagram of an obstacle avoidance system according to an embodiment of the present application;
图2为本申请实施例提供的待检测区域以及待检测区域对应的深度图像的示意图;2 is a schematic diagram of a depth image corresponding to an area to be detected and an area to be detected according to an embodiment of the present disclosure;
图3为本申请实施例提供的一种障碍物检测方法的流程示意图;FIG. 3 is a schematic flowchart diagram of an obstacle detection method according to an embodiment of the present application;
图4为本申请实施例提供的待检测区域、待检测区域分别对应的像素图像和深度图像的示意图;4 is a schematic diagram of a pixel image and a depth image corresponding to a to-be-detected area and a to-be-detected area according to an embodiment of the present disclosure;
图5至图7为本申请实施例提供的障碍物检测方法的流程示意图;5 to FIG. 7 are schematic flowcharts of a method for detecting an obstacle provided by an embodiment of the present application;
图8至图10为本申请实施例提供的障碍物检测设备的结构示意图;8 to FIG. 10 are schematic structural diagrams of an obstacle detecting device according to an embodiment of the present application;
图11为本申请实施例提供的电子设备的结构示意图。FIG. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
本申请实施例描述的系统架构以及业务场景是为了更加清楚的说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定,本领域普通技术人员可知,随着系统架构的演变和新业务场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。The system architecture and the service scenario described in the embodiments of the present application are for the purpose of more clearly explaining the technical solutions of the embodiments of the present application, and do not constitute a limitation of the technical solutions provided by the embodiments of the present application. The technical solutions provided by the embodiments of the present application are equally applicable to similar technical problems.
需要说明的是,本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施 例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that, in the embodiments of the present application, the words "exemplary" or "such as" are used to mean an example, an illustration, or a description. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be construed as An example or design is more preferred or advantageous. Rather, the use of the words "exemplary" or "such as" is intended to present the concepts in a particular manner.
需要说明的是,本申请实施例中,“的(英文:of)”,“相应的(英文:corresponding,relevant)”和“对应的(英文:corresponding)”有时可以混用,应当指出的是,在不强调其区别时,其所要表达的含义是一致的。It should be noted that, in the embodiment of the present application, "(English: of)", "corresponding (relevant)" and "corresponding" may sometimes be mixed. It should be noted that When the difference is not emphasized, the meaning to be expressed is the same.
避障系统,用于检测特定区域是否存在障碍物,可应用于移动机器人、导盲系统中等。障碍物检测为避障系统的基本功能。本申请实施例提供一种避障系统,如图1所示,该避障系统10包括:图像采集设备11、障碍物检测设备12和决策设备13。其中,图像采集设备11用于采集用于进行障碍物检测的特定区域的图像信息,如移动机器人行进前方的图像,并将采集到的图像信息发送至障碍物检测设备12;示例性的,该图像采集设备包括一个或多个采集平面图像的摄像机以及采集立体图像的双目摄像机等。障碍物检测设备12用于对图像采集设备11发送的图像信息进行处理以得到是否包含障碍物以及障碍物的轮廓、大小、位置、种类等信息,并将处理得到的信息发送至决策设备13。决策设备13,用于根据障碍物检测设备12发送的信息作出如何避障的决策,决策设备可以为具有处理运算功能的设备,如服务器等。图像采集设备11和决策设备13的具体实现可参考现有技术,此处不再赘述。The obstacle avoidance system is used to detect whether there is an obstacle in a specific area, and can be applied to a mobile robot or a guide blind system. Obstacle detection is the basic function of the obstacle avoidance system. The embodiment of the present application provides an obstacle avoidance system. As shown in FIG. 1 , the
深度图像(depth image)也被称为距离影像(range image),是指将从图像采集器,如双目摄像机到待检测区域中各点的距离(或者称为深度)作为像素值的图像,能够直接反映物体可见表面的几何形状,也即能够直接确定各个物体的轮廓线。深度图像经过坐标转换可以计算为点云数据,有规则及必要信息的点云数据也可以反算为深度图像数据。深度图像中,每一个像素点代表的是在图像采集器的视野中,该特定的(x,y)坐标处物体到摄像头平面的距离。根据深度图像中的距离和各个物体的轮廓可以达到检测障碍物的目的。如图2所示为对左图所示的待检测区域进行拍摄并处理后得到右图所示的深度图像,在该深度图像中不同的亮度值表示不同的距离,颜色越亮表示目标距离越近。结合图2所示的深度图像,能够 将椅子、垃圾桶和人确定为障碍物。深度图像的具体实现原理以及根据深度图像进行障碍物检测的具体实现过程可参考现有技术,此处不再赘述。虽然可以利用深度图像实现障碍物检测,但这种方法精度较低,只能检测较大的障碍物,对于路面上的小障碍则无能为力。A depth image, also referred to as a range image, is an image that takes a distance (or depth) from an image collector, such as a binocular camera, to a point in a region to be detected as a pixel value. It can directly reflect the geometry of the visible surface of the object, that is, it can directly determine the contour of each object. The depth image can be calculated as point cloud data through coordinate conversion, and the point cloud data with rules and necessary information can also be inversely counted as depth image data. In the depth image, each pixel represents the distance from the object to the camera plane at the particular (x,y) coordinate in the field of view of the image collector. The purpose of detecting an obstacle can be achieved according to the distance in the depth image and the contour of each object. As shown in FIG. 2, the image to be detected shown in the left figure is photographed and processed to obtain a depth image shown in the right image. In the depth image, different brightness values indicate different distances, and the brighter the color, the more the target distance is. near. Combined with the depth image shown in Figure 2, Identify chairs, trash cans, and people as obstacles. The specific implementation principle of the depth image and the specific implementation process of the obstacle detection according to the depth image may refer to the prior art, and details are not described herein again. Although depth images can be used to detect obstacles, this method is less accurate and can only detect larger obstacles, and it is powerless for small obstacles on the road surface.
为了检测路面上的微小障碍物,本申请通过获取待检测区域对应的像素信息,从待检测区域中确定出路面区域,然后再检测路面区域中的微小障碍物。In order to detect small obstacles on the road surface, the present application determines the road surface area from the area to be detected by acquiring the pixel information corresponding to the area to be detected, and then detects the small obstacles in the road surface area.
基于此,本发明实施例提供一种障碍物检测方法,实现既可以检测较大障碍物,也可以检测到较小障碍物,并能够根据深度图像进一步得到障碍物的三维空间位置。该方法可应用于图1所示的系统中,当应用于图1所示的系统中时,该方法的执行主体为障碍物检测设备12。Based on this, an embodiment of the present invention provides an obstacle detection method, which can detect not only a large obstacle but also a small obstacle, and can further obtain a three-dimensional spatial position of the obstacle according to the depth image. The method is applicable to the system shown in FIG. 1. When applied to the system shown in FIG. 1, the subject of the method is the
如图3所示,该方法包括:As shown in FIG. 3, the method includes:
步骤101、分别获取待检测区域对应的像素图像和深度图像。Step 101: Acquire a pixel image and a depth image corresponding to the to-be-detected area, respectively.
其中,所述像素图像中各个像素点与像素类别对应。具体的,像素图像的一种实现方式为:对待检测区域进行拍摄,得到该待检测区域对应的二维彩色图像;结合包括像素点的像素取值与像素类别的对应关系的预设对应关系,对该二维彩色图像中的各个像素点的像素取值进行分析,确定各个像素点的类别,并生成所述像素图像,在该像素图像中,同一像素类别的像素取值相同,或者说其颜色相同。Wherein each pixel point in the pixel image corresponds to a pixel category. Specifically, one implementation manner of the pixel image is: capturing a detection area, obtaining a two-dimensional color image corresponding to the to-be-detected area; and combining a preset correspondence relationship between a pixel value including a pixel point and a pixel category, A pixel value of each pixel in the two-dimensional color image is analyzed, a category of each pixel is determined, and the pixel image is generated, in which pixels of the same pixel category have the same value, or The colors are the same.
可选的,所述预设对应关系中包括像素点的取值与路面像素的对应关系,则生成的相应像素图像为二值图像,该二值图像中各个像素点对应的像素类别为路面像素或非路面像素,所有路面像素组成的区域为路面区域,所有非路面像素组成的区域为非路面区域。Optionally, the preset correspondence relationship includes a corresponding relationship between a pixel value and a road surface pixel, and the generated corresponding pixel image is a binary image, and the pixel category corresponding to each pixel point in the binary image is a road surface pixel. Or non-road pixels, the area composed of all road pixels is the road surface area, and the area composed of all non-road pixels is the non-road area.
所述深度图像中各个像素点与深度值对应。深度图像的具体实现可参考现有技术,此处不再赘述。Each pixel point in the depth image corresponds to a depth value. The specific implementation of the depth image can refer to the prior art, and details are not described herein again.
如图4所示,本发明实施例提供了待检测区域对应的二维彩色 图像以及其分别对应的像素图像和深度图像。该像素图像中的白色区域的各像素点对应的像素类别为路面像素,因此该白色区域可称为路面区域。黑色区域的各像素点对应的像素类别为非路面像素,因此,该黑色区域可称为非路面区域。As shown in FIG. 4, an embodiment of the present invention provides two-dimensional color corresponding to an area to be detected. The image and its corresponding pixel image and depth image. The pixel type corresponding to each pixel of the white area in the pixel image is a road surface pixel, and thus the white area may be referred to as a road surface area. The pixel type corresponding to each pixel of the black area is a non-road pixel, and therefore, the black area may be referred to as a non-road area.
步骤102、根据像素图像中的各个像素点的像素类别确定待检测区域中的路面区域以及路面区域中的第一类障碍物;以及根据深度图像确定待检测区域中的第二类障碍物。Step 102: Determine a road surface area in a to-be-detected area and a first type of obstacle in the road surface area according to a pixel category of each pixel point in the pixel image; and determine a second type of obstacle in the area to be detected according to the depth image.
如上所述,根据像素图像中的各个像素点的像素类别,将所有像素类别为路面像素的像素点组成的区域确定为路面区域,将所有像素类别为非路面像素的像素点组成的区域确定为非路面区域。在确定路面区域后,通过在路面区域中进行目标障碍物检测或者通过检测路面区域和非路面区域的轮廓线,进一步检测是否存在非路面区域的轮廓线被路面区域的轮廓线包围的非路面区域等方式检测路面区域中的障碍物。本申请实施例中将此类通过对像素图像进行分析得到的障碍物称为第一类障碍物。As described above, according to the pixel class of each pixel in the pixel image, an area composed of pixels of all the pixel types of the road surface pixels is determined as the road surface area, and an area composed of the pixel points of all the pixel types of the non-road pixels is determined as Non-road area. After determining the road surface area, by detecting the target obstacle in the road surface area or by detecting the contour lines of the road surface area and the non-road surface area, it is further detected whether there is a non-road area in which the contour line of the non-road surface area is surrounded by the contour line of the road surface area. The obstacles in the road surface area are detected in an equal manner. Such an obstacle obtained by analyzing a pixel image in the embodiment of the present application is referred to as a first type of obstacle.
另外,该第一类障碍物可能无法包含待检测区域中的所有障碍物。因此,本申请实施例中还提供了根据深度图像确定深度图像中各个物体的轮廓,进而确定待检测区域中的障碍物,获取深度图像后,按照设定的深度阈值,将深度图像分割为不同深度的子图像,每张子图像只包含某一深度范围内的物体,检测每一子图像的轮廓信息(即物体轮廓),从而确定待检测区域中的障碍物。根据深度图像确定障碍物的具体实现可参考现有技术,此处不再赘述。本申请实施例中将通过对深度图像进行分析得到的障碍物称为第二类障碍物。Additionally, the first type of obstacle may not contain all of the obstacles in the area to be detected. Therefore, in the embodiment of the present application, the contour of each object in the depth image is determined according to the depth image, thereby determining an obstacle in the area to be detected, and after obtaining the depth image, the depth image is segmented into different according to the set depth threshold. A sub-image of depth, each sub-image contains only objects within a certain depth range, and the contour information of each sub-image (ie, the contour of the object) is detected to determine an obstacle in the area to be detected. For a specific implementation of determining an obstacle according to the depth image, reference may be made to the prior art, and details are not described herein again. The obstacle obtained by analyzing the depth image in the embodiment of the present application is referred to as a second type of obstacle.
步骤103、根据像素图像和深度图像确定第一类障碍物的空间位置以及根据深度图像确定所述第二类障碍物的空间位置。Step 103: Determine a spatial location of the first type of obstacle according to the pixel image and the depth image, and determine a spatial location of the second type of obstacle according to the depth image.
对于第一类障碍物,根据所述第一类障碍物中每个障碍物在所述像素图像中的坐标,分别确定所述第一类障碍物中每个障碍物在所述待检测区域中的二维位置;然后根据所述第一类障碍物中每个 障碍物在所述待检测区域中的二维位置,确定所述第一类障碍物中每个障碍物在所述深度图像中坐标;再分别根据所述第一类障碍物中每个障碍物在所述深度图像中的坐标对应的像素点,分别确定所述第一类障碍物中每个障碍物的深度值;根据所述第一类障碍物中每个障碍物在所述待检测区域中的二维位置以及深度值,得到所述第一类障碍物中每个障碍物的空间位置。For the first type of obstacle, determining, according to the coordinates of each obstacle in the pixel image of the first type of obstacle, each obstacle in the first type of obstacle in the to-be-detected area Two-dimensional position; then according to each of the first type of obstacles Determining, in a two-dimensional position of the obstacle to be detected, a coordinate of each obstacle in the first type of obstacle in the depth image; and then each obstacle according to the first type of obstacle Determining, in the pixel corresponding to the coordinates in the depth image, a depth value of each obstacle in the first type of obstacle; according to each obstacle in the first type of obstacle, in the to-be-detected area The two-dimensional position and the depth value in the middle obtain the spatial position of each obstacle in the first type of obstacle.
对于第二类障碍物,根据所述第二类障碍物中每个障碍物在所述深度图像中的坐标,分别确定所述第二类障碍物中每个障碍物在所述待检测区域中的二维位置和深度值,得到所述第二类障碍物中每个障碍物的空间位置。For the second type of obstacle, determining, according to the coordinates of each obstacle in the depth image in the second type of obstacle, each obstacle in the second type of obstacle is in the area to be detected The two-dimensional position and depth values give the spatial position of each obstacle in the second type of obstacle.
本申请提供的方案,通过分别获取待检测区域对应的像素图像和深度图像,该像素图像中各个像素点与像素类别对应,该深度图像中各个像素点与深度值对应;再根据像素图像中的各个像素点的像素类别确定待检测区域中的路面区域以及路面区域中的第一类障碍物;以及根据深度图像确定待检测区域中的第二类障碍物;最后再根据像素图像和深度图像确定第一类障碍物的空间位置以及根据深度图像确定第二类障碍物的空间位置,与现有技术中的各种障碍物检测方法其障碍物检测精度有限相比,本发明通过像素图像能够检测到路面区域中的一类障碍物,如路面中的微小障碍物,通过深度图像能够检测到待检测区域中的体积较大的障碍物,因此,能够较为全面的检测待检测区域中的的障碍物;此外,在检测出障碍物后,本申请还能够输出障碍物的空间位置,有助于避障决策。The solution provided by the present application obtains a pixel image and a depth image corresponding to the to-be-detected area, where each pixel point corresponds to a pixel category, and each pixel point in the depth image corresponds to a depth value; a pixel class of each pixel determines a road surface area in the area to be detected and a first type of obstacle in the road surface area; and determines a second type of obstacle in the area to be detected according to the depth image; and finally determines according to the pixel image and the depth image The spatial position of the first type of obstacle and the spatial position of the second type of obstacle according to the depth image are compared with the obstacle detection accuracy of various obstacle detection methods in the prior art, and the invention can detect by the pixel image A type of obstacle to the road surface area, such as a small obstacle in the road surface, can detect a large volume obstacle in the area to be detected through the depth image, and thus can comprehensively detect the obstacle in the area to be detected. In addition, after detecting an obstacle, the present application is also capable of outputting an obstacle space. Home help obstacle avoidance decisions.
实际应用中,有些障碍物位于道路两侧,如道路两旁的路牌、树木等,其可能并不影响行进,因此,本申请实施例还提供了一种障碍物检测方法,用于从第二类障碍物中排除不影响行进的障碍物。在步骤102“确定出第二类障碍物后,可对第二类障碍物进行在所述根据所述像素图像中的各个像素点的像素类别确定所述待检测区域中的路面区域”之后,如图5所示,所述方法还包括:In practical applications, some obstacles are located on both sides of the road, such as road signs and trees on both sides of the road, which may not affect the travel. Therefore, the embodiment of the present application also provides an obstacle detection method for the second type. Obstructions that do not affect travel are excluded from the obstacle. After the second type of obstacle is determined in
步骤201、确定路面区域在所述待检测区域中的二维位置。 Step 201: Determine a two-dimensional position of the road surface area in the area to be detected.
在根据像素图像确定出待检测区域中的路面区域后,能够确定路面区域在待检测区域中的二维位置。After the road surface area in the area to be detected is determined from the pixel image, the two-dimensional position of the road surface area in the area to be detected can be determined.
步骤202、根据所述路面区域在所述待检测区域中的二维位置,确定所述深度图像中的路面区域。Step 202: Determine a road surface area in the depth image according to a two-dimensional position of the road surface area in the to-be-detected area.
由于深度图像和像素图像对应的都是同一待检测区域,因此,在根据像素图像确定了路面区域在待检测区域中的二维位置后,可根据该二维位置确定深度图像中所表示的路面区域。Since the depth image and the pixel image correspond to the same area to be detected, after determining the two-dimensional position of the road surface area in the area to be detected according to the pixel image, the road surface represented by the depth image may be determined according to the two-dimensional position. region.
需要说明的是,在深度图像中确定路面区域时,由于整个路面一般位于同一水平面,也即整个路面对应的各个像素的深度值相同,因此,可根据路面区域在待检测区域中的二维位置确定路面区域的初步范围,如果还存在其他像素点的像素取值与已初步确定的路面区域的像素取值相同,则将这些像素点也确定为路面区域的像素点,进而得到最终的路面区域。It should be noted that when the road surface area is determined in the depth image, since the entire road surface is generally located at the same horizontal plane, that is, the depth values of the respective pixels corresponding to the entire road surface are the same, the two-dimensional position in the area to be detected can be determined according to the road surface area. Determining the preliminary range of the road surface area. If the pixel values of other pixel points are the same as the pixel values of the initially determined road surface area, the pixel points are also determined as the pixel points of the road surface area, thereby obtaining the final road surface area. .
步骤203、从所述第二类障碍物中筛选得到位于所述路面区域的障碍物。Step 203: Screen an obstacle located in the road surface area from the second type of obstacle.
通过上述步骤201至步骤203的实现过程,可将第二类障碍物中位于路面区域以外的障碍物,也即不影响前进的障碍物从第二类障碍物中删除。Through the implementation process of the
考虑到在采用上述方法确定出第一类障碍物和第二类障碍物后,可能存在第一类障碍物和第二类障碍物中存在障碍物重复确定的情况。因此,本申请实施例中,在步骤102“在所述根据所述像素图像中的各个像素点的像素类别确定所述待检测区域中的路面区域以及所述路面区域中的第一类障碍物;以及根据所述深度图像确定所述待检测区域中的第二类障碍物”之后,如图6所示,所述方法还包括:Considering that after the first type of obstacle and the second type of obstacle are determined by the above method, there may be cases where the obstacle is repeatedly determined in the first type of obstacle and the second type of obstacle. Therefore, in the embodiment of the present application, in
步骤301、根据第一类障碍物中每个障碍物在像素图像中的坐标,分别确定第一类障碍物中每个障碍物在所述待检测区域中的二维位置。Step 301: Determine, according to coordinates of each obstacle in the pixel image of the first type of obstacle, a two-dimensional position of each obstacle in the to-be-detected area in the first type of obstacle.
步骤302、根据第二类障碍物中每个障碍物在深度图像中的坐 标,分别确定第二类障碍物中每个障碍物在待检测区域中的二维位置。Step 302: According to each obstacle in the second type of obstacle, sitting in the depth image The two-dimensional positions of each obstacle in the second type of obstacle in the area to be detected are respectively determined.
步骤303、当存在既属于第一类障碍物又属于第二类障碍物,且在待检测区域中的二维位置相同的目标障碍物时,从第一类障碍物或第二类障碍物中删除目标障碍物。Step 303: When there is a target obstacle that belongs to the first type of obstacle and belongs to the second type of obstacle and has the same two-dimensional position in the area to be detected, from the first type of obstacle or the second type of obstacle Delete the target obstacle.
通过上述步骤301至步骤303的实现过程,在确定出第一类障碍物和第二类障碍物后,通过分别确定第一类障碍物和第二类障碍物中每个障碍物在待检测区域中的二维位置,当某个障碍物分别通过像素图像和深度图像确定出来的二维位置相同时,可以认为该障碍物为既属于第一类障碍物又属于第二类障碍物且重复计算了的障碍物。Through the implementation process of the
可选的,本申请中,在检测到障碍物后并确定出障碍物的空间位置后,还可以分别确定障碍物的轮廓信息、位置信息以及障碍物的类别等信息,因此能够为避障决策提供更加完整的决策信息。Optionally, in the present application, after the obstacle is detected and the spatial position of the obstacle is determined, the contour information, the position information, and the category of the obstacle may be separately determined, so that the obstacle avoidance decision can be made. Provide more complete decision information.
在步骤103“根据所述像素图像和深度图像确定所述第一类障碍物的空间位置以及根据所述深度图像确定所述第二类障碍物的空间位置”之后,如图7所示,所述方法还包括:After determining the spatial position of the first type of obstacle according to the pixel image and the depth image and determining the spatial position of the second type of obstacle according to the depth image, in
步骤401、输出深度值位于预设范围内的所述第一类障碍物的空间位置信息和轮廓信息以及第二类障碍物的空间位置信息和轮廓信息。Step 401: Output spatial position information and contour information of the first type of obstacle whose depth value is within a preset range, and spatial position information and contour information of the second type of obstacle.
其中,预设范围可以根据实际需要设定并调整。示例性的,可以输出深度值两米以内的障碍物的空间位置信息和轮廓信息,忽略更远的障碍物。这是因为本申请提供的障碍物检测方法为实时检测的过程,可在行进过程中一直检测,因此对于预设范围外的障碍物可能对目前行进尚无影响,可在这些障碍物的深度值位于该预设范围内后再继续检测。Among them, the preset range can be set and adjusted according to actual needs. Illustratively, spatial position information and contour information of an obstacle within a depth of two meters can be output, ignoring further obstacles. This is because the obstacle detection method provided by the present application is a real-time detection process, which can be detected all the time during the traveling, so that the obstacles outside the preset range may have no influence on the current travel, and the depth values at the obstacles may be After the preset range, continue to detect.
在将本方法应用于图1所示的系统中时,障碍物检测设备12可将步骤401中得到的信息发送给决策设备以便于决策设备13根据这些信息作出避障决策。
When the method is applied to the system shown in FIG. 1, the
本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those skilled in the art will readily appreciate that the present application can be implemented in a combination of hardware or hardware and computer software in combination with the elements and algorithm steps of the various examples described in the embodiments disclosed herein. Whether a function is implemented in hardware or computer software to drive hardware depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present application.
本申请实施例可以根据上述方法示例对障碍物检测设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The embodiment of the present application may perform the division of the function module on the obstacle detection device according to the above method example. For example, each function module may be divided according to each function, or two or more functions may be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of the module in the embodiment of the present application is schematic, and is only a logical function division, and the actual implementation may have another division manner.
在采用对应各个功能划分各个功能模块的情况下,图8示出了上述实施例中所涉及的障碍物检测设备的一种可能的结构示意图,障碍物检测设备包括:获取单元501、障碍物确定单元502以及位置确定单元503。获取单元501用于支持障碍物检测设备执行图3中的过程101;障碍物确定单元502用于支持障碍物检测设备执行图3中的步骤102,图5中的步骤202、步骤203,图6中的步骤303;位置确定单元503用于支持障碍物检测设备执行图3中的步骤103,图5中的步骤201,图6中的步骤301、步骤302。其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。FIG. 8 is a schematic diagram showing a possible structure of the obstacle detecting device involved in the above embodiment. The obstacle detecting device includes: an acquiring
可选的,如图9所示,所述障碍物检测设备还包括输出单元601,用于支持障碍物检测设备执行图7中的过程401。Optionally, as shown in FIG. 9, the obstacle detecting device further includes an
在采用集成的单元的情况下,图10示出了上述实施例中所涉及的障碍物检测设备的一种可能的结构示意图。障碍物检测设备包括:处理模块701和通信模块702。处理模块701用于对障碍物检测设备的动作进行控制管理,例如,处理模块701用于支持障碍物检测设备执行图3中的过程102、103,图5中的过程201、202、203,图6中的过程301、302、303,和/或用于本文所描述的技术的其它过程。通信模块702用于支持障碍物检测设备与其他网络实体的通信,例如与图1中示出的功能模块或网络实
体之间的通信。障碍物检测设备还可以包括存储模块703,用于存储障碍物检测设备的程序代码和数据。In the case of employing an integrated unit, FIG. 10 shows a possible structural diagram of the obstacle detecting apparatus involved in the above embodiment. The obstacle detecting device includes a
其中,处理模块701可以是处理器或控制器,例如可以是中央处理器(Central Processing Unit,CPU),通用处理器,数字信号处理器(Digital Signal Processor,DSP),专用集成电路(Application-Specific Integrated Circuit,ASIC),现场可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。所述处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。通信模块702可以是收发器、收发电路或通信接口等。存储模块703可以是存储器。The
当处理模块701为处理器,通信模块702为收发器,存储模块703为存储器时,本申请实施例所涉及的障碍物检测设备可以为图11所示的电子设备。When the
参阅图11所示,该电子设备包括:处理器801、通信接口802存储器803以及总线804。其中,处理器801、通信接口802、以及存储器803通过总线804相互连接;总线804可以是外设部件互连标准(Peripheral Component Interconnect,PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,EISA)总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图11中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。Referring to FIG. 11, the electronic device includes a
结合本申请公开内容所描述的方法或者算法的步骤可以硬件的方式来实现,也可以是由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于随机存取存储器(Random Access Memory,RAM)、闪存、只读存储器(Read Only Memory,ROM)、可擦除可编程只读存储器(Erasable Programmable ROM,EPROM)、电可擦可编程只读存储器(Electrically EPROM,EEPROM)、寄存器、硬盘、移动硬盘、只读光盘(CD-ROM)或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是 处理器的组成部分。处理器和存储介质可以位于ASIC中。The steps of a method or algorithm described in connection with the present disclosure may be implemented in a hardware or may be implemented by a processor executing software instructions. The software instructions may be composed of corresponding software modules, which may be stored in a random access memory (RAM), a flash memory, a read only memory (ROM), an erasable programmable read only memory ( Erasable Programmable ROM (EPROM), electrically erasable programmable read only memory (EEPROM), registers, hard disk, removable hard disk, compact disk read only (CD-ROM) or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor to enable the processor to read information from, and write information to, the storage medium. Of course, the storage medium can also be The components of the processor. The processor and the storage medium can be located in an ASIC.
本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。Those skilled in the art will appreciate that in one or more examples described above, the functions described herein can be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, the functions may be stored in a computer readable medium or transmitted as one or more instructions or code on a computer readable medium. Computer readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one location to another. A storage medium may be any available media that can be accessed by a general purpose or special purpose computer.
以上所述的具体实施方式,对本申请的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本申请的具体实施方式而已,并不用于限定本申请的保护范围,凡在本申请的技术方案的基础之上,所做的任何修改、等同替换、改进等,均应包括在本申请的保护范围之内。 The specific embodiments of the present invention have been described in detail with reference to the specific embodiments of the present application. It is to be understood that the foregoing description is only The scope of protection, any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the present application are included in the scope of protection of the present application.
Claims (16)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201680017930.5A CN107636680B (en) | 2016-12-30 | 2016-12-30 | An obstacle detection method and device |
| PCT/CN2016/113524 WO2018120027A1 (en) | 2016-12-30 | 2016-12-30 | Method and apparatus for detecting obstacles |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2016/113524 WO2018120027A1 (en) | 2016-12-30 | 2016-12-30 | Method and apparatus for detecting obstacles |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2018120027A1 true WO2018120027A1 (en) | 2018-07-05 |
Family
ID=61113519
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/113524 Ceased WO2018120027A1 (en) | 2016-12-30 | 2016-12-30 | Method and apparatus for detecting obstacles |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN107636680B (en) |
| WO (1) | WO2018120027A1 (en) |
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110502982A (en) * | 2019-07-11 | 2019-11-26 | 平安科技(深圳)有限公司 | The method, apparatus and computer equipment of barrier in a kind of detection highway |
| CN111310528A (en) * | 2018-12-12 | 2020-06-19 | 马上消费金融股份有限公司 | Image detection method, identity verification method, payment method and device |
| CN111724432A (en) * | 2020-06-04 | 2020-09-29 | 杭州飞步科技有限公司 | Object three-dimensional detection method and device |
| CN111898396A (en) * | 2019-05-06 | 2020-11-06 | 北京四维图新科技股份有限公司 | Obstacle detection method and device |
| CN112258482A (en) * | 2020-10-23 | 2021-01-22 | 广东博智林机器人有限公司 | Building exterior wall mortar flow drop detection method and device |
| CN114396911A (en) * | 2021-12-21 | 2022-04-26 | 中汽创智科技有限公司 | Obstacle ranging method, device and equipment and storage medium |
| CN114399695A (en) * | 2022-01-17 | 2022-04-26 | 中国科学院计算技术研究所 | Blind person obstacle avoidance method and system |
| CN115880674A (en) * | 2023-03-01 | 2023-03-31 | 上海伯镭智能科技有限公司 | An obstacle avoidance steering correction method based on unmanned mine car |
| CN116091393A (en) * | 2022-09-06 | 2023-05-09 | Oppo广东移动通信有限公司 | Road surface obstacle detection method, detection device, electronic device, and storage medium |
Families Citing this family (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108694845A (en) * | 2018-06-20 | 2018-10-23 | 信利光电股份有限公司 | A kind of based reminding method and device of vehicle drive |
| WO2020024234A1 (en) * | 2018-08-02 | 2020-02-06 | 深圳前海达闼云端智能科技有限公司 | Route navigation method, related device, and computer readable storage medium |
| CN109271944B (en) * | 2018-09-27 | 2021-03-12 | 百度在线网络技术(北京)有限公司 | Obstacle detection method, obstacle detection device, electronic apparatus, vehicle, and storage medium |
| CN110222557B (en) * | 2019-04-22 | 2021-09-21 | 北京旷视科技有限公司 | Real-time road condition detection method, device and system and storage medium |
| CN110348333A (en) * | 2019-06-21 | 2019-10-18 | 深圳前海达闼云端智能科技有限公司 | Object detecting method, device, storage medium and electronic equipment |
| CN112581484B (en) * | 2019-09-29 | 2024-08-06 | 比亚迪股份有限公司 | Rugged road detection method, rugged road detection device, storage medium, electronic apparatus, and vehicle |
| CN112686077B (en) * | 2019-10-17 | 2024-04-26 | 北京极智嘉科技股份有限公司 | Self-driven robot and obstacle recognition method |
| CN114170498A (en) * | 2020-08-19 | 2022-03-11 | 北京万集科技股份有限公司 | Detection method and device for spilled objects, computer equipment and storage medium |
| CN112348067B (en) * | 2020-10-28 | 2025-06-13 | 格兰菲智能科技股份有限公司 | Image device and image processing method |
| CN112966658B (en) * | 2021-03-30 | 2024-06-18 | 深圳市优必选科技股份有限公司 | Robot navigation method, device, terminal equipment and computer readable storage medium |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6371604A (en) * | 1986-09-12 | 1988-04-01 | Hideo Mori | System for detecting road boarder and obstacle by using area-divided color image |
| CN104331910A (en) * | 2014-11-24 | 2015-02-04 | 沈阳建筑大学 | Track obstacle detection system based on machine vision |
| CN104899869A (en) * | 2015-05-14 | 2015-09-09 | 浙江大学 | Plane and barrier detection method based on RGB-D camera and attitude sensor |
| CN106052674A (en) * | 2016-05-20 | 2016-10-26 | 青岛克路德机器人有限公司 | Indoor robot SLAM method and system |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20140049152A (en) * | 2012-10-16 | 2014-04-25 | 한국전자통신연구원 | Methoed for following person and robot appartus for the perfoming the same |
| JP5982298B2 (en) * | 2013-02-21 | 2016-08-31 | シャープ株式会社 | Obstacle detection device and obstacle detection method |
| CN103413308B (en) * | 2013-08-01 | 2016-07-06 | 东软集团股份有限公司 | A kind of obstacle detection method and device |
| CN103914688B (en) * | 2014-03-27 | 2018-02-02 | 北京科技大学 | A kind of urban road differentiating obstacle |
| CN104287946B (en) * | 2014-10-24 | 2016-08-17 | 中国科学院计算技术研究所 | Blind person's avoidance suggestion device and method |
-
2016
- 2016-12-30 CN CN201680017930.5A patent/CN107636680B/en active Active
- 2016-12-30 WO PCT/CN2016/113524 patent/WO2018120027A1/en not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6371604A (en) * | 1986-09-12 | 1988-04-01 | Hideo Mori | System for detecting road boarder and obstacle by using area-divided color image |
| CN104331910A (en) * | 2014-11-24 | 2015-02-04 | 沈阳建筑大学 | Track obstacle detection system based on machine vision |
| CN104899869A (en) * | 2015-05-14 | 2015-09-09 | 浙江大学 | Plane and barrier detection method based on RGB-D camera and attitude sensor |
| CN106052674A (en) * | 2016-05-20 | 2016-10-26 | 青岛克路德机器人有限公司 | Indoor robot SLAM method and system |
Cited By (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111310528A (en) * | 2018-12-12 | 2020-06-19 | 马上消费金融股份有限公司 | Image detection method, identity verification method, payment method and device |
| CN111310528B (en) * | 2018-12-12 | 2022-08-12 | 马上消费金融股份有限公司 | Image detection method, identity verification method, payment method and device |
| CN111898396A (en) * | 2019-05-06 | 2020-11-06 | 北京四维图新科技股份有限公司 | Obstacle detection method and device |
| CN110502982A (en) * | 2019-07-11 | 2019-11-26 | 平安科技(深圳)有限公司 | The method, apparatus and computer equipment of barrier in a kind of detection highway |
| CN110502982B (en) * | 2019-07-11 | 2024-03-05 | 平安科技(深圳)有限公司 | Method and device for detecting obstacles in expressway and computer equipment |
| CN111724432B (en) * | 2020-06-04 | 2023-08-22 | 杭州飞步科技有限公司 | Object three-dimensional detection method and device |
| CN111724432A (en) * | 2020-06-04 | 2020-09-29 | 杭州飞步科技有限公司 | Object three-dimensional detection method and device |
| CN112258482A (en) * | 2020-10-23 | 2021-01-22 | 广东博智林机器人有限公司 | Building exterior wall mortar flow drop detection method and device |
| CN114396911A (en) * | 2021-12-21 | 2022-04-26 | 中汽创智科技有限公司 | Obstacle ranging method, device and equipment and storage medium |
| CN114396911B (en) * | 2021-12-21 | 2023-10-31 | 中汽创智科技有限公司 | Obstacle ranging method, device, equipment and storage medium |
| CN114399695A (en) * | 2022-01-17 | 2022-04-26 | 中国科学院计算技术研究所 | Blind person obstacle avoidance method and system |
| CN116091393A (en) * | 2022-09-06 | 2023-05-09 | Oppo广东移动通信有限公司 | Road surface obstacle detection method, detection device, electronic device, and storage medium |
| CN115880674B (en) * | 2023-03-01 | 2023-05-23 | 上海伯镭智能科技有限公司 | An obstacle avoidance steering correction method based on unmanned mine car |
| CN115880674A (en) * | 2023-03-01 | 2023-03-31 | 上海伯镭智能科技有限公司 | An obstacle avoidance steering correction method based on unmanned mine car |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107636680A (en) | 2018-01-26 |
| CN107636680B (en) | 2021-07-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2018120027A1 (en) | Method and apparatus for detecting obstacles | |
| JP6710426B2 (en) | Obstacle detection method and device | |
| CN113111887B (en) | Semantic segmentation method and system based on information fusion of camera and laser radar | |
| CN115861632B (en) | A three-dimensional target detection method based on graph convolution and visual laser fusion | |
| WO2018120038A1 (en) | Method and device for target detection | |
| WO2020215172A1 (en) | Obstacle detection method and device, mobile platform, and storage medium | |
| CN115496923B (en) | Multi-mode fusion target detection method and device based on uncertainty perception | |
| CN110148196A (en) | A kind of image processing method, device and relevant device | |
| CN111047634B (en) | Scene depth determination method, device, equipment and storage medium | |
| US11282180B1 (en) | Object detection with position, pose, and shape estimation | |
| CN112097732A (en) | Binocular camera-based three-dimensional distance measurement method, system, equipment and readable storage medium | |
| CN110599489A (en) | A Method of Target Space Orientation | |
| WO2023016082A1 (en) | Three-dimensional reconstruction method and apparatus, and electronic device and storage medium | |
| CN110400338A (en) | Depth map processing method and device and electronic equipment | |
| CN111476762B (en) | Obstacle detection method and device of inspection equipment and inspection equipment | |
| US9886763B2 (en) | Visual navigation method, visual navigation device and robot | |
| CN111950428A (en) | Target obstacle identification method, device and vehicle | |
| WO2023216555A1 (en) | Obstacle avoidance method and apparatus based on binocular vision, and robot and medium | |
| CN118799719A (en) | A visual SLAM method, device, equipment and storage medium for indoor environment | |
| CN115115655A (en) | Object segmentation method, device, electronic device, storage medium and program product | |
| CN116215520B (en) | Vehicle collision warning and processing method and device based on ultrasound and 3D surround view | |
| WO2022011560A1 (en) | Image cropping method and apparatus, electronic device, and storage medium | |
| WO2021128314A1 (en) | Image processing method and device, image processing system and storage medium | |
| CN117690099A (en) | Method and device for detecting driving area, electronic equipment and storage medium | |
| CN114882343A (en) | Slope detection method, robot and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16925317 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 30.10.2019) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 16925317 Country of ref document: EP Kind code of ref document: A1 |