CN115713745A - Obstacle detection method, electronic device, and storage medium - Google Patents

Obstacle detection method, electronic device, and storage medium Download PDF

Info

Publication number
CN115713745A
CN115713745A CN202110961863.5A CN202110961863A CN115713745A CN 115713745 A CN115713745 A CN 115713745A CN 202110961863 A CN202110961863 A CN 202110961863A CN 115713745 A CN115713745 A CN 115713745A
Authority
CN
China
Prior art keywords
obstacle
vehicle
target image
dangerous area
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.)
Pending
Application number
CN202110961863.5A
Other languages
Chinese (zh)
Inventor
桑秀伟
李瑶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Pateo Connect Nanjing Co Ltd
Original Assignee
Pateo Connect Nanjing Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Pateo Connect Nanjing Co Ltd filed Critical Pateo Connect Nanjing Co Ltd
Priority to CN202110961863.5A priority Critical patent/CN115713745A/en
Publication of CN115713745A publication Critical patent/CN115713745A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Traffic Control Systems (AREA)

Abstract

本申请实施例提供了一种障碍物检测方法、电子设备及存储介质。其中,障碍物检测方法包括:获取目标图像,所述目标图像为车辆外部的图像;响应于获取到所述目标图像,识别所述目标图像中是否存在障碍物;响应于识别到所述目标图像中存在障碍物,获取所述障碍物在所述目标图像中的位置信息,基于所述位置信息识别所述障碍物是否位于危险区域。本申请实施例中,可以基于车辆外部的图像识别车辆外部是否存在障碍物,并进一步识别该障碍物是否位于危险区域,以便确定当前是否存在潜在的安全问题,从而可以针对潜在的安全问题进行相应的处理,避免事故的发生,提高车辆行驶的安全性。

Figure 202110961863

Embodiments of the present application provide an obstacle detection method, electronic equipment, and a storage medium. Wherein, the obstacle detection method includes: acquiring a target image, and the target image is an image outside the vehicle; in response to acquiring the target image, identifying whether there is an obstacle in the target image; in response to identifying the target image Obstacles exist in the target image, acquiring position information of the obstacles in the target image, and identifying whether the obstacles are located in the dangerous area based on the position information. In the embodiment of the present application, it is possible to identify whether there is an obstacle outside the vehicle based on the image outside the vehicle, and further identify whether the obstacle is located in a dangerous area, so as to determine whether there is a potential safety problem at present, so that the potential safety problem can be addressed accordingly. To avoid accidents and improve the safety of vehicles.

Figure 202110961863

Description

障碍物检测方法、电子设备及存储介质Obstacle detection method, electronic device and storage medium

技术领域technical field

本申请涉及车辆控制技术领域,特别是涉及一种障碍物检测方法、电子设备及存储介质。The present application relates to the technical field of vehicle control, in particular to an obstacle detection method, electronic equipment and a storage medium.

背景技术Background technique

随着人们生活水平的不断提高,汽车越来越受到人们的青睐,成为人们出行的重要交通工具。汽车在给人们出行带来便捷的同时,也会存在一些潜在的安全问题。比如,在汽车行驶过程中,汽车外部可能会存在其他障碍物,如果这些障碍物位于危险区域,则可能会造成碰撞等交通事故。With the continuous improvement of people's living standards, cars are more and more favored by people and become an important means of transportation for people to go out. While cars bring convenience to people's travel, there are also some potential safety problems. For example, when a car is running, there may be other obstacles outside the car. If these obstacles are located in a dangerous area, they may cause traffic accidents such as collisions.

因此,如何对车辆外部的障碍物进行检测,以便识别障碍物是否位于危险区域,是目前亟待解决的技术问题。Therefore, how to detect obstacles outside the vehicle so as to identify whether the obstacle is located in a dangerous area is a technical problem that needs to be solved urgently.

发明内容Contents of the invention

鉴于上述问题,本申请实施例提出了一种障碍物检测方法、电子设备及存储介质,用以对车辆外部的障碍物进行检测,以便识别障碍物是否位于危险区域,进而帮助用户及时发现道路风险,保障用户的驾驶安全。In view of the above problems, the embodiment of the present application proposes an obstacle detection method, an electronic device and a storage medium, which are used to detect obstacles outside the vehicle, so as to identify whether the obstacle is located in a dangerous area, and then help users discover road risks in time , to ensure the driving safety of users.

根据本申请的实施例的一个方面,提供了一种障碍物检测方法,所述方法包括:获取目标图像,所述目标图像为车辆外部的图像;响应于获取到所述目标图像,识别所述目标图像中是否存在障碍物;响应于识别到所述目标图像中存在障碍物,获取所述障碍物在所述目标图像中的位置信息,基于所述位置信息识别所述障碍物是否位于危险区域。According to an aspect of an embodiment of the present application, there is provided an obstacle detection method, the method comprising: acquiring a target image, the target image being an image outside the vehicle; in response to acquiring the target image, identifying the Whether there is an obstacle in the target image; in response to recognizing that there is an obstacle in the target image, obtaining position information of the obstacle in the target image, and identifying whether the obstacle is located in a dangerous area based on the position information .

根据本申请的实施例的另一方面,提供了一种电子设备,包括:一个或多个处理器;和其上存储有指令的一个或多个计算机可读存储介质;当所述指令由所述一个或多个处理器执行时,使得所述处理器执行如上任一项所述的障碍物检测方法。According to another aspect of the embodiments of the present application, an electronic device is provided, including: one or more processors; and one or more computer-readable storage media storing instructions thereon; when the instructions are executed by the When the one or more processors are executed, the processors are made to execute the obstacle detection method as described in any one of the above items.

根据本申请的实施例的再一方面,提供了一种计算机可读存储介质,其上存储有计算机程序,当所述计算机程序被处理器执行时,使得所述处理器执行如上任一项所述的障碍物检测方法。According to yet another aspect of the embodiments of the present application, there is provided a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the processor is made to perform the The obstacle detection method described above.

本申请实施例中,获取目标图像,所述目标图像为车辆外部的图像;响应于获取到所述目标图像,识别所述目标图像中是否存在障碍物;响应于识别到所述目标图像中存在障碍物,获取所述障碍物在所述目标图像中的位置信息,基于所述位置信息识别所述障碍物是否位于危险区域。由此可知,本申请实施例中,可以基于车辆外部的图像识别车辆外部是否存在障碍物,并进一步识别该障碍物是否位于危险区域,以便确定当前是否存在潜在的安全问题,从而可以针对潜在的安全问题进行相应的处理,避免事故的发生。In the embodiment of the present application, the target image is acquired, and the target image is an image outside the vehicle; in response to acquiring the target image, identifying whether there is an obstacle in the target image; in response to identifying that there is an obstacle in the target image Obstacles, acquiring position information of the obstacles in the target image, and identifying whether the obstacles are located in a dangerous area based on the position information. It can be seen that in the embodiment of the present application, it is possible to identify whether there is an obstacle outside the vehicle based on the image outside the vehicle, and further identify whether the obstacle is located in a dangerous area, so as to determine whether there is a potential safety problem at present, so as to target potential Safety issues should be dealt with accordingly to avoid accidents.

附图说明Description of drawings

为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些附图,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments of the present application. Obviously, the accompanying drawings in the following description are only some of the accompanying drawings of the present application , for those skilled in the art, other drawings can also be obtained according to these drawings on the premise of not paying creative work.

图1是本申请实施例的一种设备交互的示意图。FIG. 1 is a schematic diagram of device interaction according to an embodiment of the present application.

图2是本申请实施例的另一种设备交互的示意图。Fig. 2 is a schematic diagram of another device interaction according to an embodiment of the present application.

图3是本申请实施例的一种障碍物检测方法的步骤流程图。FIG. 3 is a flowchart of steps of an obstacle detection method according to an embodiment of the present application.

图4是本申请实施例的另一种障碍物检测方法的步骤流程图。FIG. 4 is a flow chart of steps of another obstacle detection method according to an embodiment of the present application.

图5是本申请实施例的一种障碍物对比的示意图。FIG. 5 is a schematic diagram of an obstacle comparison according to an embodiment of the present application.

图6是本申请实施例的另一种障碍物对比的示意图。FIG. 6 is a schematic diagram of another obstacle comparison according to the embodiment of the present application.

图7是本申请实施例的一种车辆左侧图像和车辆右侧图像的示意图。Fig. 7 is a schematic diagram of a vehicle left image and a vehicle right image according to an embodiment of the present application.

图8是本申请实施例的一种电子设备的结构示意图。FIG. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请的实施例中的附图,对本申请的实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例只是本申请的一部分实施例,而不是本申请的全部实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the application. Apparently, the described embodiments are only part of the embodiments of the application, rather than the entirety of the application. Example. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

在一种可选实施方式中,车辆上可以安装视频采集设备和车机终端。参照图1,示出了本申请实施例的一种设备交互的示意图。如图1所示,视频采集设备与车机终端之间可以进行双向通信。其中,视频采集设备可以为各种摄像头,可以在车辆外部和/或车辆内部安装一个或多个视频采集设备,视频采集设备用于实时或定时采集车辆外部的视频,并将采集的车辆外部的视频传输至车机终端。车机终端是安装于车辆上的车载智能终端,车机终端可以接收视频采集设备传输的车辆外部的视频,并执行本申请实施例中的障碍物检测方法。In an optional implementation, a video capture device and a vehicle-machine terminal can be installed on the vehicle. Referring to FIG. 1 , it shows a schematic diagram of device interaction according to an embodiment of the present application. As shown in Figure 1, two-way communication can be performed between the video capture device and the vehicle terminal. Wherein, the video capture device can be various cameras, and one or more video capture devices can be installed outside the vehicle and/or inside the vehicle. The video capture device is used for real-time or timing capture of video outside the vehicle, and the collected The video is transmitted to the vehicle terminal. The vehicle-machine terminal is a vehicle-mounted intelligent terminal installed on the vehicle. The vehicle-machine terminal can receive the video outside the vehicle transmitted by the video acquisition device, and execute the obstacle detection method in the embodiment of the present application.

在另一种可选实施方式中,车辆上可以安装视频采集设备和车机终端,车机终端还可以对应有云端服务器。参照图2,示出了本申请实施例的另一种设备交互的示意图。如图2所示,视频采集设备与车机终端之间可以进行双向通信,车机终端与云端服务器之间可以进行双向通信。其中,视频采集设备可以安装于车辆外部和/或车辆内部,可以安装一个或多个视频采集设备,视频采集设备用于实时或定时采集车辆外部的视频,并将采集的车辆外部的视频传输至车机终端。车机终端是安装于车辆上的车载智能终端,车机终端可以接收视频采集设备传输的车辆外部的视频,并将接收到的车辆外部的视频传输至云端服务器。云端服务器可以接收车机终端传输的车辆外部的视频,并执行本申请实施例中的障碍物检测方法。In another optional implementation manner, a video capture device and a vehicle-machine terminal may be installed on the vehicle, and the vehicle-machine terminal may also have a corresponding cloud server. Referring to FIG. 2 , it shows another schematic diagram of device interaction according to the embodiment of the present application. As shown in Figure 2, two-way communication can be performed between the video capture device and the vehicle terminal, and two-way communication can be performed between the vehicle terminal and the cloud server. Among them, the video capture device can be installed outside the vehicle and/or inside the vehicle, and one or more video capture devices can be installed. The video capture device is used to collect the video outside the vehicle in real time or at regular intervals, and transmit the collected video outside the vehicle to car terminal. The vehicle-machine terminal is a vehicle-mounted intelligent terminal installed on the vehicle. The vehicle-machine terminal can receive the video outside the vehicle transmitted by the video acquisition device, and transmit the received video outside the vehicle to the cloud server. The cloud server can receive the video outside the vehicle transmitted by the vehicle-machine terminal, and execute the obstacle detection method in the embodiment of the present application.

下面,通过以下各实施例对障碍物检测方法进行详细介绍。Next, the obstacle detection method will be introduced in detail through the following embodiments.

参照图3,示出了本申请实施例的一种障碍物检测方法的步骤流程图。图3所示的障碍物检测方法可以由车机终端或云端服务器执行。Referring to FIG. 3 , it shows a flowchart of steps of an obstacle detection method according to an embodiment of the present application. The obstacle detection method shown in FIG. 3 can be executed by a vehicle-machine terminal or a cloud server.

如图3所示,障碍物检测方法可以包括以下步骤:As shown in Figure 3, the obstacle detection method may include the following steps:

步骤301,获取目标图像。Step 301, acquiring a target image.

目标图像为车辆外部的图像。The target image is an image of the exterior of the vehicle.

目标图像可以为从接收到的车辆外部的视频中抽取的图像。可选地,可以按照预设的固定时间间隔从车辆外部的视频中抽取图像作为目标图像;或者,可以根据车辆的行驶速度,采用与车辆行驶速度相关的可变时间间隔从车辆外部的视频中抽取图像作为目标图像,本实施例对此不做限制。The target image may be an image extracted from the received video outside the vehicle. Optionally, an image can be extracted from the video outside the vehicle according to a preset fixed time interval as the target image; or, according to the driving speed of the vehicle, a variable time interval related to the driving speed of the vehicle can be used to extract the image from the video outside the vehicle The extracted image is used as the target image, which is not limited in this embodiment.

步骤302,响应于获取到所述目标图像,识别所述目标图像中是否存在障碍物。Step 302, in response to acquiring the target image, identify whether there is an obstacle in the target image.

在获取到一帧目标图像后,响应于获取到目标图像,对目标图像进行图像识别,以便识别图像中是否存在障碍物。可选地,障碍物可以包括但不限于:各种车辆、行人、其他物体、路障,等等。After acquiring a frame of the target image, image recognition is performed on the target image in response to the acquisition of the target image, so as to identify whether there is an obstacle in the image. Optionally, obstacles may include, but are not limited to: various vehicles, pedestrians, other objects, roadblocks, and so on.

步骤303,响应于识别到所述目标图像中存在障碍物,获取所述障碍物在所述目标图像中的位置信息,基于所述位置信息识别所述障碍物是否位于危险区域。Step 303, in response to identifying an obstacle in the target image, acquiring position information of the obstacle in the target image, and identifying whether the obstacle is located in a dangerous area based on the position information.

如果识别到目标图像中存在障碍物,则响应于识别到目标图像中存在障碍物,获取该障碍物在目标图像中的位置信息,基于该位置信息识别该障碍物是否位于危险区域。危险区域是指,该障碍物位于该区域内时会使车辆存在潜在的安全问题,需要司机特别留意。If it is recognized that there is an obstacle in the target image, in response to recognizing that there is an obstacle in the target image, the position information of the obstacle in the target image is obtained, and based on the position information, it is identified whether the obstacle is located in the dangerous area. Dangerous area means that when the obstacle is located in this area, there will be potential safety problems for the vehicle, and the driver needs to pay special attention.

如果识别到目标图像中不存在障碍物,则继续对后续获取到的目标图像进行识别。If it is recognized that there is no obstacle in the target image, continue to identify the target image acquired subsequently.

本申请实施例中,可以基于车辆外部的图像识别车辆外部是否存在障碍物,并进一步识别该障碍物是否位于危险区域,以便确定当前是否存在潜在的安全问题,从而可以针对潜在的安全问题进行相应的处理,避免事故的发生。In the embodiment of the present application, it is possible to identify whether there is an obstacle outside the vehicle based on the image outside the vehicle, and further identify whether the obstacle is located in a dangerous area, so as to determine whether there is a potential safety problem at present, so that the potential safety problem can be addressed accordingly. treatment to avoid accidents.

参照图4,示出了本申请实施例的另一种障碍物检测方法的步骤流程图。图4所示的障碍物检测方法可以由车机终端或云端服务器执行。Referring to FIG. 4 , it shows a flowchart of steps of another obstacle detection method according to an embodiment of the present application. The obstacle detection method shown in FIG. 4 can be executed by a vehicle-machine terminal or a cloud server.

如图4所示,障碍物检测方法可以包括以下步骤:As shown in Figure 4, the obstacle detection method may include the following steps:

步骤401,获取目标图像。Step 401, acquiring a target image.

本实施例中,可以实时或定时获取车辆的行驶速度,根据车辆行驶速度的不同,选择不同的抽取时间间隔抽取目标图像。In this embodiment, the driving speed of the vehicle can be obtained in real time or at regular intervals, and different extraction time intervals are selected to extract the target image according to the different driving speeds of the vehicle.

因此,获取目标图像的过程可以包括如下步骤A1~A3:Therefore, the process of acquiring the target image may include the following steps A1-A3:

步骤A1,获取车辆外部的视频以及车辆的行驶速度。Step A1, acquire the video outside the vehicle and the driving speed of the vehicle.

在实现中,可以在车辆上安装速度传感器,速度传感器与车机终端之间可以进行双向通信。速度传感器可以获取车辆的行驶速度,并将车辆的行驶速度传输给车机终端。如果是由云端服务器进行障碍物检测,则车机终端还可以进一步将车辆的行驶速度传输给云端服务器。In implementation, a speed sensor can be installed on the vehicle, and two-way communication can be performed between the speed sensor and the vehicle-machine terminal. The speed sensor can obtain the driving speed of the vehicle, and transmit the driving speed of the vehicle to the vehicle-machine terminal. If the obstacle detection is performed by the cloud server, the vehicle-machine terminal can further transmit the driving speed of the vehicle to the cloud server.

可选地,本实施例中的速度传感器可以包括但不限于:光电式车速传感器、磁电式车速传感器、霍尔式车速传感器、车轮转速传感器、发动机转速传感器,等等。Optionally, the speed sensor in this embodiment may include but not limited to: a photoelectric vehicle speed sensor, a magnetoelectric vehicle speed sensor, a Hall-type vehicle speed sensor, a wheel speed sensor, an engine speed sensor, and so on.

步骤A2,基于所述行驶速度确定抽取时间间隔。Step A2, determining an extraction time interval based on the driving speed.

