CN111353453B - Obstacle detection method and device for vehicle - Google Patents
Obstacle detection method and device for vehicle Download PDFInfo
- Publication number
- CN111353453B CN111353453B CN202010152469.2A CN202010152469A CN111353453B CN 111353453 B CN111353453 B CN 111353453B CN 202010152469 A CN202010152469 A CN 202010152469A CN 111353453 B CN111353453 B CN 111353453B
- Authority
- CN
- China
- Prior art keywords
- vehicle
- coordinate information
- dimensional coordinate
- distance
- image
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/50—Context or environment of the image
- G06V20/56—Context or environment of the image exterior to a vehicle by using sensors mounted on the vehicle
-
- 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
- G01S11/00—Systems for determining distance or velocity not using reflection or reradiation
- G01S11/12—Systems for determining distance or velocity not using reflection or reradiation using electromagnetic waves other than radio waves
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02T—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
- Y02T10/00—Road transport of goods or passengers
- Y02T10/10—Internal combustion engine [ICE] based vehicles
- Y02T10/40—Engine management systems
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Electromagnetism (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Traffic Control Systems (AREA)
Abstract
本申请实施例公开了用于车辆的障碍物检测方法和装置,涉及自动驾驶技术领域,尤其是自主泊车技术领域。上述车辆包括图像采集装置。上述方法的一具体实施方式包括:获取图像采集装置的标定数据;获取针对图像采集装置采集的图像中的障碍物的标注框;根据标定数据以及标注框,确定障碍物与车辆之间的估算距离;根据车辆的位置信息以及估算距离,确定车辆周围的多个候选点;根据多个候选点以及标注框,确定障碍物与车辆之间的优化距离。该实施方式可以提高障碍物距离探测的精确度。
The embodiment of the present application discloses an obstacle detection method and device for vehicles, which relate to the technical field of automatic driving, especially the technical field of autonomous parking. The above-mentioned vehicle includes an image acquisition device. A specific implementation of the above method includes: acquiring the calibration data of the image acquisition device; acquiring the labeling frame for the obstacle in the image collected by the image acquisition device; determining the estimated distance between the obstacle and the vehicle according to the calibration data and the labeling frame ; According to the position information of the vehicle and the estimated distance, determine multiple candidate points around the vehicle; determine the optimal distance between the obstacle and the vehicle according to the multiple candidate points and the marked frame. This embodiment can improve the accuracy of obstacle distance detection.
Description
技术领域technical field
本申请实施例涉及计算机技术领域,具体涉及用于车辆的障碍物检测方法和装置。The embodiments of the present application relate to the field of computer technology, and in particular to an obstacle detection method and device for vehicles.
背景技术Background technique
为了适应动态场景的要求,自动驾驶车辆必须能够对周围环境进行探测与识别,并且根据周围环境采取对应的决策和路径规划。静态的环境包括建筑物、路沿、树木等;而动态的环境包括运动的障碍物如车辆、人等。障碍物的识别包括对障碍物种类、大小的判别,而探测包括障碍物位置和姿态估算。其中,障碍物位置的估算常常被简化为障碍物与本车的距离估算,因此障碍物测距方案是自动驾驶的一个关键问题与难点。In order to adapt to the requirements of dynamic scenes, self-driving vehicles must be able to detect and identify the surrounding environment, and take corresponding decisions and path planning according to the surrounding environment. The static environment includes buildings, roadsides, trees, etc.; while the dynamic environment includes moving obstacles such as vehicles and people. The identification of obstacles includes the discrimination of the type and size of obstacles, and the detection includes the estimation of obstacle position and attitude. Among them, the estimation of the obstacle position is often simplified as the estimation of the distance between the obstacle and the vehicle, so the obstacle ranging scheme is a key problem and difficulty in automatic driving.
针对不同的传感器,有不同的测距优化方案。基于激光雷达或毫米波雷达的自动驾驶方案中,由于雷达具备直接测距的能力,测距精度本身较高,但原始数据量大。因此测距方案的优化偏向于对运算时间和速度,以及粗差的剔除。基于双目的自动驾驶方案中,测距主要受标定和立体匹配的影响,错误的匹配往往导致错误的深度计算。因此测距方案的优化偏向于对匹配精度和在线、离线标定的优化。无论是激光还是双目的方案,传感器耗费都较大。For different sensors, there are different ranging optimization schemes. In the automatic driving scheme based on lidar or millimeter-wave radar, since the radar has the ability of direct ranging, the ranging accuracy itself is high, but the amount of raw data is large. Therefore, the optimization of the ranging scheme is biased towards the calculation time and speed, as well as the elimination of gross errors. In the binocular-based autonomous driving solution, ranging is mainly affected by calibration and stereo matching, and wrong matching often leads to wrong depth calculations. Therefore, the optimization of the ranging scheme is biased towards the optimization of matching accuracy and online and offline calibration. Whether it is a laser or a binocular solution, the sensor cost is relatively large.
随着视觉的发展,基于单目的传感器方案越来越广泛的被采用。由于单目缺乏足够的几何约束,因此通过单目获取深度是计算机视觉界一个很难的问题。With the development of vision, solutions based on monocular sensors are more and more widely used. Obtaining depth through a monocular is a difficult problem in the computer vision community due to the lack of sufficient geometric constraints for the monocular.
发明内容Contents of the invention
本申请实施例提出了用于车辆的障碍物检测方法和装置。Embodiments of the present application propose an obstacle detection method and device for vehicles.
第一方面,本申请实施例提供了一种用于车辆的障碍物检测方法,上述车辆安装有图像采集装置,上述方法包括:获取上述图像采集装置的标定数据;获取针对上述图像采集装置采集的图像中的障碍物的标注框;根据上述标定数据以及上述标注框,确定上述障碍物与上述车辆之间的估算距离;根据上述车辆的位置信息以及上述估算距离,确定上述车辆周围的多个候选点;根据上述多个候选点以及上述标注框,确定上述障碍物与上述车辆之间的优化距离。In the first aspect, the embodiment of the present application provides an obstacle detection method for a vehicle. The above-mentioned vehicle is equipped with an image acquisition device. The above-mentioned method includes: acquiring the calibration data of the above-mentioned image acquisition device; The annotation frame of the obstacle in the image; according to the above-mentioned calibration data and the above-mentioned annotation frame, determine the estimated distance between the above-mentioned obstacle and the above-mentioned vehicle; according to the position information of the above-mentioned vehicle and the above-mentioned estimated distance, determine a plurality of candidates around the above-mentioned vehicle point; determining an optimal distance between the obstacle and the vehicle according to the plurality of candidate points and the marked frame.
在一些实施例中,上述标注框包括上述障碍物的至少两个接地点;以及上述根据上述标定数据以及上述标注框,确定上述障碍物与上述车辆之间的估算距离,包括:根据上述标定数据以及上述至少两个接地点,确定每个接地点与上述车辆之间的距离;根据每个接地点与上述车辆之间的距离,确定上述估算距离。In some embodiments, the above-mentioned marked frame includes at least two touchdown points of the above-mentioned obstacle; and the above-mentioned determining the estimated distance between the above-mentioned obstacle and the above-mentioned vehicle according to the above-mentioned calibration data and the above-mentioned marked frame includes: according to the above-mentioned calibration data and the at least two touchdown points, determining the distance between each touchdown point and the vehicle; and determining the estimated distance according to the distance between each touchdown point and the vehicle.
在一些实施例中,上述根据上述车辆的位置信息以及上述估算距离,确定上述车辆周围的多个候选点,包括:根据上述车辆的位置信息以及上述估算距离,确定候选点选取范围;在上述候选点选取范围选取多个点作为候选点;根据高精地图,确定上述候选点的三维坐标信息。In some embodiments, the determining a plurality of candidate points around the vehicle according to the position information of the vehicle and the estimated distance includes: determining the selection range of candidate points according to the position information of the vehicle and the estimated distance; The point selection range selects multiple points as candidate points; and determines the three-dimensional coordinate information of the above-mentioned candidate points according to the high-precision map.
在一些实施例中,上述根据上述多个候选点以及上述标注框,确定上述障碍物与上述车辆之间的优化距离,包括:根据上述候选点的三维坐标信息,向图像坐标系投影,得到上述候选点在上述图像坐标系中的二维坐标信息;根据候选点的三维坐标信息、二维坐标信息以及上述标注框在上述图像坐标系中的二维坐标信息,确定上述标注框的三维坐标信息;根据上述三维坐标信息,确定上述优化距离。In some embodiments, determining the optimal distance between the obstacle and the vehicle based on the plurality of candidate points and the labeling frame includes: projecting to the image coordinate system according to the three-dimensional coordinate information of the candidate points to obtain the above The two-dimensional coordinate information of the candidate point in the above-mentioned image coordinate system; according to the three-dimensional coordinate information of the candidate point, the two-dimensional coordinate information and the two-dimensional coordinate information of the above-mentioned label frame in the above-mentioned image coordinate system, determine the three-dimensional coordinate information of the above-mentioned label frame ; According to the above-mentioned three-dimensional coordinate information, determine the above-mentioned optimization distance.
在一些实施例中,上述根据候选点的三维坐标信息、二维坐标信息以及上述标注框在上述图像坐标系中的二维坐标信息,确定上述标注框的三维坐标信息,包括:根据上述候选点的二维坐标信息,确定上述候选点与上述标注框之间的距离;对上述距离按照有小到大的顺序进行排序,将前目标数量个候选点作为目标候选点;根据目标候选点的三维坐标信息、二维坐标信息以及上述标注框在上述图像坐标系中的二维坐标信息,确定上述标注框的三维坐标信息。In some embodiments, determining the three-dimensional coordinate information of the above-mentioned annotation frame based on the three-dimensional coordinate information of the candidate point, the two-dimensional coordinate information, and the two-dimensional coordinate information of the above-mentioned annotation frame in the above-mentioned image coordinate system includes: according to the above-mentioned candidate point The two-dimensional coordinate information of the above-mentioned candidate points and the above-mentioned label frame are determined; the above-mentioned distances are sorted according to the order of small to large, and the candidate points of the previous target number are used as target candidate points; according to the three-dimensional target candidate points The coordinate information, the two-dimensional coordinate information, and the two-dimensional coordinate information of the above-mentioned annotation frame in the above-mentioned image coordinate system determine the three-dimensional coordinate information of the above-mentioned annotation frame.
在一些实施例中,上述车辆安装有成像原理不同的第一图像采集装置和第二图像采集装置;以及上述方法还包括:根据上述估算距离以及上述第一图像采集装置和上述第二图像采集装置的成像原理,从上述第一图像采集装置和上述第二图像采集装置中确定出目标图像采集装置。In some embodiments, the vehicle is equipped with a first image acquisition device and a second image acquisition device with different imaging principles; and the method further includes: according to the estimated distance and the first image acquisition device and the second image acquisition device According to the imaging principle, the target image acquisition device is determined from the first image acquisition device and the second image acquisition device.
第二方面,本申请实施例提供了一种用于车辆的障碍物检测装置,上述车辆安装有图像采集装置,上述装置包括:第一获取单元,被配置成获取上述图像采集装置的标定数据;第二获取单元,被配置成获取针对上述图像采集装置采集的图像中的障碍物的标注框;距离估算单元,被配置成根据上述标定数据以及上述标注框,确定上述障碍物与上述车辆之间的估算距离;候选点确定单元,被配置成根据上述车辆的位置信息以及上述估算距离,确定上述车辆周围的多个候选点;距离优化单元,被配置成根据上述多个候选点以及上述标注框,确定上述障碍物与上述车辆之间的优化距离。In a second aspect, an embodiment of the present application provides an obstacle detection device for a vehicle, where the vehicle is equipped with an image acquisition device, and the device includes: a first acquisition unit configured to acquire calibration data of the image acquisition device; The second acquisition unit is configured to acquire a labeling frame for the obstacle in the image captured by the image acquisition device; the distance estimation unit is configured to determine the distance between the obstacle and the vehicle according to the above-mentioned calibration data and the above-mentioned labeling frame The estimated distance of the candidate point; the candidate point determination unit is configured to determine a plurality of candidate points around the vehicle according to the position information of the vehicle and the estimated distance; the distance optimization unit is configured to , to determine the optimal distance between the obstacle and the vehicle.
在一些实施例中,上述标注框包括上述障碍物的至少两个接地点;以及上述距离估算单元进一步被配置成:根据上述标定数据以及上述至少两个接地点,确定每个接地点与上述车辆之间的距离;根据每个接地点与上述车辆之间的距离,确定上述估算距离。In some embodiments, the above-mentioned labeled frame includes at least two touchdown points of the above-mentioned obstacle; and the above-mentioned distance estimation unit is further configured to: according to the above-mentioned calibration data and the above-mentioned at least two touchdown points, determine the distance between each touchdown point and the above-mentioned vehicle the distance between each touchdown point and the above-mentioned vehicle to determine the above-mentioned estimated distance.
在一些实施例中,上述候选点确定单元进一步被配置成:根据上述车辆的位置信息以及上述估算距离,确定候选点选取范围;在上述候选点选取范围选取多个点作为候选点;根据高精地图,确定上述候选点的三维坐标信息。In some embodiments, the above-mentioned candidate point determination unit is further configured to: determine the candidate point selection range according to the above-mentioned vehicle position information and the above-mentioned estimated distance; select multiple points in the above-mentioned candidate point selection range as candidate points; The map determines the three-dimensional coordinate information of the above-mentioned candidate points.
在一些实施例中,上述距离优化单元进一步被配置成:根据上述候选点的三维坐标信息,向图像坐标系投影,得到上述候选点在上述图像坐标系中的二维坐标信息;根据候选点的三维坐标信息、二维坐标信息以及上述标注框在上述图像坐标系中的二维坐标信息,确定上述标注框的三维坐标信息;根据上述三维坐标信息,确定上述优化距离。In some embodiments, the above-mentioned distance optimization unit is further configured to: project to the image coordinate system according to the three-dimensional coordinate information of the above-mentioned candidate points to obtain the two-dimensional coordinate information of the above-mentioned candidate points in the above-mentioned image coordinate system; The three-dimensional coordinate information, the two-dimensional coordinate information, and the two-dimensional coordinate information of the above-mentioned annotation frame in the above-mentioned image coordinate system are used to determine the three-dimensional coordinate information of the above-mentioned annotation frame; according to the above-mentioned three-dimensional coordinate information, the above-mentioned optimization distance is determined.
在一些实施例中,上述距离优化单元进一步被配置成:根据上述候选点的二维坐标信息,确定上述候选点与上述标注框之间的距离;对上述距离按照有小到大的顺序进行排序,将前目标数量个候选点作为目标候选点;根据目标候选点的三维坐标信息、二维坐标信息以及上述标注框在上述图像坐标系中的二维坐标信息,确定上述标注框的三维坐标信息。In some embodiments, the above-mentioned distance optimization unit is further configured to: determine the distance between the above-mentioned candidate point and the above-mentioned annotation frame according to the two-dimensional coordinate information of the above-mentioned candidate point; sort the above-mentioned distances in order of small to large , using the candidate points of the previous target number as target candidate points; according to the three-dimensional coordinate information, two-dimensional coordinate information of the target candidate point and the two-dimensional coordinate information of the above-mentioned label frame in the above-mentioned image coordinate system, determine the three-dimensional coordinate information of the above-mentioned label frame .
在一些实施例中,上述车辆安装有成像原理不同的第一图像采集装置和第二图像采集装置;以及上述装置还包括装置确定单元,被配置成:根据上述估算距离以及上述第一图像采集装置和上述第二图像采集装置的成像原理,从上述第一图像采集装置和上述第二图像采集装置中确定出目标图像采集装置。In some embodiments, the above-mentioned vehicle is equipped with a first image acquisition device and a second image acquisition device with different imaging principles; and the above-mentioned device further includes a device determination unit configured to: According to the imaging principle of the second image acquisition device, the target image acquisition device is determined from the first image acquisition device and the second image acquisition device.
第三方面,本申请实施例提供了一种电子设备,包括:一个或多个处理器;存储装置,其上存储有一个或多个程序,当上述一个或多个程序被上述一个或多个处理器执行,使得上述一个或多个处理器实现如第一方面任一实施例所描述的方法。In the third aspect, the embodiment of this application provides an electronic device, including: one or more processors; a storage device, on which one or more programs are stored, when the above one or more programs are The processor executes, so that the above-mentioned one or more processors implement the method described in any embodiment of the first aspect.
第四方面,本申请实施例提供了一种计算机可读介质,其上存储有计算机程序,该程序被处理器执行时实现如第一方面任一实施例所描述的方法。In a fourth aspect, an embodiment of the present application provides a computer-readable medium, on which a computer program is stored, and when the program is executed by a processor, the method as described in any embodiment of the first aspect is implemented.
本申请的上述实施例提供的用于车辆的障碍物检测方法和装置,车辆上安装有图像采集装置。本实施例的方法和装置,首先可以获取图像采集装置的标定数据。并获取针对图像采集装置采集的图像中的障碍物的标注框。然后,根据标定数据以及标注框,确定障碍物与车辆之间的估算距离。然后,根据车辆的位置以及估算距离,确定车辆周围的多个候选点。最后,根据多个候选点以及标注框,确定障碍物与车辆之间的优化距离。本实施例的方法,可以提高障碍物距离探测的精确度。The above embodiments of the present application provide an obstacle detection method and device for a vehicle, where an image acquisition device is installed on the vehicle. The method and device of this embodiment can firstly acquire the calibration data of the image acquisition device. And obtain the label frame for the obstacle in the image collected by the image collection device. Then, according to the calibration data and the labeled frame, the estimated distance between the obstacle and the vehicle is determined. Then, according to the position of the vehicle and the estimated distance, a plurality of candidate points around the vehicle are determined. Finally, the optimal distance between the obstacle and the vehicle is determined according to the multiple candidate points and the labeled frame. The method of this embodiment can improve the accuracy of obstacle distance detection.
附图说明Description of drawings
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:Other characteristics, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
图1是本申请的一个实施例可以应用于其中的示例性系统架构图;FIG. 1 is an exemplary system architecture diagram to which an embodiment of the present application can be applied;
图2是根据本申请的用于车辆的障碍物检测方法的一个实施例的流程图;FIG. 2 is a flowchart of an embodiment of an obstacle detection method for a vehicle according to the present application;
图3是根据本申请的用于车辆的障碍物检测方法的一个应用场景的示意图;FIG. 3 is a schematic diagram of an application scenario of an obstacle detection method for a vehicle according to the present application;
图4是根据本申请的用于车辆的障碍物检测方法的另一个实施例的流程图;FIG. 4 is a flow chart of another embodiment of an obstacle detection method for a vehicle according to the present application;
图5是根据本申请的用于车辆的障碍物检测装置的一个实施例的结构示意图;Fig. 5 is a schematic structural diagram of an embodiment of an obstacle detection device for a vehicle according to the present application;
图6是适于用来实现本申请实施例的电子设备的计算机系统的结构示意图。Fig. 6 is a schematic structural diagram of a computer system suitable for implementing the electronic device of the embodiment of the present application.
具体实施方式Detailed ways
下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关发明相关的部分。The application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain related inventions, rather than to limit the invention. It should also be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and embodiments.
图1示出了可以应用本申请的用于车辆的障碍物检测方法或用于车辆的障碍物检测装置的实施例的示例性系统架构100。FIG. 1 shows an exemplary system architecture 100 to which embodiments of the obstacle detection method for a vehicle or the obstacle detection device for a vehicle of the present application can be applied.
如图1所示,系统架构100可以包括车辆101、网络102和服务器103。网络102用以在车辆101和服务器103之间提供通信链路的介质。网络102可以包括各种无线连接类型。As shown in FIG. 1 , a system architecture 100 may include a vehicle 101 , a network 102 and a server 103 . The network 102 serves as a medium for providing a communication link between the vehicle 101 and the server 103 . Network 102 may include various types of wireless connections.
车辆101在行驶过程中可以与服务器105交互,以接收或发送消息等。车辆101上可以安装有各种传感器,例如单目相机、速度传感器等等。The vehicle 101 can interact with the server 105 during driving to receive or send messages and the like. Various sensors may be installed on the vehicle 101, such as a monocular camera, a speed sensor, and the like.
车辆101可以是硬件,也可以是软件。当车辆101为硬件时,可以是能够行驶的各种车辆,包括自动驾驶车辆、半自动驾驶车辆、人工驾驶车辆等等。当车辆101为软件时,可以安装在上述所列举的车辆中。其可以实现成多个软件或软件模块(例如用来提供分布式服务),也可以实现成单个软件或软件模块。在此不做具体限定。The vehicle 101 may be hardware or software. When the vehicle 101 is hardware, it may be various vehicles capable of driving, including automatic driving vehicles, semi-automatic driving vehicles, human-driving vehicles and the like. When the vehicle 101 is software, it can be installed in the vehicles listed above. It can be implemented as a plurality of software or software modules (for example, to provide distributed services), or as a single software or software module. No specific limitation is made here.
服务器103可以是提供各种服务的服务器,例如对车辆101行驶过程中采集的信息进行处理的后台服务器。后台服务器可以对接收到数据进行分析等处理,并将处理结果(例如障碍物距离)反馈给车辆101。The server 103 may be a server that provides various services, for example, a background server that processes information collected during the driving of the vehicle 101 . The background server can analyze and process the received data, and feed back the processing result (such as obstacle distance) to the vehicle 101 .
需要说明的是,服务器103可以是硬件,也可以是软件。当服务器103为硬件时,可以实现成多个服务器组成的分布式服务器集群,也可以实现成单个服务器。当服务器103为软件时,可以实现成多个软件或软件模块(例如用来提供分布式服务),也可以实现成单个软件或软件模块。在此不做具体限定。It should be noted that the server 103 may be hardware or software. When the server 103 is hardware, it can be implemented as a distributed server cluster composed of multiple servers, or as a single server. When the server 103 is software, it may be implemented as multiple software or software modules (for example, for providing distributed services), or as a single software or software module. No specific limitation is made here.
需要说明的是,本申请实施例所提供的用于车辆的障碍物检测方法可以由车辆101执行,也可以由服务器103执行。相应地,用于车辆的障碍物检测装置可以设置于车辆101中,也可以设置于服务器103中。It should be noted that the obstacle detection method for a vehicle provided in the embodiment of the present application may be executed by the vehicle 101 or by the server 103 . Correspondingly, the obstacle detection device for the vehicle can be set in the vehicle 101 or in the server 103 .
应该理解,图1中的车辆、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的车辆、网络和服务器。It should be understood that the numbers of vehicles, networks and servers in Figure 1 are merely illustrative. There can be any number of vehicles, networks and servers depending on implementation needs.
继续参考图2,示出了根据本申请的用于车辆的障碍物检测方法的一个实施例的流程200。本实施例中,车辆上安装有图像采集装置,上述图像采集装置可以包括各种单目相机,例如单目广角相机、单目鱼眼相机。本实施例的用于车辆的障碍物检测方法,可以包括以下步骤:Continuing to refer to FIG. 2 , a flow 200 of an embodiment of an obstacle detection method for a vehicle according to the present application is shown. In this embodiment, an image acquisition device is installed on the vehicle, and the image acquisition device may include various monocular cameras, such as a monocular wide-angle camera and a monocular fisheye camera. The obstacle detection method for a vehicle of this embodiment may include the following steps:
步骤201,获取图像采集装置的标定数据。Step 201, acquiring calibration data of an image acquisition device.
在本实施例中,用于车辆的障碍物检测方法的执行主体(例如图1所示的车辆101和服务器103)可以通过各种方式获取图像采集装置的标定数据。此处,标定数据可以包括内参数和外参数。其中,内参数是与图像采集装置自身特性相关的参数,比如相机的焦距、像素大小等。外参数是在世界坐标系中的参数,比如相机的位置、旋转方向等。标定数据可以通过标定图像采集装置得到。In this embodiment, the executing subject of the vehicle obstacle detection method (such as the vehicle 101 and the server 103 shown in FIG. 1 ) can obtain the calibration data of the image acquisition device in various ways. Here, the calibration data may include internal parameters and external parameters. Wherein, the internal parameters are parameters related to the characteristics of the image acquisition device itself, such as the focal length and pixel size of the camera. External parameters are parameters in the world coordinate system, such as camera position, rotation direction, etc. Calibration data can be obtained by calibrating the image acquisition device.
步骤202,获取针对图像采集装置采集的图像中的障碍物的标注框。Step 202, obtaining a label frame for an obstacle in an image captured by an image capture device.
执行主体还可以获取针对图像采集装置采集的图像中的障碍物的标注框。具体的,执行主体内部可以设置有训练好的障碍物识别模型,上述障碍物识别模型可以识别图像中的障碍物并进行标注。标注时可以采用标注框进行标注,并且可以以不同颜色的标注框来表示不同类型的障碍物。图像采集装置获取的图像可以输入到上述障碍物识别模型中,得到上述图像中的障碍物的标注框。可以理解的是,上述障碍物识别模型也可以安装在其它的电子设备中,执行主体可以将图像采集装置采集的图像发送给上述电子设备,并接收上述电子设备发送的障碍物的标注框。The execution subject may also acquire the annotation frame for the obstacle in the image captured by the image capture device. Specifically, a trained obstacle recognition model can be set inside the execution body, and the above obstacle recognition model can recognize and mark obstacles in the image. Labeling boxes can be used for labeling, and different types of obstacles can be represented by labeling boxes of different colors. The image acquired by the image acquisition device may be input into the above-mentioned obstacle recognition model to obtain the annotation frame of the obstacle in the above-mentioned image. It can be understood that the above-mentioned obstacle recognition model can also be installed in other electronic equipment, and the execution subject can send the image collected by the image acquisition device to the above-mentioned electronic equipment, and receive the annotation frame of the obstacle sent by the above-mentioned electronic equipment.
步骤203,根据标定数据以及标注框,确定障碍物与车辆之间的估算距离。Step 203, determine the estimated distance between the obstacle and the vehicle according to the calibration data and the marked frame.
本实施例中,执行主体在获取到标定数据和标注框后,可以确定障碍物与车辆之间的估算距离。具体的,执行主体可以基于逆透视投影,从标注框中选取两个点,并将这两个点投影到Z=1的平面,获得坐标(x1,y1)(x2,y2)。结合车辆高度,利用几何原理,就可以计算两个点到车辆的距离S1和S2。然后,计算S1和S2的平均值,并将平均值作为障碍物与车辆之间的估算距离。In this embodiment, after the execution subject obtains the calibration data and the label frame, the estimated distance between the obstacle and the vehicle can be determined. Specifically, the execution subject can select two points from the label box based on the inverse perspective projection, and project these two points to the plane of Z=1 to obtain the coordinates (x 1 ,y 1 )(x 2 ,y 2 ) . Combined with the height of the vehicle, using geometric principles, the distances S 1 and S 2 from the two points to the vehicle can be calculated. Then, calculate the average value of S1 and S2 , and use the average value as the estimated distance between the obstacle and the vehicle.
在本实施例的一些可选的实现方式中,标注框包括障碍物的至少两个接地点,则在上述步骤203中,执行主体可以将上述至少两个接地点投影到Z=1的平面,得到至少两个接地点与车辆之间的距离。并根据上述至少两个距离,确定估算距离。In some optional implementations of this embodiment, the label frame includes at least two grounding points of the obstacle, then in the above-mentioned step 203, the execution subject may project the above-mentioned at least two grounding points onto the plane of Z=1, Get the distance between at least two touchdown points and the vehicle. And according to the above at least two distances, an estimated distance is determined.
步骤204,根据车辆的位置信息以及估算距离,确定车辆周围的多个候选点。Step 204, according to the position information of the vehicle and the estimated distance, determine a plurality of candidate points around the vehicle.
在计算得到估算距离后,执行主体还可以获取车辆的位置信息。并根据位置信息以及估算距离,确定车辆周围的多个候选点。具体的,执行主体可以将车辆作为圆心,将估算里作为半径,从得到的圆中选取多个点作为候选点。在选取多个点时可以随机选取,也可以均匀选取。上述候选点可以是路面上的一些标志性的点,如车道线、停止线等等。可以理解的是,上述候选点可以包括候选点的三维坐标信息。上述坐标信息可以由高精地图得到。高精地图可以包括不同走向的车道、车道线、车道边界、停止线、人行横道、减速带、红绿灯、交通指示牌、警示牌等,还可以包括上述各对象的位置信息等。After the estimated distance is calculated, the execution subject can also obtain the location information of the vehicle. And according to the location information and the estimated distance, multiple candidate points around the vehicle are determined. Specifically, the execution subject may use the vehicle as the center of the circle, use the estimated radius as the radius, and select multiple points from the obtained circle as candidate points. When selecting multiple points, it can be selected randomly or uniformly. The above-mentioned candidate points may be some landmark points on the road surface, such as lane lines, stop lines, and so on. It can be understood that the above candidate points may include three-dimensional coordinate information of the candidate points. The above coordinate information can be obtained from a high-precision map. High-precision maps can include lanes in different directions, lane lines, lane boundaries, stop lines, pedestrian crossings, speed bumps, traffic lights, traffic signs, warning signs, etc., and can also include location information of the above objects.
步骤205,根据多个候选点以及标注框,确定障碍物与车辆之间的优化距离。Step 205, determine the optimal distance between the obstacle and the vehicle according to the plurality of candidate points and the marked boxes.
本实施例中,执行主体在确定多个候选点后,可以结合标注框,确定出障碍物与车辆之间的优化距离。具体的,执行主体可以计算多个候选点在图像坐标系中的二维坐标,然后结合标注框在图像坐标系中的二维坐标,确定候选点与标注框之间的相对位置关系。然后根据候选点的三维坐标,以及上述相对位置关系,确定标注框的三维坐标。从而可以确定障碍物与车辆之间的优化距离。In this embodiment, after determining a plurality of candidate points, the execution subject can determine the optimal distance between the obstacle and the vehicle in combination with the marked frame. Specifically, the execution subject may calculate the two-dimensional coordinates of multiple candidate points in the image coordinate system, and then combine the two-dimensional coordinates of the annotation frame in the image coordinate system to determine the relative positional relationship between the candidate point and the annotation frame. Then, according to the three-dimensional coordinates of the candidate points and the above-mentioned relative positional relationship, the three-dimensional coordinates of the label frame are determined. An optimal distance between obstacles and the vehicle can thus be determined.
继续参见图3,图3是根据本实施例的用于车辆的障碍物检测方法的一个应用场景的示意图。在图3的应用场景中,自动驾驶车辆301上安装有单目相机,并在行驶过程中采集图像。自动驾驶车辆301在行驶到停车位附近之后需要采集停车位的周围的图像,通过步骤201~205的处理后,得到前车、后车与自动驾驶车辆之间的距离,从而指导自动驾驶车辆的行驶,以准确地停止在停车位处。Continue to refer to FIG. 3 , which is a schematic diagram of an application scenario of the obstacle detection method for vehicles according to this embodiment. In the application scenario of FIG. 3 , a monocular camera is installed on the self-driving vehicle 301 and images are collected during driving. After the self-driving vehicle 301 drives near the parking space, it needs to collect images around the parking space. After the processing of steps 201-205, the distance between the front vehicle, the rear vehicle and the self-driving vehicle is obtained, so as to guide the self-driving vehicle Drive to stop exactly at the parking spot.
本申请的上述实施例提供的用于车辆的障碍物检测方法,首先可以获取图像采集装置的标定数据。并获取针对图像采集装置采集的图像中的障碍物的标注框。然后,根据标定数据以及标注框,确定障碍物与车辆之间的估算距离。然后,根据车辆的位置以及估算距离,确定车辆周围的多个候选点。最后,根据多个候选点以及标注框,确定障碍物与车辆之间的优化距离。本实施例的方法,可以提高障碍物距离探测的精确度。In the obstacle detection method for vehicles provided by the above-mentioned embodiments of the present application, firstly, the calibration data of the image acquisition device can be acquired. And obtain the label frame for the obstacle in the image collected by the image collection device. Then, according to the calibration data and the labeled frame, the estimated distance between the obstacle and the vehicle is determined. Then, according to the position of the vehicle and the estimated distance, a plurality of candidate points around the vehicle are determined. Finally, the optimal distance between the obstacle and the vehicle is determined according to the multiple candidate points and the labeled frame. The method of this embodiment can improve the accuracy of obstacle distance detection.
继续参见图4,其示出了根据本申请的用于车辆的障碍物检测方法的另一个实施例的流程400。本实施例中,车辆上可以安装有成像原理不同的第一图像采集装置和第二图像采集装置。第一图像装置可以为单目广角相机,第二图像采集装置可以为单目鱼眼相机。如图4所示,本实施例的用于车辆的障碍物检测方法,可以包括以下步骤:Continue referring to FIG. 4 , which shows a process 400 of another embodiment of the obstacle detection method for vehicles according to the present application. In this embodiment, a first image acquisition device and a second image acquisition device with different imaging principles may be installed on the vehicle. The first image device may be a monocular wide-angle camera, and the second image acquisition device may be a monocular fisheye camera. As shown in Figure 4, the obstacle detection method for the vehicle of the present embodiment may include the following steps:
步骤401,获取图像采集装置的标定数据。Step 401, acquiring calibration data of an image acquisition device.
在车辆上安装有两种图像采集装置时,此处可以获取两种图像采集装置的标定数据,即分别获取第一图像采集装置和第二图像采集装置的标定数据。When two image acquisition devices are installed on the vehicle, the calibration data of the two image acquisition devices can be obtained here, that is, the calibration data of the first image acquisition device and the second image acquisition device are obtained respectively.
步骤402,获取针对图像采集装置采集的图像中的障碍物的标注框。Step 402, obtaining a label frame for an obstacle in an image captured by an image capture device.
本实施例中,可以获取分别针对第一图像采集装置采集的第一图像中的障碍物的标注框和第二图像采集装置采集的第二图像中的障碍物的标注框。In this embodiment, the labeling frame of the obstacle in the first image captured by the first image capturing device and the labeling frame of the obstacle in the second image captured by the second image capturing device may be obtained respectively.
步骤403,根据标定数据以及标注框,确定障碍物与车辆之间的估算距离。Step 403: Determine the estimated distance between the obstacle and the vehicle according to the calibration data and the marked frame.
本步骤的原理与步骤203的原理类似,此处不再赘述。The principle of this step is similar to that of step 203, and will not be repeated here.
步骤404,根据估算距离以及第一图像采集装置和第二图像采集装置的成像原理,从第一图像采集装置和第二图像采集装置中确定出目标图像采集装置。Step 404: Determine the target image acquisition device from the first image acquisition device and the second image acquisition device according to the estimated distance and the imaging principles of the first image acquisition device and the second image acquisition device.
不同的图像传感器由于其成像原理不同,在不同的测距距离有不同的精度。当车辆中同时安装有单目广角相机和单目鱼眼相机时,应根据不同图像传感器的特性以及障碍物分布范围,选取合适的图像传感器。如单目鱼眼相机在2-6米具有较高的测距精度、单目广角相机在6-20米有较好的测距精度。当障碍物在距离车辆14米左右范围出现时,应采用单目广角相机作为测距的主要图像传感器,即目标图像采集装置。Different image sensors have different accuracy at different ranging distances due to their different imaging principles. When a monocular wide-angle camera and a monocular fisheye camera are installed in the vehicle at the same time, the appropriate image sensor should be selected according to the characteristics of different image sensors and the distribution range of obstacles. For example, the monocular fisheye camera has a higher ranging accuracy at 2-6 meters, and the monocular wide-angle camera has better ranging accuracy at 6-20 meters. When obstacles appear within a distance of about 14 meters from the vehicle, a monocular wide-angle camera should be used as the main image sensor for ranging, that is, the target image acquisition device.
步骤405,根据车辆的位置信息以及估算距离,确定候选点选取范围。Step 405, according to the location information of the vehicle and the estimated distance, determine the selection range of the candidate points.
本实施例中,执行主体还可以获取车辆的位置信息,然后结合估算距离,确定出候选点选取范围。具体的,执行主体可以将车辆的位置作为圆心,将估算距离的2倍或3倍作为半径,将得到的圆作为候选点选取范围。In this embodiment, the execution subject can also acquire the location information of the vehicle, and then combine the estimated distance to determine the selection range of the candidate points. Specifically, the execution subject can use the position of the vehicle as the center of the circle, use twice or three times the estimated distance as the radius, and use the obtained circle as the selection range of candidate points.
步骤406,在候选点选取范围选取多个点作为候选点。Step 406, selecting a plurality of points in the candidate point selection range as candidate points.
执行主体在确定候选点选取范围后,可以从中选取出多个点作为候选点。具体的,执行主体可以在候选点选取范围中均匀地选取多个点作为候选点。例如,按照每间隔20厘米采样。After the executive body determines the selection range of candidate points, it can select multiple points as candidate points. Specifically, the execution subject may uniformly select multiple points in the candidate point selection range as candidate points. For example, sample at intervals of 20 cm.
在本实施例的一些可选的实现方式中,执行主体在确定候选点选取范围后,还可以根据高精地图,确定在候选点选取范围中的三维地物。上述三维地物可以包括车道线。然后在上述三维地物和候选点选取范围中选取候选点。In some optional implementation manners of this embodiment, after determining the selection range of candidate points, the execution subject may also determine the three-dimensional features within the range of selection of candidate points according to the high-precision map. The above-mentioned three-dimensional ground objects may include lane lines. Then select candidate points in the above-mentioned three-dimensional object and candidate point selection range.
步骤407,根据高精地图,确定候选点的三维坐标信息。Step 407, determine the three-dimensional coordinate information of the candidate points according to the high-precision map.
在选取候选点后,执行主体可以结合高精地图,确定出候选点的三维坐标信息。After selecting the candidate points, the execution subject can combine the high-precision map to determine the three-dimensional coordinate information of the candidate points.
步骤408,根据候选点的三维坐标信息,向图像坐标系投影,得到候选点在图像坐标系中的二维坐标信息。Step 408, according to the three-dimensional coordinate information of the candidate point, project to the image coordinate system to obtain the two-dimensional coordinate information of the candidate point in the image coordinate system.
本实施例中,候选点的三维坐标信息是大地坐标系下的。执行主体可以首先将大地坐标系下的三维坐标信息转换到车辆坐标系中。然后将候选点在车辆坐标系中的三维坐标信息向图像坐标系投影。由于图像坐标系是二维的,因此可以看候选点在图像坐标系中的二维坐标信息。In this embodiment, the three-dimensional coordinate information of the candidate points is in the earth coordinate system. The execution subject can first transform the three-dimensional coordinate information in the earth coordinate system into the vehicle coordinate system. Then project the three-dimensional coordinate information of the candidate points in the vehicle coordinate system to the image coordinate system. Since the image coordinate system is two-dimensional, you can see the two-dimensional coordinate information of the candidate points in the image coordinate system.
步骤409,根据候选点的三维坐标信息、二维坐标信息以及标注框在图像坐标系中的二维坐标信息,确定标注框的三维坐标信息。Step 409, according to the three-dimensional coordinate information of the candidate point, the two-dimensional coordinate information and the two-dimensional coordinate information of the annotation frame in the image coordinate system, determine the three-dimensional coordinate information of the annotation frame.
之后,执行主体可以根据候选点的三维坐标信息、二维坐标信息以及标注框在图像坐标系中的二维坐标信息,确定标注框的三维坐标信息。具体的,标注框的各点在图像坐标系中的坐标也是二维的,执行主体可以确定各二维坐标之间的比例差值。结合候选点的三维坐标信息,可以得到标注框的三维坐标信息。可以理解的是,此处标注框的三维坐标信息是在车辆坐标系中的。Afterwards, the execution subject can determine the three-dimensional coordinate information of the label frame according to the three-dimensional coordinate information of the candidate point, the two-dimensional coordinate information and the two-dimensional coordinate information of the label frame in the image coordinate system. Specifically, the coordinates of each point of the annotation frame in the image coordinate system are also two-dimensional, and the execution subject can determine the proportional difference between the two-dimensional coordinates. Combined with the three-dimensional coordinate information of the candidate points, the three-dimensional coordinate information of the label frame can be obtained. It can be understood that, here, the three-dimensional coordinate information of the label frame is in the vehicle coordinate system.
在本实施例的一些可选的实现方式中,执行主体还可以通过图2中未示出的以下步骤来实现步骤409:根据候选点的二维坐标信息,确定候选点与标注框之间的距离;对距离按照有小到大的顺序进行排序,将前目标数量个候选点作为目标候选点;根据目标候选点的三维坐标信息、二维坐标信息以及标注框在图像坐标系中的二维坐标信息,确定标注框的三维坐标信息。In some optional implementations of this embodiment, the execution subject can also implement step 409 through the following steps not shown in FIG. 2: determine the distance between the candidate point and the label frame according to the two-dimensional coordinate information of the candidate point Distance; sort the distances in order from small to large, and use the number of candidate points of the previous target as target candidate points; according to the three-dimensional coordinate information, two-dimensional coordinate information of the target candidate point and the two-dimensional coordinates of the label frame in the image coordinate system Coordinate information, to determine the three-dimensional coordinate information of the label box.
本实现方式中,执行主体在得到各候选点的二维坐标信息后,可以计算各候选点与标注框件的距离。然后将距离最近的N个候选点作为目标候选点。在一些应用场景中,N为4。最后,可以根据目标候选点的三维坐标信息、二维坐标信息以及标注框在图像坐标系中的二维坐标信息,确定标注框的三维坐标信息。这样可以有效地减少计算时的工作量。In this implementation manner, after obtaining the two-dimensional coordinate information of each candidate point, the execution subject may calculate the distance between each candidate point and the marked frame. Then the nearest N candidate points are taken as target candidate points. In some application scenarios, N is 4. Finally, the three-dimensional coordinate information of the label frame can be determined according to the three-dimensional coordinate information of the target candidate point, the two-dimensional coordinate information and the two-dimensional coordinate information of the label frame in the image coordinate system. This can effectively reduce the workload of calculation.
步骤410,根据三维坐标信息,确定优化距离。Step 410, determine the optimal distance according to the three-dimensional coordinate information.
在得到标注框的三维坐标信息后,执行主体可以结合车辆的位置,计算车辆与障碍物之间的优化距离。After obtaining the three-dimensional coordinate information of the label frame, the execution subject can combine the position of the vehicle to calculate the optimal distance between the vehicle and the obstacle.
本申请的上述实施例提供的用于车辆的障碍物检测方法,可以利用已知三维坐标信息的候选点来确定标注框的三维坐标信息,从而能够对估算距离进行优化,使得得到的距离更准确。The obstacle detection method for vehicles provided by the above-mentioned embodiments of the present application can use the candidate points of known three-dimensional coordinate information to determine the three-dimensional coordinate information of the label frame, so that the estimated distance can be optimized to make the obtained distance more accurate .
进一步参考图5,作为对上述各图所示方法的实现,本申请提供了一种用于车辆的障碍物检测装置的一个实施例,该装置实施例与图2所示的方法实施例相对应,该装置具体可以应用于各种电子设备中。本实施例中,车辆安装有图像采集装置。Further referring to FIG. 5 , as an implementation of the methods shown in the above figures, the present application provides an embodiment of an obstacle detection device for vehicles, which corresponds to the method embodiment shown in FIG. 2 , the device can be specifically applied to various electronic devices. In this embodiment, the vehicle is equipped with an image acquisition device.
如图5所示,本实施例的用于车辆的障碍物检测装置500包括:第一获取单元501、第二获取单元502、距离估算单元503、候选点确定单元504和距离优化单元505。As shown in FIG. 5 , the obstacle detection device 500 for vehicles in this embodiment includes: a first acquisition unit 501 , a second acquisition unit 502 , a distance estimation unit 503 , a candidate point determination unit 504 and a distance optimization unit 505 .
第一获取单元501,被配置成获取图像采集装置的标定数据。The first acquisition unit 501 is configured to acquire calibration data of an image acquisition device.
第二获取单元502,被配置成获取针对图像采集装置采集的图像中的障碍物的标注框。The second obtaining unit 502 is configured to obtain a label frame for an obstacle in an image collected by the image collection device.
距离估算单元503,被配置成根据标定数据以及标注框,确定障碍物与车辆之间的估算距离。The distance estimating unit 503 is configured to determine the estimated distance between the obstacle and the vehicle according to the calibration data and the marked frame.
候选点确定单元504,被配置成根据车辆的位置信息以及估算距离,确定车辆周围的多个候选点。The candidate point determining unit 504 is configured to determine a plurality of candidate points around the vehicle according to the position information of the vehicle and the estimated distance.
距离优化单元505,被配置成根据多个候选点以及标注框,确定障碍物与车辆之间的优化距离。The distance optimization unit 505 is configured to determine an optimal distance between the obstacle and the vehicle according to the plurality of candidate points and the marked frame.
在本实施例的一些可选的实现方式中,标注框包括障碍物的至少两个接地点。距离估算单元503可以进一步被配置成:根据标定数据以及至少两个接地点,确定每个接地点与车辆之间的距离;根据每个接地点与车辆之间的距离,确定估算距离。In some optional implementation manners of this embodiment, the label frame includes at least two grounding points of the obstacle. The distance estimating unit 503 may be further configured to: determine the distance between each touch point and the vehicle according to the calibration data and at least two touch points; and determine the estimated distance according to the distance between each touch point and the vehicle.
在本实施例的一些可选的实现方式中,候选点确定单元504可以进一步被配置成:根据车辆的位置信息以及估算距离,确定候选点选取范围;在候选点选取范围选取多个点作为候选点;根据高精地图,确定候选点的三维坐标信息。In some optional implementations of this embodiment, the candidate point determination unit 504 may be further configured to: determine the candidate point selection range according to the vehicle's position information and the estimated distance; select multiple points within the candidate point selection range as candidate points point; according to the high-precision map, determine the three-dimensional coordinate information of the candidate point.
在本实施例的一些可选的实现方式中,距离优化单元505可以进一步被配置成:根据候选点的三维坐标信息,向图像坐标系投影,得到候选点在图像坐标系中的二维坐标信息;根据候选点的三维坐标信息、二维坐标信息以及标注框在图像坐标系中的二维坐标信息,确定标注框的三维坐标信息;根据三维坐标信息,确定优化距离。In some optional implementations of this embodiment, the distance optimization unit 505 may be further configured to: project to the image coordinate system according to the three-dimensional coordinate information of the candidate point to obtain the two-dimensional coordinate information of the candidate point in the image coordinate system ; According to the three-dimensional coordinate information of the candidate point, the two-dimensional coordinate information and the two-dimensional coordinate information of the label frame in the image coordinate system, determine the three-dimensional coordinate information of the label frame; according to the three-dimensional coordinate information, determine the optimal distance.
在本实施例的一些可选的实现方式中,距离优化单元505可以进一步被配置成:根据候选点的二维坐标信息,确定候选点与标注框之间的距离;对距离按照有小到大的顺序进行排序,将前目标数量个候选点作为目标候选点;根据目标候选点的三维坐标信息、二维坐标信息以及标注框在图像坐标系中的二维坐标信息,确定标注框的三维坐标信息。In some optional implementations of this embodiment, the distance optimization unit 505 may be further configured to: determine the distance between the candidate point and the label frame according to the two-dimensional coordinate information of the candidate point; The order of the target is sorted, and the candidate points of the previous target number are used as target candidate points; according to the three-dimensional coordinate information of the target candidate point, the two-dimensional coordinate information and the two-dimensional coordinate information of the label frame in the image coordinate system, determine the three-dimensional coordinates of the label frame information.
在本实施例的一些可选的实现方式中,车辆安装有成像原理不同的第一图像采集装置和第二图像采集装置。装置600还可以进一步包括图5中未示出的装置确定单元,被配置成:根据估算距离以及第一图像采集装置和第二图像采集装置的成像原理,从第一图像采集装置和第二图像采集装置中确定出目标图像采集装置。In some optional implementation manners of this embodiment, the vehicle is installed with a first image acquisition device and a second image acquisition device with different imaging principles. The device 600 may further include a device determination unit not shown in FIG. 5, configured to: according to the estimated distance and the imaging principle of the first image capture device and the second image capture device, from the first image capture device and the second image capture device The target image acquisition device is determined in the acquisition device.
应当理解,用于车辆的障碍物检测装置500中记载的单元501至单元505分别与参考图2中描述的方法中的各个步骤相对应。由此,上文针对用于车辆的障碍物检测方法描述的操作和特征同样适用于装置500及其中包含的单元,在此不再赘述。It should be understood that the units 501 to 505 described in the obstacle detection device 500 for vehicles respectively correspond to the steps in the method described with reference to FIG. 2 . Therefore, the operations and features described above for the obstacle detection method for vehicles are also applicable to the device 500 and the units contained therein, and will not be repeated here.
下面参考图6,其示出了适于用来实现本公开的实施例的电子设备(例如图1中的服务器或车辆中安装的终端设备)600的结构示意图。图6示出的电子设备仅仅是一个示例,不应对本公开的实施例的功能和使用范围带来任何限制。Referring now to FIG. 6 , it shows a schematic structural diagram of an electronic device (such as the server in FIG. 1 or the terminal device installed in a vehicle) 600 suitable for implementing an embodiment of the present disclosure. The electronic device shown in FIG. 6 is only an example, and should not limit the functions and scope of use of the embodiments of the present disclosure.
如图6所示,电子设备600可以包括处理装置(例如中央处理器、图形处理器等)601,其可以根据存储在只读存储器(ROM)602中的程序或者从存储装置608加载到随机访问存储器(RAM)603中的程序而执行各种适当的动作和处理。在RAM 603中,还存储有电子设备600操作所需的各种程序和数据。处理装置601、ROM 602以及RAM 603通过总线604彼此相连。输入/输出(I/O)接口605也连接至总线604。As shown in FIG. 6, an electronic device 600 may include a processing device (such as a central processing unit, a graphics processing unit, etc.) 601, which may be randomly accessed according to a program stored in a read-only memory (ROM) 602 or loaded from a storage device 608. Various appropriate actions and processes are executed by programs in the memory (RAM) 603 . In the RAM 603, various programs and data necessary for the operation of the electronic device 600 are also stored. The processing device 601 , ROM 602 and RAM 603 are connected to each other through a bus 604 . An input/output (I/O) interface 605 is also connected to the bus 604 .
通常,以下装置可以连接至I/O接口605:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置606;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置607;包括例如磁带、硬盘等的存储装置608;以及通信装置609。通信装置609可以允许电子设备600与其他设备进行无线或有线通信以交换数据。虽然图6示出了具有各种装置的电子设备600,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。图6中示出的每个方框可以代表一个装置,也可以根据需要代表多个装置。Typically, the following devices can be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speaker, vibration an output device 607 such as a computer; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While FIG. 6 shows electronic device 600 having various means, it should be understood that implementing or having all of the means shown is not a requirement. More or fewer means may alternatively be implemented or provided. Each block shown in FIG. 6 may represent one device, or may represent multiple devices as required.
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置609从网络上被下载和安装,或者从存储装置608被安装,或者从ROM 602被安装。在该计算机程序被处理装置601执行时,执行本公开的实施例的方法中限定的上述功能。需要说明的是,本公开的实施例所述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开的实施例中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开的实施例中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, where the computer program includes program codes for executing the methods shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via communication means 609 , or from storage means 608 , or from ROM 602 . When the computer program is executed by the processing device 601, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are executed. It should be noted that the computer-readable medium described in the embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. A computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In the embodiments of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the embodiments of the present disclosure, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can transmit, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device . Program code embodied on a computer readable medium may be transmitted by any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:获取图像采集装置的标定数据;获取针对图像采集装置采集的图像中的障碍物的标注框;根据标定数据以及标注框,确定障碍物与车辆之间的估算距离;根据车辆的位置信息以及估算距离,确定车辆周围的多个候选点;根据多个候选点以及标注框,确定障碍物与车辆之间的优化距离。The above-mentioned computer-readable medium may be included in the above-mentioned electronic device, or may exist independently without being incorporated into the electronic device. The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device: acquires the calibration data of the image acquisition device; acquires the The labeling frame of the obstacle; determine the estimated distance between the obstacle and the vehicle according to the calibration data and the labeling frame; determine multiple candidate points around the vehicle according to the position information of the vehicle and the estimated distance; according to multiple candidate points and the labeling frame , to determine the optimal distance between the obstacle and the vehicle.
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的实施例的操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out operations of embodiments of the present disclosure may be written in one or more programming languages, or combinations thereof, including object-oriented programming languages—such as Java, Smalltalk, C++, Also included are conventional procedural programming languages - such as the "C" language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In cases involving a remote computer, the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as through an Internet service provider). Internet connection).
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or portion of code that contains one or more logical functions for implementing specified executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified functions or operations , or may be implemented by a combination of dedicated hardware and computer instructions.
描述于本公开的实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元也可以设置在处理器中,例如,可以描述为:一种处理器包括第一获取单元、第二获取单元、距离估算单元、候选点确定单元和距离优化单元。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定,例如,第一获取单元还可以被描述为“获取所述图像采集装置的标定数据的单元”。The units involved in the embodiments described in the present disclosure may be implemented by software or by hardware. The described units can also be set in a processor, for example, it can be described as: a processor includes a first acquisition unit, a second acquisition unit, a distance estimation unit, a candidate point determination unit and a distance optimization unit. Wherein, the names of these units do not constitute a limitation on the unit itself under certain circumstances, for example, the first acquisition unit may also be described as "a unit that acquires the calibration data of the image acquisition device".
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开的实施例中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开的实施例中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present disclosure and an illustration of the applied technical principle. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solution formed by the specific combination of the above-mentioned technical features, but also covers the above-mentioned invention without departing from the above-mentioned inventive concept. Other technical solutions formed by any combination of technical features or equivalent features. For example, a technical solution formed by replacing the above-mentioned features with technical features with similar functions disclosed in (but not limited to) the embodiments of the present disclosure.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010152469.2A CN111353453B (en) | 2020-03-06 | 2020-03-06 | Obstacle detection method and device for vehicle |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010152469.2A CN111353453B (en) | 2020-03-06 | 2020-03-06 | Obstacle detection method and device for vehicle |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111353453A CN111353453A (en) | 2020-06-30 |
| CN111353453B true CN111353453B (en) | 2023-08-25 |
Family
ID=71197485
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010152469.2A Active CN111353453B (en) | 2020-03-06 | 2020-03-06 | Obstacle detection method and device for vehicle |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111353453B (en) |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112883909B (en) * | 2021-03-16 | 2024-06-14 | 东软睿驰汽车技术(沈阳)有限公司 | Obstacle position detection method and device based on bounding box and electronic equipment |
| CN113126120B (en) * | 2021-04-25 | 2023-08-25 | 北京百度网讯科技有限公司 | Data labeling method, device, equipment, storage medium and computer program product |
| CN114802261B (en) * | 2022-04-21 | 2024-04-19 | 合众新能源汽车股份有限公司 | Parking control method, obstacle recognition model training method and device |
| CN114723734A (en) * | 2022-04-27 | 2022-07-08 | 苏州挚途科技有限公司 | Vehicle distance measurement method, device and electronic equipment |
| CN116630933A (en) * | 2023-04-23 | 2023-08-22 | 上海仙途智能科技有限公司 | Simulation test method and device for low obstacle detection algorithm |
| CN117058210B (en) * | 2023-10-11 | 2024-06-18 | 比亚迪股份有限公司 | Distance calculation method and device based on vehicle-mounted sensor, storage medium and vehicle |
Citations (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1255624A (en) * | 1998-11-26 | 2000-06-07 | 松下电器产业株式会社 | Stereo observing system of automotive single pickup camera |
| CN1690659A (en) * | 2004-04-23 | 2005-11-02 | 株式会社自动网络技术研究所 | Vehicle Surrounding Observation Equipment |
| CN101549683A (en) * | 2009-04-23 | 2009-10-07 | 上海交通大学 | Vehicle intelligent method for automatically identifying road pit or obstruction |
| CN102508246A (en) * | 2011-10-13 | 2012-06-20 | 吉林大学 | Method for detecting and tracking obstacles in front of vehicle |
| CN102774341A (en) * | 2011-05-12 | 2012-11-14 | 富士重工业株式会社 | Environment recognition device and environment recognition method |
| CN107146247A (en) * | 2017-05-31 | 2017-09-08 | 西安科技大学 | Vehicle auxiliary driving system and method based on binocular camera |
| CN107179768A (en) * | 2017-05-15 | 2017-09-19 | 上海木爷机器人技术有限公司 | A kind of obstacle recognition method and device |
| CN107886043A (en) * | 2017-07-20 | 2018-04-06 | 吉林大学 | The vehicle front-viewing vehicle and pedestrian anti-collision early warning system and method for visually-perceptible |
| CN108027971A (en) * | 2015-07-28 | 2018-05-11 | 法雷奥开关和传感器有限责任公司 | For identifying method, driver assistance system and the motor vehicles of the object in the region of motor vehicles |
| CN109116374A (en) * | 2017-06-23 | 2019-01-01 | 百度在线网络技术(北京)有限公司 | Determine the method, apparatus, equipment and storage medium of obstacle distance |
| DE102018116040A1 (en) * | 2017-07-04 | 2019-01-10 | Denso Ten Limited | PERIPHERAL VIEW CONTROL DEVICE |
| CN109472251A (en) * | 2018-12-16 | 2019-03-15 | 华为技术有限公司 | Object collision prediction method and device |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8027029B2 (en) * | 2007-11-07 | 2011-09-27 | Magna Electronics Inc. | Object detection and tracking system |
-
2020
- 2020-03-06 CN CN202010152469.2A patent/CN111353453B/en active Active
Patent Citations (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1255624A (en) * | 1998-11-26 | 2000-06-07 | 松下电器产业株式会社 | Stereo observing system of automotive single pickup camera |
| US6172601B1 (en) * | 1998-11-26 | 2001-01-09 | Matsushita Electric Industrial Co., Ltd. | Three-dimensional scope system with a single camera for vehicles |
| CN1690659A (en) * | 2004-04-23 | 2005-11-02 | 株式会社自动网络技术研究所 | Vehicle Surrounding Observation Equipment |
| CN101549683A (en) * | 2009-04-23 | 2009-10-07 | 上海交通大学 | Vehicle intelligent method for automatically identifying road pit or obstruction |
| CN102774341A (en) * | 2011-05-12 | 2012-11-14 | 富士重工业株式会社 | Environment recognition device and environment recognition method |
| CN102508246A (en) * | 2011-10-13 | 2012-06-20 | 吉林大学 | Method for detecting and tracking obstacles in front of vehicle |
| CN108027971A (en) * | 2015-07-28 | 2018-05-11 | 法雷奥开关和传感器有限责任公司 | For identifying method, driver assistance system and the motor vehicles of the object in the region of motor vehicles |
| CN107179768A (en) * | 2017-05-15 | 2017-09-19 | 上海木爷机器人技术有限公司 | A kind of obstacle recognition method and device |
| CN107146247A (en) * | 2017-05-31 | 2017-09-08 | 西安科技大学 | Vehicle auxiliary driving system and method based on binocular camera |
| CN109116374A (en) * | 2017-06-23 | 2019-01-01 | 百度在线网络技术(北京)有限公司 | Determine the method, apparatus, equipment and storage medium of obstacle distance |
| DE102018116040A1 (en) * | 2017-07-04 | 2019-01-10 | Denso Ten Limited | PERIPHERAL VIEW CONTROL DEVICE |
| CN109204136A (en) * | 2017-07-04 | 2019-01-15 | 丰田自动车株式会社 | Side images display control unit |
| CN107886043A (en) * | 2017-07-20 | 2018-04-06 | 吉林大学 | The vehicle front-viewing vehicle and pedestrian anti-collision early warning system and method for visually-perceptible |
| CN109472251A (en) * | 2018-12-16 | 2019-03-15 | 华为技术有限公司 | Object collision prediction method and device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111353453A (en) | 2020-06-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111353453B (en) | Obstacle detection method and device for vehicle | |
| US11632536B2 (en) | Method and apparatus for generating three-dimensional (3D) road model | |
| CN111079619B (en) | Method and apparatus for detecting target object in image | |
| JP7186607B2 (en) | Method, apparatus and computer readable storage medium for updating electronic maps | |
| EP3759562B1 (en) | Camera based localization for autonomous vehicles | |
| US10437252B1 (en) | High-precision multi-layer visual and semantic map for autonomous driving | |
| US10794710B1 (en) | High-precision multi-layer visual and semantic map by autonomous units | |
| CN108303103B (en) | Method and device for determining target lane | |
| CN111542860B (en) | Sign and lane creation for high definition maps of autonomous vehicles | |
| JP6672212B2 (en) | Information processing apparatus, vehicle, information processing method and program | |
| CN111461981B (en) | Error estimation method and device for point cloud stitching algorithm | |
| CN110377026B (en) | Information processing apparatus, storage medium, and information processing method | |
| CN110687549A (en) | Obstacle detection method and device | |
| CN112204343A (en) | Visualization of high definition map data | |
| CN111492403A (en) | Lidar to camera calibration for generating high definition maps | |
| WO2020264222A1 (en) | Image-based keypoint generation | |
| CN112258519B (en) | Automatic extraction method and device for way-giving line of road in high-precision map making | |
| CN111339876B (en) | Method and device for identifying types of regions in a scene | |
| CN113469045B (en) | Visual positioning method and system for unmanned integrated card, electronic equipment and storage medium | |
| CN112700486B (en) | Method and device for estimating depth of road surface lane line in image | |
| CN110163900B (en) | Method and device for adjusting point cloud data | |
| CN111105695A (en) | Map making method and device, electronic equipment and computer readable storage medium | |
| Gressenbuch et al. | Mona: The munich motion dataset of natural driving | |
| CN117974916A (en) | High-precision map generation method and device based on information fusion | |
| CN110827340B (en) | Map updating method, device and storage medium |
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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |