Nothing Special   »   [go: up one dir, main page]

CN116897380A - Road condition detection method, readable medium and electronic equipment - Google Patents

Road condition detection method, readable medium and electronic equipment Download PDF

Info

Publication number
CN116897380A
CN116897380A CN202280003400.0A CN202280003400A CN116897380A CN 116897380 A CN116897380 A CN 116897380A CN 202280003400 A CN202280003400 A CN 202280003400A CN 116897380 A CN116897380 A CN 116897380A
Authority
CN
China
Prior art keywords
road section
collision
target
information
target road
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
CN202280003400.0A
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.)
Shenzhen Yinwang Intelligent Technology Co ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN116897380A publication Critical patent/CN116897380A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Traffic Control Systems (AREA)

Abstract

A road condition detection method, a readable medium and an electronic device. The road condition detection method is used for electronic equipment and comprises the following steps: and acquiring a video stream acquired by a camera on the target road section. According to the video stream, current characteristic information of the target object on the target road section is determined, wherein the characteristic information comprises motion state information and/or position state information. And determining the current road condition information of the target road section based on the current characteristic information of the target object and/or the historical characteristic information of the target object. And sending the current road condition information of the target road section to the vehicle within the preset range of the target road section. Therefore, the vehicle in the preset range of the target road section can acquire the road condition information of the target road section in real time, the accuracy of the road condition information of the target road section received by the automatic driving vehicle is ensured, the accuracy of the automatic driving vehicle control is improved, and the safety and the user experience of the automatic driving vehicle are further improved.

Description

路况检测方法、可读介质以及电子设备Road condition detection method, readable medium and electronic device 技术领域Technical field

本申请涉及自动驾驶领域,尤其涉及一种路况检测方法、可读介质以及电子设备。This application relates to the field of autonomous driving, and in particular, to a road condition detection method, a readable medium, and an electronic device.

背景技术Background technique

交通安全一直是交通领域的热点问题。国内外针对道路交通安全相关研究众多,目前,对于容易发生道路事故的事故多发地段,主要通过在事故多发路段设立交通警示牌,或者在车机的导航地图中进行标识,来提醒驾驶员该路段属于事故多发段,需要谨慎驾驶。然而,这两种方式的实施都需要道路上发生交通事故后一段时间才能够被驾驶员获知。这将导致自动驾驶车辆无法第一时间获取到最近时间的交通事故多发地段的信息,从而影响自动驾驶车辆驾驶的安全性以及用户体验。Traffic safety has always been a hot issue in the transportation field. There are many studies on road traffic safety at home and abroad. Currently, for accident-prone areas that are prone to road accidents, traffic warning signs are mainly set up on accident-prone road sections or marked in the navigation map of the vehicle to remind drivers of the road section. It is an accident-prone section, so drive with caution. However, the implementation of both methods requires a period of time after a traffic accident occurs on the road before the driver can learn about it. This will result in self-driving vehicles being unable to obtain information about traffic accident-prone areas in the first time, thus affecting the safety and user experience of self-driving vehicles.

例如,导航地图发布的交通事故多发地段的信息,主要是根据第三方数据收集的过去一段时间内,路段上交通事故的相关信息,通过人工分析得出是否是交通事故多发地段的结果,然后将交通事故多发地段的信息发布在导航地图上。但是,从对上述交通事故的相关信息进行收集和分析到发布到导航地图之间存在较长的时间间隔,在这段时间间隔内发生的交通事故并没有进行收集和分析,因此,无法保证发布的交通事故多发地段的信息的时效性。For example, the information about traffic accident-prone areas published by navigation maps is mainly based on the information about traffic accidents on road sections collected by third-party data in the past period. Through manual analysis, we can determine whether it is a traffic accident-prone area, and then put it into the Information about areas prone to traffic accidents is posted on the navigation map. However, there is a long time interval between the collection and analysis of the above-mentioned traffic accident-related information and its release to the navigation map. The traffic accidents that occurred during this time interval were not collected and analyzed. Therefore, the release cannot be guaranteed. The timeliness of information on areas prone to traffic accidents.

发明内容Contents of the invention

本申请实施例提供了一种路况检测方法、可读介质以及电子设备。Embodiments of the present application provide a road condition detection method, a readable medium, and an electronic device.

第一方面,本申请实施例提供了一种路况检测方法,用于电子设备,包括:获取目标路段上的摄像头采集的视频流。根据视频流,确定目标路段上的目标对象的当前特征信息,其中,特征信息包括运动状态信息和/或位置状态信息。基于所述目标对象的当前特征信息和/或目标对象的历史特征信息,确定目标路段的当前路况信息。In a first aspect, embodiments of the present application provide a road condition detection method for electronic devices, including: acquiring a video stream collected by a camera on a target road section. According to the video stream, current feature information of the target object on the target road section is determined, where the feature information includes motion state information and/or location state information. Based on the current characteristic information of the target object and/or the historical characteristic information of the target object, the current road condition information of the target road section is determined.

例如,路测设备通过获取目标路段上设置的摄像头实时采集的视频流,对视频流中的每帧图像进行目标检测,确定每帧图像中的各目标对象及各目标对象的位置,根据连续多帧图像中各目标对象所在的位置,确定各目标对象对应的特征信息,特征信息包括运动状态信息和/或位置状态信息等。其中,运动状态信息可以是速度、加速度等信息,位置状态信息可以是世界坐标系下的位置坐标等。根据该路段当前各目标对象的特征信息,以及该路段历史的各目标对象的特征信息,确定目标路段的当前路况信息,然后将目标路段的当前路况信息发送给在目标路段预设范围内的车辆。其中,目标路段的当前路况信息可以是目标路段的道路风险等级。For example, the road test equipment obtains the video stream collected in real time by the camera installed on the target road section, performs target detection on each frame of image in the video stream, determines each target object and the position of each target object in each frame of image, and based on the continuous multiple The location of each target object in the frame image is determined to determine the characteristic information corresponding to each target object. The characteristic information includes motion status information and/or position status information, etc. Among them, the motion status information can be information such as speed, acceleration, etc., and the position status information can be position coordinates in the world coordinate system, etc. Based on the characteristic information of each current target object in the road segment and the characteristic information of each target object in the history of the road segment, the current traffic condition information of the target road segment is determined, and then the current traffic condition information of the target road segment is sent to the vehicles within the preset range of the target road segment. . The current traffic condition information of the target road section may be the road risk level of the target road section.

可以理解,根据本申请的路况检测方法,电子设备可以实时更新目标路段的路况信息, 并且可以实时将目标路段的路况信息发送给在目标路段预设范围内的车辆。从而使得在目标路段预设范围内的车辆实时获知目标路段的路况信息,保证了获取的目标路段的路况信息的准确性,从而提高自动驾驶车辆控制的准确性,进一步提高了自动驾驶车辆的安全性和用户体验。It can be understood that according to the road condition detection method of the present application, the electronic device can update the road condition information of the target road section in real time, and can send the road condition information of the target road section in real time to the vehicles within the preset range of the target road section. This enables vehicles within the preset range of the target road section to obtain the road condition information of the target road section in real time, ensuring the accuracy of the acquired road condition information of the target road section, thus improving the accuracy of autonomous vehicle control and further improving the safety of autonomous vehicles. sex and user experience.

在上述第一方面的一种可能的实现中,上述方法还包括:将目标路段的当前路况信息发送给在目标路段预设范围内的车辆。In a possible implementation of the above first aspect, the above method further includes: sending the current road condition information of the target road section to vehicles within a preset range of the target road section.

在上述第一方面的一种可能的实现中,上述方法还包括:目标对象包括以下至少一个:车辆、人、障碍物。In a possible implementation of the above first aspect, the above method further includes: the target object includes at least one of the following: a vehicle, a person, and an obstacle.

在上述第一方面的一种可能的实现中,上述方法还包括:目标路段的当前路况信息包括道理风险等级。并且,基于目标对象的当前特征信息和/或目标对象的历史特征信息,确定目标路段的当前路况信息包括:基于目标对象的当前特征信息和目标对象的历史特征信息,确定目标路段的当前车流量和碰撞事故信息、以及历史车流量和碰撞事故信息。基于目标路段的当前车流量和碰撞事故信息、以及历史车流量和碰撞事故信息,确定目标路段的当前道路风险等级。In a possible implementation of the above first aspect, the above method further includes: the current road condition information of the target road section includes a road risk level. Furthermore, determining the current traffic condition information of the target road section based on the current feature information of the target object and/or the historical feature information of the target object includes: determining the current traffic volume of the target road section based on the current feature information of the target object and the historical feature information of the target object. and collision information, as well as historical traffic flow and collision information. Based on the current traffic volume and collision accident information of the target road section, as well as the historical traffic flow and collision accident information, the current road risk level of the target road section is determined.

在上述第一方面的一种可能的实现中,上述方法还包括:碰撞事故信息包括以下至少一个:碰撞事故的数量、碰撞车辆的平均相对加速度、碰撞车辆的平均相对速度。In a possible implementation of the above first aspect, the above method further includes: the collision accident information includes at least one of the following: the number of collision accidents, the average relative acceleration of the collision vehicles, and the average relative speed of the collision vehicles.

在上述第一方面的一种可能的实现中,上述方法还包括:基于目标路段的当前车流量和碰撞事故信息、以及历史车流量和碰撞事故信息,确定目标路段的当前道路风险等级包括:In a possible implementation of the above first aspect, the above method further includes: based on the current traffic volume and collision accident information of the target road section and the historical traffic flow and collision accident information, determining the current road risk level of the target road section includes:

基于目标路段的当前车流量和碰撞事故信息、以及历史车流量和碰撞事故信息,确定目标路段的碰撞风险指标参数,其中,碰撞风险指标参数包括以下至少一个:碰撞事故的严重度,碰撞事故的暴露度,碰撞事故的可控度。Based on the current traffic volume and collision accident information of the target road section, as well as the historical traffic volume and collision accident information, determine the collision risk indicator parameters of the target road section, where the collision risk indicator parameters include at least one of the following: the severity of the collision accident, the severity of the collision accident Exposure and controllability of collision accidents.

基于目标路段的碰撞风险指标参数,确定目标路段的当前道路风险等级。Based on the collision risk indicator parameters of the target road section, the current road risk level of the target road section is determined.

在上述第一方面的一种可能的实现中,上述方法还包括:当前道路风险等级R dynamic通过以下公式计算得到: In a possible implementation of the above first aspect, the above method further includes: the current road risk level R dynamic is calculated by the following formula:

R dynamic=S*E*C R dynamic =S*E*C

其中,S表示碰撞事故的严重度。C表示碰撞事故的可控度,E表示碰撞事故的暴露度。Among them, S represents the severity of the collision. C represents the controllability of the collision, and E represents the exposure to the collision.

在上述第一方面的一种可能的实现中,上述方法还包括:基于目标路段的当前车流量和碰撞事故信息、以及历史车流量和碰撞事故信息,确定目标路段的碰撞风险指标参数包括:In a possible implementation of the above first aspect, the above method further includes: based on the current traffic flow and collision accident information of the target road section and the historical traffic flow and collision accident information, determining the collision risk indicator parameters of the target road section includes:

基于当前以及历史目标路段的碰撞事故的数量、碰撞车辆的平均相对加速度、碰撞车辆的平均相对速度,确定目标路段的碰撞事故的严重度。Based on the number of collision accidents in the current and historical target road section, the average relative acceleration of the collision vehicle, and the average relative speed of the collision vehicle, the severity of the collision accident in the target road section is determined.

在上述第一方面的一种可能的实现中,上述方法还包括:碰撞事故的数量包括: 车与车碰撞的数量、车与人碰撞的数量、车与障碍物碰撞的数量。In a possible implementation of the above first aspect, the above method further includes: the number of collision accidents includes: the number of collisions between vehicles, the number of collisions between vehicles and people, and the number of collisions between vehicles and obstacles.

碰撞事故的严重度S通过以下公式计算得到:The severity S of a collision is calculated by the following formula:

S=α 0v rexp(β 0a r)*(α 1*N CC2*N CO3*N CP)*exp(β 1N death) S=α 0 v r exp(β 0 a r )*(α 1 *N CC2 *N CO3 *N CP )*exp(β 1 N death )

其中,v r表示碰撞车辆的平均相对速度,a r表示碰撞车辆的平均相对加速度,N CC表示车与车碰撞的数量,N CO表示车与障碍物碰撞的数量,N CP表示车与人碰撞的数量,α 0、α 1、α 2、α 3、β 0、β 1分别表示权重参数,N death表示当前以及历史目标路段的碰撞事故的死亡数量,exp表示指数函数。 Among them, v r represents the average relative speed of the colliding vehicle, a r represents the average relative acceleration of the colliding vehicle, N CC represents the number of collisions between vehicles, N CO represents the number of collisions between vehicles and obstacles, and N CP represents the collision between vehicles and people. The number of α 0 , α 1 , α 2 , α 3 , β 0 , and β 1 respectively represent the weight parameters, N death represents the number of deaths in collision accidents in the current and historical target road sections, and exp represents the exponential function.

在上述第一方面的一种可能的实现中,上述方法还包括:基于目标路段的当前车流量和碰撞事故信息、以及历史车流量和碰撞事故信息,确定目标路段的碰撞风险指标参数包括:In a possible implementation of the above first aspect, the above method further includes: based on the current traffic flow and collision accident information of the target road section and the historical traffic flow and collision accident information, determining the collision risk indicator parameters of the target road section includes:

基于当前以及历史目标路段的碰撞车辆的平均相对加速度以及碰撞车辆的平均相对速度,确定目标路段的碰撞事故的可控度。Based on the average relative acceleration of the collision vehicles and the average relative speed of the collision vehicles in the current and historical target road sections, the controllability of the collision accident in the target road section is determined.

在上述第一方面的一种可能的实现中,上述方法还包括:目标路段的碰撞事故的可控度C通过以下公式计算得到:In a possible implementation of the above first aspect, the above method further includes: the controllability C of the collision accident on the target road section is calculated by the following formula:

其中,a r表示碰撞车辆的平均相对加速度,v r表示碰撞车辆的平均相对速度,β 2表示权重参数,N death表示当前以及历史目标路段的碰撞事故的死亡数量,exp表示指数函数。 Among them, a r represents the average relative acceleration of the collision vehicle, v r represents the average relative speed of the collision vehicle, β 2 represents the weight parameter, N death represents the number of deaths in collision accidents in the current and historical target road sections, and exp represents the exponential function.

在上述第一方面的一种可能的实现中,上述方法还包括:基于目标路段的当前车流量和碰撞事故信息、以及历史车流量和碰撞事故信息,确定目标路段的碰撞风险指标参数包括:In a possible implementation of the above first aspect, the above method further includes: based on the current traffic flow and collision accident information of the target road section and the historical traffic flow and collision accident information, determining the collision risk indicator parameters of the target road section includes:

基于当前以及历史目标路段的车流量以及碰撞事故的数量,确定当前目标路段的碰撞事故的暴露度。Based on the current and historical traffic volume of the target road section and the number of collision accidents, the exposure to collision accidents of the current target road section is determined.