考虑到在车辆的行驶速度越快的情况下,出现危险的可能性越大,因此可以更加快速地抽取目标图像进行障碍物检测,以便提高障碍物检测的频率,从而更加及时地确定障碍物是否位于危险区域。反之,在车辆的行驶速度越慢的情况下,出现危险的可能性越小,因此可以相对慢速地抽取目标图像进行障碍物检测,以便降低障碍物检测的频率,从而能够节约资源,避免资源浪费。因此,本实施例中可以设置抽取时间间隔与车辆的行驶速度负相关。也即,车辆的行驶速度越快,抽取时间间隔越短;车辆的行驶速度越慢,抽取时间间隔越长。Considering that the faster the driving speed of the vehicle, the greater the possibility of danger, so the target image can be extracted more quickly for obstacle detection, so as to increase the frequency of obstacle detection, so as to determine whether the obstacle is more timely Located in a hazardous area. Conversely, when the vehicle is traveling at a slower speed, the possibility of danger is less, so the target image can be extracted relatively slowly for obstacle detection, so as to reduce the frequency of obstacle detection, thereby saving resources and avoiding waste. Therefore, in this embodiment, it may be set that the extraction time interval is negatively correlated with the driving speed of the vehicle. That is, the faster the driving speed of the vehicle, the shorter the extraction time interval; the slower the driving speed of the vehicle, the longer the extraction time interval.

可选地,可以预先设置车辆的行驶速度与抽取时间间隔的对应关系,基于获取到的车辆的行驶速度,从该对应关系中查询该车辆的行驶速度对应的抽取时间间隔。Optionally, the corresponding relationship between the driving speed of the vehicle and the extraction time interval may be preset, and based on the acquired driving speed of the vehicle, the extraction time interval corresponding to the driving speed of the vehicle is queried from the corresponding relationship.

可选地,在该对应关系中,车辆的行驶速度可以为速度区间的形式,也即,一个速度区间可以对应一个抽取时间间隔。因此,在获取到车辆的行驶速度后,可以基于车辆的行驶速度查询该对应关系,得到车辆的行驶速度所位于的速度区间,将该速度区间对应的抽取时间间隔,作为该车辆的行驶速度对应的抽取时间间隔。Optionally, in the corresponding relationship, the driving speed of the vehicle may be in the form of a speed interval, that is, one speed interval may correspond to one extraction time interval. Therefore, after the vehicle’s driving speed is obtained, the corresponding relationship can be queried based on the vehicle’s driving speed to obtain the speed interval in which the vehicle’s driving speed is located, and the extraction time interval corresponding to the speed interval can be used as the vehicle’s driving speed correspondence extraction time interval.

对于上述对应关系,可以根据实际经验设置任意适用的数值,本实施例对此不做限制。比如,车辆的行驶速度为90km/h~120km/h(千米每小时)时,对应的抽取时间间隔为1秒;车辆的行驶速度为60km/h~89km/h时,对应的抽取时间间隔为1.5秒;车辆的行驶速度为30km/h~59km/h时,对应的抽取时间间隔为2秒,等等。For the above corresponding relationship, any applicable value may be set according to actual experience, which is not limited in this embodiment. For example, when the driving speed of the vehicle is 90km/h to 120km/h (kilometers per hour), the corresponding extraction time interval is 1 second; when the driving speed of the vehicle is 60km/h to 89km/h, the corresponding extraction time interval is 1.5 seconds; when the driving speed of the vehicle is 30km/h-59km/h, the corresponding extraction time interval is 2 seconds, and so on.

步骤A3,按照所述抽取时间间隔从所述视频中抽取图像作为所述目标图像。Step A3, extracting an image from the video as the target image according to the extraction time interval.

获取到车辆外部的视频后,按照上述基于车辆的行驶速度确定出的抽取时间间隔,从车辆外部的视频中抽取图像作为目标图像。After the video outside the vehicle is acquired, an image is extracted from the video outside the vehicle as the target image according to the extraction time interval determined based on the driving speed of the vehicle.

比如,车辆的行驶速度为100km/h,则确定出对应的抽取时间间隔为1秒,因此,每隔1秒从车辆外部的视频中抽取一帧图像,将抽取的该帧图像作为目标图像。For example, if the driving speed of the vehicle is 100km/h, the corresponding extraction time interval is determined to be 1 second. Therefore, a frame of image is extracted from the video outside the vehicle every 1 second, and the extracted frame of image is used as the target image.

步骤402,响应于获取到所述目标图像,识别所述目标图像中是否存在障碍物。Step 402, in response to acquiring the target image, identify whether there is an obstacle in the target image.

利用图像识别技术对获取到的目标图像进行目标检测,以便检测目标图像中是否存在障碍物,并在存在障碍物的情况下获取到障碍物在目标图像中的位置信息。Image recognition technology is used to perform target detection on the acquired target image, so as to detect whether there is an obstacle in the target image, and obtain the position information of the obstacle in the target image if there is an obstacle.

可选地,对目标图像进行目标检测的方式可以包括但不限于:HOG(Histogram ofOriented Gradients,方向梯度直方图)+SVM(Support Vector Machine,支持向量机)方式、DPM(Deformable Part based Model,可变形部件模型)方式、R-CNN(RegionConvolutional Neural Network,区域卷积神经网络)方式、SPPNet(SpatialPyramid Pooling Networks,空间金字塔池化网络)方式、Fast RCNN方式、Faster RCNN方式,等等。Optionally, the manner of performing target detection on the target image may include but not limited to: HOG (Histogram of Oriented Gradients, histogram of oriented gradients)+SVM (Support Vector Machine, support vector machine) mode, DPM (Deformable Part based Model, which can Deformable part model) method, R-CNN (Region Convolutional Neural Network, regional convolutional neural network) method, SPPNet (SpatialPyramid Pooling Networks, spatial pyramid pooling network) method, Fast RCNN method, Faster RCNN method, etc.

比如,采用HOG+SVM方式的情况下,针对一帧目标图像,首先提取目标图像的HOG特征向量,然后将HOG特征向量输入SVM中进行分类检测,SVM可以识别出哪些像素属于障碍物类别,哪些像素不属于障碍物类别,从而检测出该帧目标图像中是否存在障碍物,以及获取障碍物在目标图像中的位置信息。For example, in the case of using the HOG+SVM method, for a frame of target image, first extract the HOG feature vector of the target image, and then input the HOG feature vector into the SVM for classification detection. The SVM can identify which pixels belong to the obstacle category and which The pixel does not belong to the obstacle category, so as to detect whether there is an obstacle in the target image of the frame, and obtain the position information of the obstacle in the target image.

再比如,采用R-CNN方式的情况下,针对一帧目标图像,首先使用选择性搜索(selective search)的方式在目标图像中确定出多个(约1000-2000个)候选框;然后将每个候选框内的图像块缩放至相同大小,并输入到CNN(Convolutional Neural Network,卷积神经网络)内进行特征提取;接着对候选框中提取出的特征,使用分类器判别是否属于一个特定类(是否属于障碍物类别);然后对于属于某一特征的候选框,用回归器进一步调整其位置,从而检测出该帧目标图像中是否存在障碍物,以及获取障碍物在目标图像中的位置信息。For another example, in the case of using the R-CNN method, for a frame of target image, first use the selective search (selective search) method to determine multiple (about 1000-2000) candidate frames in the target image; The image blocks in each candidate frame are scaled to the same size, and input to CNN (Convolutional Neural Network, Convolutional Neural Network) for feature extraction; then, for the features extracted in the candidate frame, use a classifier to determine whether they belong to a specific class (whether it belongs to the obstacle category); then, for the candidate frame belonging to a certain feature, use the regressor to further adjust its position, so as to detect whether there is an obstacle in the target image of the frame, and obtain the position information of the obstacle in the target image .

其中,目标图像中存在的障碍物可以为一个或多个。Wherein, there may be one or more obstacles in the target image.

步骤403,响应于识别到所述目标图像中存在障碍物,获取所述障碍物在所述目标图像中的位置信息,基于所述位置信息识别所述障碍物是否位于危险区域。Step 403, in response to identifying an obstacle in the target image, acquiring position information of the obstacle in the target image, and identifying whether the obstacle is located in a dangerous area based on the position information.

如果识别到目标图像中存在障碍物,则响应于目标图像中存在障碍物,获取在上述步骤402的目标检测过程中检测到的障碍物在目标图像中的位置信息,并基于障碍物的位置信息识别该障碍物是否位于危险区域。具体将在下面进行详细介绍。如果识别到目标图像中不存在障碍物,则继续对后续获取到的目标图像进行识别。If it is recognized that there is an obstacle in the target image, in response to the presence of an obstacle in the target image, obtain the position information of the obstacle detected in the target image during the target detection process in step 402 above, and based on the position information of the obstacle Identify whether the obstacle is in the danger zone. The details will be introduced below. If it is recognized that there is no obstacle in the target image, continue to identify the target image acquired subsequently.

步骤404,响应于识别到所述障碍物位于危险区域,触发危险提醒信息。Step 404, in response to identifying that the obstacle is located in a dangerous area, triggering a danger reminder message.

