WO2023151034A1 - Traffic condition detection method, readable medium and electronic device - Google Patents

Traffic condition detection method, readable medium and electronic device Download PDF

Info

Publication number
WO2023151034A1
WO2023151034A1 PCT/CN2022/076064 CN2022076064W WO2023151034A1 WO 2023151034 A1 WO2023151034 A1 WO 2023151034A1 CN 2022076064 W CN2022076064 W CN 2022076064W WO 2023151034 A1 WO2023151034 A1 WO 2023151034A1
Authority
WO
WIPO (PCT)
Prior art keywords
road section
target
collision
information
target road
Prior art date
Application number
PCT/CN2022/076064
Other languages
French (fr)
Chinese (zh)
Inventor
王矿磊
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN202280003400.0A priority Critical patent/CN116897380A/en
Priority to PCT/CN2022/076064 priority patent/WO2023151034A1/en
Publication of WO2023151034A1 publication Critical patent/WO2023151034A1/en

Links

Images

Classifications

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

Definitions

  • the present application relates to the field of automatic driving, and in particular to a road condition detection method, a readable medium and an electronic device.
  • the information on traffic accident-prone areas released by the navigation map is mainly based on the relevant information of traffic accidents on the road section collected by third-party data in the past period of time.
  • the information of traffic accident-prone areas is published on the navigation map.
  • the traffic accidents that occurred during this time interval have not been collected and analyzed, so the release cannot be guaranteed. Timeliness of information on traffic accident-prone areas.
  • Embodiments of the present application provide a road condition detection method, a readable medium, and an electronic device.
  • an embodiment of the present application provides a road condition detection method for an electronic device, 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, wherein the feature information includes motion state information and/or position 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 segment is determined.
  • the drive test equipment obtains the video stream collected in real time by the camera set on the target road section, performs target detection on each frame of image in the video stream, and determines each target object and the position of each target object in each frame of image.
  • the position of each target object in the frame image determines the feature information corresponding to each target object, and the feature information includes motion state information and/or position state information.
  • the motion state information may be information such as speed and acceleration
  • the position state information may be position coordinates in the world coordinate system.
  • the current road condition information of the target road section is determined, and then the current road condition information of the target road section is sent to vehicles within the preset range of the target road section .
  • the current road condition information of the target road segment may be the road risk level of the target road segment.
  • 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 to vehicles within the preset range of the target road section in real time.
  • vehicles within the preset range of the target road section can obtain the road condition information of the target road section in real time, ensuring the accuracy of the obtained road condition information of the target road section, thereby improving the accuracy of the control of the automatic driving vehicle and further improving the safety of the automatic driving vehicle and user experience.
  • the above method further includes: sending the current road condition information of the target road segment to vehicles within a preset range of the target road segment.
  • the foregoing method further includes: the target object includes at least one of the following: a vehicle, a person, and an obstacle.
  • the above method further includes: the current road condition information of the target road section includes a reasonable risk level. And, based on the current characteristic information of the target object and/or the historical characteristic information of the target object, determining the current traffic condition information of the target road segment includes: determining the current traffic flow of the target road segment based on the current characteristic information of the target object and the historical characteristic information of the target object and collision accident information, as well as historical traffic flow and collision accident information. 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, the current road risk level of the target road section is determined.
  • 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.
  • the above method further includes: 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 current road risk level of the target road section includes:
  • the collision risk index parameters of the target road section are determined, wherein the collision risk index parameters include at least one of the following: the severity of the collision accident, the Exposure, the controllability of collision accidents.
  • the current road risk level of the target road segment is determined.
  • the above method further includes: the current road risk level R dynamic is calculated by the following formula:
  • S represents the severity of the collision accident.
  • C represents the controllability of the collision accident, and E represents the exposure degree of the collision accident.
  • the above method further includes: 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 index parameters of the target road section includes:
  • the severity of the collision accident on the target road section is determined.
  • the above method further includes: 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.
  • the severity S of the collision accident is calculated by the following formula:
  • v r represents the average relative velocity of the colliding vehicle
  • a r represents the average relative acceleration of the colliding vehicle
  • N CC represents the number of vehicle-to-vehicle collisions
  • N CO represents the number of vehicle-to-obstacle collisions
  • N CP represents the number of vehicle-to-person collisions ⁇ 0 , ⁇ 1 , ⁇ 2 , ⁇ 3 , ⁇ 0 , and ⁇ 1 represent the weight parameters respectively
  • N death represents the number of fatalities in collision accidents on the current and historical target road sections
  • exp represents the exponential function.
  • the above method further includes: 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 index parameters of the target road section includes:
  • the controllability of the collision accident of the target road section is determined 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 sections.
  • the above method further includes: the controllability C of the collision accident of the target road section is calculated by the following formula:
  • a r represents the average relative acceleration of the colliding vehicle
  • v r represents the average relative velocity of the colliding vehicle
  • ⁇ 2 represents the weight parameter
  • N death represents the number of fatalities in the current and historical target road section collision accidents
  • exp represents the exponential function.
  • the above method further includes: 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 index parameters of the target road section includes:
  • the exposure degree of the collision accident of the current target road section is determined.
  • the above method further includes: the exposure E of the collision accident is calculated by the following formula:
  • N accident represents the number of collision accidents
  • N total represents the traffic flow
  • the above method further includes: the current road condition information of the target road section includes characteristic information of sensitive traffic participants.
  • determining the current road condition information of the target road section includes:
  • the 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: pedestrians, heavy trucks, bicycles, vans, etc. van.
  • the embodiment of the present application provides a readable medium, and instructions are stored on the readable medium, and when the instructions are executed on the electronic device, the electronic device executes the above-mentioned first aspect and various possible implementations of the first aspect. Any road condition detection method.
  • the embodiment of the present application provides an electronic device, including:
  • the memory is used to store instructions executed by one or more processors of the electronic device, and the processor is one of the processors of the electronic device, used to implement the above first aspect and various possible implementations of the first aspect Any road condition detection method.
  • an embodiment of the present application provides a computer program product, including computer programs/instructions, and when the computer programs/instructions are executed by a processor, any one of the above-mentioned first aspect and various possible implementations of the first aspect can be realized.
  • Road condition detection method any one of the above-mentioned first aspect and various possible implementations of the first aspect can be realized.
  • Fig. 1 is according to the embodiment of the present application, has shown a kind of scene diagram of road condition detection
  • Fig. 2 is an embodiment according to the present application, showing another scene diagram of road condition detection
  • FIG. 3 is a flow chart showing a road condition detection according to an embodiment of the present application.
  • FIG. 4 is a flow chart showing another road condition detection according to an embodiment of the present application.
  • FIG. 5 is a flow chart showing another road condition detection according to an embodiment of the present application.
  • Fig. 6 is a block diagram showing a consistent electronic device according to an embodiment of the present application.
  • Illustrative embodiments of the present application include, but are not limited to, road condition detection methods, readable media, and electronic devices.
  • the present application proposes a road condition detection method applied to electronic equipment.
  • the method includes: by 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 according to the continuous multi-frame image The location of each target object in the target object is determined, and the feature information corresponding to each target object is determined, and the feature information includes motion state information and/or position state information.
  • the motion state information may be information such as speed and acceleration
  • the position state information may be position coordinates in the world coordinate system.
  • the current road condition information of the target road section is determined, and then the current road condition information of the target road section is sent to vehicles within the preset range of the target road section .
  • the current road condition information of the target road segment may be the road risk level of the target road segment.
  • the above target objects may be various vehicles, such as bicycles, cars, heavy trucks and so on.
  • the vehicles within the preset range of the target road section may be vehicles on the target road section, or vehicles within a preset distance from the target road section.
  • the specific way of determining the current road condition information of the target road section can be as follows:
  • the current and historical traffic flow and collision accident information of the target road section can be determined, wherein the collision accident information can include the number of collision accidents. It can be understood that, for example, when the distance between the positions of the two vehicles is 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 according to the current moment and the traffic flow and the number of vehicle collision accidents in the past period of time. For example, when the traffic flow and the number of vehicle collision accidents at the current moment and in the past period of time are relatively large, the road risk level is relatively high; relatively low.
  • 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 to vehicles within the preset range of the target road section in real time.
  • vehicles within the preset range of the target road section can obtain the road condition information of the target road section in real time, ensuring the accuracy of the obtained road condition information of the target road section, thereby improving the accuracy of the control of the automatic driving vehicle and further improving the safety of the automatic driving vehicle and user experience.
  • the electronic device in the embodiment of the present application may specifically be a roadside device, a server, or a vehicle or other device, and this application does not specifically limit the type of the electronic device according to the actual application.
  • road condition detection method of the present application can be applied to automatic driving scenarios, manual driving scenarios, or unmanned driving scenarios. Not specifically limited.
  • seriousness can refer to the extent to which relevant people and property will suffer damage once the risk becomes a reality.
  • 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 the driver can take active measures to avoid damage when a risk occurs.
  • Fig. 1 shows a road condition detection scene diagram according to an embodiment of the present application.
  • the scene in Fig. 1 includes: road section A, road section B, road section C, and road section D.
  • the electronic device 100 may be a roadside device.
  • the roadside equipment 100 is arranged on the roadside of the A section.
  • 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.
  • the camera 200 - 1 , the camera 200 - 2 , and the camera 200 - 3 are used to collect video streams on road section A in real time, and send the video streams to the roadside device 100 .
  • the roadside device 100 is used to receive the video streams on the road section A collected by the cameras 200-1 to 200-3 in real time, and determine the target of the road section A according to the video streams on the road section A collected by the cameras 100 Object information, wherein, the target object information of the section A is used to describe the position of the vehicle 300-1, the collision vehicle 300-2, the collision vehicle 300-3, the pedestrian 300-4, the pedestrian 300-5, and the pedestrian 300-6 in the section A and/or exercise status.
  • the roadside device 100 is further configured to determine the road condition information of the A section based on the characteristic information of the target object of the A section, and send the A section's road condition information to vehicles within a preset range of the A section. Wherein, the vehicle that has received the road condition information can adjust the driving speed of the vehicle on the road section A according to the road condition information.
  • the vehicle 300-1 when the vehicle 300-1 enters the road section A, it receives the road risk level of the section A sent by the electronic device 100 in real time. According to the road risk level, the driving speed of the vehicle 300-1 on the section A can be adjusted from 100Km/h to 30Km/h.
  • the road condition information on the road section A can be used to assist the driver or the self-driving vehicle to adjust the driving speed of the vehicle on the road section A.
  • the vehicles within the preset range of A section receive the road condition information of A section, they can predetermine whether to adjust the driving of the vehicle on A section before the self-driving vehicle is in A section or before entering A section according to the A section's road condition information speed.
  • the accuracy of autonomous vehicle control is improved, further improving the safety and driving experience of autonomous vehicles.
  • the roadside device 10 may also obtain video streams collected by cameras of road sections B, C, and D, and generate road sections B, Road condition information of C road section and D road section.
  • the roadside equipment 100 is installed on the roadside of section A.
  • other roadside equipment can also be installed on the roadsides of section B, section C, and section D respectively.
  • Other roadside devices can also obtain the video streams collected by the cameras of road sections B, C, and D respectively, and generate road condition information for road sections B, C, and D based on the video streams collected for road sections B, C, and D.
  • the scene ratio of this application is not limited to the scene shown in FIG. 1 , and the specific location and quantity of roadside equipment installed on the roadside are not specifically limited in this application according to actual applications.
  • the roadside equipment 100 can be infrastructure equipment or fixed equipment or roadside unit (Road Side Unit, RSU) set on the roadside, or can be a vehicle-to-everything (V2X) set on the roadside ) Applied equipment. It can be understood that, according to practical applications, the present application does not limit the roadside equipment 100 .
  • RSU Road Side Unit
  • V2X vehicle-to-everything
  • Fig. 2 shows another road condition detection scene diagram according to an embodiment of the present application.
  • the electronic device 100 may be a remote server.
  • the server 100 is used to receive in real time the video streams on section A collected by cameras 200-1 to 200-3, and The video stream on the road segment determines the target object information on the A road segment, wherein the target object information on the A road segment is used to describe the position and/or motion state of the target object on the target road segment.
  • the server 100 is further configured to determine road condition information of the road section A based on the target object information of the road section A, wherein the road condition information of the road section A is used to adjust the driving speed of the vehicle on the road section A.
  • the server 100 is also used to send the road condition information of the road section A to the vehicles within the preset range of the road section A.
  • the server 100 is also used to receive the video streams captured by the cameras of the road sections B, C, and D, and generate the video streams of the road sections B, C, and D according to the video streams collected for the road sections B, C, and D. traffic information.
  • traffic information For specific content, refer to the content described in section A, and details will not be repeated here.
  • the server 100 can be a hardware server, and 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 practical applications, this embodiment of the present application does not limit this.
  • the camera 200-1, the camera 200-2, the camera 200-3, and the electronic device 100 may be communicatively connected through one or more networks.
  • the network may be a wired network or a wireless network
  • the wireless network may be a mobile cellular network (such as 5G, 4G, 3G or GPRS), or may be a Wireless-Fidelity (WIFI) network, of course It may also be other possible networks, which are not limited in this embodiment of the present application.
  • the cameras 200-1 to 200-3 send the video streams collected in real time on the section A to the electronic device 100 through the wired network.
  • the electronic device 100 and the vehicles within the preset range of the road segment A may be in communication connection through one or more wireless networks.
  • the wireless network can be a mobile cellular network (such as 5G, 4G, 3G or GPRS), or it can be a Wireless-Fidelity (Wireless-Fidelity, WIFI) network, and of course it can also be other possible networks.
  • the electronic device 100 sends the road condition information of the road section A to the vehicles within the preset range of the road section A through the wireless network.
  • the camera for collecting the video stream of the road section in the present application can be a 360-degree rotating camera (i.e., the camera 200-1), and can also be a long-range camera, a zoom camera, a close-up camera, a flash camera, a buckle camera, and a speed camera.
  • the electronic device 100 to which the road condition detection method of the present application is applied may be the roadside device in the scenario in FIG. 1, or the server in the scenario in FIG. 2, or a car machine, a laptop computer, a desktop computer, or a tablet computer , mobile phone, wearable device, head-mounted display, mobile email device, portable game console, portable music player, reader device, or other electronic device capable of accessing the Internet.
  • 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), or glasses, or as part of watches, bracelets, jewelry, or glasses, etc. According to practical applications, the embodiment of the present application does not limit the electronic device 100 .
  • FIG. 3 shows a flow chart of road condition detection.
  • the execution subject in FIG. 3 is the electronic device 100, as shown in FIG. 3 , specifically including:
  • the electronic device 100 acquires a video stream shot on the 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.
  • the target object may include at least one of the following: a colliding vehicle, a bicycle, a car, a heavy truck, and the like.
  • the target object may also include stagnant objects such as stagnant water and roadblocks. It can be understood that, according to practical applications, the present application does not limit the type of the target object of the target road segment.
  • the electronic device 100 can analyze the video stream according to the target detection algorithm based on the video of the road section A captured by the cameras 200-1 to 200-3 set on the road section A acquired in real time.
  • the target object detection is performed on each frame of the image, and the target object appearing in each frame of the video stream is obtained.
  • S302 Determine feature information corresponding to the target object according to the target object of the target road section acquired in real time.
  • the electronic device 100 determines the feature information corresponding to the target object according to the target object of the target road section acquired in real time.
  • the feature information corresponding to the target object may include: motion state information and position state information of the target object.
  • the position status information of the target object on the target road section may be the position coordinates of the target object on the target road section.
  • the motion state information of the target object on the target road section may be information such as speed and acceleration.
  • the electronic device 100 may also determine the motion state information of the target object through a speed detection algorithm.
  • 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 obtain the actual running distance ⁇ S of the target object by calculating the coordinates of the three-dimensional space for the position of the target object, and then calculate Get the instantaneous speed or average speed V or acceleration a of the target object.
  • the information for determining the target object will be described in detail below, and details will not be repeated here.
  • the above-mentioned target object in each frame of image may also include static objects such as stagnant water and roadblocks, then determine the position of the target object in each frame of image, determined according to the position of the target object in consecutive multiple frame images
  • the characteristic information of the target object and the location status information of the target object may be the location of water accumulation in the target road section, the location of roadblocks in the target road section, and the like.
  • the state information of the target object may be that the speed is 0 or the acceleration is 0, etc.
  • S303 Based on the characteristic information of the target object of the target road segment, determine the traffic condition information of the target road segment, and the traffic condition information of the target road segment is used to describe the road condition of the target road segment.
  • the road condition information of section A may also include sensitive traffic participants of section A, traffic flow of section A, water depth of section A, and roadblock location of section A wait.
  • the electronic device 100 determines the road condition information of the target road segment based on the target object information of the target road segment, and the road condition information of the target road segment is used to describe the road condition of the target road segment.
  • the vehicle can adjust the running state (for example, deceleration, parking, etc.) or running trajectory (for example, the running route of the automatic driving vehicle) of the autonomous vehicle in time before entering the target road segment or when the target road segment is in progress, Thereby ensuring the driving safety of self-driving vehicles.
  • the road condition information of the target road segment may be the road risk level of the target road segment.
  • the electronic device 100 can determine the colliding vehicle on the target road section at the current moment and the past period of time according to the relative position of the vehicle at the current moment and the past period of time, and according to the current moment and the relative position of the vehicle during the past period of time, the speed, Acceleration, etc. determine the road risk level of the target road section.
  • the electronic device 100 determines the collision accident information and the cumulative number of vehicles on the target road segment at the current moment and in the past preset time period based on the vehicle information of the target road segment acquired in real time.
  • the collision accident information includes at least one of the following: the cumulative number of vehicle collision accidents, the average relative speed of vehicle collision, the average relative acceleration of vehicle collision, etc., wherein the cumulative number of vehicle collision accidents includes: the number of vehicle-to-vehicle collision accidents , the number of car-obstacle collision accidents, the number of car-pedestrian collision accidents, etc.
  • the electronic device 100 determines the characteristic information of the colliding vehicle on the target road section at the current moment and within the past preset time period according to the target object information of the target road section acquired 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 colliding vehicle on the target road section at the current moment and the past preset time period, determine the collision accident information of the target road section at the current moment and the past preset time period.
  • the target object as the vehicle in FIG. 1 as an example, as shown in FIG. 1 , according to the position states of the vehicles 300-2 and 300-3, it is determined that the vehicle 300-2 collides with the vehicle 300-3. Therefore, the relative speed and relative acceleration of the vehicle 300-2 and the vehicle 300-3 at the time of the collision are obtained respectively.
  • the electronic device 100 determines the collision risk index parameters of the target road segment according to the collision accident information of the target road segment in the past preset time period, and determines the road risk level of the target road segment according to the collision risk index parameters of the target road segment.
  • the collision risk index parameter of the target road section includes at least one of the following: severity of collision accident, exposure degree of collision accident, and controllability of collision accident. The following describes in detail how the electronic device 100 determines the road risk level of the target road segment based on the target object information of the target road segment, and details are not repeated here.
  • the road condition information of the target road segment may be sensitive traffic participants of the target road segment.
  • the electronic device 100 screens out sensitive traffic participants of the target road segment based on the target object information of the target road segment, wherein the characteristic information of the sensitive traffic participant may include at least one of the following: the position of the sensitive traffic participant on the target road segment, driving speed and driving acceleration.
  • sensitive traffic participants may include, but are not limited to: pedestrians, bicycles, strollers, people in wheelchairs, and the like.
  • sensitive traffic participants include but are not limited to large trucks, vans, etc.
  • the road condition information of the target road segment may also be the traffic volume of the target road segment, the depth of water accumulation of the target road segment, the location of roadblocks of the target road segment, and the like. 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 running state (for example, deceleration, parking, etc.) or running track (for example, the running route of the self-driving vehicle) on the target road section, so as to ensure driving safety.
  • the vehicle's running state for example, deceleration, parking, etc.
  • running track for example, the running route of the self-driving vehicle
  • S304 Sending road condition information to vehicles within the preset range of the target road section.
  • the electronic device 100 sends assisted driving information to vehicles within the preset range of the target road section, and the vehicle can predetermine Whether to adjust the driving speed of the vehicle on the target road section.
  • the accuracy of autonomous vehicle control is improved, further improving the safety and driving experience of autonomous vehicles.
  • the electronic device 100 determines the road condition information of the target road section according to the target object information of the target road section acquired in real time, and sends the road condition information of the target road section to the preset range of the target road section in real time.
  • the road condition information of the target road section may include information such as road risk level, sensitive traffic participants, traffic flow, water depth, and roadblock location.
  • 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 self-driving vehicle to adjust the driving speed of the vehicle on the target road section.
  • Vehicles within the preset range of the target road segment can obtain the road condition information of the target road segment in real time, and the driver or the self-driving vehicle can know the road segment information of the target road segment in real time according to the road condition information of the target road segment, so that the vehicle is within the target road segment or enters the target road segment.
  • the road section it is determined in advance whether to adjust the driving speed of the self-driving vehicle on the target road section. Improving the accuracy of autonomous vehicle control further improves the safety and driving experience of autonomous vehicles.
  • the road condition information of the target road section may be the road risk level. The following describes in detail in conjunction with FIG. The grade is sent to vehicles within the preset range of the target road segment.
  • FIG. 4 shows a flowchart of another road condition detection method.
  • the execution subject of the process in FIG. 4 is the electronic device 100, as shown in FIG. 4, specifically including:
  • S401 Obtain in real time a video stream collected by at least one camera on section A.
  • the electronic device 100 obtains video streams related to road section A collected by cameras 200-1 to 200-3 on road section A, and may also obtain video streams related to road section B collected by three cameras on road section B.
  • the video stream may also obtain video streams related to road segment C captured by two cameras on road segment C, and may also acquire video streams related to road segment C collected by two cameras on road segment D.
  • S402 Determine a real-time target object and feature information corresponding to the target object on the road section A based on the video stream of the section A acquired in real time.
  • the electronic device 100 determines the feature information corresponding to the target object according to the target object of the section A acquired in real time.
  • the feature information corresponding to the target object may include: motion state information and position state information of the target object.
  • the position state information of the target object on the A road segment may be the position coordinates of the target object on the A road segment.
  • the motion state information of the target object on section A may be information such as speed and acceleration.
  • the electronic device 100 performs target object detection on each frame image of the video stream based on the obtained video stream of the road section A collected by the camera set on the road section A, and obtains all objects appearing in the video stream object.
  • target object detection may be performed on each frame image 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 FIG. 1, if the target object is set to be a car, it is detected by 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. .
  • the target object is set as a car and a person, it is detected by the target detection algorithm that there are six target objects on road section A, namely, vehicle 300-1, vehicle 300-2, vehicle 300-3, pedestrian 300-4, pedestrian 300-5, pedestrian 300-6.
  • the target object can also be set as a colliding vehicle, a heavy truck, a van, or waterlogging and roadblocks on a road section. It can be understood that, according to practical applications, the present application does not limit the types of target objects on the road.
  • the target detection algorithm is mainly used for traversing each frame image of the input video stream, classifying target objects and non-target objects in each frame image, and determining the position coordinates of the target object in each frame image.
  • a faster-region convolutional neural network architecture faster-region convolutional neural networks, Faster RCNN
  • a cascade-region convolutional neural network architecture cascade-region convolutional neural networks, cascade RCNN
  • Algorithm Algorithm
  • a target detection (Single-Shot MultiBox Detector, SSD) algorithm any target detection algorithm in the real-time fast target detection (You Only Look Once, YOLO) algorithm, etc. Detect, get all target objects appearing in the video stream.
  • the electronic device 100 may also determine the speed, acceleration, etc. of the target object through a speed detection algorithm.
  • the speed detection algorithm is used to determine the running time ⁇ t of the target object according to the frame rate of the camera that collects the video stream, and obtain the coordinates of the three-dimensional space through the positioning of the target object, so as 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.
  • S403 According to the characteristic information corresponding to the real-time target object of the road section A and the characteristic information corresponding to the target object of the road section A in the past preset time period, determine the collision accident information of the road section A in the past preset time period.
  • the electronic device 100 determines, according to the feature information corresponding to the real-time target object of the road segment A and the feature information corresponding to the target object of the road segment A in the past preset time period, within the preset time period in the past.
  • Accumulated quantity of traffic flow (i.e. traffic flow) and collision accident information the collision accident information of the section A can include at least one of the following: the cumulative quantity of vehicle collision accidents, the average relative speed when the vehicle collides, the average relative speed when the vehicle collides acceleration.
  • the cumulative number of vehicle collision accidents includes: 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.
  • the preset time period can be within the past year. For example, if the current time is 13:00 on December 24, 2021, the past year will be from 13:00 on December 24, 2020 to December 2021. At 13 o'clock on the 24th.
  • the electronic device 100 determines the collision accident information of the road section A in the past preset time period according to the characteristic information corresponding to the real-time target object of the road section A and the characteristic information corresponding to the target object of the road section A in the past preset time period. . For example, it is determined that in the past year, the number of collision accidents on section A totaled 10, of which the number of car-vehicle collision accidents was 5 cases, the number of car-obstacle collision accidents was 3 cases, and the number of car-pedestrian collision accidents was 3. from 2. Then the average relative speed when the vehicle collides is: the average relative speed when the vehicles collide in 10 collision accidents.
  • the average relative acceleration at the time of vehicle collision is: the average relative acceleration at the time of vehicle collision of 10 collision accidents.
  • the relative velocity at the time of vehicle collision is the velocity of vehicle E relative to vehicle F.
  • the relative acceleration at the time of vehicle collision is the acceleration of vehicle E relative to vehicle F.
  • the relative speed of the vehicle at the time of collision is the speed of vehicle X
  • the relative acceleration of the vehicle at the time of collision is the acceleration of vehicle X.
  • the relative speed of the vehicle at the time of collision is the speed of the vehicle M relative to the pedestrian N.
  • the relative acceleration of the vehicle M during the collision is the acceleration of the vehicle M relative to the pedestrian N.
  • the collision risk index parameters of the road section A include at least one of the following: the severity of the collision accident, the exposure of the collision accident, Controllability of collision accidents.
  • the collision accident information of section A includes 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, Number of car-pedestrian collisions.
  • the electronic device 100 may determine the number of collision accidents on road section A according to the average relative speed at the time of vehicle collision, the average relative acceleration at the time of vehicle collision, 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.
  • the electronic device 100 determines the severity S of the collision accident on the road section A in the past preset time period based on the collision accident information on the road section A in the past preset time period can be calculated by formula (1) :
  • v r represents the average relative velocity of vehicles on road section A when they collide within the preset time period
  • a r represents the average relative acceleration of vehicles on road section A during the preset time period when they collide
  • N CC represents the expected
  • N CO represents the number of vehicle-to-obstacle collision accidents on road section A within the preset time period
  • ⁇ 0 , ⁇ 1 , ⁇ 2 , ⁇ 3 , ⁇ 0 , ⁇ 1 represents the weight parameter.
  • N death represents the number of fatalities in collision accidents on section A within a preset time period.
  • exp represents an exponential function. The * in this article means to multiply.
  • the collision accident information on road section A includes the average relative speed when the vehicle collides, and the average relative acceleration when the vehicle collides.
  • the electronic device 100 may determine, according to the average relative speed and the average relative acceleration of the collision of the vehicle on the road section A in the past preset time period, whether the collision accident on the road section A is controllable in the past preset time period.
  • the controllability C of the collision accident on road section A can be calculated by the following formula (2):
  • a r represents the relative acceleration of the collision accident on road section A in the past preset time period
  • v r represents the relative velocity of the collision accident on road section A in the past preset time period
  • ⁇ 2 Indicates the weight parameter.
  • N death represents the number of fatalities in collision accidents.
  • exp represents an exponential function.
  • the collision accident information of section A includes the cumulative number of vehicles passing and the cumulative number of vehicle collision accidents.
  • the electronic device 100 may determine the exposure of collision accidents on road section A in the past preset time period according to the cumulative number of vehicles passing on road section A and the cumulative number of vehicle collision accidents in the past preset time period. Specifically, during the preset time period in the past, the exposure E of the collision accident on road section A can be calculated by the following formula (3):
  • N accident represents the cumulative number of vehicle collision accidents on road section A in the past preset time period
  • N total represents the cumulative number of vehicle traffic on road section A in the past preset time period
  • S405 Determine the road risk level of the road section A based on the collision risk index parameters of the road section A in the past preset time.
  • the electronic device 100 determines the road risk index of the target road segment based on the collision risk index parameters of the target road segment within a preset time in the past.
  • the electronic device 100 may determine the road risk level of the section A according to the value range of the road risk index corresponding to the pre-divided road risk level.
  • the road risk level of section A includes four levels, namely 1, 2, 3, and 4, wherein 1 is the lowest level and 4 is the highest level.
  • the value range of the road risk index corresponding to the pre-divided road risk level 1 is [a, b]
  • the value range of the road risk index corresponding to the pre-divided road risk level 2 is [c, d]
  • the pre-divided road The value range of the road risk index corresponding to risk level 3 is [e, f]
  • the value range of the road risk index corresponding to the pre-divided road risk level 4 is [g, h].
  • the electronic device 100 determines the road risk index of the target road segment based on the collision risk index parameters of the target road segment within a preset time in the past.
  • the road risk index R dynamic of the target road section can be calculated by formula (4):
  • R dynamic S*E*C (4)
  • S represents the severity of collision accidents on road section A in the past preset time period.
  • C represents the controllability of collision accidents on road section A in the past preset time period.
  • E represents the exposure of collision accidents on section A in the past preset time period.
  • S406 Sending the road risk level of the section A to the vehicles within the preset range of the section A.
  • the vehicles within the preset range of the road section A may be vehicles on the road section A, or vehicles within a preset distance from the road section A.
  • the preset distance may be 1 kilometer
  • vehicles within the preset range of section A may adjust their vehicle speeds according to the received road risk level of section A.
  • the vehicle can automatically reduce the speed of the vehicle when it is a preset distance away from the section A or enters the section A.
  • the road risk level of section A received by the vehicle is 1, the vehicle does not need to adjust the speed, that is, maintains the original speed to pass the section A.
  • the electronic device 100 can obtain the video stream collected in real time by at least one camera on the road section A, and analyze the video stream collected in real time, and obtain the target object information of the road section A in real time. Object information to determine the road risk level of the A section. And the electronic device 100 can also update the road risk level of the A road section in real time, so that vehicles within the preset range of the A road section can know the road risk level of the A road section in real time, so that when the self-driving vehicle is in the A road section or enters the target Before the road section, according to the real-time understanding of the road risk level of section A, it is pre-determined whether to adjust the driving speed of the self-driving vehicle on the target road section. Improving the accuracy of autonomous vehicle control further improves the safety and driving experience of autonomous vehicles.
  • the road 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 according to the target object of the target road section and the characteristic information of the target object obtained in real time in conjunction with FIG. Participants, and send sensitive traffic participants to vehicles within the preset range of the target road segment.
  • FIG. 5 shows a flow chart of another road condition detection method.
  • the execution subject of the process in FIG. 5 is the electronic device 100, as shown in FIG. 5, specifically including:
  • step S501 Obtain in real time the video stream captured by at least one camera on the target road section. For details, refer to step S401, which will not be repeated here.
  • step S502 Based on the video stream of the target road section acquired in real time, determine the target object of the target road section and the feature information corresponding to the target object. For details, refer to step S402, which will not be repeated here.
  • S503 According to the type of the target object, select the sensitive traffic participants of the target road segment from the target objects of the target road segment.
  • the target object of the target road section may be a vehicle traveling on the target road section, or a pedestrian or the like. Specifically, it can be cars, trucks, vans, bicycles, pedestrians, baby carriages, etc.
  • sensitive traffic participants are target objects that may affect the speed of vehicles on the road section.
  • sensitive traffic participants include but are not limited to: pedestrians, bicycles, baby carriages, people in wheelchairs, etc.
  • sensitive traffic participants include but are not limited to large trucks, vans, etc.
  • the electronic device 100 obtains characteristic information corresponding to sensitive traffic participants based on filtering sensitive traffic participants of the target road segment from the target objects of the target road segment according to the type of the target object.
  • the characteristic information of the sensitive traffic participants of the target road section includes the position, driving speed and driving acceleration of the sensitive traffic participants in the target road section.
  • the sensitive traffic participant p n on section A can be expressed as (x n , y n , v n , a n ), where (x n , y n ) means that the sensitive traffic participant p n is on A
  • the position coordinates on the road section 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.
  • road section A is an urban road, and sensitive traffic participants in road section A may include pedestrian 300-4, pedestrian 300-5, and pedestrian 300-6.
  • the position information of the pedestrian 300-4 can be expressed as (x 1 , y 1 , v 1 , a 1 ), the position information of the 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 ).
  • 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 acquired 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 screened out from the location status of the target object in the target road section, the sensitive traffic participants' position coordinates included in the sensitive traffic participants are also generated based on the own coordinate system.
  • the electronic device 100 needs to convert the position coordinates of the sensitive traffic participants generated based on its own coordinate system into the position coordinates of the sensitive traffic participants generated based on the world coordinate system, and then convert the position coordinates of the sensitive traffic participants generated based on the world coordinate system to The location coordinates of sensitive traffic participants are sent to the vehicle on the target road segment.
  • the electronic device 100 can generate the traffic based on the self-coordinate system based on the self-coordinate system-world coordinate system conversion matrix, the reference coordinates of the self-coordinate system, and the position coordinates of sensitive traffic participants generated based on the self-coordinate system.
  • the position coordinates of the sensitive traffic participants are transformed into the position coordinates of the sensitive traffic participants generated based on the world coordinate system.
  • the location coordinates L of sensitive traffic participants generated based on the world coordinate system can be expressed by the following formula (5):
  • M represents the conversion relationship matrix between the self-coordinate system and the world coordinate system
  • N represents the reference coordinates of the self-coordinate system
  • P represents the position coordinates of sensitive traffic participants generated based on the self-coordinate system.
  • 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.
  • the vehicle speed can be adjusted according to the received positions and speeds of sensitive traffic participants in the target road segment.
  • the vehicle when the vehicle receives three sensitive traffic participants (i.e., pedestrian 300-4, pedestrian 300-5, and pedestrian 300-6) in section A, the vehicle automatically drives It can automatically reduce the speed of the self-driving vehicle when it does not enter the A road section or enters the A road section.
  • the electronic device 100 can update the sensitive traffic participants of the target road segment in real time, and can send the sensitive traffic participants of the target road segment to vehicles within the preset range of the target road segment in real time.
  • the vehicles within the preset range of the target road segment can know the sensitive traffic participants of the target road segment in real time, and can know the road segment information of the target road segment in real time according to the sensitive traffic participants of the target road segment, so that the automatic driving vehicle can enter or enter the target road segment.
  • Fig. 6 is a structural block diagram of an electronic device 100 according to an embodiment of the present application, and Fig. 6 schematically shows an example electronic device 100 according to multiple embodiments.
  • the electronic device 100 may include one or more processors 1404, a system control logic 1408 connected to at least one of the processors 1404, a system memory 1412 connected to the system control logic 1408, a system memory 1412 connected to the 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 .
  • NVM non-volatile memory
  • 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 (eg, graphics processors, application processors, baseband processors, etc.). In an embodiment where the electronic device 100 adopts an eNB (Evolved Node B, enhanced base station) or a RAN (Radio Access Network, radio access network) controller, the processor 1404 may be configured to execute various consistent embodiments, for example , one or more of the multiple embodiments shown in FIG. 3 or FIG. 4 or FIG. 5 . For example, processing 1404 may be used to execute the above road condition-based detection method. For example, processing 1404 may be used to acquire video streams captured by at least one camera on road section A, determine target object information, and may also be used to target object information based on the target road section, Determine the road condition information of the target road section, etc.
  • eNB evolved Node B, enhanced base station
  • RAN Radio Access Network, radio access network
  • 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 .
  • system control logic 1408 may include one or more memory controllers to provide an interface to system memory 1412 .
  • System memory 1412 can be used for loading and storing data and/or instructions.
  • Memory 1412 of system 1400 may in some embodiments include any suitable volatile memory, such as a suitable dynamic random access memory (DRAM).
  • DRAM dynamic random access memory
  • NVM/memory 1416 may include one or more tangible, non-transitory computer-readable media for storing data and/or instructions.
  • 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, hard disk drive), CD (Compact Disc , CD) drive, DVD (Digital Versatile Disc, Digital Versatile Disc) drive at least one.
  • 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, but not necessarily part of, the device. For example, NVM/storage 1416 may be accessed over a network via network interface 1420 .
  • system memory 1412 and NVM/storage 1416 may include, respectively, temporary and permanent copies of instructions 1424 .
  • the instructions 1424 may include: instructions that cause the electronic device 100 to implement the method shown in FIG. 1 when executed by at least one of the processors 1404 .
  • instructions 1424 , hardware, firmware and/or software components thereof may additionally/alternatively reside in system control logic 1408 , network interface 1420 and/or processor 1404 .
  • the network interface 1420 may include a transceiver for providing a radio interface for the electronic device 100 to communicate with any other suitable devices (such as front-end modules, antennas, etc.) through one or more networks.
  • the network interface 1420 may be integrated with other components of the electronic device 100 .
  • network interface 1420 may be integrated into at least one of processor 1404, system memory 1412, NVM/storage 1416, and a firmware device (not shown) with instructions, when at least one of processor 1404 executes the When instructing, the electronic device 100 implements the methods shown in FIG. 3 to FIG. 5 .
  • 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.
  • network interface 1420 may be a network adapter, a wireless network adapter, a telephone modem and/or a wireless modem.
  • 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 chip (SoC).
  • SiP system in package
  • SoC system on chip
  • the electronic device 100 may further include: an input/output (I/O) device 1432 .
  • the I/O device 1432 may include a user interface, enabling the user to interact with the electronic device 100 ; the design of the peripheral component interface enables the peripheral components to also interact with the electronic device 100 .
  • 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 .
  • 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 a video camera), a flashlight (e.g., LED flash light) and keyboard.
  • a display e.g., a liquid crystal display, a touch screen display, etc.
  • a speaker e.g., a microphone
  • one or more cameras e.g., a still image camera and/or a video camera
  • a flashlight e.g., LED flash light
  • peripheral component interfaces may include, but are not limited to, non-volatile memory ports, audio jacks, and power interfaces.
  • 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, such as global positioning system (GPS) satellites.
  • GPS global positioning system
  • the structure shown in FIG. 6 does not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components.
  • the illustrated components can be realized in hardware, software or a combination of software and hardware.
  • 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 executed on a programmable system comprising 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.
  • Program code can be applied to input instructions to perform the functions described herein and to generate output information.
  • the output information may be applied to one or more output devices in known manner.
  • a processing system includes any system having a processor such as, for example, a digital signal processor (DSP), microcontroller, application specific integrated circuit (ASIC), or microprocessor.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • the program code can be implemented in a high-level procedural language or an object-oriented programming language to communicate with the processing system.
  • Program code can also be implemented in assembly or machine language, if desired.
  • the mechanisms described in this application are not limited in scope to any particular programming language. In either case, the language may be a compiled or interpreted language.
  • the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof.
  • the disclosed embodiments can also be implemented as instructions carried by or stored on one or more transitory or non-transitory machine-readable (e.g., computer-readable) storage media, which can be executed by one or more processors read and execute.
  • instructions may be distributed over a network or via other computer-readable media.
  • a machine-readable medium 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 discs, read-only memory (ROM), random-access memory (RAM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), magnetic or optical cards, flash memory, or A tangible, machine-readable memory used to transmit information (eg, carrier waves, infrared signals, digital signals, etc.) by electrical, optical, acoustic, or other forms of propagating signals using the Internet.
  • a machine-readable medium includes any type of machine-readable medium suitable for storing or transmitting electronic instructions or information in a form readable by a machine (eg, a computer).
  • each unit/module mentioned in each device embodiment of this application is a logical unit/module.
  • a logical unit/module can be a physical unit/module, or a physical unit/module.
  • a part of the module can also be realized with a combination of multiple physical units/modules, the physical implementation of these logical units/modules is not the most important, the combination of functions realized by these logical units/modules is the solution The key to the technical issues raised.
  • the above-mentioned device embodiments of this application do not introduce units/modules that are not closely related to solving the technical problems proposed by this application, which does not mean that the above-mentioned device embodiments do not exist other units/modules.