在上述第一方面的一种可能的实现中,上述方法还包括:碰撞事故的暴露度E通过以下公式计算得到:In a possible implementation of the above first aspect, the above method further includes: the exposure E of the collision accident is calculated by the following formula:

其中,N accident表示碰撞事故的数量,N total表示车流量。 Among them, N accident represents the number of collision accidents, and N total represents the traffic volume.

在上述第一方面的一种可能的实现中,上述方法还包括:目标路段的当前路况信息包括敏感交通参与者的特征信息。In a possible implementation of the above first aspect, the above method further includes: the current traffic condition information of the target road section includes characteristic information of sensitive traffic participants.

基于目标对象的当前特征信息和/或目标对象的历史特征信息,确定目标路段的当前路况信息包括:Based on the current feature information of the target object and/or the historical feature information of the target object, determining the current traffic condition information of the target road section includes:

基于目标对象的当前特征信息,从目标对象中筛选出敏感交通参与者,并确定敏感交通参与者的当前特征信息,其中,敏感交通参与者包括以下至少一种:行人、重型卡车、自行车、厢式货车。Based on the current characteristic information of the target object, sensitive traffic participants are screened out from the target objects and the current characteristic information of the sensitive traffic participants is determined, where the sensitive traffic participants include at least one of the following: pedestrians, heavy trucks, bicycles, and vans truck.

第二方面,本申请实施例提供了一种可读介质,可读介质上存储有指令,该指令 在电子设备上执行时使电子设备执行上述第一方面以及第一方面的各种可能实现中的任意一种路况检测方法。In the second aspect, embodiments of the present application provide a readable medium. Instructions are stored on the readable medium. When the instructions are executed on an electronic device, the electronic device causes the electronic device to perform the above-mentioned first aspect and various possible implementations of the first aspect. Any kind of road condition detection method.

第三方面,本申请实施例提供了一种电子设备,包括:In a third aspect, embodiments of the present application provide an electronic device, including:

存储器,用于存储由电子设备的一个或多个处理器执行的指令,以及处理器,是电子设备的处理器之一,用于执行上述第一方面以及第一方面的各种可能实现中的任意一种路况检测方法。a memory for storing instructions for execution by one or more processors of the electronic device, and a processor, being one of the processors of the electronic device, for performing the above-described first aspect and various possible implementations of the first aspect. Any kind of road condition detection method.

第四方面,本申请实施例提供一种计算机程序产品,包括计算机程序/指令,该计算机程序/指令被处理器执行时实现上述第一方面以及第一方面的各种可能实现中的任意一种路况检测方法。In the fourth aspect, embodiments of the present application provide a computer program product, including a computer program/instruction, which when executed by a processor implements the above-mentioned first aspect and any one of the various possible implementations of the first aspect. Road condition detection method.

附图说明Description of the drawings

图1为根据本申请的实施例,示出了一种路况检测场景图;Figure 1 shows a road condition detection scene diagram according to an embodiment of the present application;

图2为根据本申请的实施例,示出了另一种路况检测场景图;Figure 2 shows another road condition detection scene diagram according to an embodiment of the present application;

图3为根据本申请的实施例,示出了一种路况检测的流程图;Figure 3 is a flow chart showing a road condition detection according to an embodiment of the present application;

图4为根据本申请的实施例,示出了另一种路况检测的流程图;Figure 4 is a flow chart showing another road condition detection according to an embodiment of the present application;

图5为根据本申请的实施例,示出了另一种路况检测的流程图;Figure 5 is a flow chart showing another road condition detection according to an embodiment of the present application;

图6为根据本申请的实施例,示出了一致电子设备的结构框图。FIG. 6 is a structural block diagram of a consistent electronic device according to an embodiment of the present application.

具体实施方式Detailed ways

本申请的说明性实施例包括但不限于路况检测方法、可读介质和电子设备。Illustrative embodiments of the present application include, but are not limited to, road condition detection methods, readable media, and electronic devices.

为解决上述问题,本申请提出一种路况检测方法,应用于电子设备。方法包括:通过获取目标路段上设置的摄像头实时采集的视频流,对视频流中的每帧图像进行目标检测,确定每帧图像中的各目标对象及各目标对象的位置,根据连续多帧图像中各目标对象所在的位置,确定各目标对象对应的特征信息,特征信息包括运动状态信息和/或位置状态信息等。其中,运动状态信息可以是速度、加速度等信息,位置状态信息可以是世界坐标系下的位置坐标等。根据该路段当前各目标对象的特征信息,以及该路段历史的各目标对象的特征信息,确定目标路段的当前路况信息,然后将目标路段的当前路况信息发送给在目标路段预设范围内的车辆。其中,目标路段的当前路况信息可以是目标路段的道路风险等级。In order to solve the above problems, this application proposes a road condition detection method, which is applied to electronic equipment. The method includes: obtaining the video stream collected in real time by the camera set on the target road section, performing target detection on each frame of image in the video stream, determining each target object and the position of each target object in each frame of image, and based on the consecutive multiple frames of images. The location of each target object in the target object is determined, and the characteristic information corresponding to each target object is determined. The characteristic information includes motion status information and/or position status information, etc. Among them, the motion status information can be information such as speed, acceleration, etc., and the position status information can be position coordinates in the world coordinate system, etc. Based on the characteristic information of each current target object in the road segment and the characteristic information of each target object in the history of the road segment, the current traffic condition information of the target road segment is determined, and then the current traffic condition information of the target road segment is sent to the vehicles within the preset range of the target road segment. . The current traffic condition information of the target road section may be the road risk level of the target road section.

可以理解,上述目标对象可以为各种车辆,例如自行车、轿车、重型卡车等。在目标路段预设范围内的车辆可以是目标路段上的车辆,也可以是距离目标路段不超过预设距离的车辆。It can be understood that the above target objects can be various vehicles, such as bicycles, cars, heavy trucks, etc. The vehicles within the preset range of the target road segment may be vehicles on the target road segment, or may be vehicles that are within a preset distance from the target road segment.

其中,根据该路段当前各目标对象(各车辆)的特征信息,以及该路段历史的各目标对象的特征信息,确定目标路段的当前路况信息(以道路风险等级为例)的具体方式可以为:Among them, based on the characteristic information of each target object (each vehicle) of the current road section and the characteristic information of each target object in the history of the road section, the specific method of determining the current road condition information of the target road section (taking the road risk level as an example) can be:

根据该路段当前各车辆的特征信息,以及该路段历史的各车辆的位置,可以确定当前 以及历史内的目标路段的车流量以及碰撞事故信息,其中,碰撞事故信息可以包括碰撞事故的数量。可以理解,例如,当两个车辆的位置间隔在一定范围内,则可以确定该两个车辆发生了碰撞。根据当前时刻以及过去一段时间内的车流量以及车辆碰撞事故的数量即可确定目标路段的道路风险等级。例如,当前时刻以及过去一段时间内的车流量以及车辆碰撞事故的数量比较大时,道路风险等级比较高;当前时刻以及过去一段时间内的车流量以及车辆碰撞事故的数量比较小时,道路风险等级比较低。Based on the current characteristic information of each vehicle in the road section and the historical location of each vehicle in the road section, the traffic volume and collision accident information of the current and historical target road section can be determined, where the collision accident information can include the number of collision accidents. It can be understood that, for example, when the positions of two vehicles are within a certain range, it can be determined that the two vehicles have collided. The road risk level of the target road section can be determined based on the traffic volume and the number of vehicle collisions at the current moment and in the past period. For example, when the traffic flow and the number of vehicle collisions at the current moment and in the past period are relatively large, the road risk level is relatively high; when the traffic flow and the number of vehicle collisions at the current moment and in the past period are relatively small, the road risk level relatively low.

可以理解,根据本申请的路况检测方法,电子设备可以实时更新目标路段的路况信息,并且可以实时将目标路段的路况信息发送给在目标路段预设范围内的车辆。从而使得在目标路段预设范围内的车辆实时获知目标路段的路况信息,保证了获取的目标路段的路况信息的准确性,从而提高自动驾驶车辆控制的准确性,进一步提高了自动驾驶车辆的安全性和用户体验。It can be understood that according to the road condition detection method of the present application, the electronic device can update the road condition information of the target road section in real time, and can send the road condition information of the target road section in real time to the vehicles within the preset range of the target road section. This enables vehicles within the preset range of the target road section to obtain the road condition information of the target road section in real time, ensuring the accuracy of the acquired road condition information of the target road section, thus improving the accuracy of autonomous vehicle control and further improving the safety of autonomous vehicles. sex and user experience.

可以理解,本申请实施例中的电子设备具体可以是路侧设备,也可以是服务器,还可以是车机等设备,根据实际应用本申请对电子设备的类型不做具体限定。It can be understood that the electronic device in the embodiment of the present application may be a roadside device, a server, or a vehicle or other equipment. This application does not specifically limit the type of electronic device according to the actual application.

可以理解的是,本申请的路况检测方法可应用于自动驾驶场景,也可以用于人工驾驶场景,也可以应用于无人驾驶场景等,可以理解,根据实际应用,本申请对实际的应用场景不做具体限定。It can be understood that the road condition detection method of this application can be applied to automatic driving scenarios, manual driving scenarios, unmanned driving scenarios, etc. It can be understood that according to actual applications, this application does not apply to actual application scenarios. No specific restrictions are made.

为了方便理解,本文中与道路风险等级相关的术语,例如,术语“严重度”可以指代一旦风险成为现实,相关人员、财产将遭受损害的程度。“暴露率”可以指代描述风险出现时,人员或者财产可能受到影响的概率。“可控度”可以指代风险出现时,驾驶员等在多大程度上可以采取主动措施避免损害的发生。To facilitate understanding, terms related to road risk levels in this article, for example, the term "severity" can refer to the degree of damage to relevant people and property once the risk materializes. "Exposure rate" can refer to the probability that people or property may be affected when a risk occurs. "Controllability" can refer to the extent to which drivers and others can take proactive measures to avoid damage when risks occur.

为使本申请的目的、技术方案和优点更加清楚,下面结合图1至图6详细说明本申请的技术方案。In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions of the present application will be described in detail below with reference to FIGS. 1 to 6 .

图1根据本申请的实施例,示出了一种路况检测场景图。图1的场景包括:A路段、B路段、C路段、D路段。如图1所示,电子设备100可以是路侧设备。其中,路侧设备100设置在A路段路侧。Figure 1 shows a road condition detection scene diagram according to an embodiment of the present application. The scene in Figure 1 includes: section A, section B, section C, and section D. As shown in Figure 1, electronic device 100 may be a roadside device. Among them, the roadside equipment 100 is installed on the roadside of section A.

如图1所示,以A路段为例,A路段上设置有摄像头200-1、摄像头200-2、摄像头200-3。A路段上还包括多个目标对象,多个目标对象分别是车辆300-1、碰撞车辆300-2、碰撞车辆300-3、行人300-4、行人300-5、行人300-6。As shown in Figure 1, taking road section A as an example, road section A is provided with a camera 200-1, a camera 200-2, and a camera 200-3. Road section A also includes multiple target objects. The multiple target objects are vehicle 300-1, collision vehicle 300-2, collision vehicle 300-3, pedestrian 300-4, pedestrian 300-5, and pedestrian 300-6.

如图1所示,摄像头200-1、摄像头200-2、摄像头200-3用于实时采集A路段上的视频流,并将视频流发送给路侧设备100。As shown in Figure 1, camera 200-1, camera 200-2, and camera 200-3 are used to collect the video stream on road section A in real time, and send the video stream to the roadside device 100.

如图1所示,路侧设备100用于实时接收摄像头200-1至摄像头200-3采集的A路段上的视频流,并根据摄像头100采集的A路段上的视频流,确定A路段的目标对象信息,其中,A路段的目标对象信息用于描述车辆300-1、碰撞车辆300-2、碰撞车辆300-3、行人300-4、行人300-5、行人300-6在A路段的位置和/或运动状态。路侧设备100还用于基于A路段的目标对象的特征信息,确定A路段的路况信息,并将A路段的路况信息发送给在A路段预设范围内的车辆。其中,接收到路况信息的车辆可以根据路况信息调整车辆在A路段的行驶速度。As shown in Figure 1, the roadside device 100 is used to receive the video stream on road section A collected by cameras 200-1 to 200-3 in real time, and determine the target of road section A based on the video stream on road section A collected by camera 100. Object information, where the target object information of section A is used to describe the positions of vehicle 300-1, collision vehicle 300-2, collision vehicle 300-3, pedestrian 300-4, pedestrian 300-5, and pedestrian 300-6 in section A. and/or movement status. The roadside device 100 is also used to determine the road condition information of the A road segment based on the characteristic information of the target object of the A road segment, and send the road condition information of the A road segment to the vehicles within the preset range of the A road segment. Among them, the vehicle that receives the road condition information can adjust the vehicle's driving speed in section A based on the road condition information.

例如,如图1所示,车辆300-1在进入A路段时实时接收电子设备100发送的A 路段的道路风险等级,在接收到该道路风险等级为高风险等级的情况下,车辆300-1可以根据该道路风险等级,将车辆300-1在A路段的行驶速度由100Km/h调整到30Km/h。For example, as shown in Figure 1, vehicle 300-1 receives the road risk level of section A sent by the electronic device 100 in real time when entering section A. When receiving that the road risk level is a high risk level, vehicle 300-1 According to the road risk level, the driving speed of vehicle 300-1 in section A can be adjusted from 100Km/h to 30Km/h.

可以理解,A路段的路况信息可以用于协助驾驶员或者自动驾驶车辆调整车辆在A路段的行驶速度。在A路段预设范围内的车辆接收到A路段的路况信息后,可以根据A路段的路况信息,在自动驾驶车辆在A路段内或进入A路段之前,预先确定是否调整车辆在A路段的行驶速度。提高了自动驾驶车辆控制的准确性,进一步提高了自动驾驶车辆的安全性和驾驶体验。It can be understood that the road condition information of section A can be used to assist the driver or the self-driving vehicle in adjusting the driving speed of the vehicle in section A. After vehicles within the preset range of section A receive the road condition information of section A, they can predetermine whether to adjust the driving of the vehicle in section A based on the road condition information of section A before the self-driving vehicle is in section A or enters section A. speed. The accuracy of autonomous vehicle control is improved, further improving the safety and driving experience of autonomous vehicles.

可以理解,如图1所示,路侧设备10也可以获取B路段、C路段、D路段的摄像头采集的视频流,并根据采集B路段、C路段、D路段的视频流,生成B路段、C路段、D路段的路况信息。It can be understood that, as shown in Figure 1, the roadside device 10 can also obtain the video streams collected by the cameras of road section B, road section C, and road section D, and generate the video streams of road section B, road section C, and road section D based on the collected video streams of road section B, road section C, and road section D. Traffic information of section C and section D.