如果识别到障碍物位于危险区域,则响应于识别到障碍物位于危险区域,可以进一步触发危险提醒信息,以便提醒用户(比如司机)当前的危险状态,需要注意安全。如果识别到障碍物位于非危险区域,则继续对后续获取到的目标图像进行识别。If it is recognized that the obstacle is located in the dangerous area, then in response to the recognition that the obstacle is located in the dangerous area, a danger reminder message may be further triggered, so as to remind the user (such as the driver) of the current dangerous state and need to pay attention to safety. If it is recognized that the obstacle is located in a non-dangerous area, continue to recognize the target image acquired subsequently.

可选地,危险提醒信息的形式可以包括但不限于:语音提醒(比如播放提醒语音等)、文字提醒(比如弹窗展示提醒等)、声光提醒(比如发出声光提醒等),等等。Optionally, the form of danger reminder information may include but not limited to: voice reminder (such as playing reminder voice, etc.), text reminder (such as pop-up window display reminder, etc.), sound and light reminder (such as sound and light reminder, etc.), etc. .

需要说明的是,如果由车机终端执行本实施例的障碍物检测方法,则由车机终端自身触发危险提醒信息;如果由云端服务器执行本实施例的障碍物检测方法,则由云端服务器触发危险提醒信息,并将危险提醒信息发送给车机终端,再由车机终端向用户发出对应的危险提醒信息。It should be noted that if the vehicle-machine terminal executes the obstacle detection method of this embodiment, the danger reminder information is triggered by the vehicle-machine terminal itself; if the cloud server executes the obstacle detection method of this embodiment, the cloud server triggers Danger reminder information, and send the danger reminder information to the car-machine terminal, and then the car-machine terminal sends the corresponding danger reminder information to the user.

在一种应用场景下,用户(也即司机)在驾驶车辆的过程中,如果用户的车辆距离前方车辆和/或后方车辆太近,则容易造成交通事故。针对该种情况,可以采用本实施例的方法进行障碍物检测,以便识别前方车辆和/或后方车辆是否位于危险区域(也即是否与该车辆距离太近),并且在识别到前方车辆和/或后方车辆位于危险区域的情况下,触发危险提醒信息,以便提醒用户前方车辆和/或后方车辆距离太近,注意保持车距。In one application scenario, when a user (that is, a driver) is driving a vehicle, if the user's vehicle is too close to the vehicle in front and/or the vehicle behind, it may easily cause a traffic accident. In this case, the method of this embodiment can be used for obstacle detection, so as to identify whether the vehicle in front and/or the vehicle behind is located in a dangerous area (that is, whether it is too close to the vehicle), and when the vehicle in front and/or the vehicle behind is identified Or when the vehicle behind is located in a dangerous area, a danger reminder message is triggered, so as to remind the user that the vehicle ahead and/or the vehicle behind are too close, and pay attention to maintaining a distance between vehicles.

针对该种场景,在一种可选实施方式中,视频采集设备可以安装于车辆前方和/或车辆后方,相应地,目标图像可以包括车辆前方的图像和/或车辆后方的图像。For this scenario, in an optional implementation manner, the video capture device may be installed in front of the vehicle and/or behind the vehicle, and correspondingly, the target image may include an image in front of the vehicle and/or an image behind the vehicle.

基于障碍物在目标图像中的位置信息,识别所述障碍物是否位于危险区域的过程可以包括如下步骤B1~B3:Based on the position information of the obstacle in the target image, the process of identifying whether the obstacle is located in the dangerous area may include the following steps B1-B3:

步骤B1,基于所述位置信息计算所述障碍物的宽度在所述目标图像的宽度中的第一占比,以及所述障碍物的高度在所述目标图像的高度中的第二占比。Step B1, calculating a first proportion of the width of the obstacle in the width of the target image and a second proportion of the height of the obstacle in the height of the target image based on the position information.

通常情况下,障碍物与镜头之间的距离越远,障碍物的宽度和/或高度在目标图像中的占比越小;障碍物与镜头之间的距离越近,障碍物的宽度和/或高度在目标图像中的占比越大。比如,在距镜头5米、10米、15米、20米、30米、40米等距离拍摄的目标图像中,障碍物的宽度和/或高度的占比是不一样的,距镜头5米时拍摄到的障碍物相比于距镜头10米时拍摄到的障碍物的占比更大。因此,障碍物的宽度和/或高度在目标图像中的占比能够反映障碍物与车辆之间的距离。因此,可以基于障碍物的宽度和/或高度在目标图像中的占比识别障碍物是否位于危险区域。Generally, the farther the distance between the obstacle and the lens, the smaller the proportion of the width and/or height of the obstacle in the target image; the closer the distance between the obstacle and the lens, the smaller the width and/or height of the obstacle. Or the greater the proportion of the height in the target image. For example, in the target images taken at distances of 5 meters, 10 meters, 15 meters, 20 meters, 30 meters, and 40 meters from the lens, the proportions of the width and/or height of obstacles are different. Compared with the obstacles photographed when the distance from the lens is 10 meters, the proportion of obstacles photographed is larger. Therefore, the proportion of the width and/or height of the obstacle in the target image can reflect the distance between the obstacle and the vehicle. Therefore, whether the obstacle is located in the dangerous area can be identified based on the proportion of the width and/or height of the obstacle in the target image.

通过图像识别技术识别到的障碍物在目标图像中的位置信息可以包括但不限于:障碍物对应的各个像素的坐标,该坐标以目标图像的左下角为原点。The position information of the obstacle in the target image recognized by the image recognition technology may include but not limited to: the coordinates of each pixel corresponding to the obstacle, and the coordinates take the lower left corner of the target image as the origin.

基于障碍物对应的最左边的像素(也即障碍物对应的横坐标最小的像素)的坐标和最右边的像素(也即障碍物对应的横坐标最大的像素)的坐标,可以计算出障碍物的宽度。具体地,将障碍物对应的最右边的像素的坐标和障碍物对应的最左边的像素的坐标之间差值,作为障碍物的宽度。Based on the coordinates of the leftmost pixel corresponding to the obstacle (that is, the pixel with the smallest abscissa corresponding to the obstacle) and the coordinates of the rightmost pixel (that is, the pixel with the largest abscissa corresponding to the obstacle), the obstacle can be calculated width. Specifically, the difference between the coordinates of the rightmost pixel corresponding to the obstacle and the coordinates of the leftmost pixel corresponding to the obstacle is taken as the width of the obstacle.

基于障碍物对应的最下边的像素(也即障碍物对应的纵坐标最小的像素)的坐标和最上边的像素(也即障碍物对应的纵坐标最大的像素)的坐标,可以计算出障碍物的高度。具体地,将障碍物对应的最上边的像素的坐标和障碍物对应的最下边的像素的坐标之间的差值,作为障碍物的高度。Obstacles can be calculated based on the coordinates of the lowest pixel corresponding to the obstacle (that is, the pixel with the smallest ordinate corresponding to the obstacle) and the coordinates of the uppermost pixel (that is, the pixel with the largest ordinate corresponding to the obstacle). the height of. Specifically, the difference between the coordinates of the uppermost pixel corresponding to the obstacle and the coordinates of the lowermost pixel corresponding to the obstacle is taken as the height of the obstacle.

获取目标图像的宽度,计算障碍物的宽度与目标图像的宽度的第一比值,该第一比值作为障碍物的宽度在目标图像的宽度中的第一占比。获取目标图像的高度,计算障碍物的高度与目标图像的高度的第二比值,该第二比值作为障碍物的高度在目标图像的高度中的第二占比。The width of the target image is obtained, and a first ratio between the width of the obstacle and the width of the target image is calculated, and the first ratio is used as a first ratio of the width of the obstacle to the width of the target image. The height of the target image is acquired, and a second ratio between the height of the obstacle and the height of the target image is calculated, and the second ratio is used as a second ratio of the height of the obstacle to the height of the target image.

步骤B2,识别所述障碍物的类型,并获取预设的所述障碍物的类型对应的危险区域占比范围。Step B2, identifying the type of the obstacle, and obtaining a preset percentage range of the dangerous area corresponding to the type of the obstacle.

在障碍物与镜头之间的距离相同的情况下,障碍物的类型不同,该障碍物的宽度和/或高度在目标图像中的占比不同。比如,障碍物越大,该障碍物的宽度和/或高度在目标图像中的占比越大;障碍物越小,该障碍物的宽度和/或高度在目标图像中的占比越小。因此,可以针对不同的障碍物的类型,预先有针对性地设置各障碍物的类型对应的危险区域占比范围。When the distance between the obstacle and the lens is the same, the type of the obstacle is different, and the proportion of the width and/or height of the obstacle in the target image is different. For example, the larger the obstacle, the greater the proportion of the width and/or height of the obstacle in the target image; the smaller the obstacle, the smaller the proportion of the width and/or height of the obstacle in the target image. Therefore, for different types of obstacles, the proportion range of the dangerous area corresponding to each type of obstacle can be set in advance.