Landscapes

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

Abstract

A traffic condition detection method, a readable medium, and an electronic device. The traffic condition detection method is used for an electronic device and comprises: acquiring a video stream acquired by a camera on a target road section; according to the video stream, determining current feature information of a target object on the target road section, the feature information comprising motion state information and/or position state information; and on the basis of the current feature information of the target object and/or historical feature information of the target object, determining current traffic condition information of the target road section; and sending the current traffic condition information of the target road section to vehicles within a preset range of the target road section. Therefore, the vehicles in the preset range of the target road section are enabled to obtain the traffic condition information of the target road section in real time, and the accuracy of said traffic condition information, of the target road section, received by autonomous vehicles is improved, thereby increasing the accuracy of control of autonomous vehicles, and further improving safety and the user experience of autonomous vehicles.

Description

路况检测方法、可读介质以及电子设备Road condition detection method, readable medium and electronic device 技术领域technical field
本申请涉及自动驾驶领域,尤其涉及一种路况检测方法、可读介质以及电子设备。The present application relates to the field of automatic 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 field of transportation. There are many studies on road traffic safety at home and abroad. At present, for accident-prone areas where road accidents are prone to occur, traffic warning signs are set up on accident-prone road sections, or marked on the navigation map of the car to remind drivers of this road section. Belongs to accident-prone section, need to drive carefully. However, the implementation of these two modes all requires a period of time after a traffic accident occurs on the road before it can be known by the driver. This will cause the self-driving vehicle to be unable to obtain the information of the most recent traffic accident-prone areas in the first place, thereby affecting the driving safety and user experience of the self-driving vehicle.
例如,导航地图发布的交通事故多发地段的信息,主要是根据第三方数据收集的过去一段时间内,路段上交通事故的相关信息,通过人工分析得出是否是交通事故多发地段的结果,然后将交通事故多发地段的信息发布在导航地图上。但是,从对上述交通事故的相关信息进行收集和分析到发布到导航地图之间存在较长的时间间隔,在这段时间间隔内发生的交通事故并没有进行收集和分析,因此,无法保证发布的交通事故多发地段的信息的时效性。For example, the information on traffic accident-prone areas released by the navigation map is mainly based on the relevant information of traffic accidents on the road section collected by third-party data in the past period of time. The information of traffic accident-prone areas is published 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 the release to the navigation map. The traffic accidents that occurred during this time interval have not been collected and analyzed, so the release cannot be guaranteed. Timeliness of information on traffic accident-prone areas.
发明内容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, an embodiment of the present application provides a road condition detection method for an electronic device, 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, wherein the feature information includes motion state information and/or position 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 segment is determined.
例如,路测设备通过获取目标路段上设置的摄像头实时采集的视频流,对视频流中的每帧图像进行目标检测,确定每帧图像中的各目标对象及各目标对象的位置,根据连续多帧图像中各目标对象所在的位置,确定各目标对象对应的特征信息,特征信息包括运动状态信息和/或位置状态信息等。其中,运动状态信息可以是速度、加速度等信息,位置状态信息可以是世界坐标系下的位置坐标等。根据该路段当前各目标对象的特征信息,以及该路段历史的各目标对象的特征信息,确定目标路段的当前路况信息,然后将目标路段的当前路况信息发送给在目标路段预设范围内的车辆。其中,目标路段的当前路况信息可以是目标路段的道路风险等级。For example, the drive test equipment obtains the video stream collected in real time by the camera set on the target road section, performs target detection on each frame of image in the video stream, and determines each target object and the position of each target object in each frame of image. The position of each target object in the frame image determines the feature information corresponding to each target object, and the feature information includes motion state information and/or position state information. Wherein, the motion state information may be information such as speed and acceleration, and the position state information may be position coordinates in the world coordinate system. According to the characteristic information of the current target objects of the road section and the characteristic information of the historical target objects of the road section, the current road condition information of the target road section is determined, and then the current road condition information of the target road section is sent to vehicles within the preset range of the target road section . Wherein, the current road condition information of the target road segment may be the road risk level of the target road segment.
可以理解,根据本申请的路况检测方法,电子设备可以实时更新目标路段的路况信息, 并且可以实时将目标路段的路况信息发送给在目标路段预设范围内的车辆。从而使得在目标路段预设范围内的车辆实时获知目标路段的路况信息,保证了获取的目标路段的路况信息的准确性,从而提高自动驾驶车辆控制的准确性,进一步提高了自动驾驶车辆的安全性和用户体验。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 to vehicles within the preset range of the target road section in real time. In this way, vehicles within the preset range of the target road section can obtain the road condition information of the target road section in real time, ensuring the accuracy of the obtained road condition information of the target road section, thereby improving the accuracy of the control of the automatic driving vehicle and further improving the safety of the automatic driving vehicle 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 segment to vehicles within a preset range of the target road segment.
在上述第一方面的一种可能的实现中,上述方法还包括:目标对象包括以下至少一个:车辆、人、障碍物。In a possible implementation of the foregoing first aspect, the foregoing 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 reasonable risk level. And, based on the current characteristic information of the target object and/or the historical characteristic information of the target object, determining the current traffic condition information of the target road segment includes: determining the current traffic flow of the target road segment based on the current characteristic information of the target object and the historical characteristic information of the target object and collision accident information, as well as historical traffic flow and collision accident information. 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, 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 flow and collision accident information of the target road section, as well as 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 flow and collision accident information of the target road section, as well as the historical traffic flow and collision accident information, the collision risk index parameters of the target road section are determined, wherein the collision risk index parameters include at least one of the following: the severity of the collision accident, the Exposure, the controllability of collision accidents.
基于目标路段的碰撞风险指标参数,确定目标路段的当前道路风险等级。Based on the collision risk index parameters of the target road segment, the current road risk level of the target road segment 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 accident. C represents the controllability of the collision accident, and E represents the exposure degree of the collision accident.
在上述第一方面的一种可能的实现中,上述方法还包括:基于目标路段的当前车流量和碰撞事故信息、以及历史车流量和碰撞事故信息,确定目标路段的碰撞风险指标参数包括: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, as well as the historical traffic flow and collision accident information, determining the collision risk index parameters of the target road section includes:
基于当前以及历史目标路段的碰撞事故的数量、碰撞车辆的平均相对加速度、碰撞车辆的平均相对速度,确定目标路段的碰撞事故的严重度。Based on the number of current and historical collision accidents on the 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 on 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 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 velocity of the colliding vehicle, a r represents the average relative acceleration of the colliding vehicle, N CC represents the number of vehicle-to-vehicle collisions, N CO represents the number of vehicle-to-obstacle collisions, and N CP represents the number of vehicle-to-person collisions α 0 , α 1 , α 2 , α 3 , β 0 , and β 1 represent the weight parameters respectively, N death represents the number of fatalities in collision accidents on 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, as well as the historical traffic flow and collision accident information, determining the collision risk index parameters of the target road section includes:
基于当前以及历史目标路段的碰撞车辆的平均相对加速度以及碰撞车辆的平均相对速度,确定目标路段的碰撞事故的可控度。The controllability of the collision accident of the target road section is determined 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 sections.
在上述第一方面的一种可能的实现中,上述方法还包括:目标路段的碰撞事故的可控度C通过以下公式计算得到:In a possible implementation of the above first aspect, the above method further includes: the controllability C of the collision accident of the target road section is calculated by the following formula:
Figure PCTCN2022076064-appb-000001
Figure PCTCN2022076064-appb-000001
其中,a r表示碰撞车辆的平均相对加速度,v r表示碰撞车辆的平均相对速度,β 2表示权重参数,N death表示当前以及历史目标路段的碰撞事故的死亡数量,exp表示指数函数。 Among them, a r represents the average relative acceleration of the colliding vehicle, v r represents the average relative velocity of the colliding vehicle, β 2 represents the weight parameter, N death represents the number of fatalities in the current and historical target road section collision accidents, 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, as well as the historical traffic flow and collision accident information, determining the collision risk index parameters of the target road section includes:
基于当前以及历史目标路段的车流量以及碰撞事故的数量,确定当前目标路段的碰撞事故的暴露度。Based on the current and historical traffic flow of the target road section and the number of collision accidents, the exposure degree of the collision accident 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:
Figure PCTCN2022076064-appb-000002
Figure PCTCN2022076064-appb-000002
其中,N accident表示碰撞事故的数量,N total表示车流量。 Among them, N accident represents the number of collision accidents, and N total represents the traffic flow.
在上述第一方面的一种可能的实现中,上述方法还包括:目标路段的当前路况信息包括敏感交通参与者的特征信息。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 characteristic information of sensitive traffic participants.
基于目标对象的当前特征信息和/或目标对象的历史特征信息,确定目标路段的当前路况信息包括:Based on the current characteristic information of the target object and/or the historical characteristic information of the target object, determining the current road condition information of the target road section includes:
基于目标对象的当前特征信息,从目标对象中筛选出敏感交通参与者,并确定敏感交通参与者的当前特征信息,其中,敏感交通参与者包括以下至少一种:行人、重型卡车、自行车、厢式货车。Based on the current characteristic information of the target object, the 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: pedestrians, heavy trucks, bicycles, vans, etc. van.
第二方面,本申请实施例提供了一种可读介质,可读介质上存储有指令,该指令 在电子设备上执行时使电子设备执行上述第一方面以及第一方面的各种可能实现中的任意一种路况检测方法。In the second aspect, the embodiment of the present application provides a readable medium, and instructions are stored on the readable medium, and when the instructions are executed on the electronic device, the electronic device executes the above-mentioned first aspect and various possible implementations of the first aspect. Any road condition detection method.
第三方面,本申请实施例提供了一种电子设备,包括:In a third aspect, the embodiment of the present application provides an electronic device, including:
存储器,用于存储由电子设备的一个或多个处理器执行的指令,以及处理器,是电子设备的处理器之一,用于执行上述第一方面以及第一方面的各种可能实现中的任意一种路况检测方法。The memory is used to store instructions executed by one or more processors of the electronic device, and the processor is one of the processors of the electronic device, used to implement the above first aspect and various possible implementations of the first aspect Any road condition detection method.
第四方面,本申请实施例提供一种计算机程序产品,包括计算机程序/指令,该计算机程序/指令被处理器执行时实现上述第一方面以及第一方面的各种可能实现中的任意一种路况检测方法。In a fourth aspect, an embodiment of the present application provides a computer program product, including computer programs/instructions, and when the computer programs/instructions are executed by a processor, any one of the above-mentioned first aspect and various possible implementations of the first aspect can be realized. Road condition detection method.
附图说明Description of drawings
图1为根据本申请的实施例,示出了一种路况检测场景图;Fig. 1 is according to the embodiment of the present application, has shown a kind of scene diagram of road condition detection;
图2为根据本申请的实施例,示出了另一种路况检测场景图;Fig. 2 is an embodiment according to the present application, showing another scene diagram of road condition detection;
图3为根据本申请的实施例,示出了一种路况检测的流程图;FIG. 3 is a flow chart showing a road condition detection according to an embodiment of the present application;
图4为根据本申请的实施例,示出了另一种路况检测的流程图;FIG. 4 is a flow chart showing another road condition detection according to an embodiment of the present application;
图5为根据本申请的实施例,示出了另一种路况检测的流程图;FIG. 5 is a flow chart showing another road condition detection according to an embodiment of the present application;
图6为根据本申请的实施例,示出了一致电子设备的结构框图。Fig. 6 is a block diagram showing 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, the present application proposes a road condition detection method applied to electronic equipment. The method includes: by 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 according to the continuous multi-frame image The location of each target object in the target object is determined, and the feature information corresponding to each target object is determined, and the feature information includes motion state information and/or position state information. Wherein, the motion state information may be information such as speed and acceleration, and the position state information may be position coordinates in the world coordinate system. According to the characteristic information of the current target objects of the road section and the characteristic information of the historical target objects of the road section, the current road condition information of the target road section is determined, and then the current road condition information of the target road section is sent to vehicles within the preset range of the target road section . Wherein, the current road condition information of the target road segment may be the road risk level of the target road segment.
可以理解,上述目标对象可以为各种车辆,例如自行车、轿车、重型卡车等。在目标路段预设范围内的车辆可以是目标路段上的车辆,也可以是距离目标路段不超过预设距离的车辆。It can be understood that the above target objects may be various vehicles, such as bicycles, cars, heavy trucks and so on. The vehicles within the preset range of the target road section may be vehicles on the target road section, or vehicles within a preset distance from the target road section.
其中,根据该路段当前各目标对象(各车辆)的特征信息,以及该路段历史的各目标对象的特征信息,确定目标路段的当前路况信息(以道路风险等级为例)的具体方式可以为:Wherein, according to the feature information of each current target object (each vehicle) of the road section, and the feature information of each target object of the history of the road section, the specific way of determining the current road condition information of the target road section (taking the road risk level as an example) can be as follows:
根据该路段当前各车辆的特征信息,以及该路段历史的各车辆的位置,可以确定当前 以及历史内的目标路段的车流量以及碰撞事故信息,其中,碰撞事故信息可以包括碰撞事故的数量。可以理解,例如,当两个车辆的位置间隔在一定范围内,则可以确定该两个车辆发生了碰撞。根据当前时刻以及过去一段时间内的车流量以及车辆碰撞事故的数量即可确定目标路段的道路风险等级。例如,当前时刻以及过去一段时间内的车流量以及车辆碰撞事故的数量比较大时,道路风险等级比较高;当前时刻以及过去一段时间内的车流量以及车辆碰撞事故的数量比较小时,道路风险等级比较低。According to the current characteristic information of each vehicle in the road section and the historical position of each vehicle in the road section, the current and historical traffic flow and collision accident information of the target road section can be determined, wherein the collision accident information can include the number of collision accidents. It can be understood that, for example, when the distance between the positions of the two vehicles is 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 according to the current moment and the traffic flow and the number of vehicle collision accidents in the past period of time. For example, when the traffic flow and the number of vehicle collision accidents at the current moment and in the past period of time are relatively large, the road risk level is relatively high; 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 to vehicles within the preset range of the target road section in real time. In this way, vehicles within the preset range of the target road section can obtain the road condition information of the target road section in real time, ensuring the accuracy of the obtained road condition information of the target road section, thereby improving the accuracy of the control of the automatic driving vehicle and further improving the safety of the automatic driving vehicle and user experience.
可以理解,本申请实施例中的电子设备具体可以是路侧设备,也可以是服务器,还可以是车机等设备,根据实际应用本申请对电子设备的类型不做具体限定。It can be understood that the electronic device in the embodiment of the present application may specifically be a roadside device, a server, or a vehicle or other device, and this application does not specifically limit the type of the electronic device according to the actual application.
可以理解的是,本申请的路况检测方法可应用于自动驾驶场景,也可以用于人工驾驶场景,也可以应用于无人驾驶场景等,可以理解,根据实际应用,本申请对实际的应用场景不做具体限定。It can be understood that the road condition detection method of the present application can be applied to automatic driving scenarios, manual driving scenarios, or unmanned driving scenarios. Not specifically limited.
为了方便理解,本文中与道路风险等级相关的术语,例如,术语“严重度”可以指代一旦风险成为现实,相关人员、财产将遭受损害的程度。“暴露率”可以指代描述风险出现时,人员或者财产可能受到影响的概率。“可控度”可以指代风险出现时,驾驶员等在多大程度上可以采取主动措施避免损害的发生。For the convenience of understanding, terms related to road risk levels in this article, for example, the term "severity" can refer to the extent to which relevant people and property will suffer damage once the risk becomes a reality. "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 the driver can take active measures to avoid damage when a risk occurs.
为使本申请的目的、技术方案和优点更加清楚,下面结合图1至图6详细说明本申请的技术方案。In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be described in detail below in conjunction with FIG. 1 to FIG. 6 .
图1根据本申请的实施例,示出了一种路况检测场景图。图1的场景包括:A路段、B路段、C路段、D路段。如图1所示,电子设备100可以是路侧设备。其中,路侧设备100设置在A路段路侧。Fig. 1 shows a road condition detection scene diagram according to an embodiment of the present application. The scene in Fig. 1 includes: road section A, road section B, road section C, and road section D. As shown in FIG. 1 , the electronic device 100 may be a roadside device. Wherein, the roadside equipment 100 is arranged on the roadside of the A section.
如图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 FIG. 1 , taking road section A as an example, a camera 200 - 1 , a camera 200 - 2 , and a camera 200 - 3 are installed on road section A. 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 FIG. 1 , the camera 200 - 1 , the camera 200 - 2 , and the camera 200 - 3 are used to collect video streams on road section A in real time, and send the video streams 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 FIG. 1 , the roadside device 100 is used to receive the video streams on the road section A collected by the cameras 200-1 to 200-3 in real time, and determine the target of the road section A according to the video streams on the road section A collected by the cameras 100 Object information, wherein, the target object information of the section A is used to describe the position of the vehicle 300-1, the collision vehicle 300-2, the collision vehicle 300-3, the pedestrian 300-4, the pedestrian 300-5, and the pedestrian 300-6 in the section A and/or exercise status. The roadside device 100 is further configured to determine the road condition information of the A section based on the characteristic information of the target object of the A section, and send the A section's road condition information to vehicles within a preset range of the A section. Wherein, the vehicle that has received the road condition information can adjust the driving speed of the vehicle on the road section A according to 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, when the vehicle 300-1 enters the road section A, it receives the road risk level of the section A sent by the electronic device 100 in real time. According to the road risk level, the driving speed of the vehicle 300-1 on the 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 on the road section A can be used to assist the driver or the self-driving vehicle to adjust the driving speed of the vehicle on the road section A. After the vehicles within the preset range of A section receive the road condition information of A section, they can predetermine whether to adjust the driving of the vehicle on A section before the self-driving vehicle is in A section or before entering A section according to the A section's road condition information 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 FIG. 1 , the roadside device 10 may also obtain video streams collected by cameras of road sections B, C, and D, and generate road sections B, Road condition information of C road section and D road section.
如图1所示,路侧设备100设置在A路段路侧,在其他一些实施例中,也可以分别在B路段、C路段、D路段的路侧分别设置其他路侧设备。其他路侧设备也可以分别获取B路段、C路段、D路段的摄像头采集的视频流,并根据采集B路段、C路段、D路段的视频流,生成B路段、C路段、D路段的路况信息。可以理解,本申请的场景比不限于图1所示的场景,根据实际的应用,路侧设备设置在路侧的具体位置和数量本申请不做具体限定。As shown in FIG. 1 , the roadside equipment 100 is installed on the roadside of section A. In some other embodiments, other roadside equipment can also be installed on the roadsides of section B, section C, and section D respectively. Other roadside devices can also obtain the video streams collected by the cameras of road sections B, C, and D respectively, and generate road condition information for road sections B, C, and D based on the video streams collected for road sections B, C, and D. . It can be understood that the scene ratio of this application is not limited to the scene shown in FIG. 1 , and the specific location and quantity of roadside equipment installed on the roadside are not specifically limited in this application according to actual applications.
路侧设备100,可以是设置在路侧的基础设施设备或固定设备或路侧单元(Road Side Unit,RSU),也可以是设置在路侧的支持车到一切(vehicle-to-everything,V2X)应用的设备。可以理解,根据实际应用,本申请对路侧设备100不做限制。The roadside equipment 100 can be infrastructure equipment or fixed equipment or roadside unit (Road Side Unit, RSU) set on the roadside, or can be a vehicle-to-everything (V2X) set on the roadside ) Applied equipment. It can be understood that, according to practical applications, the present application does not limit the roadside equipment 100 .
图2根据本申请的实施例,示出了另一种路况检测场景图。相较于图1的场景,在图2的场景中,电子设备100可以是设置在远端的服务器。Fig. 2 shows another road condition detection scene diagram according to an embodiment of the present application. Compared with the scenario in FIG. 1 , in the scenario in 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 section A as an example, the server 100 is used to receive in real time the video streams on section A collected by cameras 200-1 to 200-3, and The video stream on the road segment determines the target object information on the A road segment, wherein the target object information on the A road segment is used to describe the position and/or motion state of the target object on the target road segment. The server 100 is further configured to determine road condition information of the road section A based on the target object information of the road section A, wherein the road condition information of the road section A is used to adjust the driving speed of the vehicle on the road section A. The server 100 is also used to send the road condition information of the road section A to the vehicles within the preset range of the 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 captured by the cameras of the road sections B, C, and D, and generate the video streams of the road sections B, C, and D according to the video streams collected for the road sections B, C, and D. traffic information. For specific content, refer to the content described in section A, and details will not be repeated here.
可以理解,服务器100可以是硬件服务器,服务器100可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群,还可以是提供云数据库、云存储和CDN等基础云计算服务的服务器,根据实际应用,本申请实施例对此不做限制。It can be understood that the server 100 can be a hardware server, and 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 practical applications, this embodiment of the present application does 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 scenario of FIG. 1 or FIG. 2 , the camera 200-1, the camera 200-2, the camera 200-3, and the electronic device 100 may be communicatively connected through one or more networks. Wherein, the network may be a wired network or a wireless network, for example, the wireless network may be a mobile cellular network (such as 5G, 4G, 3G or GPRS), or may be a Wireless-Fidelity (WIFI) network, of course It may also be other possible networks, which are not limited in this embodiment of the present application. For example, the cameras 200-1 to 200-3 send the video streams collected in real time on the section A 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 shown in FIG. 1 or FIG. 2 , the electronic device 100 and the vehicles within the preset range of the road segment A may be in communication connection through one or more wireless networks. 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 (Wireless-Fidelity, WIFI) network, and of course it can also be other possible networks. Do limit. For example, the electronic device 100 sends the road condition information of the road section A to the vehicles within the preset range of the road section A through the wireless network.
可以理解,本申请的采集路段的视频流的摄像头可以是360度旋转摄像头(即摄像头200-1),也可以是远景摄像头、变焦摄像头、近景摄像头、闪光摄像头、卡扣摄像头以及测速摄像头等。It can be understood that the camera for collecting the video stream of the road section in the present application can be a 360-degree rotating camera (i.e., the camera 200-1), and can also be a long-range camera, a zoom camera, a close-up camera, a flash camera, a buckle camera, and a speed camera.
可以理解,应用本申请路况检测方法的电子设备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 may be the roadside device in the scenario in FIG. 1, or the server in the scenario in FIG. 2, or a car machine, a laptop computer, a desktop computer, or a tablet computer , mobile phone, wearable device, head-mounted display, mobile email device, portable game console, portable music player, reader device, or other electronic device capable of accessing the Internet. 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), or glasses, or as part of watches, bracelets, jewelry, or glasses, etc. According to practical applications, the embodiment of the present application does not limit the electronic device 100 .
基于上述场景,图3示出了一种路况检测的流程图,图3中的执行主体为电子设备100,如图3所示,具体包括:Based on the above scenario, FIG. 3 shows a flow chart of road condition detection. The execution subject in FIG. 3 is the electronic device 100, as shown in FIG. 3 , specifically including:
S301:实时获取目标路段的目标对象。S301: Obtain the target object of the target road segment in real time.
在一些实施例中,电子设备100获取目标路段上拍摄的视频流,对视频流中的每帧图像进行目标检测,确定每帧图像中的目标对象。In some embodiments, the electronic device 100 acquires a video stream shot on the 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 colliding vehicle, a bicycle, a car, a heavy truck, and the like. In some other embodiments, the target object may also include stagnant objects such as stagnant water and roadblocks. It can be understood that, according to practical applications, the present application does not limit the type of the target object of the target road segment.
例如,如图1所示,以A路段为例,电子设备100可以根据实时获取的A路段上设置的摄像头200-1至200-3拍摄的有关A路段的视频,根据目标检测算法对视频流的每一帧图像进行目标对象检测,获得出现在视频流的每帧图像中的目标对象。For example, as shown in FIG. 1 , taking road section A as an example, the electronic device 100 can analyze the video stream according to the target detection algorithm based on the video of the road section A captured by the cameras 200-1 to 200-3 set on the road section A acquired in real time. The target object detection is performed on each frame of the image, and the target object appearing in each frame of the video stream is obtained.
S302:根据实时获取目标路段的目标对象,确定目标对象对应的特征信息。S302: Determine feature information corresponding to the target object according to the target object of the target road section acquired in real time.
在一些实施例中,电子设备100根据实时获取的目标路段的目标对象,确定目标对象对应的特征信息。目标对象对应的特征信息可以包括:目标对象运动状态信息、位置状态信息。目标对象在目标路段的位置状态信息可以是目标对象在目标路段的位置坐标。目标对象在目标路段的运动状态信息可以是速度、加速度等信息。In some embodiments, the electronic device 100 determines the feature information corresponding to the target object according to the target object of the target road section acquired in real time. The feature information corresponding to the target object may include: motion state information and position state information of the target object. The position status information of the target object on the target road section may be the position coordinates of the target object on the target road section. The motion state information of the target object on the target road section may be information such as speed and acceleration.
在一些实施例中,电子设备100检测到每帧图像中的目标对象后,还可以通过速度检测算法确定目标对象运动状态信息。例如,速度检测算法用于根据采集视频流的摄像头的帧率,判定目标对象的运行时间Δt,通过对目标对象的位置求取三维空间的坐标,从而获得目标对象的实际运行距离ΔS,进而计算出目标对象的瞬时速度或平均速度V或加速度a等。下文对确定目标对象的信息作详细描述,在此不做赘述。In some embodiments, after the electronic device 100 detects the target object in each frame of image, it may also determine the motion state 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, and obtain the actual running distance ΔS of the target object by calculating the coordinates of the three-dimensional space for the position of the target object, and then calculate Get the instantaneous speed or average speed V or acceleration a of the target object. The information for determining the target object will be described in detail below, and details will not be repeated here.
在一些实施例中,上述每帧图像中的目标对象还可以包括积水,路障等静态物体,则确定每帧图像中的目标对象的位置,根据连续多帧图像中目标对象所在的位置确定的目标对象的特征信息,目标对象的位置状态信息可以是目标路段的积水位置、目标路段的路障位置等。目标对象的状态信息可以是速度为0或加速度为0等。In some embodiments, the above-mentioned target object in each frame of image may also include static objects such as stagnant water and roadblocks, then determine the position of the target object in each frame of image, determined according to the position of the target object in consecutive multiple frame images The characteristic information of the target object and the location status information of the target object may be the location of water accumulation in the target road section, the location of roadblocks in the target road section, and the like. The state information of the target object may be that the speed is 0 or the acceleration is 0, etc.
S303:基于目标路段的目标对象的特征信息,确定目标路段的路况信息,目标路段的路况信息用于描述目标路段的路况。S303: Based on the characteristic information of the target object of the target road segment, determine the traffic condition information of the target road segment, and the traffic condition information of the target road segment is used to describe the road condition of the target road segment.
在一些实施例中,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 may also include sensitive traffic participants of section A, traffic flow of section A, water depth of section A, and roadblock location of section A wait.
在一些实施例中,电子设备100基于目标路段的目标对象信息,确定目标路段的路况信息,目标路段的路况信息用于描述目标路段的路况。车辆可以根据目标路段的路况信息,在进入目标路段之前或者在目标路段时及时调整自动驾驶车辆的运行状态(例如,减速,停车等)或运行轨迹(例如,自动驾驶车辆的运行路线)等,从而保证自动驾驶车辆的驾驶安全。In some embodiments, the electronic device 100 determines the road condition information of the target road segment based on the target object information of the target road segment, and the road condition information of the target road segment is used to describe the road condition of the target road segment. According to the road condition information of the target road segment, the vehicle can adjust the running state (for example, deceleration, parking, etc.) or running trajectory (for example, the running route of the automatic driving vehicle) of the autonomous vehicle in time before entering the target road segment or when the target road segment is in progress, Thereby ensuring the driving safety of self-driving vehicles.
在一些实施例中,目标路段的路况信息可以是目标路段的道路风险等级。例如,电子设备100可以根据当前时刻以及过去一段时间内车辆的相对位置,确定当前时刻以及过去一段时间内的目标路段的碰撞车辆,根据当前时刻以及过去一段时间内车辆碰撞时,车辆的速度、加速度等确定目标路段的道路风险等级。In some embodiments, the road condition information of the target road segment may be the road risk level of the target road segment. For example, the electronic device 100 can determine the colliding vehicle on the target road section at the current moment and the past period of time according to the relative position of the vehicle at the current moment and the past period of time, and according to the current moment and the relative position of the vehicle during the past period of time, the speed, 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 vehicles on the target road segment at the current moment and in the past preset time period based on the vehicle information of the target road segment acquired in real time. Wherein, the collision accident information includes at least one of the following: the cumulative number of vehicle collision accidents, the average relative speed of vehicle collision, the average relative acceleration of vehicle collision, etc., wherein the cumulative number of vehicle collision accidents includes: the number of vehicle-to-vehicle collision accidents , the number of car-obstacle collision accidents, the number of car-pedestrian collision accidents, 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 colliding vehicle on the target road section at the current moment and within the past preset time period according to the target object information of the target road section acquired 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 colliding vehicle on the target road section at the current moment and the past preset time period, determine the collision accident information of the target road section at the current moment and the past preset time period. Taking the target object as the vehicle in FIG. 1 as an example, as shown in FIG. 1 , according to the position states of the vehicles 300-2 and 300-3, it is determined that the vehicle 300-2 collides with the vehicle 300-3. Therefore, the relative speed and relative acceleration of the vehicle 300-2 and the vehicle 300-3 at the time of the collision are obtained respectively.
进一步地,电子设备100根据过去预设时间段内,目标路段的碰撞事故信息,确定目标路段的碰撞风险指标参数,根据目标路段的碰撞风险指标参数,确定目标路段的道路风险等级。其中,目标路段的碰撞风险指标参数包括以下至少一个:碰撞事故的严重度,碰撞事故的暴露度,碰撞事故的可控度。下文对电子设备100基于目标路段的目标对象信息,确定目标路段的道路风险等级做了详细描述,在此不做赘述。Further, the electronic device 100 determines the collision risk index parameters of the target road segment according to the collision accident information of the target road segment in the past preset time period, and determines the road risk level of the target road segment according to the collision risk index parameters of the target road segment. Wherein, the collision risk index parameter of the target road section includes at least one of the following: severity of collision accident, exposure degree of collision accident, and controllability of collision accident. The following describes in detail how the electronic device 100 determines the road risk level of the target road segment based on the target object information of the target road segment, and details are not repeated here.
在一些实施例中,目标路段的路况信息可以是目标路段的敏感交通参与者。具体地,电子设备100基于目标路段的目标对象信息,筛选出目标路段的敏感交通参与者,其中,敏感交通参与者的特征信息可以包括以下至少一个:敏感交通参与者在目标路段 的位置、行驶速度以及行驶加速度。In some embodiments, the road condition information of the target road segment may be sensitive traffic participants of the target road segment. Specifically, the electronic device 100 screens out sensitive traffic participants of the target road segment based on the target object information of the target road segment, wherein the characteristic information of the sensitive traffic participant may include at least one of the following: the position of the sensitive traffic participant on the target road segment, 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, and the like. In expressway traffic, sensitive traffic participants include but are not limited to large trucks, vans, etc.
在其他一些实施例中,目标路段的路况信息还可以是目标路段的车流量、目标路段的积水深度、目标路段的路障位置等。可以理解,目标路段的路况信息可以用于自动驾驶车辆调整车辆在目标路段的运行状态(例如,减速,停车等)或运行轨迹(例如,自动驾驶车辆的运行路线)等,从而保证自动驾驶车辆的驾驶安全。In some other embodiments, the road condition information of the target road segment may also be the traffic volume of the target road segment, the depth of water accumulation of the target road segment, the location of roadblocks of the target road segment, and the like. 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 running state (for example, deceleration, parking, etc.) or running track (for example, the running route of the self-driving vehicle) on the target road section, so as to ensure driving safety.
S304:向在目标路段预设范围内的车辆发送路况信息。S304: Sending road condition information to vehicles within the preset range of the target road section.
在一些实施例中,电子设备100向在目标路段预设范围内的车辆发送辅助驾驶信息,车辆可以基于电子设备100发送的辅助驾驶信息,在车辆在目标路段内或进入目标路段之前,预先确定是否调整车辆在目标路段的行驶速度。提高了自动驾驶车辆控制的准确性,进一步提高了自动驾驶车辆的安全性和驾驶体验。In some embodiments, the electronic device 100 sends assisted driving information to vehicles within the preset range of the target road section, and the vehicle can predetermine Whether to adjust the driving speed of the vehicle 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 according to the target object information of the target road section acquired in real time, and sends the road condition information of the target road section to the preset range of the target road section in real time. vehicle. Wherein, the road condition information of the target road section may include information such as road risk level, sensitive traffic participants, traffic flow, water depth, and roadblock location.
不难看出,根据本申请的路况检测方法,电子设备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 self-driving vehicle to adjust the driving speed of the vehicle on the target road section. Vehicles within the preset range of the target road segment can obtain the road condition information of the target road segment in real time, and the driver or the self-driving vehicle can know the road segment information of the target road segment in real time according to the road condition information of the target road segment, so that the vehicle is within the target road segment or enters the target road segment. Before the road section, it is determined in advance whether to adjust the driving speed of the self-driving vehicle on the target road section. 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 the road risk level. The following describes in detail in conjunction with FIG. The grade is sent to vehicles within the preset range of the target road segment.
基于图1或图2的路况检测场景,图4示出了另一种路况检测方法的流程图,图4的流程的执行主体为电子设备100,如图4所示,具体包括:Based on the road condition detection scene in FIG. 1 or FIG. 2, FIG. 4 shows a flowchart of another road condition detection method. The execution subject of the process in FIG. 4 is the electronic device 100, as shown in FIG. 4, specifically including:
S401:实时获取A路段上的至少一个摄像头采集的视频流。S401: Obtain in real time a video stream collected by at least one camera on section A.
例如,如图1所示,电子设备100获取A路段上的摄像头200-1至摄像头200-3采集的有关A路段的视频流,也可以获取B路段上的三个摄像头采集的有关B路段的视频流,也可以获取C路段上的两个摄像头采集的有关C路段的视频流,还可以获取D路段上的两个摄像头采集的有关C路段的视频流。下文以目标路段为A路段为例,详细描述图4的路况检测的过程。For example, as shown in FIG. 1, the electronic device 100 obtains video streams related to road section A collected by cameras 200-1 to 200-3 on road section A, and may also obtain video streams related to road section B collected by three cameras on road section B. The video stream may also obtain video streams related to road segment C captured by two cameras on road segment C, and may also acquire video streams related to road segment C collected by two cameras on road segment D. Hereinafter, taking the target road section as the road section A as an example, the process of road condition detection in FIG. 4 will be described in detail.
S402:基于实时获取的A路段的视频流,确定A路段实时的目标对象以及目标对象对应的特征信息。S402: Determine a real-time target object and feature information corresponding to the target object on the road section A based on the video stream of the section A acquired in real time.
在一些实施例中,电子设备100根据实时获取的A路段的目标对象,确定目标对象对 应的特征信息。目标对象对应的特征信息可以包括:目标对象运动状态信息、位置状态信息。目标对象在A路段的位置状态信息可以是目标对象在A路段的位置坐标。目标对象在A路段的运动状态信息可以是速度、加速度等信息。In some embodiments, the electronic device 100 determines the feature information corresponding to the target object according to the target object of the section A acquired in real time. The feature information corresponding to the target object may include: motion state information and position state information of the target object. The position state information of the target object on the A road segment may be the position coordinates of the target object on the A road segment. The motion state information of the target object on section A may be information such as speed and acceleration.
在一些实施例中,电子设备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 image of the video stream based on the obtained video stream of the road section A collected by the camera set on the road section A, and obtains all objects appearing in the video stream object. Specifically, target object detection may be performed on each frame image 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 FIG. 1, if the target object is set to be a car, it is detected by 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 object is set as a car and a person, it is detected by the target detection algorithm that there are six target objects on road section A, namely, vehicle 300-1, vehicle 300-2, vehicle 300-3, pedestrian 300-4, pedestrian 300-5, pedestrian 300-6. In some other embodiments, the target object can also be set as a colliding vehicle, a heavy truck, a van, or waterlogging and roadblocks on a road section. It can be understood that, according to practical applications, the present 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 for traversing each frame image of the input video stream, classifying target objects and non-target objects in each frame image, and determining the position coordinates of the target object in each frame image. In some embodiments, a faster-region convolutional neural network architecture (faster-region convolutional neural networks, Faster RCNN) can be implemented through a cascade-region convolutional neural network architecture (cascade-region convolutional neural networks, cascade RCNN) algorithm Algorithm, a target detection (Single-Shot MultiBox Detector, SSD) algorithm, any target detection algorithm in the real-time fast target detection (You Only Look Once, YOLO) algorithm, etc. Detect, get 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 may 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 according to the frame rate of the camera that collects the video stream, and obtain the coordinates of the three-dimensional space through the positioning of the target object, so as 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.
S403:根据A路段实时的目标对象对应的特征信息以及过去预设时间段内A路段的目标对象对应的特征信息,确定在过去预设时间段内,A路段的碰撞事故信息。S403: According to the characteristic information corresponding to the real-time target object of the road section A and the characteristic information corresponding to the target object of the road section A in the past preset time period, determine the collision accident information of the road section A in the past preset time period.
在一些实施例中,电子设备100根据A路段实时的目标对象对应的特征信息以及过去预设时间段内A路段的目标对象对应的特征信息,确定在过去预设时间段内,的A路段的车量通行的累计数量(即车流量)和碰撞事故信息,该A路段的碰撞事故信息可以包括以下至少一个:车辆碰撞事故的累计数量、车辆碰撞时的平均相对速度、车辆碰撞时的平均相对加速度。其中,车辆碰撞事故的累计数量包括:车与车碰撞事故数量、车与障碍物碰撞事故数量、车与行人碰撞事故数量。In some embodiments, the electronic device 100 determines, according to the feature information corresponding to the real-time target object of the road segment A and the feature information corresponding to the target object of the road segment A in the past preset time period, within the preset time period in the past. Accumulated quantity of traffic flow (i.e. traffic flow) and collision accident information, the collision accident information of the section A can include at least one of the following: the cumulative quantity of vehicle collision accidents, the average relative speed when the vehicle collides, the average relative speed when the vehicle collides acceleration. Among them, the cumulative number of vehicle collision accidents includes: 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.
以A路段为例,预设时间段可以为过去一年内,例如,当前时间为2021年12月24日13点整,则过去一年内即为2020年12月24日13点整至2021年12月24日13点整。Taking road 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, the past year will be from 13:00 on December 24, 2020 to December 2021. At 13 o'clock on the 24th.
具体的,电子设备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 the road section A in the past preset time period according to the characteristic information corresponding to the real-time target object of the road section A and the characteristic information corresponding to the target object of the road section A in the past preset time period. . For example, it is determined that in the past year, the number of collision accidents on section A totaled 10, of which the number of car-vehicle collision accidents was 5 cases, the number of car-obstacle collision accidents was 3 cases, and the number of car-pedestrian collision accidents was 3. from 2. Then the average relative speed when the vehicle collides is: the average relative speed when the vehicles collide in 10 collision accidents. The average relative acceleration at the time of vehicle collision is: the average relative acceleration at the time of vehicle collision of 10 collision accidents. In a collision accident between vehicle E and vehicle F, the relative velocity at the time of vehicle collision is the velocity 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 a collision accident between vehicle X and obstacle Y, the relative speed of the vehicle at the time of collision is the speed of vehicle X, and similarly, the relative acceleration of the vehicle at the time of collision is the acceleration of vehicle X. In a collision accident between a vehicle M and a pedestrian N, the relative speed of the vehicle at the time of collision is the speed of the vehicle M relative to the pedestrian N. Similarly, the relative acceleration of the vehicle M 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 the road section A in the past preset time period, determine the collision risk index parameters of the road section A, the collision risk index parameters of the road section A include at least one of the following: the severity of the collision accident, the exposure of the collision accident, Controllability of collision accidents.
例如,过去预设时间段内,A路段的碰撞事故信息碰撞事故信息包括车辆碰撞时的平均相对速度、车辆碰撞时的平均相对加速度、车与车碰撞事故数量、车与障碍物碰撞事故数量、车与行人碰撞事故数量。电子设备100可以根据车辆碰撞时的平均相对速度、车辆碰撞时的平均相对加速度、车与车碰撞事故数量、车与障碍物碰撞事故数量、车与行人碰撞事故数量,确定A路段的碰撞事故的严重度。For example, during the preset time period in the past, the collision accident information of section A includes 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, Number of car-pedestrian collisions. The electronic device 100 may determine the number of collision accidents on road section A according to the average relative speed at the time of vehicle collision, the average relative acceleration at the time of vehicle collision, 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 determines the severity S of the collision accident on the road section A in the past preset time period based on the collision accident information on the 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 the formula (1), v r represents the average relative velocity of vehicles on road section A when they collide within the preset time period, a r represents the average relative acceleration of vehicles on road section A during the preset time period when they collide, and N CC represents the expected The number of vehicle-to-vehicle collision accidents on road section A within the preset time period, N CO represents the number of vehicle-to-obstacle collision accidents on road section A within the preset time period, α 0 , α 1 , α 2 , α 3 , β 0 , β1 represents the weight parameter. N death represents the number of fatalities in collision accidents on section A within a preset time period. exp represents an exponential function. The * in this article means to multiply.
不难理解,在过去预设时间段内,A路段的车辆碰撞时的平均相对速度越高,A路段的碰撞事故的严重度越高。在过去预设时间段内,A路段的车辆碰撞时的平均相对加速度越高,A路段的碰撞事故的严重度也越高。在过去预设时间段内,A路段的车辆碰撞事故的累计数量越高,A路段的碰撞事故的严重度也越高。在过去预设时间内,A路段的车辆碰撞事故的死亡人数越高,A路段的碰撞事故的严重度也越高。It is not difficult to understand that in the preset time period in the past, the higher the average relative speed of the collision of the vehicles on the A road section, the higher the severity of the collision accident on the A road section. In the preset time period in the past, the higher the average relative acceleration of the vehicle collision on the A road section, the higher the severity of the collision accident on the A road section. In the past preset time period, the higher the cumulative number of vehicle collision accidents on the A road section, the higher the severity of the collision accidents on the A road section. In the preset time in the past, the higher the death toll of the vehicle collision accident on the A road section, the higher the severity of the collision accident on the A road section.
例如,过去预设时间段内,A路段的碰撞事故信息包括车辆碰撞时的平均相对速度、车辆碰撞时的平均相对加速度。电子设备100可以根据在过去预设时间段内,A路段的车辆碰撞时的平均相对速度、车辆碰撞时的平均相对加速度,确定在过去预设时间段内,A路段的碰撞事故的的可控度。具体的,过去预设时间段内,A路段的碰撞事故的可控度C可以通过如下公式(2)计算得到:For example, in the past preset period of time, the collision accident information on road section A includes the average relative speed when the vehicle collides, and the average relative acceleration when the vehicle collides. The electronic device 100 may determine, according to the average relative speed and the average relative acceleration of the collision of the vehicle on the road section A in the past preset time period, whether the collision accident on the road section A is controllable in the past preset time period. Spend. Specifically, in the past preset time period, the controllability C of the collision accident on road section A can be calculated by the following formula (2):
Figure PCTCN2022076064-appb-000003
Figure PCTCN2022076064-appb-000003
公式(2)中,a r表示在过去预设时间段内,A路段的碰撞事故发生时相对加速度,v r表示在过去预设时间段内,A路段的碰撞事故发生时相对速度,β 2表示权重参数。N death表示 碰撞事故的死亡数量。exp表示指数函数。 In the formula (2), a r represents the relative acceleration of the collision accident on road section A in the past preset time period, v r represents the relative velocity of the collision accident on road section A in the past preset time period, β 2 Indicates the weight parameter. N death represents the number of fatalities in collision accidents. exp represents an exponential function.
不难理解,在过去预设时间段内,A路段的车辆碰撞时的平均相对速度越高,在过去预设时间段内,A路段的碰撞事故的可控度越低。在过去预设时间段内,A路段的车辆碰撞时的平均相对加速度越高,在过去预设时间段内,A路段的碰撞事故的可控度越低。在过去预设时间内,A路段的车辆碰撞事故的死亡人数越高,在过去预设时间段内,A路段的碰撞事故的可控度越低。It is not difficult to understand that the higher the average relative speed of vehicles on road section A when they collide in the past preset time period, the lower the controllability of the collision accident on road section A in the past preset time period. In the past preset time period, the higher the average relative acceleration of the collision of the vehicles on the road section A, the lower the controllability of the collision accident on the road section A in the past preset time period. In the past preset time period, the higher the death toll of the vehicle collision accident on the road section A, the lower the controllability of the collision accident on the road 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 section A includes the cumulative number of vehicles passing and the cumulative number of vehicle collision accidents. The electronic device 100 may determine the exposure of collision accidents on road section A in the past preset time period according to the cumulative number of vehicles passing on road section A and the cumulative number of vehicle collision accidents in the past preset time period. Specifically, during the preset time period in the past, the exposure E of the collision accident on road section A can be calculated by the following formula (3):
Figure PCTCN2022076064-appb-000004
Figure PCTCN2022076064-appb-000004
公式(3)中,N accident表示在过去预设时间段内,A路段的车辆碰撞事故的累计数量,N total表示在过去预设时间段内,A路段的车辆通行的累计数量。 In formula (3), N accident represents the cumulative number of vehicle collision accidents on road section A in the past preset time period, and N total represents the cumulative number of vehicle traffic on road 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 collision accidents on road section A accounted for in the cumulative number of vehicle traffic, the higher the exposure of collision accidents on road section A in the past preset time period. higher.
S405:基于过去预设时间内,A路段的碰撞风险指标参数,确定A路段的道路风险等级。S405: Determine the road risk level of the road section A based on the collision risk index parameters of the road section A in the past preset time.
在一些实施例中,电子设备100基于过去预设时间内,目标路段的碰撞风险指标参数,确定目标路段的道路风险指标。电子设备100可以根据预先划分的道路风险等级对应的道路风险指标的数值范围,确定A路段的道路风险等级。In some embodiments, the electronic device 100 determines the road risk index of the target road segment based on the collision risk index parameters of the target road segment within a preset time in the past. The electronic device 100 may determine the road risk level of the section A according to the value range of the road risk index 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, wherein 1 is the lowest level and 4 is the highest level. For example, the value range of the road risk index corresponding to the pre-divided road risk level 1 is [a, b], the value range of the road risk index corresponding to the pre-divided road risk level 2 is [c, d], and the pre-divided road The value range of the road risk index corresponding to risk level 3 is [e, f], and the value 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 index of the target road segment based on the collision risk index parameters of the target road segment within a preset time in the past. Specifically, the road risk index R dynamic of the target road section can be calculated by formula (4):
R dynamic=S*E*C  (4) R dynamic = S*E*C (4)
其中,S表示过去预设时间段内,A路段的碰撞事故的严重度。C表示过去预设时间段内,A路段的碰撞事故的可控度。E表示过去预设时间段内,A路段的碰撞事故的暴露度。Wherein, S represents the severity of collision accidents on road section A in the past preset time period. C represents the controllability of collision accidents on road section A in the past preset time period. E represents the exposure of 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 accident on section A, the higher the road risk level on section A. The higher the controllability of the collision accident on section A, the higher the road risk level of section A. The higher the exposure degree of collision accidents on section A, the higher the road risk level of section A.
S406:将A路段的道路风险等级发送给A路段预设范围内的车辆。S406: Sending the road risk level of the section A to the vehicles within the preset range of the 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 the road section A may be vehicles on the road section A, or vehicles within a preset distance from the road section A. For example, the preset distance may be 1 kilometer, and vehicles within the preset range of section A may adjust their vehicle speeds according to the received road risk level of section A. For example, in an automatic driving scenario, when the road risk level of the received section A is 3, the vehicle can automatically reduce the speed of the vehicle when it is a preset distance away from the section A or enters the section A. When the road risk level of section A received by the vehicle is 1, the vehicle does not need to adjust the speed, that is, maintains the original speed to pass the section A.
由上述描述可知,电子设备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 in real time by at least one camera on the road section A, and analyze the video stream collected in real time, and obtain the target object information of the road section A in real time. Object information to determine the road risk level of the A section. And the electronic device 100 can also update the road risk level of the A road section in real time, so that vehicles within the preset range of the A road section can know the road risk level of the A road section in real time, so that when the self-driving vehicle is in the A road section or enters the target Before the road section, according to the real-time understanding of the road risk level of section A, it is pre-determined whether to adjust the driving speed of the self-driving 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 road 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 according to the target object of the target road section and the characteristic information of the target object obtained in real time in conjunction with FIG. 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 scene in FIG. 1 or FIG. 2, FIG. 5 shows a flow chart of another road condition detection method. The execution subject of the process in FIG. 5 is the electronic device 100, as shown in FIG. 5, specifically including:
S501:实时获取目标路段上的至少一个摄像头采集的视频流,具体内容参考步骤S401,在此不做赘述。S501: Obtain in real time the video stream captured by at least one camera on the target road section. For details, refer to step S401, which will not be repeated here.
S502:基于实时获取的目标路段的视频流,确定目标路段的目标对象以及目标对象对应的特征信息,具体内容参考步骤S402,在此不做赘述。S502: Based on the video stream of the target road section acquired in real time, determine the target object of the target road section and the feature information corresponding to the target object. For details, refer to step S402, which will not be repeated here.
S503:根据目标对象的类型,从目标路段的目标对象中筛选出目标路段的敏感交通参与者。S503: According to the type of the target object, select the sensitive traffic participants of the target road segment from the target objects of the target road segment.
如图4中的步骤S402所述,目标路段的目标对象可以是目标路段上行驶的车辆,也可以是行人等。具体可以是轿车、卡车、厢式货车、自行车、行人、婴儿车等。As described in step S402 in FIG. 4 , the target object of the target road section may be a vehicle traveling on the target road section, or a pedestrian or the like. Specifically, it can be cars, trucks, vans, bicycles, pedestrians, baby carriages, 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, baby carriages, people in wheelchairs, etc. In expressway traffic, sensitive traffic participants include but are not limited to large trucks, vans, etc.
在一些实施例中,电子设备100基于根据目标对象的类型,从目标路段的目标对象中筛选出目标路段的敏感交通参与者,获取敏感交通参与者对应的特征信息。其中,目标路段的敏感交通参与者的特征信息包括敏感交通参与者在目标路段的位置、行驶速度以及行驶加速度。In some embodiments, the electronic device 100 obtains characteristic information corresponding to sensitive traffic participants based on filtering sensitive traffic participants of the target road segment from the target objects of the target road segment according to the type of the target object. Wherein, the characteristic information of the sensitive traffic participants of the target road section includes the position, 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 section A can be expressed as (x n , y n , v n , a n ), where (x n , y n ) means that the sensitive traffic participant p n is on A The position coordinates on the road section, 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 FIG. 1 , road section A is an urban road, and sensitive traffic participants in road section A may include pedestrian 300-4, pedestrian 300-5, and pedestrian 300-6. Then the position information of the pedestrian 300-4 can be expressed as (x 1 , y 1 , v 1 , a 1 ), the position information of the 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需要将基于自身坐标系生成的敏感交通参与者的位置坐标转换成基于世界坐标系生成的敏感交通参与者的位置坐标,再将包含基于世界坐标系生成的敏感交通参与者的位置坐标的敏感交通参与者发送给目标路段的车辆。Because 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 acquired 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 screened out from the location status of the target object in the target road section, the sensitive traffic participants' position coordinates included in the sensitive traffic participants are also generated based on the own coordinate system. Therefore, the electronic device 100 needs to convert the position coordinates of the sensitive traffic participants generated based on its own coordinate system into the position coordinates of the sensitive traffic participants generated based on the world coordinate system, and then convert the position coordinates of the sensitive traffic participants generated based on the world coordinate system to The location coordinates of sensitive traffic participants are sent to the vehicle on the target road segment.
在一些实施例中,电子设备100可以根据自身坐标系-世界坐标系的转换关系矩阵、自身坐标系的基准坐标以及基于自身坐标系生成的敏感交通参与者的位置坐标,将基于自身坐标系生成的敏感交通参与者的位置坐标转换成基于世界坐标系生成的敏感交通参与者的位置坐标。具体的,基于世界坐标系生成的敏感交通参与者的位置坐标L可以通过如下公式(5)表示:In some embodiments, the electronic device 100 can generate the traffic based on the self-coordinate system based on the self-coordinate system-world coordinate system conversion matrix, the reference coordinates of the self-coordinate system, and the position coordinates of sensitive traffic participants generated based on the self-coordinate system. The position coordinates of the sensitive traffic participants are transformed into the position coordinates of the sensitive traffic participants generated based on the world coordinate system. Specifically, the location coordinates L of sensitive traffic participants 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 conversion relationship matrix between the self-coordinate system and the world coordinate system, N represents the reference coordinates of the self-coordinate system, and P represents the position coordinates of sensitive traffic participants generated based on the self-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, when the vehicle does not enter the target road segment, the vehicle speed can be adjusted according to the received positions and speeds of sensitive traffic participants in the target road segment. For example, as shown in Figure 1, in the automatic driving scenario, when the vehicle receives three sensitive traffic participants (i.e., pedestrian 300-4, pedestrian 300-5, and pedestrian 300-6) in section A, the vehicle automatically drives It can automatically reduce the speed of the self-driving vehicle when it does not enter the A road section or enters the A road section.
可以理解,根据图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 segment in real time, and can send the sensitive traffic participants of the target road segment to vehicles within the preset range of the target road segment in real time. In this way, the vehicles within the preset range of the target road segment can know the sensitive traffic participants of the target road segment in real time, and can know the road segment information of the target road segment in real time according to the sensitive traffic participants of the target road segment, so that the automatic driving vehicle can enter or enter the target road segment. Before the target road section, it is determined in advance whether to adjust the driving speed of the self-driving 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 is a structural block diagram of an electronic device 100 according to an embodiment of the present application, and Fig. 6 schematically shows an example electronic device 100 according to multiple embodiments. In one embodiment, the electronic device 100 may include one or more processors 1404, a system control logic 1408 connected to at least one of the processors 1404, a system memory 1412 connected to the system control logic 1408, a system memory 1412 connected to the 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 (eg, graphics processors, application processors, baseband processors, etc.). In an embodiment where the electronic device 100 adopts an eNB (Evolved Node B, enhanced base station) or a RAN (Radio Access Network, radio access network) controller, the processor 1404 may be configured to execute various consistent embodiments, for example , one or more of the multiple embodiments shown in FIG. 3 or FIG. 4 or FIG. 5 . For example, processing 1404 may be used to execute the above road condition-based detection method. For example, processing 1404 may be used to acquire video streams captured by at least one camera on road section A, determine target object information, and may also be used to target object information based on the target road section, Determine the road condition 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 can be used for loading and storing data and/or instructions. Memory 1412 of system 1400 may in some embodiments include any suitable volatile memory, such as a 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, 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, hard disk drive), CD (Compact Disc , CD) drive, DVD (Digital Versatile Disc, Digital Versatile Disc) drive at least one.
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, but not necessarily part of, the device. For example, NVM/storage 1416 may be accessed over a 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, respectively, temporary and permanent copies of instructions 1424 . The instructions 1424 may include: instructions that cause the electronic device 100 to implement the method shown in FIG. 1 when executed by at least one of the processors 1404 . In some embodiments, instructions 1424 , hardware, firmware and/or software components thereof may additionally/alternatively reside 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所示的方法。The network interface 1420 may include a transceiver for providing a radio interface for the electronic device 100 to communicate with any other suitable devices (such as front-end modules, antennas, etc.) through one or more networks. In some embodiments, the network interface 1420 may be integrated with other components of the electronic device 100 . For example, network interface 1420 may be integrated into at least one of processor 1404, system memory 1412, NVM/storage 1416, and a firmware device (not shown) with instructions, when at least one of processor 1404 executes the When instructing, the electronic device 100 implements the methods shown in FIG. 3 to FIG. 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 chip (SoC).
电子设备100可以进一步包括:输入/输出(I/O)设备1432。I/O设备1432可以包括用户界面,使得用户能够与电子设备100进行交互;外围组件接口的设计使得外围组件也能够与电子设备100交互。在一些实施例中,电子设备100还包括传感器,用于确定与电子设备100相关的环境条件和位置信息的至少一种。The electronic device 100 may further include: an input/output (I/O) device 1432 . The I/O device 1432 may include a user interface, enabling the user to interact with the electronic device 100 ; the design of the peripheral component interface enables the 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 a video camera), a flashlight (e.g., LED flash light) 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, such as global positioning system (GPS) satellites.
可以理解的是,图6示意的结构并不构成对电子设备100的具体限定。在本申请另外一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure shown in FIG. 6 does not constitute a specific limitation on the electronic device 100 . In some other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components. The illustrated components can be realized 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 executed on a programmable system comprising 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 can be applied to input instructions to perform the functions described herein and to generate output information. The output information may be applied to one or more output devices in 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), microcontroller, application specific integrated circuit (ASIC), or microprocessor.
程序代码可以用高级程序化语言或面向对象的编程语言来实现,以便与处理系统通信。在需要时,也可用汇编语言或机器语言来实现程序代码。事实上,本申请中描述的机制不限于任何特定编程语言的范围。在任一情形下,该语言可以是编译语言或解释语言。The program code can be implemented in a high-level procedural language or an object-oriented programming language to communicate with the processing system. Program code can also be implemented in assembly or machine language, if desired. In fact, the mechanisms described in this application are not limited in scope to 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 can also be implemented as instructions carried by or stored on one or more transitory or non-transitory machine-readable (e.g., computer-readable) storage media, which can be executed by one or more processors read and execute. For example, instructions may be distributed over a network or via other computer-readable media. Thus, a machine-readable medium 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 discs, read-only memory (ROM), random-access memory (RAM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), magnetic or optical cards, flash memory, or A tangible, machine-readable memory used to transmit information (eg, carrier waves, infrared signals, digital signals, etc.) by electrical, optical, acoustic, or other forms of propagating signals using the Internet. Thus, a machine-readable medium includes any type of machine-readable medium suitable for storing or transmitting electronic instructions or information in a form readable by a machine (eg, a computer).
在附图中,可以以特定布置和/或顺序示出一些结构或方法特征。然而,应该理解,可能不需要这样的特定布置和/或排序。而是,在一些实施例中,这些特征可以以不同于说明性附图中所示的方式和/或顺序来布置。另外,在特定图中包括结构或方法特征并不意味着暗示在所有实施例中都需要这样的特征,并且在一些实施例中,可以不包括这些特征或者可以与其他特征组合。In the drawings, some structural or methodological features may be shown in a particular arrangement and/or order. However, it should be understood that such specific arrangements and/or orderings may not be required. Rather, in some embodiments, these 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 does not 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 a physical unit/module. A part of the module can also be realized with a combination of multiple physical units/modules, the physical implementation of these logical units/modules is not the most important, the combination of functions realized by these logical units/modules is the solution The key to the technical issues raised. In addition, in order to highlight the innovative part of this application, the above-mentioned device embodiments of this application do not introduce units/modules that are not closely related to solving the technical problems proposed by this application, which does not mean that the above-mentioned device embodiments do not exist other units/modules.
需要说明的是,在本专利的示例和说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in the examples and descriptions of this patent, relative 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 order between these entities or operations. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the statement "comprising a" does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.
虽然通过参照本申请的某些优选实施例,已经对本申请进行了图示和描述,但本领域的普通技术人员应该明白,可以在形式上和细节上对其作各种改变,而不偏离本申请的精神和范围。Although this application has been shown and described with reference to certain preferred embodiments thereof, those skilled in the art will understand that various changes in form and details may be made therein without departing from this disclosure. The spirit and scope of the application.