如图1所示,路侧设备100设置在A路段路侧,在其他一些实施例中,也可以分别在B路段、C路段、D路段的路侧分别设置其他路侧设备。其他路侧设备也可以分别获取B路段、C路段、D路段的摄像头采集的视频流,并根据采集B路段、C路段、D路段的视频流,生成B路段、C路段、D路段的路况信息。可以理解,本申请的场景比不限于图1所示的场景,根据实际的应用,路侧设备设置在路侧的具体位置和数量本申请不做具体限定。As shown in FIG. 1 , the roadside device 100 is installed on the roadside of road section A. In other embodiments, other roadside equipment can also be provided on the roadside of road section B, road section C, and road section D respectively. Other roadside devices can also obtain the video streams collected by cameras in Section B, Section C, and Section D respectively, and generate traffic information of Section B, Section C, and Section D based on the video streams collected in Section B, Section C, and Section D. . It can be understood that the scenario ratio of this application is not limited to the scenario shown in Figure 1. According to the actual application, the specific location and number of roadside equipment installed on the roadside are not specifically limited in this application.

路侧设备100,可以是设置在路侧的基础设施设备或固定设备或路侧单元(Road Side Unit,RSU),也可以是设置在路侧的支持车到一切(vehicle-to-everything,V2X)应用的设备。可以理解,根据实际应用,本申请对路侧设备100不做限制。The roadside equipment 100 may be infrastructure equipment or fixed equipment or a Road Side Unit (RSU) set on the roadside, or it may be a vehicle-to-everything (V2X) support set on the roadside. ) application equipment. It can be understood that, according to actual applications, this application does not impose restrictions on the roadside equipment 100.

图2根据本申请的实施例,示出了另一种路况检测场景图。相较于图1的场景,在图2的场景中,电子设备100可以是设置在远端的服务器。Figure 2 shows another road condition detection scene diagram according to an embodiment of the present application. Compared with the scenario of FIG. 1 , in the scenario of FIG. 2 , the electronic device 100 may be a remote server.

如图2所示,以A路段为例,服务器100用于实时接收摄像头200-1至摄像头200-3采集的A路段上的视频流,并根据摄像头200-1至摄像头200-3采集的A路段上的视频流,确定A路段的目标对象信息,其中,A路段的目标对象信息用于描述目标对象在目标路段的位置和/或运动状态。服务器100还用于基于A路段的目标对象信息,确定A路段的路况信息,其中,A路段的路况信息用于调整车辆在A路段的行驶速度。服务器100还用于将A路段的路况信息发送给在A路段预设范围内的车辆。As shown in Figure 2, taking road section A as an example, the server 100 is used to receive the video stream on road section A collected by cameras 200-1 to 200-3 in real time, and based on the video stream of road section A collected by cameras 200-1 to 200-3. The video stream on the road section determines the target object information of road section A, where the target object information of road section A is used to describe the position and/or movement state of the target object in the target road section. The server 100 is also configured to determine the road condition information of road section A based on the target object information of road section A, where the road condition information of road section A is used to adjust the driving speed of the vehicle in road section A. The server 100 is also used to send the traffic condition information of road section A to the vehicles within the preset range of road section A.

可以理解,服务器100还用于接收获取B路段、C路段、D路段的摄像头采集的视频流,并根据采集B路段、C路段、D路段的视频流,生成B路段、C路段、D路段的路况信息。具体内容参考A路段描述的内容,在此不做赘述。It can be understood that the server 100 is also used to receive the video streams collected by the cameras of road sections B, C, and D, and generate the video streams of road sections B, C, and D based on the video streams collected from road sections B, C, and D. Traffic information. For specific content, please refer to the description of section A and will not be repeated here.

可以理解,服务器100可以是硬件服务器,服务器100可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群,还可以是提供云数据库、云存储和CDN等基础云计算服务的服务器,根据实际应用,本申请实施例对此不做限制。It can be understood that the server 100 can be a hardware server. The server 100 can be an independent physical server, or a server cluster composed of multiple physical servers, or a server that provides basic cloud computing services such as cloud database, cloud storage, and CDN. According to actual applications, the embodiments of this application do not limit this.

可以理解,在图1或图2的场景中,摄像头200-1摄像头200-2、摄像头200-3与电子设备100可以通过一种或多种网络进行通信连接。其中,该网络可以是有线网络,也可以是无线网络,例如无线网络可以是移动蜂窝网络(例如5G,4G,3G或GPRS),或者可以是无线保真(Wireless-Fidelity,WIFI)网络,当然还可以是其他可能的网络,本申请实施例对此不做限制。例如,摄像头200-1至摄像头200-3通过有线网络将实 时采集的A路段上的视频流发送给电子设备100。It can be understood that in the scene of FIG. 1 or FIG. 2 , the camera 200-1, the camera 200-2, the camera 200-3 and the electronic device 100 can be connected for communication through one or more networks. The network can be a wired network or a wireless network. For example, the wireless network can be a mobile cellular network (such as 5G, 4G, 3G or GPRS), or it can be a Wireless-Fidelity (WIFI) network. Of course There may also be other possible networks, which are not limited in the embodiments of this application. For example, the cameras 200-1 to 200-3 send the video stream on road section A collected in real time to the electronic device 100 through the wired network.

可以理解,在图1或图2的场景中,电子设备100与A路段预设范围内的车辆可以通过一种或多种无线网络进行通信连接。例如无线网络可以是移动蜂窝网络(例如5G,4G,3G或GPRS),或者可以是无线保真(Wireless-Fidelity,WIFI)网络,当然还可以是其他可能的网络,本申请实施例对此不做限制。例如,电子设备100通过无线网络将A路段的路况信息发送给与A路段预设范围内的车辆。It can be understood that in the scenario of FIG. 1 or 2 , the electronic device 100 and the vehicles within the preset range of road section A can communicate through one or more wireless networks. For example, the wireless network may be a mobile cellular network (such as 5G, 4G, 3G or GPRS), or it may be a Wireless-Fidelity (WIFI) network, and of course it may also be other possible networks. This is not the case in the embodiments of this application. Make restrictions. For example, the electronic device 100 sends the traffic condition information of road section A to vehicles within a preset range of road section A through the wireless network.

可以理解,本申请的采集路段的视频流的摄像头可以是360度旋转摄像头(即摄像头200-1),也可以是远景摄像头、变焦摄像头、近景摄像头、闪光摄像头、卡扣摄像头以及测速摄像头等。It can be understood that the camera used in this application to collect the video stream of the road section can be a 360-degree rotating camera (i.e., the camera 200-1), or a long-range camera, a zoom camera, a close-range camera, a flash camera, a buckle camera, a speed measuring camera, etc.

可以理解,应用本申请路况检测方法的电子设备100可以是图1场景中的路侧设备,也可以是图2场景中的服务器,还可以是车机、膝上型计算机、台式计算机、平板计算机、手机、可穿戴设备、头戴式显示器、移动电子邮件设备、便携式游戏机、便携式音乐播放器、阅读器设备、或能够访问网络的其他电子设备。在一些实施方式中,本申请的实施例也可以应用于由用户穿戴的可穿戴设备。例如,智能手表、手环、首饰(例如,做成诸如耳环、手镯等装饰性物品的设备)或眼镜等,或者作为手表、手环、首饰或眼镜等的一部分。根据实际应用,本申请实施例对电子设备100不做限制。It can be understood that the electronic device 100 to which the road condition detection method of the present application is applied can be a roadside device in the scene of Figure 1, a server in the scene of Figure 2, or a car machine, a laptop computer, a desktop computer, or a tablet computer. , cell phones, wearable devices, head-mounted displays, mobile email devices, portable game consoles, portable music players, reader devices, or other electronic devices capable of accessing the network. In some implementations, embodiments of the present application may also be applied to wearable devices worn by users. For example, smart watches, bracelets, jewelry (eg, devices made into decorative items such as earrings, bracelets, etc.) or glasses, etc., or as part of a watch, bracelet, jewelry, or glasses, etc. According to actual applications, the embodiment of the present application does not limit the electronic device 100.

基于上述场景,图3示出了一种路况检测的流程图,图3中的执行主体为电子设备100,如图3所示,具体包括:Based on the above scenario, Figure 3 shows a flow chart of road condition detection. The execution subject in Figure 3 is the electronic device 100. As shown in Figure 3, it specifically includes:

S301:实时获取目标路段的目标对象。S301: Obtain the target object of the target road section in real time.

在一些实施例中,电子设备100获取目标路段上拍摄的视频流,对视频流中的每帧图像进行目标检测,确定每帧图像中的目标对象。In some embodiments, the electronic device 100 acquires a video stream shot on a target road section, performs target detection on each frame of image in the video stream, and determines the target object in each frame of image.

在一些实施例中,目标对象可以包括以下至少一个:碰撞车辆、自行车、轿车、重型卡车等。在其他一些实施例中,目标对象还可以包括积水,路障等静态物体。可以理解,根据实际应用,本申请对目标路段的目标对象的类型不做限定。In some embodiments, the target object may include at least one of the following: a collision vehicle, a bicycle, a car, a heavy truck, etc. In some other embodiments, the target objects may also include static objects such as standing water, roadblocks, etc. It can be understood that according to actual applications, this application does not limit the type of target objects in the target road section.

例如,如图1所示,以A路段为例,电子设备100可以根据实时获取的A路段上设置的摄像头200-1至200-3拍摄的有关A路段的视频,根据目标检测算法对视频流的每一帧图像进行目标对象检测,获得出现在视频流的每帧图像中的目标对象。For example, as shown in Figure 1, taking road section A as an example, the electronic device 100 can obtain real-time videos of road section A taken by the cameras 200-1 to 200-3 set on road section A, and detect the video stream according to the target detection algorithm. Perform target object detection on each frame of the image to obtain the target object appearing in each frame of the video stream.

S302:根据实时获取目标路段的目标对象,确定目标对象对应的特征信息。S302: Based on the real-time acquisition of the target object of the target road section, determine the characteristic information corresponding to the target object.

在一些实施例中,电子设备100根据实时获取的目标路段的目标对象,确定目标对象对应的特征信息。目标对象对应的特征信息可以包括:目标对象运动状态信息、位置状态信息。目标对象在目标路段的位置状态信息可以是目标对象在目标路段的位置坐标。目标对象在目标路段的运动状态信息可以是速度、加速度等信息。In some embodiments, the electronic device 100 determines the characteristic information corresponding to the target object based on the target object of the target road section obtained in real time. The characteristic information corresponding to the target object may include: target object motion status information and position status information. The position status information of the target object on the target road segment may be the position coordinates of the target object on the target road segment. The movement status information of the target object on the target road section can be speed, acceleration and other information.

在一些实施例中,电子设备100检测到每帧图像中的目标对象后,还可以通过速度检测算法确定目标对象运动状态信息。例如,速度检测算法用于根据采集视频流的摄像头的帧率,判定目标对象的运行时间Δt,通过对目标对象的位置求取三维空间的坐标,从而获得目标对象的实际运行距离ΔS,进而计算出目标对象的瞬时速度或平均速度V或加速度a等。下文对确定目标对象的信息作详细描述,在此不做赘述。In some embodiments, after the electronic device 100 detects the target object in each frame of image, it can also determine the motion status information of the target object through a speed detection algorithm. For example, the speed detection algorithm is used to determine the running time Δt of the target object based on the frame rate of the camera that collects the video stream. By obtaining the coordinates of the three-dimensional space for the position of the target object, the actual running distance ΔS of the target object is obtained, and then calculated Get the instantaneous speed or average speed V or acceleration a of the target object, etc. The information for determining the target object is described in detail below and will not be described in detail here.

在一些实施例中,上述每帧图像中的目标对象还可以包括积水,路障等静态物体,则确定每帧图像中的目标对象的位置,根据连续多帧图像中目标对象所在的位置确定的目标对象的特征信息,目标对象的位置状态信息可以是目标路段的积水位置、目标路段的路障位置等。目标对象的状态信息可以是速度为0或加速度为0等。In some embodiments, the target object in each frame of the image may also include static objects such as water, roadblocks, etc., then the position of the target object in each frame of the image is determined based on the position of the target object in the consecutive multiple frames of images. The characteristic information of the target object and the location status information of the target object can be the location of water accumulation in the target road section, the location of roadblocks in the target road section, etc. The status information of the target object can be speed 0 or acceleration 0, etc.

S303:基于目标路段的目标对象的特征信息,确定目标路段的路况信息,目标路段的路况信息用于描述目标路段的路况。S303: Based on the characteristic information of the target object of the target road section, determine the traffic condition information of the target road section. The traffic condition information of the target road section is used to describe the traffic conditions of the target road section.

在一些实施例中,A路段的路况信息除了可以是A路段的道路风险等级、还可以包括A路段的敏感交通参与者、A路段的车流量、A路段的积水深度、A路段的路障位置等。In some embodiments, in addition to the road risk level of section A, the road condition information of section A can also include sensitive traffic participants of section A, the traffic flow of section A, the depth of water accumulation in section A, and the location of roadblocks in section A. wait.

在一些实施例中,电子设备100基于目标路段的目标对象信息,确定目标路段的路况信息,目标路段的路况信息用于描述目标路段的路况。车辆可以根据目标路段的路况信息,在进入目标路段之前或者在目标路段时及时调整自动驾驶车辆的运行状态(例如,减速,停车等)或运行轨迹(例如,自动驾驶车辆的运行路线)等,从而保证自动驾驶车辆的驾驶安全。In some embodiments, the electronic device 100 determines the traffic condition information of the target road section based on the target object information of the target road section, and the traffic condition information of the target road section is used to describe the traffic conditions of the target road section. Based on the road condition information of the target road section, the vehicle can promptly adjust the operating status (for example, deceleration, parking, etc.) or operating trajectory (for example, the operating route of the self-driving vehicle) of the self-driving vehicle before entering the target road section or while on the target road section. This ensures the driving safety of autonomous vehicles.

在一些实施例中,目标路段的路况信息可以是目标路段的道路风险等级。例如,电子设备100可以根据当前时刻以及过去一段时间内车辆的相对位置,确定当前时刻以及过去一段时间内的目标路段的碰撞车辆,根据当前时刻以及过去一段时间内车辆碰撞时,车辆的速度、加速度等确定目标路段的道路风险等级。In some embodiments, the traffic condition information of the target road section may be the road risk level of the target road section. For example, the electronic device 100 can determine the collision vehicle on the target road section at the current moment and the past period of time based on the relative position of the vehicle at the current moment and the past period of time. According to the speed of the vehicle when the vehicle collides with the vehicle at the current moment and the past period of time, Acceleration, etc. determine the road risk level of the target road section.

具体地,以目标对象为车辆,电子设备100基于实时获取的目标路段的车辆信息,确定当前时刻以及过去预设时间段内,目标路段的碰撞事故信息、车辆通行的累计数量。其中,碰撞事故信息包括以下至少一个:车辆碰撞事故的累计数量、车辆碰撞时的平均相对速度、车辆碰撞时的平均相对加速度等,其中,车辆碰撞事故的累计数量包括:车与车碰撞事故数量、车与障碍物碰撞事故数量、车与行人碰撞事故数量等。Specifically, taking the target object as a vehicle, the electronic device 100 determines the collision accident information and the cumulative number of vehicle traffic on the target road section at the current moment and within a preset time period in the past based on the vehicle information of the target road section obtained in real time. Among them, the collision accident information includes at least one of the following: the cumulative number of vehicle collision accidents, the average relative speed at the time of vehicle collision, the average relative acceleration at the time of vehicle collision, etc., wherein the cumulative number of vehicle collision accidents includes: the number of vehicle-to-vehicle collision accidents , the number of collisions between vehicles and obstacles, the number of collisions between vehicles and pedestrians, etc.