可选地,障碍物的类型可以包括但不限于:小型障碍物(比如小汽车、电动车等)、中型障碍物(比如小货车、小客车、小型公交车等)、大型障碍物(比如大货车、大客车、大型公交车等),等等。Optionally, the types of obstacles may include but are not limited to: small obstacles (such as cars, electric vehicles, etc.), medium obstacles (such as small trucks, passenger cars, small buses, etc.), large obstacles (such as large trucks, coaches, large buses, etc.), etc.

在实现中,可以根据实际经验预先设置危险区域对应的障碍物与车辆之间的距离范围。比如,可以设置危险区域对应的距离范围为5米~25米,等等。然后针对每种障碍物的类型,获取在危险区域对应的距离范围内拍摄到的图像中,该种障碍物的类型对应障碍物的宽度和高度在图像中的占比范围,将该占比范围作为该种障碍物的类型对应的危险区域占比范围。In implementation, the distance range between the obstacle corresponding to the dangerous area and the vehicle may be preset according to actual experience. For example, the distance range corresponding to the dangerous area may be set to be 5 meters to 25 meters, and so on. Then, for each type of obstacle, in the image captured within the corresponding distance range of the dangerous area, the type of obstacle corresponds to the proportion range of the width and height of the obstacle in the image, and the proportion range The proportion range of the dangerous area corresponding to the type of this obstacle.

识别出目标图像中存在障碍物后,可以继续识别该障碍物的类型,并从预设的各障碍物的类型对应的危险区域占比范围中,获取该障碍物的类型对应的危险区域占比范围。After identifying the obstacle in the target image, you can continue to identify the type of the obstacle, and obtain the proportion of the dangerous area corresponding to the type of obstacle from the preset range of dangerous area proportions corresponding to each obstacle type scope.

可选地,预先根据实际经验设置各障碍物类型对应的宽高比范围。识别所述障碍物的类型的过程可以包括如下步骤:将所述障碍物的宽高比与预设的各障碍物类型对应的宽高比范围进行匹配;当障碍物的宽高比位于某个障碍物类型对应的宽高比范围内时,确定该障碍物类型匹配成功;响应于匹配成功,将匹配成功的类型作为所述障碍物的类型。对于宽高比范围,可以根据实际经验或者多次试验设置任意适用的数值,本实施例对此不做限制。Optionally, the aspect ratio range corresponding to each obstacle type is set in advance according to actual experience. The process of identifying the type of obstacle may include the following steps: matching the aspect ratio of the obstacle with the preset aspect ratio range corresponding to each obstacle type; when the aspect ratio of the obstacle is within a certain When the obstacle type is within the aspect ratio range corresponding to the obstacle type, it is determined that the obstacle type is successfully matched; in response to the successful matching, the successfully matched type is used as the type of the obstacle. For the aspect ratio range, any applicable value may be set according to actual experience or multiple experiments, which is not limited in this embodiment.

步骤B3,响应于判断出所述第一占比和/或所述第二占比位于所述危险区域占比范围内,确定所述障碍物位于危险区域。Step B3, in response to judging that the first proportion and/or the second proportion is within the proportion range of the dangerous area, determine that the obstacle is located in the dangerous area.

判断障碍物的宽度在目标图像的宽度中的第一占比和/或障碍物的高度在目标图像的高度中的第二占比,是否位于该障碍物的类型对应的危险区域占比范围内。响应于判断出第一占比和/或第二占比位于该障碍物的类型对应的危险区域占比范围内,确定该障碍物位于危险区域。Determine whether the first proportion of the width of the obstacle in the width of the target image and/or the second proportion of the height of the obstacle in the height of the target image are within the proportion of the dangerous area corresponding to the type of obstacle . In response to judging that the first proportion and/or the second proportion are within the proportion range of the dangerous area corresponding to the type of the obstacle, it is determined that the obstacle is located in the dangerous area.

图5是本申请实施例的一种障碍物对比的示意图。如图5所示,图像a中障碍物的宽度和高度在图像a中的占比,相比于图像b中障碍物的宽度和高度在图像b中的占比更小,可以说明图像a中的障碍物与用户当前驾驶的车辆之间的距离,相比于图像b中的障碍物与用户当前驾驶的车辆之间的距离更大。经过判断得出,图像a中的障碍物位于非危险区域,图像b中的障碍物位于危险区域。FIG. 5 is a schematic diagram of an obstacle comparison according to an embodiment of the present application. As shown in Figure 5, the proportion of the width and height of the obstacle in image a in image a is smaller than the proportion of the width and height of the obstacle in image b in image b, which can explain that in image a The distance between the obstacle in image b and the vehicle currently driven by the user is larger than the distance between the obstacle in image b and the vehicle currently driven by the user. It is judged that the obstacle in the image a is located in the non-dangerous area, and the obstacle in the image b is located in the dangerous area.

在另一种应用场景下,用户(也即司机)在驾驶车辆到达路口时,如果前方的车辆太高,则会遮挡用户的视线,使用户无法看清路口的交通状况,无法看清路口的交通信号灯,容易造成交通事故,违反交通规则。针对该种情况,可以采用本实施例的方法进行障碍物检测,以便识别前方车辆是否位于危险区域(也即是否遮挡用户视线),并且在识别到前方车辆位于危险区域的情况下,触发危险提醒信息,以便提醒用户前方车辆遮挡视线,注意路口行程安全,注意交通信号灯。In another application scenario, when the user (that is, the driver) drives the vehicle to reach the intersection, if the vehicle in front is too high, it will block the user's sight, so that the user cannot see the traffic conditions at the intersection, and cannot see clearly the traffic conditions at the intersection. Traffic lights can easily cause traffic accidents and violate traffic rules. In this case, the method of this embodiment can be used for obstacle detection, so as to identify whether the vehicle in front is located in a dangerous area (that is, whether to block the user's line of sight), and when it is recognized that the vehicle in front is located in a dangerous area, a danger reminder is triggered Information, in order to remind the user that the vehicle in front blocks the line of sight, pay attention to the safety of the intersection, and pay attention to the traffic lights.

针对该种场景,在一种可选实施方式中,视频采集设备可以安装于车辆前方,相应地,目标图像可以包括车辆前方的图像。For this scenario, in an optional implementation manner, the video capture device may be installed in front of the vehicle, and accordingly, the target image may include an image in front of the vehicle.

基于障碍物在目标图像中的位置信息,识别所述障碍物是否位于危险区域的过程可以包括如下步骤C1~C3:Based on the position information of the obstacle in the target image, the process of identifying whether the obstacle is located in the dangerous area may include the following steps C1-C3:

步骤C1,判断所述车辆当前是否位于路口。Step C1, judging whether the vehicle is currently at the intersection.

在一种可选实施方式中,用户驾驶车辆的过程中,车机终端可以实时或定时获取车辆的导航数据,导航数据可以包括路口信息等。如果由车机终端执行障碍物检测方法,则车机终端可以基于车辆的导航数据判断所述车辆当前是否位于路口;如果由云端服务器执行障碍物检测方法,则车机终端可以将车辆的导航数据发送至云端服务器,由云端服务器基于车辆的导航数据判断所述车辆当前是否位于路口。In an optional implementation, when the user is driving the vehicle, the vehicle-machine terminal can obtain the vehicle's navigation data in real time or periodically, and the navigation data can include intersection information and the like. If the vehicle-machine terminal performs the obstacle detection method, the vehicle-machine terminal can judge whether the vehicle is currently at an intersection based on the vehicle's navigation data; if the cloud server performs the obstacle detection method, the vehicle-machine terminal can use the vehicle's navigation data Send to the cloud server, and the cloud server judges whether the vehicle is currently at an intersection based on the vehicle's navigation data.

在另一种可选实施方式中,用户驾驶车辆的过程中,车机终端可以实时或定时获取车辆的定位数据和预设的路网数据,路网数据可以包括路口信息等。如果由车机终端执行障碍物检测方法,则车机终端可以基于车辆的定位数据和路网数据判断所述车辆当前是否位于路口;如果由云端服务器执行障碍物检测方法,则车机终端可以将车辆的定位数据和路网数据发送至云端服务器,由云端服务器基于车辆的定位数据和路网数据判断所述车辆当前是否位于路口。In another optional implementation, when the user is driving the vehicle, the vehicle-machine terminal can obtain the positioning data of the vehicle and preset road network data in real time or periodically, and the road network data can include intersection information and the like. If the vehicle-machine terminal executes the obstacle detection method, the vehicle-machine terminal can judge whether the vehicle is currently at an intersection based on the vehicle’s positioning data and road network data; if the cloud server executes the obstacle detection method, the vehicle-machine terminal can The positioning data and road network data of the vehicle are sent to the cloud server, and the cloud server judges whether the vehicle is currently located at the intersection based on the positioning data of the vehicle and the road network data.

步骤C2,响应于判断出所述车辆当前位于路口,基于所述位置信息计算所述障碍物的顶部与所述目标图像的顶部之间的距离。Step C2, in response to judging that the vehicle is currently at an intersection, calculating the distance between the top of the obstacle and the top of the target image based on the location information.