Claims (16)

  1. 一种路况检测方法,用于电子设备,其特征在于,A road condition detection method, used for electronic equipment, is characterized in that,
    获取目标路段上的摄像头采集的视频流;Obtain the video stream collected by the camera on the target road section;
    根据所述视频流,确定目标路段上的目标对象的当前特征信息,其中,所述特征信息包括运动状态信息和/或位置状态信息;According to the video stream, determine the current feature information of the target object on the target road section, wherein the feature information includes motion state information and/or position 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.
  2. 根据权利要求1所述的方法,其特征在于,还包括:The method according to claim 1, further comprising:
    将所述目标路段的所述当前路况信息发送给在目标路段预设范围内的车辆。Sending the current road condition information of the target road section to vehicles within a preset range of the target road section.
  3. 根据权利要求1所述的方法,其特征在于,所述目标对象包括以下至少一个:车辆、人、障碍物。The method according to claim 1, wherein the target object includes at least one of the following: a vehicle, a person, and an obstacle.
  4. 根据权利要求3所述的方法,其特征在于,所述目标路段的当前路况信息包括道理风险等级;并且The method according to claim 3, wherein the current road condition information of the target road section includes a reasonable risk level; and
    所述基于所述目标对象的所述当前特征信息和/或所述目标对象的所述历史特征信息,确定所述目标路段的当前路况信息包括:The determining the current road condition information of the target road segment 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 flow and collision accident information of the target road section, as well as historical traffic flow and collision accident information.
  5. 根据权利要求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.
  6. 根据权利要求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 flow and collision accident information of the target road section, as well as historical traffic flow and collision accident information include:
    基于目标路段的当前车流量和碰撞事故信息、以及历史车流量和碰撞事故信息,确定所述目标路段的碰撞风险指标参数,其中,所述碰撞风险指标参数包括以下至少一个:碰撞事故的严重度,碰撞事故的暴露度,碰撞事故的可控度;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, determine the collision risk index parameters of the target road section, wherein the collision risk index parameters include at least one of the following: the severity of the collision accident , the degree of exposure to collision accidents, and the degree of controllability of collision accidents;
    基于所述目标路段的碰撞风险指标参数,确定所述目标路段的所述当前道路风险等级。Based on the collision risk index parameters of the target road section, the current road risk level of the target road section is determined.
  7. 根据权利要求6所述的方法,其特征在于,所述当前道路风险等级R dynamic通过以下公式计算得到: The method according to claim 6, wherein 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 accident. C represents the controllability of the collision accident, and E represents the exposure degree of the collision accident.
  8. 根据权利要求6或权利要求7所述的方法,其特征在于,所述基于目标路段的 当前车流量和碰撞事故信息、以及历史车流量和碰撞事故信息,确定所述目标路段的碰撞风险指标参数包括:The method according to claim 6 or claim 7, wherein the collision risk index parameters of the target road section are determined based on the current traffic flow and collision accident information of the target road section, as well as historical traffic flow and collision accident information include:
    基于所述当前以及历史所述目标路段的所述碰撞事故的数量、所述碰撞车辆的平均相对加速度、所述碰撞车辆的平均相对速度,确定所述目标路段的碰撞事故的严重度。Based on the number of current and historical collision accidents of the 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 of the target road section is determined.
  9. 根据权利要求8所述的方法,其特征在于,The method according to claim 8, characterized in that,
    所述碰撞事故的数量包括:车与车碰撞的数量、车与人碰撞的数量、车与障碍物碰撞的数量;The number of collision accidents includes: the number of car-to-car collisions, the number of car-to-person collisions, and the number of car-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 velocity 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 number of collisions between vehicles and people, α 0 , α 1 , α 2 , α 3 , β 0 , and β 1 represent the weight parameters respectively, N death represents the number of deaths in collision accidents in the current and historical target road sections, and exp represents the exponential function .
  10. 根据权利要求6或权利要求7所述的方法,其特征在于,基于目标路段的当前车流量和碰撞事故信息、以及历史车流量和碰撞事故信息,确定所述目标路段的碰撞风险指标参数包括:The method according to claim 6 or claim 7, wherein, based on the current traffic flow and collision accident information of the target road section, as well as historical traffic flow and collision accident information, determining the collision risk index parameters of the target road section includes:
    基于当前以及历史所述目标路段的所述碰撞车辆的平均相对加速度以及所述碰撞车辆的平均相对速度,确定所述目标路段的碰撞事故的可控度。Based on the average relative acceleration of the colliding vehicle and the average relative speed of the colliding vehicle in the current and historical target road section, the controllability of the collision accident of the target road section is determined.
  11. 根据权利要求10所述的方法,其特征在于,The method according to claim 10, characterized in that,
    所述目标路段的碰撞事故的可控度C通过以下公式计算得到:The controllability C of the collision accident of the target road section is calculated by the following formula:
    Figure PCTCN2022076064-appb-100001
    Figure PCTCN2022076064-appb-100001
    其中,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 velocity of the collision vehicle, β 2 represents a weight parameter, N death represents the number of deaths in current and historical collision accidents of the target road section, exp represents an exponential function.
  12. 根据权利要求6或权利要求7所述的方法,其特征在于,基于目标路段的当前车流量和碰撞事故信息、以及历史车流量和碰撞事故信息,确定所述目标路段的碰撞风险指标参数包括:The method according to claim 6 or claim 7, wherein, based on the current traffic flow and collision accident information of the target road section, as well as historical traffic flow and collision accident information, determining the collision risk index parameters of the target road section includes:
    基于所述当前以及历史所述目标路段的车流量以及所述碰撞事故的数量,确定当前目标路段的碰撞事故的暴露度。Based on the current and historical traffic flow of the target road section and the number of collision accidents, the exposure degree of the collision accident of the current target road section is determined.
  13. 根据权利要求12所述的方法,其特征在于,The method according to claim 12, characterized in that,
    所述碰撞事故的暴露度E通过以下公式计算得到:The exposure E of the collision accident is calculated by the following formula:
    Figure PCTCN2022076064-appb-100002
    Figure PCTCN2022076064-appb-100002
    其中,N accident表示所述碰撞事故的数量,N total表示所述车流量。 Wherein, N accident represents the number of collision accidents, and N total represents the traffic flow.
  14. 根据权利要求3所述的方法,其特征在于,所述目标路段的当前路况信息包括敏感交通参与者的特征信息;The method according to claim 3, wherein the current road condition information of the target section includes characteristic information of sensitive traffic participants;
    所述基于所述目标对象的所述当前特征信息和/或所述目标对象的所述历史特征信息,确定所述目标路段的当前路况信息包括:The determining the current road condition information of the target road segment 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, the 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.
  15. 一种可读介质,其特征在于,所述可读介质上存储有指令,该指令在电子设备上执行时使电子设备执行权利要求1至14中任一项所述的路况检测方法。A readable medium, characterized in that instructions are stored on the readable medium, and when the instructions are executed on the electronic equipment, the electronic equipment executes the road condition detection method according to any one of claims 1 to 14.
  16. 一种电子设备,其特征在于,包括:An electronic device, characterized in that it comprises:
    存储器,用于存储由电子设备的一个或多个处理器执行的指令,以及memory for storing instructions to be executed by one or more processors of the electronic device, and
    处理器,是电子设备的处理器之一,用于执行权利要求1至14中任一项所述的路况检测方法。The processor is one of the processors of the electronic device, configured to execute the road condition detection method according to any one of claims 1 to 14.