在一些实施例中,电子设备100根据实时获取的目标路段的目标对象信息以及过去预设时间段目标路段的目标对象信息,确定当前时刻以及过去预设时间段内目标路段上碰撞车辆的特征信息,基于当前时刻以及过去预设时间段内目标路段上碰撞车辆的特征信息,确定当前时刻以及过去预设时间段内,目标路段的碰撞事故信息。以目标对象为图1中车辆为例,如图1所示,根据车辆300-2、车辆300-3的位置状态,确定车辆300-2与车辆300-3碰撞。从而分别获取车辆300-2、车辆300-3在碰撞时的相对速度以及相对加速度。In some embodiments, the electronic device 100 determines the characteristic information of the collision vehicle on the target road section at the current moment and within the past preset time period based on the target object information of the target road section obtained in real time and the target object information of the target road section in the past preset time period. , based on the characteristic information of the collision vehicle on the target road section at the current time and the past preset time period, determine the collision accident information of the target road section at the current time and the past preset time period. Taking the target object as the vehicle in Figure 1 as an example, as shown in Figure 1, based on the position status of vehicle 300-2 and vehicle 300-3, it is determined that vehicle 300-2 collides with vehicle 300-3. Thus, the relative speed and relative acceleration of the vehicle 300-2 and the vehicle 300-3 at the time of collision are obtained respectively.

进一步地,电子设备100根据过去预设时间段内,目标路段的碰撞事故信息,确定目标路段的碰撞风险指标参数,根据目标路段的碰撞风险指标参数,确定目标路段的道路风险等级。其中,目标路段的碰撞风险指标参数包括以下至少一个:碰撞事故的严重度,碰撞事故的暴露度,碰撞事故的可控度。下文对电子设备100基于目标路段的目标对象信息,确定目标路段的道路风险等级做了详细描述,在此不做赘述。Further, the electronic device 100 determines the collision risk indicator parameters of the target road section based on the collision accident information of the target road section in the past preset time period, and determines the road risk level of the target road section based on the collision risk indicator parameters of the target road section. Among them, the collision risk index parameters of the target road section include at least one of the following: severity of the collision accident, exposure to the collision accident, and controllability of the collision accident. The following describes in detail how the electronic device 100 determines the road risk level of the target road section based on the target object information of the target road section, which will not be described in detail here.

在一些实施例中,目标路段的路况信息可以是目标路段的敏感交通参与者。具体地,电子设备100基于目标路段的目标对象信息,筛选出目标路段的敏感交通参与者,其中,敏感交通参与者的特征信息可以包括以下至少一个:敏感交通参与者在目标路段 的位置、行驶速度以及行驶加速度。In some embodiments, the traffic condition information of the target road section may be sensitive traffic participants of the target road section. Specifically, the electronic device 100 screens out the sensitive traffic participants in the target road section based on the target object information of the target road section, where the characteristic information of the sensitive traffic participants may include at least one of the following: the location of the sensitive traffic participant in the target road section, the driving speed and driving acceleration.

在一些实施例中,在城市道路交通,敏感交通参与者可以包括但不限于:行人、自行车、婴儿车、做轮椅的人等。在高速公路交通,敏感交通参与者包括但不限于大卡车、厢式货车等。In some embodiments, in urban road traffic, sensitive traffic participants may include but are not limited to: pedestrians, bicycles, strollers, people in wheelchairs, etc. In highway traffic, sensitive traffic participants include but are not limited to large trucks, vans, etc.

在其他一些实施例中,目标路段的路况信息还可以是目标路段的车流量、目标路段的积水深度、目标路段的路障位置等。可以理解,目标路段的路况信息可以用于自动驾驶车辆调整车辆在目标路段的运行状态(例如,减速,停车等)或运行轨迹(例如,自动驾驶车辆的运行路线)等,从而保证自动驾驶车辆的驾驶安全。In some other embodiments, the traffic condition information of the target road section may also include the traffic volume of the target road section, the depth of water accumulation in the target road section, the location of roadblocks in the target road section, etc. It can be understood that the road condition information of the target road section can be used by the self-driving vehicle to adjust the vehicle's operating status (for example, deceleration, parking, etc.) or operating trajectory (for example, the operating route of the self-driving vehicle) on the target road section, thereby ensuring that the self-driving vehicle driving safety.

S304:向在目标路段预设范围内的车辆发送路况信息。S304: Send traffic information to vehicles within the preset range of the target road segment.

在一些实施例中,电子设备100向在目标路段预设范围内的车辆发送辅助驾驶信息,车辆可以基于电子设备100发送的辅助驾驶信息,在车辆在目标路段内或进入目标路段之前,预先确定是否调整车辆在目标路段的行驶速度。提高了自动驾驶车辆控制的准确性,进一步提高了自动驾驶车辆的安全性和驾驶体验。In some embodiments, the electronic device 100 sends auxiliary driving information to vehicles within a preset range of the target road section. The vehicle can predetermine the driving assistance information based on the auxiliary driving information sent by the electronic device 100 before the vehicle is within the target road section or enters the target road section. Whether to adjust the vehicle's driving speed on the target road section. The accuracy of autonomous vehicle control is improved, further improving the safety and driving experience of autonomous vehicles.

根据上述图3的描述的路况检测方法,电子设备100通过根据实时获取的目标路段的目标对象信息,确定目标路段的路况信息,并将目标路段的路况信息实时发送给目标路段预设范围内的车辆。其中,目标路段的路况信息可以是道路风险等级、敏感交通参与者、车流量、积水深度、路障位置等信息。According to the road condition detection method described in FIG. 3 above, the electronic device 100 determines the road condition information of the target road section based on the target object information of the target road section obtained in real time, and sends the road condition information of the target road section in real time to the targets within the preset range of the target road section. vehicle. Among them, the road condition information of the target road section can include road risk level, sensitive traffic participants, traffic flow, water depth, roadblock location and other information.

不难看出,根据本申请的路况检测方法,电子设备100可以实时更新目标路段的路况信息,目标路段的路况信息可以用于协助驾驶员或者自动驾驶车辆调整车辆在目标路段的行驶速度。在目标路段预设范围内的车辆实时获取目标路段的路况信息,驾驶员或者自动驾驶车辆可以根据目标路段的路况信息,实时了解目标路段的路段信息,从而使得在车辆在目标路段内或进入目标路段之前,预先确定是否调整自动驾驶车辆在目标路段的行驶速度。提高自动驾驶车辆控制的准确性,进一步提高了自动驾驶车辆的安全性和驾驶体验。It is not difficult to see that according to the road condition detection method of the present application, the electronic device 100 can update the road condition information of the target road section in real time, and the road condition information of the target road section can be used to assist the driver or the autonomous vehicle to adjust the driving speed of the vehicle on the target road section. Vehicles within the preset range of the target road section obtain the road condition information of the target road section in real time. The driver or self-driving vehicle can learn the road section information of the target road section in real time based on the road condition information of the target road section, so that when the vehicle is within the target road section or enters the target Before starting the road segment, determine in advance whether to adjust the driving speed of the autonomous vehicle on the target road segment. Improving the accuracy of autonomous vehicle control further improves the safety and driving experience of autonomous vehicles.

在一些实施例中,目标路段的路况信息可以是道路风险等级,下面结合图4详细说明电子设备100通过根据实时获取的目标路段的目标对象信息,确定目标路段的道路风险等级,并将道路风险等级发送给在目标路段预设范围内的车辆。In some embodiments, the road condition information of the target road section may be a road risk level. The electronic device 100 determines the road risk level of the target road section based on the target object information of the target road section obtained in real time, and combines the road risk with the road risk level. Levels are sent to vehicles within a preset range of the target road segment.

基于图1或图2的路况检测场景,图4示出了另一种路况检测方法的流程图,图4的流程的执行主体为电子设备100,如图4所示,具体包括:Based on the road condition detection scenario of Figure 1 or Figure 2, Figure 4 shows a flow chart of another road condition detection method. The execution subject of the process of Figure 4 is the electronic device 100, as shown in Figure 4, which specifically includes:

S401:实时获取A路段上的至少一个摄像头采集的视频流。S401: Obtain the video stream collected by at least one camera on section A in real time.

例如,如图1所示,电子设备100获取A路段上的摄像头200-1至摄像头200-3采集的有关A路段的视频流,也可以获取B路段上的三个摄像头采集的有关B路段的视频流,也可以获取C路段上的两个摄像头采集的有关C路段的视频流,还可以获取D路段上的两个摄像头采集的有关C路段的视频流。下文以目标路段为A路段为例,详细描述图4的路况检测的过程。For example, as shown in Figure 1, the electronic device 100 obtains the video stream of road section A collected by the cameras 200-1 to 200-3 on road section A, and can also obtain the video stream of road section B collected by the three cameras on road section B. Video stream, you can also get the video stream about road section C collected by the two cameras on road section C, and you can also get the video stream about road section C collected by the two cameras on road section D. The following takes road section A as the target road section as an example to describe the road condition detection process in Figure 4 in detail.

S402:基于实时获取的A路段的视频流,确定A路段实时的目标对象以及目标对象对应的特征信息。S402: Based on the video stream of road section A obtained in real time, determine the real-time target object of road section A and the characteristic information corresponding to the target object.

在一些实施例中,电子设备100根据实时获取的A路段的目标对象,确定目标对象对 应的特征信息。目标对象对应的特征信息可以包括:目标对象运动状态信息、位置状态信息。目标对象在A路段的位置状态信息可以是目标对象在A路段的位置坐标。目标对象在A路段的运动状态信息可以是速度、加速度等信息。In some embodiments, the electronic device 100 determines the characteristic information corresponding to the target object based on the target object of road section A obtained in real time. The characteristic information corresponding to the target object may include: target object motion status information and position status information. The position status information of the target object in road section A may be the position coordinates of the target object in road section A. The movement status information of the target object in section A may be speed, acceleration and other information.

在一些实施例中,电子设备100基于获取的A路段上设置的摄像头采集的有关A路段的视频流,对该视频流的每一帧图像进行目标对象检测,获得出现在视频流中的所有目标对象。具体地,可以通过目标检测算法对视频流的每一帧图像进行目标对象检测,获得出现在视频流中的所有目标对象。例如,在图1的场景中,若目标对象设定为轿车,通过目标检测算法检测到在A路段上,一共包括三个目标对象,即车辆300-1和车辆300-2以及车辆300-3。若目标对象设定为轿车、人,通过目标检测算法检测到在A路段上,一共包括六个目标对象,即车辆300-1和车辆300-2、车辆300-3、行人300-4、行人300-5、行人300-6。在其他一些实施例中,目标对象也可以设定为碰撞车辆,还可以设定为重型卡车、箱式货车,还可以设定为路段的积水、路障等。可以理解,根据实际应用,本申请对道路上的目标对象的类型不做限定。In some embodiments, the electronic device 100 performs target object detection on each frame of the video stream based on the video stream collected by the camera set on the road segment A, and obtains all targets appearing in the video stream. object. Specifically, target object detection can be performed on each frame of the video stream through a target detection algorithm to obtain all target objects appearing in the video stream. For example, in the scene in Figure 1, if the target object is set to a car, it is detected through the target detection algorithm that there are three target objects on road section A, namely vehicle 300-1, vehicle 300-2, and vehicle 300-3. . If the target objects are set to cars and people, the target detection algorithm detects that there are a total of six target objects on road section A, namely vehicle 300-1 and vehicle 300-2, vehicle 300-3, pedestrian 300-4, and pedestrian 300-5, pedestrian 300-6. In some other embodiments, the target object can also be set as a collision vehicle, a heavy truck, a box truck, or a water block on a road section, a roadblock, etc. It can be understood that according to actual applications, this application does not limit the types of target objects on the road.

在一些实施例中,目标检测算法主要用于遍历输入的视频流的每帧图像,并对每帧图像的目标对象和非目标对象分类,确定目标对象在每帧图像的位置坐标。在一些实施例中,可以通过级联-区域卷积神经网络架构(cascade-region convolutional neural networks,cascade RCNN)算法,更快速-区域卷积神经网络架构(faster-region convolutional neural networks,Faster RCNN)算法,一种目标检测(Single-Shot MultiBox Detector,SSD)算法,实时快速目标检测(You Only Look Once,YOLO)算法等中的任一种目标检测算法对视频流的每一帧图像进行目标对象检测,获得出现在视频流中的所有目标对象。In some embodiments, the target detection algorithm is mainly used to traverse each frame of the input video stream, classify the target objects and non-target objects in each frame of the image, and determine the position coordinates of the target object in each frame of the image. In some embodiments, the faster-region convolutional neural networks (Faster RCNN) algorithm can be used through the cascade-region convolutional neural networks (cascade RCNN) algorithm. algorithm, a target detection (Single-Shot MultiBox Detector, SSD) algorithm, a real-time fast target detection (You Only Look Once, YOLO) algorithm, any target detection algorithm for each frame of the video stream. Detect,obtain all target objects appearing in the video stream.

在一些实施例中,电子设备100检测到每帧图像中的目标对象后,还可以通过速度检测算法确定目标对象的速度、加速度等。例如,速度检测算法用于根据采集视频流的摄像头的帧率,判定目标对象的运行时间Δt,通过对目标对象的定位求取三维空间的坐标,从而获得目标对象的实际运行距离ΔS,进而计算出目标对象的瞬时速度或平均速度V或加速度a等。In some embodiments, after the electronic device 100 detects the target object in each frame of image, it can also determine the speed, acceleration, etc. of the target object through a speed detection algorithm. For example, the speed detection algorithm is used to determine the running time Δt of the target object based on the frame rate of the camera that collects the video stream, and obtains the coordinates of the three-dimensional space by positioning the target object to obtain the actual running distance ΔS of the target object, and then calculate Get the instantaneous speed or average speed V or acceleration a of the target object, etc.

S403:根据A路段实时的目标对象对应的特征信息以及过去预设时间段内A路段的目标对象对应的特征信息,确定在过去预设时间段内,A路段的碰撞事故信息。S403: Determine the collision accident information of road section A in the past preset time period based on the characteristic information corresponding to the real-time target object of road section A and the characteristic information corresponding to the target object of road section A in the past preset time period.