通常情况下,在目标图像中,障碍物越高,障碍物的顶部与目标图像的顶部之间的距离越小;障碍物越低,障碍物的顶部与目标图像的顶部之间的距离越大。因此,障碍物的顶部与目标图像的顶部之间的距离能够反映障碍物的高度,进而反映障碍物是否可能遮挡后方车辆的用户视线。因此,可以基于障碍物的顶部与目标图像的顶部之间的距离识别障碍物是否位于危险区域。In general, the higher the obstacle in the target image, the smaller the distance between the top of the obstacle and the top of the target image; the lower the obstacle, the larger the distance between the top of the obstacle and the top of the target image . Therefore, the distance between the top of the obstacle and the top of the target image can reflect the height of the obstacle, and further reflect whether the obstacle may block the user's sight of the vehicle behind. Therefore, it is possible to recognize whether an obstacle is located in a dangerous area based on the distance between the top of the obstacle and the top of the target image.

通过图像识别技术识别到的障碍物在目标图像中的位置信息可以包括但不限于:障碍物对应的各个像素的坐标,该坐标以目标图像的左下角为原点。基于障碍物对应的最上边的像素(也即障碍物对应的纵坐标最大的像素)的坐标和目标图像的顶部的像素的坐标,可以计算出障碍物的顶部与目标图像的顶部之间的距离。具体地,将目标图像的顶部的像素的坐标与障碍物对应的最上边的像素的坐标之间的差值,作为障碍物的顶部与目标图像的顶部之间的距离。The position information of the obstacle in the target image recognized by the image recognition technology may include but not limited to: the coordinates of each pixel corresponding to the obstacle, and the coordinates take the lower left corner of the target image as the origin. Based on the coordinates of the uppermost pixel corresponding to the obstacle (that is, the pixel with the largest vertical coordinate corresponding to the obstacle) and the coordinates of the top pixel of the target image, the distance between the top of the obstacle and the top of the target image can be calculated . Specifically, the difference between the coordinates of the top pixel of the target image and the coordinates of the uppermost pixel corresponding to the obstacle is taken as the distance between the top of the obstacle and the top of the target image.

步骤C3,响应于判断出所述距离小于预设阈值,确定所述障碍物位于危险区域。Step C3, in response to judging that the distance is less than a preset threshold, determine that the obstacle is located in a dangerous area.

判断障碍物的顶部与目标图像的顶部之间的距离是否小于预设阈值,响应于判断出障碍物的顶部与目标图像的顶部之间的距离小于预设阈值,确定该障碍物位于危险区域。It is determined whether the distance between the top of the obstacle and the top of the target image is less than a preset threshold, and in response to determining that the distance between the top of the obstacle and the top of the target image is less than the preset threshold, it is determined that the obstacle is located in the dangerous area.

对于预设阈值的取值,可以根据实际情况进行大量实验,找出在能够导致遮挡用户视野的情况下,障碍物的顶部与采集的目标图像的顶部之间的距离的最大值,将该最大值作为预设阈值,本实施例对预设阈值的具体数值不做限制。For the value of the preset threshold, a large number of experiments can be carried out according to the actual situation to find the maximum value of the distance between the top of the obstacle and the top of the collected target image when it can block the user's field of view, and set the maximum The value is used as the preset threshold, and this embodiment does not limit the specific value of the preset threshold.

图6是本申请实施例的另一种障碍物对比的示意图。如图6所示,图像c中障碍物的顶部与目标图像的顶部之间的距离,相比于图像d中障碍物的顶部与目标图像的顶部之间的距离更大,可以说明图像c中障碍物遮挡用户视线的可能性,相比于图像d中障碍物遮挡用户视线的可能性更小。经过判断得出,图像c中的障碍物位于非危险区域(视野开阔),图像d中的障碍物位于危险区域(视野遮挡)。FIG. 6 is a schematic diagram of another obstacle comparison according to the embodiment of the present application. As shown in Figure 6, the distance between the top of the obstacle and the top of the target image in image c is larger than the distance between the top of the obstacle and the top of the target image in image d, which can explain that in image c The possibility of obstacles blocking the user's line of sight is smaller than the possibility of obstacles blocking the user's line of sight in image d. After judgment, it can be concluded that the obstacle in image c is located in a non-dangerous area (wide view), and the obstacle in image d is located in a dangerous area (obstructed view).

在另一种应用场景下,用户(也即司机)在驾驶车辆的过程中,如果用户的车辆距离左侧障碍物和/或右侧障碍物太近,则容易造成交通事故。比如,用户在驾驶车辆右拐的时候,如果其他车辆或者行人与该车辆距离较近,可能会在右拐过程中发生交通事故。再比如,如果用户在打开车门的时候,如果其他车辆或者行人与该车辆距离较近,可能会在在打开车门的过程中发生交通事故。针对该种情况,可以采用本实施例的方法进行障碍物检测,以便识别左侧障碍物和/或右侧障碍物是否位于危险区域(也即是否与该车辆距离太近),并且在识别到左侧障碍物和/或右侧障碍物位于危险区域的情况下,触发危险提醒信息,以便提醒用户左侧障碍物和/或右侧障碍物距离太近,请注意安全。In another application scenario, if the user (that is, the driver) is driving the vehicle, if the user's vehicle is too close to the left obstacle and/or the right obstacle, it may easily cause a traffic accident. For example, when a user turns right while driving a vehicle, if other vehicles or pedestrians are close to the vehicle, a traffic accident may occur during the right turn. For another example, if the user opens the car door, if other vehicles or pedestrians are close to the vehicle, a traffic accident may occur during the process of opening the car door. For this situation, the method of this embodiment can be used for obstacle detection, so as to identify whether the left obstacle and/or the right obstacle are located in the dangerous area (that is, whether they are too close to the vehicle), and when the obstacle is identified When the obstacle on the left and/or the obstacle on the right is located in the dangerous area, a danger reminder message is triggered to remind the user that the obstacle on the left and/or the obstacle on the right is too close, please pay attention to safety.

针对该种场景,在一种可选实施方式中,视频采集设备可以安装于车辆左侧(比如车辆左侧后视镜处、车辆尾部左侧等)和/或车辆右侧(比如车辆右侧后视镜处、车辆尾部右侧等),相应地,目标图像可以包括车辆左侧的图像和/或车辆右侧的图像。For this scenario, in an optional implementation, the video capture device can be installed on the left side of the vehicle (such as at the rearview mirror on the left side of the vehicle, on the left side of the rear of the vehicle, etc.) and/or on the right side of the vehicle (such as on the right side of the vehicle rearview mirror, the right side of the rear of the vehicle, etc.), correspondingly, the target image may include an image on the left side of the vehicle and/or an image on the right side of the vehicle.

基于障碍物在目标图像中的位置信息,识别所述障碍物是否位于危险区域的过程可以包括如下步骤D1~D2:Based on the position information of the obstacle in the target image, the process of identifying whether the obstacle is located in the dangerous area may include the following steps D1-D2:

步骤D1,获取所述车辆的类型以及预设的所述车辆的类型对应的危险区域范围。Step D1, acquiring the type of the vehicle and the preset range of dangerous areas corresponding to the type of the vehicle.

车辆的类型可以为车辆的型号等,车机终端可以预先存储车辆的类型。The type of the vehicle may be the model of the vehicle, etc., and the vehicle-machine terminal may store the type of the vehicle in advance.

不同车辆类型可能对应不同的危险区域范围,因此,可以根据实际情况进行大量实验(比如不同的视频采集设备角度、不同的距离等),找出不同车辆的类型各自对应的危险区域范围。该危险区域范围可以为视频采集设备采集到的图像中的部分区域范围,该危险区域范围可以包括危险区域边缘的像素的坐标等。对于危险区域范围的具体数值,本实施例不做限制。Different vehicle types may correspond to different dangerous area ranges. Therefore, a large number of experiments (such as different video capture device angles, different distances, etc.) can be carried out according to the actual situation to find out the corresponding dangerous area ranges of different vehicle types. The range of the dangerous area may be a part of the range in the image captured by the video capture device, and the range of the dangerous area may include coordinates of pixels on the edge of the dangerous area, and the like. This embodiment does not limit the specific value of the range of the dangerous area.

步骤D2,响应于判断出所述位置信息位于所述危险区域范围内,确定所述障碍物位于危险区域。Step D2, in response to judging that the location information is within the range of the dangerous area, determine that the obstacle is located in the dangerous area.

通过图像识别技术识别到的障碍物在目标图像中的位置信息可以包括但不限于:障碍物对应的各个像素的坐标,该坐标以目标图像的左下角为原点。基于障碍物对应的像素的坐标,可以判断障碍物在目标图像中的位置信息是否位于该车辆的类型对应的危险区域范围内。响应于判断出所述位置信息位于所述危险区域范围内,确定所述障碍物位于危险区域。The position information of the obstacle in the target image recognized by the image recognition technology may include but not limited to: the coordinates of each pixel corresponding to the obstacle, and the coordinates take the lower left corner of the target image as the origin. Based on the coordinates of the pixel corresponding to the obstacle, it can be determined whether the position information of the obstacle in the target image is within the range of the dangerous area corresponding to the type of the vehicle. In response to judging that the location information is within the range of the dangerous area, it is determined that the obstacle is located in the dangerous area.