PCT/CN2022/076064 2022-02-11 2022-02-11 Traffic condition detection method, readable medium and electronic device WO2023151034A1 (en)

Priority Applications (2)

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

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
WO2023151034A1 true WO2023151034A1 (en) 2023-08-17

Family

ID=87563370

Family Applications (1)

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

Country Status (2)

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

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103971523A (en) * 2014-05-21 2014-08-06 南通大学 Mountainous road traffic safety dynamic early-warning system
JP2014174032A (en) * 2013-03-11 2014-09-22 Osaka Gas Co Ltd Safe route search system
CN107430006A (en) * 2014-12-02 2017-12-01 凯文·孙林·王 Avoid the method and system of accident
JP2018155577A (en) * 2017-03-17 2018-10-04 パナソニックIpマネジメント株式会社 Self-driving car and control program
CN109118773A (en) * 2018-09-30 2019-01-01 中交第公路勘察设计研究院有限公司 A kind of traffic accidents methods of risk assessment
CN109389824A (en) * 2017-08-04 2019-02-26 华为技术有限公司 A kind of appraisal procedure and device driving risk
CN110020797A (en) * 2019-03-27 2019-07-16 清华大学苏州汽车研究院(吴江) The evaluation method of automatic Pilot test scene based on perception defect
CN209822021U (en) * 2019-06-20 2019-12-20 张志豪 Vehicle-mounted real-time road traffic accident situation sensing device
CN111275960A (en) * 2018-12-05 2020-06-12 杭州海康威视系统技术有限公司 Traffic road condition analysis method, system and camera
CN112037513A (en) * 2020-09-01 2020-12-04 清华大学 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
CN113963539A (en) * 2021-10-19 2022-01-21 交通运输部公路科学研究所 Highway traffic accident identification method, module and system