在一些实施例中,电子设备100根据A路段实时的目标对象对应的特征信息以及过去预设时间段内A路段的目标对象对应的特征信息,确定在过去预设时间段内,的A路段的车量通行的累计数量(即车流量)和碰撞事故信息,该A路段的碰撞事故信息可以包括以下至少一个:车辆碰撞事故的累计数量、车辆碰撞时的平均相对速度、车辆碰撞时的平均相对加速度。其中,车辆碰撞事故的累计数量包括:车与车碰撞事故数量、车与障碍物碰撞事故数量、车与行人碰撞事故数量。In some embodiments, the electronic device 100 determines the characteristics of road section A in the past preset time period based on the characteristic information corresponding to the real-time target object of road section A and the characteristic information corresponding to the target object of road section A in the past preset time period. The cumulative number of vehicle traffic (i.e., traffic volume) and collision accident information. The collision accident information of the A road section may include at least one of the following: the cumulative number of vehicle collision accidents, the average relative speed of the vehicle collision, and the average relative speed of the vehicle collision. acceleration. Among them, the cumulative number of vehicle collisions includes: the number of vehicle-to-vehicle collisions, the number of vehicle-to-obstacle collisions, and the number of vehicle-to-pedestrian collisions.

以A路段为例,预设时间段可以为过去一年内,例如,当前时间为2021年12月24日13点整,则过去一年内即为2020年12月24日13点整至2021年12月24日13点整。Taking section A as an example, the preset time period can be within the past year. For example, if the current time is 13:00 on December 24, 2021, then the past year will be from 13:00 on December 24, 2020 to December 2021. At 13:00 on the 24th of the month.

具体的,电子设备100根据A路段实时的目标对象对应的特征信息以及过去预设时间段内A路段的目标对象对应的特征信息,确定在过去预设时间段内,的A路段的碰撞事故信息。例如,确定在过去一年内,在A路段发生的碰撞事故的数量共计10起,其中,车 与车碰撞事故数量为5起,车与障碍物碰撞事故数量为3起,车与行人碰撞事故数量为2起。则车辆碰撞时的平均相对速度为:10起碰撞事故的车辆碰撞时的平均相对速度。车辆碰撞时的平均相对加速度为:10起碰撞事故的车辆碰撞时的平均相对加速度。在车辆E与车辆F碰撞事故中,车辆碰撞时的相对速度即为车辆E相对于车辆F的速度,同理,车辆碰撞时的相对加速度即为车辆E相对于车辆F的加速度。在车辆X与障碍物Y碰撞事故中,车辆碰撞时的相对速度即为车辆X的速度,同理,车辆碰撞时的相对加速度即为车辆X的加速度。在车辆M与行人N碰撞事故中,车辆碰撞时的相对速度即为车辆M相对于行人N的速度,同理,车辆碰撞时的相对加速度即为车辆M相对于行人N的加速度。Specifically, the electronic device 100 determines the collision accident information of road section A in the past preset time period based on the real-time characteristic information corresponding to the target object of road section A and the characteristic information corresponding to the target object of road section A in the past preset time period. . For example, it is determined that in the past year, the number of collisions that occurred on section A totaled 10, of which the number of vehicle-to-vehicle collisions was 5, the number of vehicle-to-obstacle collisions was 3, and the number of vehicle-to-pedestrian collisions was Starting from 2. Then the average relative speed of vehicles in collision is: the average relative speed of vehicles in 10 collision accidents. The average relative acceleration of vehicles in collisions is: the average relative acceleration of vehicles in 10 collision accidents. In the collision accident between vehicle E and vehicle F, the relative speed at the time of vehicle collision is the speed of vehicle E relative to vehicle F. Similarly, the relative acceleration at the time of vehicle collision is the acceleration of vehicle E relative to vehicle F. In the collision accident between vehicle X and obstacle Y, the relative speed of the vehicle at the time of collision is the speed of vehicle In a collision accident between a vehicle M and a pedestrian N, the relative speed of the vehicle during the collision is the speed of the vehicle M relative to the pedestrian N. Similarly, the relative acceleration of the vehicle during the collision is the acceleration of the vehicle M relative to the pedestrian N.

S404:基于过去预设时间段内,A路段的碰撞事故信息,确定A路段的碰撞风险指标参数,A路段的碰撞风险指标参数包括以下至少一个:碰撞事故的严重度,碰撞事故的暴露度,碰撞事故的可控度。S404: Based on the collision accident information of road section A in the past preset time period, determine the collision risk indicator parameters of road section A. The collision risk indicator parameters of road section A include at least one of the following: the severity of the collision accident, the exposure to the collision accident, Controllability of collision accidents.

例如,过去预设时间段内,A路段的碰撞事故信息碰撞事故信息包括车辆碰撞时的平均相对速度、车辆碰撞时的平均相对加速度、车与车碰撞事故数量、车与障碍物碰撞事故数量、车与行人碰撞事故数量。电子设备100可以根据车辆碰撞时的平均相对速度、车辆碰撞时的平均相对加速度、车与车碰撞事故数量、车与障碍物碰撞事故数量、车与行人碰撞事故数量,确定A路段的碰撞事故的严重度。For example, in the past preset time period, the collision accident information of road section A includes the average relative speed of vehicles when they collide, the average relative acceleration of vehicles when they collide, the number of vehicle-to-vehicle collision accidents, the number of vehicle-to-obstacle collision accidents, Number of vehicle-pedestrian collisions. The electronic device 100 can determine the number of collision accidents in section A based on the average relative speed when the vehicle collides, the average relative acceleration when the vehicle collides, the number of vehicle-to-vehicle collision accidents, the number of vehicle-to-obstacle collision accidents, and the number of vehicle-to-pedestrian collision accidents. Severity.

在一些实施例中,电子设备100基于过去预设时间段内,A路段的碰撞事故信息,确定的过去预设时间段内,A路段的碰撞事故的严重度S可以通过公式(1)计算得到:In some embodiments, the electronic device 100 is based on the collision accident information of road section A in the past preset time period, and the severity S of the collision accident of road section A in the past preset time period can be calculated by formula (1). :

S=α 0v rexp(β 0a r)*(α 1*N CC2*N CO3*N CP)*exp(β 1N death) (1) S=α 0 v r exp(β 0 a r )*(α 1 *N CC2 *N CO3 *N CP )*exp(β 1 N death ) (1)

公式(1)中,v r表示预设时间段内,A路段的车辆碰撞时的平均相对速度,a r表示预设时间段内,A路段的车辆碰撞时的平均相对加速度,N CC表示预设时间段内,A路段的车与车碰撞事故数量,N CO表示预设时间段内,A路段的车与障碍物碰撞事故数量,α 0、α 1、α 2、α 3、β 0、β 1表示权重参数。N death表示预设时间段内,A路段的碰撞事故的死亡数量。exp表示指数函数。本文的*表示乘以。 In formula (1), v r represents the average relative speed of vehicles in section A during the collision within the preset time period, a r represents the average relative acceleration of vehicles in section A during the preset time period, and N CC represents the preset time period. Assume the number of vehicle-to-vehicle collision accidents in section A within a time period, N CO represents the number of vehicle-to-obstacle collision accidents in section A in a preset time period, α 0 , α 1 , α 2 , α 3 , β 0 , β 1 represents the weight parameter. N death represents the number of deaths in collision accidents on section A within the preset time period. exp represents an exponential function. * in this article means multiply.

不难理解,在过去预设时间段内,A路段的车辆碰撞时的平均相对速度越高,A路段的碰撞事故的严重度越高。在过去预设时间段内,A路段的车辆碰撞时的平均相对加速度越高,A路段的碰撞事故的严重度也越高。在过去预设时间段内,A路段的车辆碰撞事故的累计数量越高,A路段的碰撞事故的严重度也越高。在过去预设时间内,A路段的车辆碰撞事故的死亡人数越高,A路段的碰撞事故的严重度也越高。It is not difficult to understand that in the past preset time period, the higher the average relative speed of the collision of vehicles in section A, the higher the severity of the collision in section A. In the past preset time period, the higher the average relative acceleration of vehicles in section A when they collided, the higher the severity of the collision in section A. In the past preset time period, the higher the cumulative number of vehicle collisions in section A, the higher the severity of the collisions in section A. In the past preset time, the higher the number of fatalities in vehicle collisions on Section A, the higher the severity of the collisions on Section A.

例如,过去预设时间段内,A路段的碰撞事故信息包括车辆碰撞时的平均相对速度、车辆碰撞时的平均相对加速度。电子设备100可以根据在过去预设时间段内,A路段的车辆碰撞时的平均相对速度、车辆碰撞时的平均相对加速度,确定在过去预设时间段内,A路段的碰撞事故的的可控度。具体的,过去预设时间段内,A路段的碰撞事故的可控度C可以通过如下公式(2)计算得到:For example, in the past preset time period, the collision accident information of road section A includes the average relative speed of the vehicle when it collides and the average relative acceleration of the vehicle when it collides. The electronic device 100 can determine the controllability of the collision accident in section A in the past preset time period based on the average relative speed and the average relative acceleration of the vehicle collision in section A in the past preset time period. Spend. Specifically, within the past preset time period, the controllability C of the collision accident on section A can be calculated by the following formula (2):

公式(2)中,a r表示在过去预设时间段内,A路段的碰撞事故发生时相对加速度,v r表示在过去预设时间段内,A路段的碰撞事故发生时相对速度,β 2表示权重参数。N death表示 碰撞事故的死亡数量。exp表示指数函数。 In formula (2), a r represents the relative acceleration when the collision accident on section A occurred in the past preset time period, v r represents the relative speed when the collision accident on section A occurred during the preset time period in the past, β 2 Represents the weight parameter. N death represents the number of deaths in collision accidents. exp represents an exponential function.

不难理解,在过去预设时间段内,A路段的车辆碰撞时的平均相对速度越高,在过去预设时间段内,A路段的碰撞事故的可控度越低。在过去预设时间段内,A路段的车辆碰撞时的平均相对加速度越高,在过去预设时间段内,A路段的碰撞事故的可控度越低。在过去预设时间内,A路段的车辆碰撞事故的死亡人数越高,在过去预设时间段内,A路段的碰撞事故的可控度越低。It is not difficult to understand that in the past preset time period, the higher the average relative speed of the vehicle collision in section A, the lower the controllability of the collision in section A in the past preset time period. In the past preset time period, the higher the average relative acceleration of the vehicle collision in section A, the lower the controllability of the collision in section A in the past preset time period. In the past preset time period, the higher the number of fatalities in vehicle collisions in section A, the lower the controllability of collisions in section A in the past preset time period.

例如,过去预设时间段内,A路段的碰撞事故信息碰撞事故信息包括车辆通行的累计数量、车辆碰撞事故的累计数量。电子设备100可以根据在过去预设时间段内,A路段的车辆通行的累计数量、车辆碰撞事故的累计数量,确定在过去预设时间段内,A路段的碰撞事故的暴露度。具体的,过去预设时间段内,A路段的碰撞事故的暴露度E可以通过如下公式(3)计算得到:For example, in the past preset time period, the collision accident information of road section A includes the cumulative number of vehicle traffic and the cumulative number of vehicle collision accidents. The electronic device 100 can determine the exposure to collision accidents in section A in the past preset time period based on the cumulative number of vehicle traffic in section A and the cumulative number of vehicle collision accidents in the past preset time period. Specifically, during the past preset time period, the exposure E of the collision accident on road section A can be calculated by the following formula (3):

公式(3)中,N accident表示在过去预设时间段内,A路段的车辆碰撞事故的累计数量,N total表示在过去预设时间段内,A路段的车辆通行的累计数量。 In formula (3), N accident represents the cumulative number of vehicle collision accidents in section A in the past preset time period, and N total represents the cumulative number of vehicle traffic in section A in the past preset time period.

不难理解,在过去预设时间段内,A路段的车辆碰撞事故的累计数量在车辆通行的累计数量中占比越高,在过去预设时间段内,A路段的碰撞事故的暴露度也越高。It is not difficult to understand that in the past preset time period, the higher the cumulative number of vehicle collisions in section A accounted for in the cumulative number of vehicle traffic, the higher the exposure to collision accidents in section A in the past preset time period. The higher.

S405:基于过去预设时间内,A路段的碰撞风险指标参数,确定A路段的道路风险等级。S405: Determine the road risk level of section A based on the collision risk indicator parameters of section A within the past preset time.

在一些实施例中,电子设备100基于过去预设时间内,目标路段的碰撞风险指标参数,确定目标路段的道路风险指标。电子设备100可以根据预先划分的道路风险等级对应的道路风险指标的数值范围,确定A路段的道路风险等级。In some embodiments, the electronic device 100 determines the road risk indicator of the target road section based on the collision risk indicator parameters of the target road section within a preset time in the past. The electronic device 100 may determine the road risk level of section A according to the numerical range of the road risk indicator corresponding to the pre-divided road risk level.

例如,A路段的道路风险等级包括四个等级,分别为1、2、3、4,其中1是最低的等级,4是最高的等级。例如,预先划分的道路风险等级1对应的道路风险指标的数值范围为[a,b],预先划分的道路风险等级2对应的道路风险指标的数值范围为[c,d],预先划分的道路风险等级3对应的道路风险指标的数值范围为[e,f],预先划分的道路风险等级4对应的道路风险指标的数值范围为[g,h]。For example, the road risk level of section A includes four levels, namely 1, 2, 3, and 4, where 1 is the lowest level and 4 is the highest level. For example, the numerical range of the road risk indicator corresponding to the pre-divided road risk level 1 is [a, b], the numerical range of the road risk indicator corresponding to the pre-divided road risk level 2 is [c, d], and the numerical range of the road risk indicator corresponding to the pre-divided road risk level 2 is [c, d]. The numerical range of the road risk index corresponding to risk level 3 is [e, f], and the numerical range of the road risk index corresponding to the pre-divided road risk level 4 is [g, h].

在一些实施例中,电子设备100基于过去预设时间内,目标路段的碰撞风险指标参数,确定目标路段的道路风险指标。具体的,目标路段的道路风险指标R dynamic可以通过公式(4)计算得到: In some embodiments, the electronic device 100 determines the road risk indicator of the target road section based on the collision risk indicator parameters of the target road section within a preset time in the past. Specifically, the road risk index R dynamic of the target road section can be calculated through formula (4):

R dynamic=S*E*C (4) R dynamic =S*E*C (4)

其中,S表示过去预设时间段内,A路段的碰撞事故的严重度。C表示过去预设时间段内,A路段的碰撞事故的可控度。E表示过去预设时间段内,A路段的碰撞事故的暴露度。Among them, S represents the severity of the collision accident on section A in the past preset time period. C represents the controllability of the collision accident on section A in the past preset time period. E represents the exposure to collision accidents on section A in the past preset time period.

不难看出,A路段的碰撞事故的严重度越高,A路段的道路风险等级越高。A路段的碰撞事故的可控度越高,A路段的道路风险等级越高。A路段的碰撞事故的暴露度越高,A路 段的道路风险等级越高。It is not difficult to see that the higher the severity of the collision in Section A, the higher the road risk level in Section A. The higher the controllability of the collision accident in section A, the higher the road risk level in section A. The higher the exposure to collision accidents in section A, the higher the road risk level in section A.

S406:将A路段的道路风险等级发送给A路段预设范围内的车辆。S406: Send the road risk level of section A to the vehicles within the preset range of section A.