图7是本申请实施例的一种车辆左侧图像和车辆右侧图像的示意图。如图7所示,图像e为车辆左侧图像,在车辆左侧图像中,划分出危险区域和非危险区域,其中障碍物的位置信息位于危险区域范围内。图像f为车辆右侧图像,在车辆右侧图像中,划分出危险区域和非危险区域,其中障碍物的位置信息位于危险区域范围内。Fig. 7 is a schematic diagram of a vehicle left image and a vehicle right image according to an embodiment of the present application. As shown in FIG. 7 , image e is an image on the left side of the vehicle. In the image on the left side of the vehicle, a dangerous area and a non-dangerous area are divided, and the position information of obstacles is located within the range of the dangerous area. Image f is the image on the right side of the vehicle. In the image on the right side of the vehicle, a dangerous area and a non-dangerous area are divided, and the position information of the obstacle is located within the range of the dangerous area.

本申请实施例中,针对不同的应用场景,可以采用不同的识别方式识别障碍物是否位于危险区域,以便针对不同的场景对用户进行提醒,从而提高行驶安全。In the embodiment of the present application, for different application scenarios, different identification methods can be used to identify whether an obstacle is located in a dangerous area, so as to remind the user for different scenarios, thereby improving driving safety.

在本申请的实施例中,还提供了一种电子设备。该电子设备可以包括一个或多个处理器,以及其上存储有指令的一个或多个计算机可读存储介质,指令例如应用程序。当所述指令由所述一个或多个处理器执行时,使得所述处理器执行上述任一实施例的障碍物检测方法。In the embodiment of the present application, an electronic device is also provided. The electronic device may include one or more processors and one or more computer-readable storage media having instructions, such as application programs, stored thereon. When the instructions are executed by the one or more processors, the processors are made to execute the obstacle detection method in any of the above embodiments.

图8示出了本申请实施例的一种电子设备800的结构示意图。如图8所示,电子设备800包括中央处理单元(Central Processing Unit,简称CPU)801,其可以根据存储在只读存储器(Read Only Memory,简称ROM)802中的计算机程序指令或者从存储单元808加载到随机访问存储器(Random Access Memory,简称RAM)803中的计算机程序指令,来执行各种适当的动作和处理。在RAM 803中,还可存储电子设备800操作所需的各种程序和数据。CPU801、ROM 802以及RAM803通过总线804彼此相连。输入/输出(Input/Output,简称I/O)接口805也连接至总线804。FIG. 8 shows a schematic structural diagram of an electronic device 800 according to an embodiment of the present application. As shown in FIG. 8 , an electronic device 800 includes a central processing unit (Central Processing Unit, referred to as CPU) 801, which can be stored in a read-only memory (Read Only Memory, referred to as ROM) 802 according to computer program instructions or from a storage unit 808 The computer program instructions loaded into the Random Access Memory (RAM for short) 803 execute various appropriate actions and processes. In the RAM 803, various programs and data necessary for the operation of the electronic device 800 can also be stored. The CPU 801 , ROM 802 , and RAM 803 are connected to each other via a bus 804 . An input/output (Input/Output, I/O for short) interface 805 is also connected to the bus 804 .

电子设备800中的多个部件连接至I/O接口805,包括:输入单元806,例如键盘、鼠标、麦克风等;输出单元807,例如各种类型的显示器、扬声器等;存储单元808,例如磁盘、光盘等;以及通信单元809,例如网卡、调制解调器、无线通信收发机等。通信单元809允许电子设备800通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据。Multiple components in the electronic device 800 are connected to the I/O interface 805, including: an input unit 806, such as a keyboard, mouse, microphone, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a magnetic disk , an optical disc, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, and the like. The communication unit 809 allows the electronic device 800 to exchange information/data with other devices through a computer network such as the Internet and/or various telecommunication networks.

上文所描述的各个过程和处理,可由处理单元801执行。例如,上述任一实施例的障碍物检测方法可被实现为计算机软件程序,其被有形地包含于计算机可读介质,例如存储单元808。在一些实施例中,计算机程序的部分或者全部可以经由ROM 802和/或通信单元809而被载入和/或安装到电子设备800上。当计算机程序被加载到RAM 803并由CPU801执行时,可以执行上文描述的障碍物检测方法中的一个或多个动作。The various procedures and processing described above can be executed by the processing unit 801 . For example, the obstacle detection method in any of the above embodiments can be implemented as a computer software program, which is tangibly contained in a computer-readable medium, such as the storage unit 808 . In some embodiments, part or all of the computer program may be loaded and/or installed on the electronic device 800 via the ROM 802 and/or the communication unit 809 . When the computer program is loaded into RAM 803 and executed by CPU 801 , one or more actions in the obstacle detection method described above can be performed.

在本申请的实施例中,还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序可由电子设备的处理器执行,当所述计算机程序被处理器执行时,使得所述处理器执行如上任一实施例所述的障碍物检测方法。In an embodiment of the present application, there is also provided a computer-readable storage medium, on which a computer program is stored, and the program can be executed by a processor of an electronic device. When the computer program is executed by the processor, the The processor executes the obstacle detection method described in any one of the above embodiments.

上述提到的处理器可以包括但不限于:CPU、网络处理器(Network Processor,简称NP)、数字信号处理器(Digital Signal Processing,简称DSP)、专用集成电路(Application Specific Integrated Circuit,简称ASIC)、现场可编程门阵列(Field-Programmable Gate Array,简称FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件,等等。The processors mentioned above may include, but are not limited to: CPU, Network Processor (NP for short), Digital Signal Processing (DSP for short), Application Specific Integrated Circuit (ASIC for short) , Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like.

上述提到的计算机可读存储介质可以包括但不限于:ROM、RAM、光盘只读储存器(Compact Disc ReadOnly Memory,简称CD-ROM)、电可擦可编程只读存储器(ElectronicErasable Programmable ReadOnly Memory,简称EEPROM)、硬盘、软盘、闪存,等等。The computer-readable storage medium mentioned above may include but not limited to: ROM, RAM, Compact Disc ReadOnly Memory (CD-ROM for short), Electronic Erasable Programmable ReadOnly Memory (Electronic Erasable Programmable ReadOnly Memory, EEPROM for short), hard disk, floppy disk, flash memory, and so on.

本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other.

需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is a relationship between these entities or operations. There is no such actual relationship or order between them. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or terminal equipment comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements identified, or also include elements inherent in such a process, method, article, or end-equipment. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or terminal device comprising said element.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM、RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM, RAM, disk, CD) contains several instructions to enable a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in various embodiments of the present application.

上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Under the inspiration of this application, without departing from the purpose of this application and the scope of protection of the claims, many forms can also be made, all of which belong to the protection of this application.

本领域普通技术人员可以意识到,结合本申请实施例中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed in the embodiments of the present application can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.

在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: various media capable of storing program codes such as U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk.

以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。综上所述,本说明书内容不应理解为对本申请的限制。The above is only a specific implementation of the application, but the scope of protection of the application is not limited thereto. Anyone familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the application. Should be covered within the protection scope of this application. To sum up, the contents of this specification should not be understood as limiting the application.

Claims (9)