Patent Citations (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
CN103971523A (en) * 2014-05-21 2014-08-06 南通大学 Mountainous road traffic safety dynamic early-warning system
CN107430006A (en) * 2014-12-02 2017-12-01 凯文·孙林·王 Avoid the method and system of accident
JP2018155577A (en) * 2017-03-17 2018-10-04 パナソニックIpマネジメント株式会社 Self-driving car and control program
CN109389824A (en) * 2017-08-04 2019-02-26 华为技术有限公司 A kind of appraisal procedure and device driving risk
CN109118773A (en) * 2018-09-30 2019-01-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
CN110020797A (en) * 2019-03-27 2019-07-16 清华大学苏州汽车研究院(吴江) The evaluation method of automatic Pilot test scene based on perception defect
CN209822021U (en) * 2019-06-20 2019-12-20 张志豪 Vehicle-mounted real-time road traffic accident situation sensing device
CN112037513A (en) * 2020-09-01 2020-12-04 清华大学 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
CN113963539A (en) * 2021-10-19 2022-01-21 交通运输部公路科学研究所 Highway traffic accident identification method, module and system

Also Published As

Publication number Publication date
CN116897380A (en) 2023-10-17

Similar Documents

Publication Publication Date Title
US11538114B1 (en) Providing insurance discounts based upon usage of telematics data-based risk mitigation and prevention functionality
US10942030B2 (en) Road segment similarity determination
US11238637B1 (en) Vehicular telematic systems and methods for generating interactive animated guided user interfaces
US11091156B2 (en) Road segment similarity determination
US20210070286A1 (en) Systems and methods for determining individualized driving behaviors of vehicles
US11209279B2 (en) Systems and methods for autonomous vehicle performance evaluation
US10776735B2 (en) Risk information processing method and server device
US20220299324A1 (en) Accident fault detection based on multiple sensor devices
US11849375B2 (en) Systems and methods for automatic breakdown detection and roadside assistance
US11908043B2 (en) Vehicular telematic systems and methods for generating interactive animated guided user interfaces
US11238370B2 (en) Approaches for determining sensor calibration
JP7103243B2 (en) Information processing equipment, information processing system, and information processing method
US20120143493A1 (en) Navigation system with abrupt maneuver monitoring mechanism and method of operation thereof
US20210095970A1 (en) Mapping and determining scenarios for geographic regions
US20230110659A1 (en) Approaches for encoding environmental information
US20210232281A1 (en) Vehicular telematic systems and methods for generating interactive animated guided user interfaces
CA3110740A1 (en) Applying machine learning to telematics data to predict accident outcomes
WO2023151034A1 (en) Traffic condition detection method, readable medium and electronic device
US20230048622A1 (en) Providing insurance discounts based upon usage of telematics data-based risk mitigation and prevention functionality
Kumar et al. Aerial Imaging Rescue and Integrated System for Road Monitoring Based on AI/ML
JP2017107397A (en) Travel management system, driving recorder, and driving recorder program

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 202280003400.0

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22925396

Country of ref document: EP

Kind code of ref document: A1