在一些实施例中,A路段的预设范围内的车辆可以是A路段上的车辆,也可以是距离A路段不超过预设距离的车辆。例如,该预设距离可以是1千米,A路段预设范围内的车辆可以根据接收的A路段的道路风险等级,调整车辆的速度。例如,在自动驾驶场景,车辆在接收的A路段的道路风险等级为3时,车辆可以在距离A路段预设距离或进入A路段时,自动降低车辆的速度。车辆接收到的A路段的道路风险等级为1时,车辆可以不调整速度,即保持原有速度通过A路段。In some embodiments, the vehicles within the preset range of road segment A may be vehicles on road segment A, or may be vehicles that are no more than a preset distance away from road segment A. For example, the preset distance may be 1 km, and vehicles within the preset range of section A can adjust their speeds based on the received road risk level of section A. For example, in an autonomous driving scenario, when the vehicle receives a road risk level of 3 on section A, the vehicle can automatically reduce the speed of the vehicle when it is a preset distance from section A or enters section A. When the road risk level of section A received by the vehicle is 1, the vehicle can pass section A without adjusting the speed, that is, maintaining the original speed.

由上述描述可知,电子设备100可以获取A路段上的至少一个摄像头实时采集的视频流,并对实时采集的视频流进行分析,实时获取A路段的目标对象信息,基于实时获取的A路段的目标对象信息,确定A路段的道路风险等级。并且电子设备100还可以通过实时更新A路段的道路风险等级,以使得在A路段预设范围内的车辆可以实时了解A路段的道路风险等级,从而使得在自动驾驶车辆在A路段内或进入目标路段之前,根据实时了解的A路段的道路风险等级,预先确定是否调整自动驾驶车辆在目标路段的行驶速度。提高自动驾驶车辆控制的准确性,进一步提高了自动驾驶车辆的安全性和驾驶体验。It can be seen from the above description that the electronic device 100 can obtain the video stream collected by at least one camera on the road section A in real time, analyze the video stream collected in real time, and obtain the target object information of the road section A in real time. Based on the target object information of the road section A obtained in real time, Object information to determine the road risk level of section A. And the electronic device 100 can also update the road risk level of section A in real time, so that vehicles within the preset range of section A can understand the road risk level of section A in real time, so that when the self-driving vehicle is in section A or enters the target Before the road section, based on the real-time understanding of the road risk level of section A, it is determined in advance whether to adjust the driving speed of the autonomous vehicle on the target road section. Improving the accuracy of autonomous vehicle control further improves the safety and driving experience of autonomous vehicles.

在一些实施例中,目标路段的路况信息可以是敏感交通参与者,下面结合图5详细说明电子设备100通过根据实时获取的目标路段的目标对象以及目标对象的特征信息,确定目标路段的敏感交通参与者,并将敏感交通参与者发送给在目标路段预设范围内的车辆。In some embodiments, the traffic condition information of the target road section may be sensitive traffic participants. The electronic device 100 determines the sensitive traffic of the target road section based on the target object of the target road section and the characteristic information of the target object obtained in real time. Participants and send sensitive traffic participants to vehicles within the preset range of the target road segment.

基于图1或图2的路况检测场景,图5示出了另一种路况检测方法的流程图,图5的流程的执行主体为电子设备100,如图5所示,具体包括:Based on the road condition detection scenario of Figure 1 or Figure 2, Figure 5 shows a flow chart of another road condition detection method. The execution subject of the process of Figure 5 is the electronic device 100, as shown in Figure 5, which specifically includes:

S501:实时获取目标路段上的至少一个摄像头采集的视频流,具体内容参考步骤S401,在此不做赘述。S501: Obtain the video stream collected by at least one camera on the target road section in real time. For specific content, please refer to step S401, which will not be described in detail here.

S502:基于实时获取的目标路段的视频流,确定目标路段的目标对象以及目标对象对应的特征信息,具体内容参考步骤S402,在此不做赘述。S502: Based on the video stream of the target road section obtained in real time, determine the target object of the target road section and the characteristic information corresponding to the target object. For details, please refer to step S402, which will not be described in detail here.

S503:根据目标对象的类型,从目标路段的目标对象中筛选出目标路段的敏感交通参与者。S503: Screen out the sensitive traffic participants of the target road section from the target objects of the target road section according to the type of the target object.

如图4中的步骤S402所述,目标路段的目标对象可以是目标路段上行驶的车辆,也可以是行人等。具体可以是轿车、卡车、厢式货车、自行车、行人、婴儿车等。As described in step S402 in Figure 4 , the target object of the target road section may be a vehicle traveling on the target road section, or it may be a pedestrian, etc. Specifically, it can be cars, trucks, vans, bicycles, pedestrians, strollers, etc.

在一些实施例中,敏感交通参与者即为可能影响路段上车辆运行速度的目标对象。城市道路交通,敏感交通参与者包括但不限于:行人、自行车、婴儿车、做轮椅的人等。在高速公路交通,敏感交通参与者包括但不限于大卡车、厢式货车等。In some embodiments, sensitive traffic participants are target objects that may affect the speed of vehicles on the road section. In urban road traffic, sensitive traffic participants include but are not limited to: pedestrians, bicycles, strollers, people in wheelchairs, etc. In highway traffic, sensitive traffic participants include but are not limited to large trucks, vans, etc.

在一些实施例中,电子设备100基于根据目标对象的类型,从目标路段的目标对象中筛选出目标路段的敏感交通参与者,获取敏感交通参与者对应的特征信息。其中,目标路段的敏感交通参与者的特征信息包括敏感交通参与者在目标路段的位置、行驶速度以及行驶加速度。In some embodiments, the electronic device 100 filters out the sensitive traffic participants of the target road section from the target objects of the target road section according to the type of the target object, and obtains the characteristic information corresponding to the sensitive traffic participants. Among them, the characteristic information of the sensitive traffic participants in the target road section includes the location, driving speed and driving acceleration of the sensitive traffic participants in the target road section.

例如,当前时刻,A路段上的敏感交通参与者p n可以表示为(x n,y n,v n,a n),其中,(x n,y n)表示敏感交通参与者p n在A路段上的位置坐标,v n表示敏感交通参与者p n在当前 时刻的速度,a n表示敏感交通参与者p n在当前时刻的加速度。具体地,如图1所示,A路段为城市道路,则A路段的敏感交通参与者可以包括行人300-4、行人300-5、行人300-6。则行人300-4的位置信息可以表示为(x 1,y 1,v 1,a 1),行人300-4的位置信息可以表示为(x 2,y 2,v 2,a 2),行人300-4的位置信息可以表示为(x 3,y 3,v 3,a 3)。 For example, at the current moment, the sensitive traffic participant p n on road section A can be expressed as (x n ,y n ,v n ,an ) , where (x n ,y n ) represents the sensitive traffic participant p n on road section A The position coordinates on the road segment, v n represents the speed of the sensitive traffic participant p n at the current moment, and a n represents the acceleration of the sensitive traffic participant p n at the current moment. Specifically, as shown in Figure 1, section A is an urban road, and the sensitive traffic participants in section A may include pedestrians 300-4, pedestrians 300-5, and pedestrians 300-6. Then the position information of pedestrian 300-4 can be expressed as (x 1 , y 1 , v 1 , a 1 ), the position information of pedestrian 300-4 can be expressed as (x 2 , y 2 , v 2 , a 2 ), and the pedestrian The position information of 300-4 can be expressed as (x 3 , y 3 , v 3 , a 3 ).

由于在步骤S502中,电子设备100基于实时获取的目标路段的视频流,确定目标路段的目标对象对应的位置状态,若目标对象对应的位置状态是基于自身坐标系生成的位置坐标,则在步骤S503中,从目标路段的目标对象的位置状态筛选出的目标路段的敏感交通参与者中,敏感交通参与者包含的敏感交通参与者的位置坐标也是基于自身坐标系生成的位置坐标。因此,电子设备100需要将基于自身坐标系生成的敏感交通参与者的位置坐标转换成基于世界坐标系生成的敏感交通参与者的位置坐标,再将包含基于世界坐标系生成的敏感交通参与者的位置坐标的敏感交通参与者发送给目标路段的车辆。Since in step S502, the electronic device 100 determines the position state corresponding to the target object of the target road segment based on the video stream of the target road segment obtained in real time, if the position state corresponding to the target object is the position coordinate generated based on its own coordinate system, then in step S502 In S503, among the sensitive traffic participants in the target road section filtered out from the position status of the target object in the target road section, the position coordinates of the sensitive traffic participants included in the sensitive traffic participants are also position coordinates generated based on the own coordinate system. Therefore, the electronic device 100 needs to convert the location coordinates of sensitive traffic participants generated based on its own coordinate system into the location coordinates of sensitive traffic participants generated based on the world coordinate system, and then convert the location coordinates containing the sensitive traffic participants generated based on the world coordinate system. The location coordinates of the sensitive traffic participants are sent to the vehicles on the target road segment.

在一些实施例中,电子设备100可以根据自身坐标系-世界坐标系的转换关系矩阵、自身坐标系的基准坐标以及基于自身坐标系生成的敏感交通参与者的位置坐标,将基于自身坐标系生成的敏感交通参与者的位置坐标转换成基于世界坐标系生成的敏感交通参与者的位置坐标。具体的,基于世界坐标系生成的敏感交通参与者的位置坐标L可以通过如下公式(5)表示:In some embodiments, the electronic device 100 can generate the generated data based on the own coordinate system based on the conversion relationship matrix between the own coordinate system and the world coordinate system, the reference coordinates of the own coordinate system, and the position coordinates of sensitive traffic participants generated based on the own coordinate system. The position coordinates of the sensitive traffic participants are converted into the position coordinates of the sensitive traffic participants generated based on the world coordinate system. Specifically, the position coordinate L of the sensitive traffic participant generated based on the world coordinate system can be expressed by the following formula (5):

L=M*P*N (5)L=M*P*N (5)

公式(5)中,M表示自身坐标系-世界坐标系的转换关系矩阵,N表示自身坐标系的基准坐标,P表示基于自身坐标系生成的敏感交通参与者的位置坐标。In formula (5), M represents the transformation relationship matrix between the own coordinate system and the world coordinate system, N represents the reference coordinate of the own coordinate system, and P represents the position coordinates of sensitive traffic participants generated based on the own coordinate system.

S504:将目标路段的敏感交通参与者以及敏感交通参与者对应的特征信息发送给在目标路段预设范围内的车辆。S504: Send the sensitive traffic participants of the target road section and the characteristic information corresponding to the sensitive traffic participants to the vehicles within the preset range of the target road section.

在一些实施例中,车辆可以在未进入目标路段时,根据接收的目标路段的敏感交通参与者的位置和速度,调整车辆的速度。例如,如图1所示,在自动驾驶场景,车辆在接收到A路段包含三个敏感交通参与者(即行人300-4、行人300-5、行人300-6)的情况下,自动驾驶车辆可以在未进入A路段或进入A路段时,自动降低自动驾驶车辆的速度。In some embodiments, the vehicle may adjust the speed of the vehicle based on the received positions and speeds of sensitive traffic participants in the target road segment before entering the target road segment. For example, as shown in Figure 1, in the autonomous driving scenario, when the vehicle receives that road section A contains three sensitive traffic participants (i.e., pedestrian 300-4, pedestrian 300-5, and pedestrian 300-6), the autonomous driving vehicle It can automatically reduce the speed of the self-driving vehicle before entering section A or when entering section A.

可以理解,根据图5描述的路况检测过程,电子设备100可以实时更新目标路段的敏感交通参与者,并且可以实时将目标路段的敏感交通参与者发送给在目标路段预设范围内的车辆。从而使得在目标路段预设范围内的车辆实时获知目标路段的敏感交通参与者,根据目标路段的敏感交通参与者,实时了解目标路段的路段信息,从而使得在自动驾驶车辆在目标路段内或进入目标路段之前,预先确定是否调整自动驾驶车辆在目标路段的行驶速度。提高自动驾驶车辆控制的准确性,进一步提高了自动驾驶车辆的安全性和驾驶体验。It can be understood that according to the road condition detection process described in FIG. 5 , the electronic device 100 can update the sensitive traffic participants of the target road section in real time, and can send the sensitive traffic participants of the target road section to vehicles within the preset range of the target road section in real time. This enables vehicles within the preset range of the target road section to learn the sensitive traffic participants of the target road section in real time. According to the sensitive traffic participants of the target road section, the road section information of the target road section can be understood in real time, so that when the self-driving vehicle is within or enters the target road section, Before entering the target road section, determine in advance whether to adjust the driving speed of the autonomous vehicle on the target road section. Improving the accuracy of autonomous vehicle control further improves the safety and driving experience of autonomous vehicles.

图6所示为根据本申请的一个实施例的电子设备100的结构框图,图6示意性地示出了根据多个实施例的示例电子设备100。在一个实施例中,电子设备100可以包括一个或多个处理器1404,与处理器1404中的至少一个连接的系统控制逻辑1408,与系统控制逻辑1408连接的系统内存1412,与系统控制逻辑1408连接的非易失性存储器(NVM)1416,以及与系统控制逻辑1408连接的网络接口1420。FIG. 6 shows a structural block diagram of an electronic device 100 according to an embodiment of the present application. FIG. 6 schematically shows an example electronic device 100 according to multiple embodiments. In one embodiment, electronic device 100 may include one or more processors 1404 , system control logic 1408 coupled to at least one of the processors 1404 , system memory 1412 coupled to system control logic 1408 , and system control logic 1408 A non-volatile memory (NVM) 1416 is connected, and a network interface 1420 is connected to the system control logic 1408 .

在一些实施例中,处理器1404可以包括一个或多个单核或多核处理器。在一些实 施例中,处理器1404可以包括通用处理器和专用处理器(例如,图形处理器,应用处理器,基带处理器等)的任意组合。在电子设备100采用eNB(Evolved Node B,增强型基站)或RAN(Radio Access Network,无线接入网)控制器的实施例中,处理器1404可以被配置为执行各种符合的实施例,例如,如图3或图4或图5所示的多个实施例中的一个或多个。例如,处理1404可以用于执行上述基于路况检测方法,如处理1404可以用于获取A路段上的至少一个摄像头采集的视频流,确定目标对象信息,还可以用于基于目标路段的目标对象信息,确定目标路段的路况信息等。In some embodiments, processor 1404 may include one or more single-core or multi-core processors. In some embodiments, processor 1404 may include any combination of general-purpose processors and special-purpose processors (e.g., graphics processors, applications processors, baseband processors, etc.). In an embodiment in which the electronic device 100 adopts an eNB (Evolved Node B, enhanced base station) or RAN (Radio Access Network, radio access network) controller, the processor 1404 may be configured to perform various conforming embodiments, such as , one or more of the multiple embodiments shown in Figure 3 or Figure 4 or Figure 5 . For example, processing 1404 can be used to perform the above-mentioned detection method based on traffic conditions. For example, processing 1404 can be used to obtain the video stream collected by at least one camera on road section A and determine the target object information. It can also be used to obtain the target object information based on the target road section. Determine the traffic information of the target road section, etc.