1.一种障碍物检测方法,其特征在于,所述方法包括:1. an obstacle detection method, is characterized in that, described method comprises: 获取目标图像,所述目标图像为车辆外部的图像;acquiring a target image, where the target image is an image outside the vehicle; 响应于获取到所述目标图像,识别所述目标图像中是否存在障碍物;Responsive to acquiring the target image, identifying whether an obstacle exists in the target image; 响应于识别到所述目标图像中存在障碍物,获取所述障碍物在所述目标图像中的位置信息,基于所述位置信息识别所述障碍物是否位于危险区域。In response to identifying an obstacle in the target image, acquiring position information of the obstacle in the target image, and identifying whether the obstacle is located in a dangerous area based on the position information. 2.根据权利要求1所述的方法,所述获取目标图像包括如下步骤:2. The method according to claim 1, said acquiring target image comprises the steps of: 获取车辆外部的视频以及车辆的行驶速度;Obtain video of the exterior of the vehicle and the speed of the vehicle; 基于所述行驶速度确定抽取时间间隔;其中,所述抽取时间间隔与所述行驶速度负相关;determining an extraction time interval based on the driving speed; wherein the extraction time interval is negatively correlated with the driving speed; 按照所述抽取时间间隔从所述视频中抽取图像作为所述目标图像。Extracting an image from the video according to the extraction time interval as the target image. 3.根据权利要求1所述的方法,所述目标图像为车辆前方的图像和/或车辆后方的图像;所述基于所述位置信息识别所述障碍物是否位于危险区域包括如下步骤:3. The method according to claim 1, wherein the target image is an image in front of the vehicle and/or an image behind the vehicle; identifying whether the obstacle is located in a dangerous area based on the position information comprises the following steps: 基于所述位置信息计算所述障碍物的宽度在所述目标图像的宽度中的第一占比,以及所述障碍物的高度在所述目标图像的高度中的第二占比;calculating a first ratio of the width of the obstacle to the width of the target image and a second ratio of the height of the obstacle to the height of the target image based on the position information; 识别所述障碍物的类型,并获取预设的所述障碍物的类型对应的危险区域占比范围;Identifying the type of the obstacle, and obtaining a preset proportion of the dangerous area corresponding to the type of the obstacle; 响应于判断出所述第一占比和/或所述第二占比位于所述危险区域占比范围内,确定所述障碍物位于危险区域。In response to judging that the first proportion and/or the second proportion is within the proportion range of the dangerous area, it is determined that the obstacle is located in the dangerous area. 4.根据权利要求3所述的方法,所述识别所述障碍物的类型包括如下步骤:4. The method according to claim 3, said identifying the type of said obstacle comprises the steps of: 将所述障碍物的宽高比与预设的各障碍物类型对应的宽高比范围进行匹配;matching the aspect ratio of the obstacle with a preset aspect ratio range corresponding to each obstacle type; 响应于匹配成功,将匹配成功的类型作为所述障碍物的类型。In response to successful matching, the type of successful matching is used as the type of the obstacle. 5.根据权利要求1所述的方法,所述目标图像为车辆前方的图像;所述基于所述位置信息识别所述障碍物是否位于危险区域包括如下步骤:5. The method according to claim 1, wherein the target image is an image in front of the vehicle; and identifying whether the obstacle is located in a dangerous area based on the position information comprises the following steps: 判断所述车辆当前是否位于路口;judging whether the vehicle is currently at the intersection; 响应于判断出所述车辆当前位于路口,基于所述位置信息计算所述障碍物的顶部与所述目标图像的顶部之间的距离;calculating a distance between a top of the obstacle and a top of the target image based on the position information in response to determining that the vehicle is currently located at an intersection; 响应于判断出所述距离小于预设阈值,确定所述障碍物位于危险区域。In response to judging that the distance is less than a preset threshold, it is determined that the obstacle is located in a dangerous area. 6.根据权利要求1所述的方法,所述目标图像为车辆左侧的图像和/或车辆右侧的图像;所述基于所述位置信息识别所述障碍物是否位于危险区域包括如下步骤:6. The method according to claim 1, wherein the target image is an image on the left side of the vehicle and/or an image on the right side of the vehicle; the identifying whether the obstacle is located in a dangerous area based on the position information comprises the following steps: 获取所述车辆的类型以及预设的所述车辆的类型对应的危险区域范围;Obtaining the type of the vehicle and the preset dangerous area range corresponding to the type of the vehicle; 响应于判断出所述位置信息位于所述危险区域范围内,确定所述障碍物位于危险区域。In response to judging that the location information is within the range of the dangerous area, it is determined that the obstacle is located in the dangerous area. 7.根据权利要求1所述的方法,所述方法还包括:7. The method of claim 1, further comprising: 响应于识别到所述障碍物位于危险区域,触发危险提醒信息。In response to recognizing that the obstacle is located in a dangerous area, triggering a danger reminder message. 8.一种电子设备,其特征在于,包括:8. An electronic device, characterized in that it comprises: 一个或多个处理器;和one or more processors; and 其上存储有指令的一个或多个计算机可读存储介质;one or more computer-readable storage media having instructions stored thereon; 当所述指令由所述一个或多个处理器执行时,使得所述处理器执行如权利要求1至7任一项所述的障碍物检测方法。When the instructions are executed by the one or more processors, the processors are made to execute the obstacle detection method according to any one of claims 1-7. 9.一种计算机可读存储介质,其特征在于,其上存储有计算机程序,当所述计算机程序被处理器执行时,使得所述处理器执行如权利要求1至7任一项所述的障碍物检测方法。9. A computer-readable storage medium, characterized in that a computer program is stored thereon, and when the computer program is executed by a processor, the processor executes the method according to any one of claims 1 to 7. Obstacle detection method.
CN202110961863.5A 2021-08-20 2021-08-20 Obstacle detection method, electronic device, and storage medium Pending CN115713745A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110961863.5A CN115713745A (en) 2021-08-20 2021-08-20 Obstacle detection method, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110961863.5A CN115713745A (en) 2021-08-20 2021-08-20 Obstacle detection method, electronic device, and storage medium

Publications (1)

Publication Number Publication Date
CN115713745A true CN115713745A (en) 2023-02-24

Family

ID=85230204

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110961863.5A Pending CN115713745A (en) 2021-08-20 2021-08-20 Obstacle detection method, electronic device, and storage medium

Country Status (1)

Country Link
CN (1) CN115713745A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117048596A (en) * 2023-08-04 2023-11-14 广州汽车集团股份有限公司 Method, device, vehicle and storage medium for avoiding obstacle
CN117274952A (en) * 2023-09-26 2023-12-22 镁佳(北京)科技有限公司 Parking space detection method and device, computer equipment and storage medium
CN117994759A (en) * 2024-01-31 2024-05-07 小米汽车科技有限公司 Method and device for detecting position of obstacle

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120081542A1 (en) * 2010-10-01 2012-04-05 Andong University Industry-Academic Cooperation Foundation Obstacle detecting system and method
WO2018046015A1 (en) * 2016-09-12 2018-03-15 中兴通讯股份有限公司 Alarm method, device and terminal for vehicle
CN109614886A (en) * 2018-11-23 2019-04-12 中国人民解放军63966部队 It is a kind of nobody/performance evaluation methodology and device of autonomous driving system
CN113012464A (en) * 2021-02-20 2021-06-22 腾讯科技(深圳)有限公司 Vehicle searching guiding method, device, equipment and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120081542A1 (en) * 2010-10-01 2012-04-05 Andong University Industry-Academic Cooperation Foundation Obstacle detecting system and method
WO2018046015A1 (en) * 2016-09-12 2018-03-15 中兴通讯股份有限公司 Alarm method, device and terminal for vehicle
CN109614886A (en) * 2018-11-23 2019-04-12 中国人民解放军63966部队 It is a kind of nobody/performance evaluation methodology and device of autonomous driving system
CN113012464A (en) * 2021-02-20 2021-06-22 腾讯科技(深圳)有限公司 Vehicle searching guiding method, device, equipment and computer readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
韩璐: "智能车辆障碍检测与避障策略的研究", 知网硕士电子期刊, no. 07, 15 July 2012 (2012-07-15), pages 32 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117048596A (en) * 2023-08-04 2023-11-14 广州汽车集团股份有限公司 Method, device, vehicle and storage medium for avoiding obstacle
CN117048596B (en) * 2023-08-04 2024-05-10 广州汽车集团股份有限公司 Obstacle avoidance method, device, vehicle and storage medium
CN117274952A (en) * 2023-09-26 2023-12-22 镁佳(北京)科技有限公司 Parking space detection method and device, computer equipment and storage medium
CN117274952B (en) * 2023-09-26 2024-05-28 镁佳(北京)科技有限公司 Parking space detection method and device, computer equipment and storage medium
CN117994759A (en) * 2024-01-31 2024-05-07 小米汽车科技有限公司 Method and device for detecting position of obstacle

Similar Documents

Publication Publication Date Title
CN115713745A (en) Obstacle detection method, electronic device, and storage medium
WO2020042984A1 (en) Vehicle behavior detection method and apparatus
CN108345840A (en) Vehicle is detected in low light conditions
CN114932902B (en) Ghost probe early warning avoiding method and system based on Internet of vehicles technology
CN108162858B (en) Vehicle-mounted monitoring device and method thereof
CN108491782A (en) A kind of vehicle identification method based on driving Image Acquisition
CN112172663A (en) Danger alarm method based on door opening and related equipment
CN103129468A (en) Vehicle-mounted roadblock recognition system and method based on laser imaging technique
WO2022161139A1 (en) Driving direction test method and apparatus, computer device, and storage medium
KR20080022748A (en) Collision Avoidance Using Stereo Camera
CN105336217A (en) Driving safety prewarning system based on machine vision and Android platform
CN111739338A (en) A parking management method and system based on multiple types of sensors
CN114373189A (en) Behavior detection method, device, terminal device and storage medium
CN117237882A (en) Identification methods and related equipment for moving vehicles
CN111746526B (en) Early warning method, device and equipment for rear unmanned vehicle and vehicle
CN107264526B (en) A kind of lateral vehicle method for early warning, system, storage medium and terminal device
CN115071564A (en) Vehicle door opening anti-collision method and device, electronic equipment and storage medium
CN115359443A (en) Traffic accident detection method and device, electronic device and storage medium
WO2025130617A1 (en) Sign detection method and apparatus, and vehicle
CN109977844A (en) One kind giving precedence to pedestrian's control system and control method based on image recognition motor vehicle
CN116685515A (en) Early warning method and device for lane change of vehicle
CN108515967A (en) A kind of anti-collision early warning method and device based on Car license recognition
CN111717114A (en) Vehicle-mounted pedestrian early warning system
JP2019003343A (en) Driving support device and driving support method
CN108241866A (en) A method, device and vehicle for guiding driving behavior

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