在一些实施例中,系统控制逻辑1408可以包括任意合适的接口控制器,以向处理器1404中的至少一个和/或与系统控制逻辑1408通信的任意合适的设备或组件提供任意合适的接口。In some embodiments, system control logic 1408 may include any suitable interface controller to provide any suitable interface to at least one of processors 1404 and/or any suitable device or component in communication with system control logic 1408 .

在一些实施例中,系统控制逻辑1408可以包括一个或多个存储器控制器,以提供连接到系统内存1412的接口。系统内存1412可以用于加载以及存储数据和/或指令。在一些实施例中系统1400的内存1412可以包括任意合适的易失性存储器,例如合适的动态随机存取存储器(DRAM)。In some embodiments, system control logic 1408 may include one or more memory controllers to provide an interface to system memory 1412 . System memory 1412 may be used to load and store data and/or instructions. Memory 1412 of system 1400 may include any suitable volatile memory in some embodiments, such as suitable dynamic random access memory (DRAM).

NVM/存储器1416可以包括用于存储数据和/或指令的一个或多个有形的、非暂时性的计算机可读介质。在一些实施例中,NVM/存储器1416可以包括闪存等任意合适的非易失性存储器和/或任意合适的非易失性存储设备,例如HDD(Hard Disk Drive,硬盘驱动器),CD(Compact Disc,光盘)驱动器,DVD(Digital Versatile Disc,数字通用光盘)驱动器中的至少一个。NVM/memory 1416 may include one or more tangible, non-transitory computer-readable media for storing data and/or instructions. In some embodiments, the NVM/memory 1416 may include any suitable non-volatile memory such as flash memory and/or any suitable non-volatile storage device, such as HDD (Hard Disk Drive), CD (Compact Disc). , Compact Disc) drive, and at least one of a DVD (Digital Versatile Disc, Digital Versatile Disc) drive.

NVM/存储器1416可以包括安装电子设备100的装置上的一部分存储资源,或者它可以由设备访问,但不一定是设备的一部分。例如,可以经由网络接口1420通过网络访问NVM/存储1416。NVM/memory 1416 may comprise a portion of storage resources on the device on which electronic device 100 is installed, or it may be accessed by the device but is not necessarily part of the device. For example, NVM/storage 1416 may be accessed over the network via network interface 1420.

特别地,系统内存1412和NVM/存储器1416可以分别包括:指令1424的暂时副本和永久副本。指令1424可以包括:由处理器1404中的至少一个执行时导致电子设备100实施如图1所示的方法的指令。在一些实施例中,指令1424、硬件、固件和/或其软件组件可另外地/替代地置于系统控制逻辑1408,网络接口1420和/或处理器1404中。In particular, system memory 1412 and NVM/storage 1416 may include temporary and permanent copies of instructions 1424, respectively. Instructions 1424 may include instructions that, when executed by at least one of processors 1404, cause electronic device 100 to implement the method illustrated in FIG. 1 . In some embodiments, instructions 1424, hardware, firmware, and/or software components thereof may additionally/alternatively be placed in system control logic 1408, network interface 1420, and/or processor 1404.

网络接口1420可以包括收发器,用于为电子设备100提供无线电接口,进而通过一个或多个网络与任意其他合适的设备(如前端模块,天线等)进行通信。在一些实施例中,网络接口1420可以集成于电子设备100的其他组件。例如,网络接口1420可以集成于处理器1404的,系统内存1412,NVM/存储器1416,和具有指令的固件设备(未示出)中的至少一种,当处理器1404中的至少一个执行所述指令时,电子设备100实现如图3至图5所示的方法。Network interface 1420 may include a transceiver for providing a radio interface for electronic device 100 to communicate with any other suitable device (eg, front-end module, antenna, etc.) over one or more networks. In some embodiments, network interface 1420 may be integrated with other components of electronic device 100 . For example, network interface 1420 may be integrated with at least one of processor 1404, system memory 1412, NVM/storage 1416, and a firmware device (not shown) with instructions that when at least one of processor 1404 executes said When instructed, the electronic device 100 implements the methods shown in FIGS. 3 to 5 .

网络接口1420可以进一步包括任意合适的硬件和/或固件,以提供多输入多输出无线电接口或有线电接口。例如,网络接口1420可以是网络适配器,无线网络适配器,电话调制解调器和/或无线调制解调器。Network interface 1420 may further include any suitable hardware and/or firmware to provide a multiple-input multiple-output radio interface or a wired electrical interface. For example, network interface 1420 may be a network adapter, a wireless network adapter, a telephone modem, and/or a wireless modem.

在一个实施例中,处理器1404中的至少一个可以与用于系统控制逻辑1408的一个或多个控制器的逻辑封装在一起,以形成系统封装(SiP)。在一个实施例中,处理 器1404中的至少一个可以与用于系统控制逻辑1408的一个或多个控制器的逻辑集成在同一管芯上,以形成片上系统(SoC)。In one embodiment, at least one of the processors 1404 may be packaged with logic for one or more controllers of the system control logic 1408 to form a system in package (SiP). In one embodiment, at least one of the processors 1404 may be integrated on the same die with logic for one or more controllers of the system control logic 1408 to form a system on a chip (SoC).

电子设备100可以进一步包括:输入/输出(I/O)设备1432。I/O设备1432可以包括用户界面,使得用户能够与电子设备100进行交互;外围组件接口的设计使得外围组件也能够与电子设备100交互。在一些实施例中,电子设备100还包括传感器,用于确定与电子设备100相关的环境条件和位置信息的至少一种。Electronic device 100 may further include an input/output (I/O) device 1432 . The I/O device 1432 may include a user interface that enables a user to interact with the electronic device 100; the peripheral component interface is designed to enable peripheral components to also interact with the electronic device 100. In some embodiments, the electronic device 100 further includes a sensor for determining at least one of environmental conditions and location information related to the electronic device 100 .

在一些实施例中,用户界面可包括但不限于显示器(例如,液晶显示器,触摸屏显示器等),扬声器,麦克风,一个或多个相机(例如,静止图像照相机和/或摄像机),手电筒(例如,发光二极管闪光灯)和键盘。In some embodiments, the user interface may include, but is not limited to, a display (e.g., a liquid crystal display, a touch screen display, etc.), a speaker, a microphone, one or more cameras (e.g., a still image camera and/or video camera), a flashlight (e.g., LED flash) and keyboard.

在一些实施例中,外围组件接口可以包括但不限于非易失性存储器端口、音频插孔和电源接口。In some embodiments, peripheral component interfaces may include, but are not limited to, non-volatile memory ports, audio jacks, and power interfaces.

在一些实施例中,传感器可包括但不限于陀螺仪传感器,加速度计,近程传感器,环境光线传感器和定位单元。定位单元还可以是网络接口1420的一部分或与网络接口1420交互,以与定位网络的组件(例如,全球定位系统(GPS)卫星)进行通信。In some embodiments, sensors may include, but are not limited to, gyroscope sensors, accelerometers, proximity sensors, ambient light sensors, and positioning units. The positioning unit may also be part of or interact with the network interface 1420 to communicate with components of the positioning network (eg, Global Positioning System (GPS) satellites).

可以理解的是,图6示意的结构并不构成对电子设备100的具体限定。在本申请另外一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in FIG. 6 does not constitute a specific limitation on the electronic device 100 . In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figures, or combine some components, or separate some components, or arrange different components. The components illustrated may be implemented in hardware, software, or a combination of software and hardware.

本申请公开的机制的各实施例可以被实现在硬件、软件、固件或这些实现方法的组合中。本申请的实施例可实现为在可编程系统上执行的计算机程序或程序代码,该可编程系统包括至少一个处理器、存储系统(包括易失性和非易失性存储器和/或存储元件)、至少一个输入设备以及至少一个输出设备。Various embodiments of the mechanisms disclosed in this application may be implemented in hardware, software, firmware, or a combination of these implementation methods. Embodiments of the present application may be implemented as a computer program or program code executing on a programmable system including at least one processor, a storage system (including volatile and non-volatile memory and/or storage elements) , at least one input device and at least one output device.

可将程序代码应用于输入指令,以执行本申请描述的各功能并生成输出信息。可以按已知方式将输出信息应用于一个或多个输出设备。为了本申请的目的,处理系统包括具有诸如例如数字信号处理器(DSP)、微控制器、专用集成电路(ASIC)或微处理器之类的处理器的任何系统。Program code may be applied to input instructions to perform the functions described herein and to generate output information. Output information can be applied to one or more output devices in a known manner. For the purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.

程序代码可以用高级程序化语言或面向对象的编程语言来实现,以便与处理系统通信。在需要时,也可用汇编语言或机器语言来实现程序代码。事实上,本申请中描述的机制不限于任何特定编程语言的范围。在任一情形下,该语言可以是编译语言或解释语言。Program code may be implemented in a high-level procedural language or an object-oriented programming language to communicate with the processing system. When necessary, assembly language or machine language can also be used to implement program code. In fact, the mechanisms described in this application are not limited to the scope of any particular programming language. In either case, the language may be a compiled or interpreted language.

在一些情况下,所公开的实施例可以以硬件、固件、软件或其任何组合来实现。所公开的实施例还可以被实现为由一个或多个暂时或非暂时性机器可读(例如,计算机可读)存储介质承载或存储在其上的指令,其可以由一个或多个处理器读取和执行。例如,指令可以通过网络或通过其他计算机可读介质分发。因此,机器可读介质可以包括用于以机器(例如,计算机)可读的形式存储或传输信息的任何机制,包括但不限于,软盘、光盘、光碟、只读存储器(CD-ROMs)、磁光盘、只读存储器(ROM)、随机存取存储器(RAM)、可擦除可编程只读存储器(EPROM)、电可擦除可编程只读存储器(EEPROM)、磁卡或光卡、闪存、或用于利用因特网以电、光、声或其他形式 的传播信号来传输信息(例如,载波、红外信号数字信号等)的有形的机器可读存储器。因此,机器可读介质包括适合于以机器(例如,计算机)可读的形式存储或传输电子指令或信息的任何类型的机器可读介质。In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried on or stored on one or more transitory or non-transitory machine-readable (e.g., computer-readable) storage media, which may be operated by one or more processors Read and execute. For example, instructions may be distributed over a network or through other computer-readable media. Thus, machine-readable media may include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), including, but not limited to, floppy disks, optical disks, optical disks, read-only memories (CD-ROMs), magnetic Optical disk, read-only memory (ROM), random-access memory (RAM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), magnetic or optical card, flash memory, or Tangible machine-readable storage used to transmit information (e.g., carrier waves, infrared signals, digital signals, etc.) using electrical, optical, acoustic, or other forms of propagated signals over the Internet. Thus, machine-readable media includes any type of machine-readable media suitable for storing or transmitting electronic instructions or information in a form readable by a machine (eg, computer).

在附图中,可以以特定布置和/或顺序示出一些结构或方法特征。然而,应该理解,可能不需要这样的特定布置和/或排序。而是,在一些实施例中,这些特征可以以不同于说明性附图中所示的方式和/或顺序来布置。另外,在特定图中包括结构或方法特征并不意味着暗示在所有实施例中都需要这样的特征,并且在一些实施例中,可以不包括这些特征或者可以与其他特征组合。In the drawings, some structural or methodological features may be shown in specific arrangements and/or orders. However, it should be understood that such specific arrangement and/or ordering may not be required. Rather, in some embodiments, the features may be arranged in a different manner and/or order than shown in the illustrative figures. Additionally, the inclusion of structural or methodological features in a particular figure is not meant to imply that such features are required in all embodiments, and in some embodiments these features may not be included or may be combined with other features.

需要说明的是,本申请各设备实施例中提到的各单元/模块都是逻辑单元/模块,在物理上,一个逻辑单元/模块可以是一个物理单元/模块,也可以是一个物理单元/模块的一部分,还可以以多个物理单元/模块的组合实现,这些逻辑单元/模块本身的物理实现方式并不是最重要的,这些逻辑单元/模块所实现的功能的组合才是解决本申请所提出的技术问题的关键。此外,为了突出本申请的创新部分,本申请上述各设备实施例并没有将与解决本申请所提出的技术问题关系不太密切的单元/模块引入,这并不表明上述设备实施例并不存在其它的单元/模块。It should be noted that each unit/module mentioned in each device embodiment of this application is a logical unit/module. Physically, a logical unit/module can be a physical unit/module, or it can be a physical unit/module. Part of the module can also be implemented as a combination of multiple physical units/modules. The physical implementation of these logical units/modules is not the most important. The combination of functions implemented by these logical units/modules is what solves the problem of this application. Key technical issues raised. In addition, in order to highlight the innovative part of this application, the above-mentioned equipment embodiments of this application do not introduce units/modules that are not closely related to solving the technical problems raised by this application. This does not mean that the above-mentioned equipment embodiments do not exist. Other units/modules.

需要说明的是,在本专利的示例和说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in the examples and descriptions of this patent, 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 There is no such actual relationship or sequence between these entities or operations. Furthermore, the terms "comprises," "comprises," or any other variations thereof are intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus that includes a list of elements includes not only those elements, but also those not expressly listed other elements, or elements inherent to the process, method, article or equipment. Without further limitation, an element defined by the statement "comprises a" does not exclude the presence of additional identical elements in a process, method, article, or device that includes the stated element.

虽然通过参照本申请的某些优选实施例,已经对本申请进行了图示和描述,但本领域的普通技术人员应该明白,可以在形式上和细节上对其作各种改变,而不偏离本申请的精神和范围。Although the present application has been illustrated and described with reference to certain preferred embodiments thereof, it will be understood by those of ordinary skill in the art that various changes may be made in form and detail without departing from the present invention. The spirit and scope of the application.

Claims (16)

一种路况检测方法,用于电子设备,其特征在于,A road condition detection method for electronic equipment, characterized by: 获取目标路段上的摄像头采集的视频流;Obtain the video stream collected by the camera on the target road section; 根据所述视频流,确定目标路段上的目标对象的当前特征信息,其中,所述特征信息包括运动状态信息和/或位置状态信息;According to the video stream, determine the current characteristic information of the target object on the target road section, where the characteristic information includes motion state information and/or location state information; 基于所述目标对象的所述当前特征信息和/或所述目标对象的历史特征信息,确定所述目标路段的当前路况信息。Based on the current characteristic information of the target object and/or the historical characteristic information of the target object, the current traffic condition information of the target road section is determined. 根据权利要求1所述的方法,其特征在于,还包括:The method according to claim 1, further comprising: 将所述目标路段的所述当前路况信息发送给在目标路段预设范围内的车辆。The current road condition information of the target road section is sent to vehicles within a preset range of the target road section. 根据权利要求1所述的方法,其特征在于,所述目标对象包括以下至少一个:车辆、人、障碍物。The method according to claim 1, wherein the target object includes at least one of the following: vehicles, people, and obstacles. 根据权利要求3所述的方法,其特征在于,所述目标路段的当前路况信息包括道理风险等级;并且The method according to claim 3, characterized in that the current traffic condition information of the target road section includes a road risk level; and 所述基于所述目标对象的所述当前特征信息和/或所述目标对象的所述历史特征信息,确定所述目标路段的当前路况信息包括:Determining the current traffic condition information of the target road section based on the current feature information of the target object and/or the historical feature information of the target object includes: 基于所述目标对象的所述当前特征信息和所述目标对象的所述历史特征信息,确定所述目标路段的当前车流量和碰撞事故信息、以及历史车流量和碰撞事故信息;Based on the current characteristic information of the target object and the historical characteristic information of the target object, determine the current traffic flow and collision accident information of the target road section, as well as the historical traffic flow and collision accident information; 基于所述目标路段的当前车流量和碰撞事故信息、以及历史车流量和碰撞事故信息,确定所述目标路段的所述当前道路风险等级。The current road risk level of the target road section is determined based on the current traffic volume and collision accident information of the target road section and historical traffic volume and collision accident information. 根据权利要求4所述的方法,其特征在于,所述碰撞事故信息包括以下至少一个:碰撞事故的数量、碰撞车辆的平均相对加速度、碰撞车辆的平均相对速度。The method according to claim 4, wherein the collision accident information includes at least one of the following: the number of collision accidents, the average relative acceleration of the collision vehicles, and the average relative speed of the collision vehicles. 根据权利要求5所述的方法,其特征在于,所述基于所述目标路段的当前车流量和碰撞事故信息、以及历史车流量和碰撞事故信息,确定所述目标路段的所述当前道路风险等级包括:The method according to claim 5, characterized in that the current road risk level of the target road section is determined based on the current traffic volume and collision accident information of the target road section and historical traffic volume and collision accident information. include: 基于目标路段的当前车流量和碰撞事故信息、以及历史车流量和碰撞事故信息,确定所述目标路段的碰撞风险指标参数,其中,所述碰撞风险指标参数包括以下至少一个:碰撞事故的严重度,碰撞事故的暴露度,碰撞事故的可控度;Based on the current traffic volume and collision accident information of the target road section, as well as the historical traffic volume and collision accident information, the collision risk indicator parameters of the target road section are determined, wherein the collision risk indicator parameters include at least one of the following: the severity of the collision accident , exposure to collision accidents, controllability of collision accidents; 基于所述目标路段的碰撞风险指标参数,确定所述目标路段的所述当前道路风险等级。The current road risk level of the target road section is determined based on the collision risk indicator parameter of the target road section. 根据权利要求6所述的方法,其特征在于,所述当前道路风险等级R dynamic通过以下公式计算得到: The method according to claim 6, characterized in that the current road risk level R dynamic is calculated by the following formula: R dynamic=S*E*C R dynamic =S*E*C 其中,S表示碰撞事故的严重度。C表示碰撞事故的可控度,E表示碰撞事故的暴露度。Among them, S represents the severity of the collision. C represents the controllability of the collision, and E represents the exposure to the collision. 根据权利要求6或权利要求7所述的方法,其特征在于,所述基于目标路段的 当前车流量和碰撞事故信息、以及历史车流量和碰撞事故信息,确定所述目标路段的碰撞风险指标参数包括:The method according to claim 6 or claim 7, characterized in that the collision risk indicator parameters of the target road section are determined based on the current traffic flow and collision accident information of the target road section and historical traffic flow and collision accident information. include: 基于所述当前以及历史所述目标路段的所述碰撞事故的数量、所述碰撞车辆的平均相对加速度、所述碰撞车辆的平均相对速度,确定所述目标路段的碰撞事故的严重度。The severity of the collision accidents in the target road section is determined based on the number of collisions in the current and historical target road section, the average relative acceleration of the collision vehicles, and the average relative speed of the collision vehicles. 根据权利要求8所述的方法,其特征在于,The method according to claim 8, characterized in that: 所述碰撞事故的数量包括:车与车碰撞的数量、车与人碰撞的数量、车与障碍物碰撞的数量;The number of collision accidents includes: the number of vehicle-to-vehicle collisions, the number of vehicle-to-person collisions, and the number of vehicle-to-obstacle collisions; 所述碰撞事故的严重度S通过以下公式计算得到:The severity S of the collision accident is calculated by the following formula: S=α 0v rexp(β 0a r)*(α 1*N CC2*N CO3*N CP)*exp(β 1N death) S=α 0 v r exp(β 0 a r )*(α 1 *N CC2 *N CO3 *N CP )*exp(β 1 N death ) 其中,v r表示所述碰撞车辆的平均相对速度,a r表示所述碰撞车辆的平均相对加速度,N CC表示车与车碰撞的数量,N CO表示车与障碍物碰撞的数量,N CP表示车与人碰撞的数量,α 0、α 1、α 2、α 3、β 0、β 1分别表示权重参数,N death表示当前以及历史所述目标路段的碰撞事故的死亡数量,exp表示指数函数。 Among them, v r represents the average relative speed of the collision vehicle, a r represents the average relative acceleration of the collision vehicle, N CC represents the number of collisions between vehicles, N CO represents the number of collisions between vehicles and obstacles, and N CP represents The number of collisions between vehicles and people, α 0 , α 1 , α 2 , α 3 , β 0 , and β 1 respectively represent weight parameters, N death represents the number of deaths in collision accidents in the current and historical target road sections, exp represents the exponential function . 根据权利要求6或权利要求7所述的方法,其特征在于,基于目标路段的当前车流量和碰撞事故信息、以及历史车流量和碰撞事故信息,确定所述目标路段的碰撞风险指标参数包括:The method according to claim 6 or claim 7, characterized in that, based on the current traffic flow and collision accident information of the target road section, as well as the historical traffic flow and collision accident information, determining the collision risk indicator parameters of the target road section includes: 基于当前以及历史所述目标路段的所述碰撞车辆的平均相对加速度以及所述碰撞车辆的平均相对速度,确定所述目标路段的碰撞事故的可控度。Based on the average relative acceleration of the collision vehicle and the average relative speed of the collision vehicle in the current and historical target road section, the controllability of the collision accident in the target road section is determined. 根据权利要求10所述的方法,其特征在于,The method according to claim 10, characterized in that: 所述目标路段的碰撞事故的可控度C通过以下公式计算得到:The controllability C of the collision accident on the target road section is calculated by the following formula: 其中,a r表示所述碰撞车辆的平均相对加速度,v r表示所述碰撞车辆的平均相对速度,β 2表示权重参数,N death表示当前以及历史所述目标路段的碰撞事故的死亡数量,exp表示指数函数。 Among them, a r represents the average relative acceleration of the collision vehicle, v r represents the average relative speed of the collision vehicle, β 2 represents the weight parameter, N death represents the number of deaths in collision accidents in the current and historical target road section, exp represents an exponential function. 根据权利要求6或权利要求7所述的方法,其特征在于,基于目标路段的当前车流量和碰撞事故信息、以及历史车流量和碰撞事故信息,确定所述目标路段的碰撞风险指标参数包括:The method according to claim 6 or claim 7, characterized in that, based on the current traffic flow and collision accident information of the target road section, as well as the historical traffic flow and collision accident information, determining the collision risk indicator parameters of the target road section includes: 基于所述当前以及历史所述目标路段的车流量以及所述碰撞事故的数量,确定当前目标路段的碰撞事故的暴露度。Based on the current and historical traffic volume of the target road section and the number of collision accidents, the exposure to collision accidents of the current target road section is determined. 根据权利要求12所述的方法,其特征在于,The method according to claim 12, characterized in that: 所述碰撞事故的暴露度E通过以下公式计算得到:The exposure E of the collision accident is calculated by the following formula: 其中,N accident表示所述碰撞事故的数量,N total表示所述车流量。 Among them, N accident represents the number of collision accidents, and N total represents the traffic volume. 根据权利要求3所述的方法,其特征在于,所述目标路段的当前路况信息包括敏感交通参与者的特征信息;The method according to claim 3, characterized in that the current traffic condition information of the target road section includes characteristic information of sensitive traffic participants; 所述基于所述目标对象的所述当前特征信息和/或所述目标对象的所述历史特征信息,确定所述目标路段的当前路况信息包括:Determining the current traffic condition information of the target road section based on the current feature information of the target object and/or the historical feature information of the target object includes: 所述基于所述目标对象的所述当前特征信息,从所述目标对象中筛选出敏感交通参与者,并确定敏感交通参与者的当前特征信息,其中,所述敏感交通参与者包括以下至少一种:行人、重型卡车、自行车、厢式货车。Based on the current characteristic information of the target object, sensitive traffic participants are screened out from the target object and the current characteristic information of the sensitive traffic participants is determined, wherein the sensitive traffic participants include at least one of the following Types: Pedestrians, heavy trucks, bicycles, vans. 一种可读介质,其特征在于,所述可读介质上存储有指令,该指令在电子设备上执行时使电子设备执行权利要求1至14中任一项所述的路况检测方法。A readable medium, characterized in that instructions are stored on the readable medium, and when executed on an electronic device, the instructions cause the electronic device to execute the road condition detection method described in any one of claims 1 to 14. 一种电子设备,其特征在于,包括:An electronic device, characterized by including: 存储器,用于存储由电子设备的一个或多个处理器执行的指令,以及memory for storing instructions for execution by one or more processors of the electronic device, and 处理器,是电子设备的处理器之一,用于执行权利要求1至14中任一项所述的路况检测方法。The processor is one of the processors of the electronic device and is used to execute the road condition detection method described in any one of claims 1 to 14.
CN202280003400.0A 2022-02-11 2022-02-11 Road condition detection method, readable medium and electronic equipment Pending CN116897380A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/076064 WO2023151034A1 (en) 2022-02-11 2022-02-11 Traffic condition detection method, readable medium and electronic device

Publications (1)

Publication Number Publication Date
CN116897380A true CN116897380A (en) 2023-10-17

Family

ID=87563370

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202280003400.0A Pending CN116897380A (en) 2022-02-11 2022-02-11 Road condition detection method, readable medium and electronic equipment

Country Status (2)

Country Link
CN (1) CN116897380A (en)
WO (1) WO2023151034A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117523885A (en) * 2023-11-15 2024-02-06 襄阳达安汽车检测中心有限公司 An early warning method, device, equipment and storage medium for accident-prone road sections
CN118323143A (en) * 2024-06-17 2024-07-12 吉利汽车研究院(宁波)有限公司 Vehicle over-bending control method, vehicle, electronic equipment and storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117831278B (en) * 2023-12-20 2024-08-06 特微乐行(广州)技术有限公司 Expressway intelligent monitoring system based on cloud platform
CN118379697B (en) * 2024-06-27 2024-09-17 江西省公路工程检测中心 Road state risk prediction method and system based on multi-source data analysis

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014174032A (en) * 2013-03-11 2014-09-22 Osaka Gas Co Ltd Safe route search system
CN103971523B (en) * 2014-05-21 2016-08-17 南通大学 A kind of mountain road traffic safety dynamic early-warning system
US10024684B2 (en) * 2014-12-02 2018-07-17 Operr Technologies, Inc. Method and system for avoidance of accidents
JP2018155577A (en) * 2017-03-17 2018-10-04 パナソニックIpマネジメント株式会社 Self-driving car and control program
CN109389824B (en) * 2017-08-04 2021-07-09 华为技术有限公司 A driving risk assessment method and device
CN109118773B (en) * 2018-09-30 2019-10-01 中交第一公路勘察设计研究院有限公司 A kind of traffic accidents methods of risk assessment
CN111275960A (en) * 2018-12-05 2020-06-12 杭州海康威视系统技术有限公司 Traffic road condition analysis method, system and camera
CN110020797B (en) * 2019-03-27 2023-06-09 清华大学苏州汽车研究院(吴江) Evaluation method of automatic driving test scene based on perception defect
CN209822021U (en) * 2019-06-20 2019-12-20 张志豪 A vehicle-mounted real-time road traffic accident situational awareness device
CN112037513B (en) * 2020-09-01 2023-04-18 清华大学 Real-time traffic safety index dynamic comprehensive evaluation system and construction method thereof
CN112767695A (en) * 2021-01-07 2021-05-07 哈尔滨工业大学 Real-time prediction method and system for traffic accident risk at signalized intersection
CN113963539B (en) * 2021-10-19 2022-06-10 交通运输部公路科学研究所 Expressway traffic accident identification method, module and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117523885A (en) * 2023-11-15 2024-02-06 襄阳达安汽车检测中心有限公司 An early warning method, device, equipment and storage medium for accident-prone road sections
CN118323143A (en) * 2024-06-17 2024-07-12 吉利汽车研究院(宁波)有限公司 Vehicle over-bending control method, vehicle, electronic equipment and storage medium

Also Published As

Publication number Publication date
WO2023151034A1 (en) 2023-08-17

Similar Documents

Publication Publication Date Title
US11538114B1 (en) Providing insurance discounts based upon usage of telematics data-based risk mitigation and prevention functionality
US11060882B2 (en) Travel data collection and publication
US11214266B2 (en) Vehicle telematics based driving assessment
CN116897380A (en) Road condition detection method, readable medium and electronic equipment
US20220299324A1 (en) Accident fault detection based on multiple sensor devices
US20220114778A1 (en) Vehicular telematic systems and methods for generating interactive animated guided user interfaces
US10083613B2 (en) Driving support
US11849375B2 (en) Systems and methods for automatic breakdown detection and roadside assistance
JP7603678B2 (en) System and method for classifying vehicle trips - Patents.com
US12049218B2 (en) Evaluating the safety performance of vehicles
US20120143493A1 (en) Navigation system with abrupt maneuver monitoring mechanism and method of operation thereof
US11064322B2 (en) Method, apparatus, and system for detecting joint motion
CN105387854B (en) Navigation system employing content distribution mechanism and method of operation thereof
US20220203973A1 (en) Methods and systems for generating navigation information in a region
US20210287530A1 (en) Applying machine learning to telematics data to predict accident outcomes
US20210232281A1 (en) Vehicular telematic systems and methods for generating interactive animated guided user interfaces
US20230048622A1 (en) Providing insurance discounts based upon usage of telematics data-based risk mitigation and prevention functionality
US20230417559A1 (en) Method, apparatus, and system for detecting road obstruction intensity for routing or mapping
WO2019127261A1 (en) Method for automatic driving of smart wheelchair, system and computer readable medium
US20220182792A1 (en) Systems for predicting and classifying location data based on machine learning
US11845447B2 (en) Method, apparatus, and system for detecting an on-boarding or off-boarding event based on mobile device sensor data
US20220329971A1 (en) Determining context categorizations based on audio samples
Aguilar-Rivera et al. Evaluation of AI-based Smart-Sensor Deployment at the Extreme Edge of a Software-Defined Network
JP2017107397A (en) Travel management system, driving recorder, and driving recorder program

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
TA01 Transfer of patent application right

Effective date of registration: 20241105

Address after: 518129 Huawei Headquarters Office Building 101, Wankecheng Community, Bantian Street, Longgang District, Shenzhen, Guangdong

Applicant after: Shenzhen Yinwang Intelligent Technology Co.,Ltd.

Country or region after: China

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Applicant before: HUAWEI TECHNOLOGIES Co.,Ltd.

Country or region before: China

TA01 Transfer of patent application right