CN113470353A - Traffic grade determination method and device, storage medium and electronic equipment - Google Patents

Traffic grade determination method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN113470353A
CN113470353A CN202110673487.XA CN202110673487A CN113470353A CN 113470353 A CN113470353 A CN 113470353A CN 202110673487 A CN202110673487 A CN 202110673487A CN 113470353 A CN113470353 A CN 113470353A
Authority
CN
China
Prior art keywords
lane
traffic
current frame
grade
road section
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110673487.XA
Other languages
Chinese (zh)
Inventor
方晓波
张辉
朱江
岳敏娟
李亚飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Newpoint Intelligent Technology Group Co Ltd
Original Assignee
Newpoint Intelligent Technology Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Newpoint Intelligent Technology Group Co Ltd filed Critical Newpoint Intelligent Technology Group Co Ltd
Priority to CN202110673487.XA priority Critical patent/CN113470353A/en
Publication of CN113470353A publication Critical patent/CN113470353A/en
Pending legal-status Critical Current

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
    • G08G1/0104Measuring and analyzing of parameters relative to traffic conditions
    • G08G1/0125Traffic data processing
    • G08G1/0133Traffic data processing for classifying traffic situation
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/052Detecting movement of traffic to be counted or controlled with provision for determining speed or overspeed

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Traffic Control Systems (AREA)

Abstract

The application provides a traffic grade determining method, a traffic grade determining device, a storage medium and electronic equipment, relates to the technical field of traffic, and aims to accurately determine the traffic grade of a road section. The method comprises the following steps: acquiring vehicle information of a current frame of a target road section; determining the average speed of each lane in the target road section in the current frame according to the vehicle information; determining the traffic grade of each lane in the current frame of the target road section according to the average speed of each lane; and determining the traffic grade of the current frame of the target road section according to the traffic grade of each lane.

Description

Traffic grade determination method and device, storage medium and electronic equipment
Technical Field
The present application relates to the field of traffic technologies, and in particular, to a method and an apparatus for determining a traffic class, a storage medium, and an electronic device.
Background
With the increasing number of vehicles, traffic jam conditions are increasingly serious, which brings great challenges to smooth operation of traffic and aggravates energy and environmental problems related to traffic. The reasonable determination of the traffic grade of the road section is an important step in improving and managing traffic congestion, and meanwhile, accurate information can be provided for a third party (such as a map APP) so that a user can reasonably plan a tour route according to the traffic grade of the road section.
The method for determining the traffic grade in the related art usually measures the road section, and has the defect of inaccurate result.
Disclosure of Invention
In view of the above problems, embodiments of the present invention provide a traffic level determination method, apparatus, storage medium, and electronic device, so as to overcome the above problems or at least partially solve the above problems.
In a first aspect of the embodiments of the present invention, a traffic class determination method is provided, where the method includes:
acquiring vehicle information of a current frame of a target road section;
determining the average speed of each lane in the target road section in the current frame according to the vehicle information;
determining the traffic grade of each lane in the current frame of the target road section according to the average speed of each lane;
and determining the traffic grade of the current frame of the target road section according to the traffic grade of each lane.
Optionally, after determining the traffic level of the current frame of the target road segment, the method further includes:
acquiring the traffic grade of continuous multiframes before the current frame of the target road section;
and determining the traffic grade of the target road section according to the traffic grade of the current frame of the target road section and the traffic grade of continuous multiframes before the current frame.
Optionally, according to the vehicle information, determining an average vehicle speed of each lane in the target road segment in the current frame includes:
acquiring the number of vehicles in each lane in the current frame;
acquiring the running speed of each vehicle in each lane in the current frame;
and determining the average speed of each lane in the current frame according to the corresponding number and the driving speed of each lane in the current frame.
Optionally, determining the traffic level of each lane in the current frame of the target road segment according to the average vehicle speed of each lane comprises:
comparing the average speed of each lane with the standard speed threshold of each traffic class;
determining the traffic grade of the lane as the unblocked grade aiming at the lane with the average speed greater than the unblocked grade standard speed threshold;
and determining the traffic grade of the lane aiming at the lane with the average vehicle speed not greater than the standard speed threshold of the unblocked grade according to the average vehicle speed and the space ratio of the lane, wherein the space ratio of the lane is the ratio of the total length of the vehicle with the running speed lower than the preset vehicle speed to the total length of the lane.
Optionally, for a lane with an average vehicle speed not greater than the clear level standard speed threshold, determining the traffic level of the lane according to the average vehicle speed and the space fraction of the lane comprises:
acquiring a traffic grade corresponding to the average speed of the lane; acquiring a preset ratio threshold corresponding to the traffic grade;
determining the traffic grade of the lane as the traffic grade corresponding to the average speed of the lane under the condition that the space occupation ratio of the lane is higher than the corresponding preset occupation ratio threshold;
and under the condition that the space ratio of the lane is lower than the corresponding preset ratio threshold value, determining that the traffic grade of the lane is the smooth grade.
Optionally, determining the traffic level of the current frame of the target road segment according to the traffic level of each lane includes:
and taking the highest traffic grade in the traffic grades of each lane as the traffic grade of the current frame of the target road section.
Optionally, the obtaining of the vehicle information of the current frame of the target road segment includes:
receiving a current frame collected by image collection equipment arranged on the ground where the target road section is located;
and carrying out image processing on the current frame to obtain the vehicle information of the current frame of the target road section.
In a second aspect of the embodiments of the present invention, there is provided a traffic class determination device, including:
the acquisition module is used for acquiring the vehicle information of the current frame of the target road section;
the vehicle speed module is used for determining the average vehicle speed of each lane in the target road section in the current frame according to the vehicle information;
the lane module is used for determining the traffic grade of each lane in the current frame of the target road section according to the average speed of each lane;
and the road section module is used for determining the traffic grade of the current frame of the target road section according to the traffic grade of each lane.
In a third aspect of the embodiments of the present invention, a computer-readable storage medium is provided, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the traffic class determination method disclosed in the embodiments of the present application.
In a fourth aspect of the embodiments of the present invention, an electronic device is provided, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the method for determining a traffic class disclosed in the embodiments of the present application is implemented.
The embodiment of the invention has the following advantages:
in this embodiment, the vehicle information of the current frame of the target road section may be acquired; determining the average speed of each lane in the target road section in the current frame according to the vehicle information; determining the traffic grade of each lane in the current frame of the target road section according to the average speed of each lane; and determining the traffic grade of the current frame of the target road section according to the traffic grade of each lane. Therefore, the traffic grade of the lane is obtained by measuring each lane independently, and compared with the measurement of the whole road section, the method has the advantages of more fineness and higher result accuracy; the traffic grade of the target road section is determined according to the traffic grade of each lane, so that misjudgment of the traffic grade of the whole target road section caused by the traffic grade of a certain lane can be avoided, and the method has the advantage of higher fault tolerance rate. Therefore, the traffic level of the road section can be determined more accurately.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments of the present application will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
FIG. 1 is a flow chart of the steps of a traffic class determination method in an embodiment of the present invention;
FIG. 2 is a flow chart of the steps for determining traffic levels for lanes in an embodiment of the present invention;
FIG. 3 is a schematic flow chart of obtaining a predicted traffic class of a lane according to an embodiment of the present invention;
FIG. 4 is a flow chart illustrating a step of determining a traffic class of a road segment in an embodiment of the present application;
fig. 5 is a schematic structural diagram of a traffic class determination device according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.
In order to solve the problems that the method for determining the traffic grade in the related technology is not accurate enough and the like, the applicant proposes the following technical idea: and determining the traffic grade of each lane according to the vehicle information, and determining the traffic grade of the road section according to the traffic grade of each lane.
While intelligent transportation is widely popularized, the related technology provides an intelligent transportation system based on a 5G digital rail technology, the system mainly depends on image acquisition equipment hung under a digital rail side unit DRSU at a road side to acquire vehicle-road information, and image data processing and data fusion are carried out in the DRSU.
The main body of the embodiment of the present invention may be a DRSU, a server, a terminal, or other main bodies, which is not limited in this respect.
The traffic grade can be divided into 5 grades of smooth, basically smooth, light congestion, medium congestion and heavy congestion from high to low according to the convention. Of course, other levels are possible and the invention is not limited in this regard.
Example one
Referring to fig. 1, a flowchart illustrating steps of a traffic class determination method according to an embodiment of the present invention is shown, and as shown in fig. 1, the traffic class determination method may specifically include the following steps:
step S110: and acquiring the vehicle information of the current frame of the target road section.
The current frame of the target road section can be obtained through the camera and the radar, and then the current frame is processed through the DRSU or the server or the terminal to obtain the vehicle information of the current frame of the target road section. The vehicle information includes the number of vehicles, the running speed, the length of the vehicle, and the like; it is understood that, in the case where the traveling speed of the vehicle is calculated from the positions of the vehicle in the current frame and the previous frame and the time difference between the two frames, the calculated average time may be considered to be equal to the traveling speed of the vehicle in the current frame in the case where the time difference between the two frames is small.
Optionally, as an embodiment, the vehicle information of the current frame of the target road segment may also be acquired by a method including: receiving a current frame collected by image collection equipment arranged on the ground where the target road section is located; and carrying out image processing on the current frame to obtain the vehicle information of the current frame of the target road section.
In this embodiment, the image capturing device disposed on the ground where the target road segment is located may be an image capturing device under a DRSU. The DRSU can directly perform image processing on the acquired current frame image to obtain the vehicle information of the current frame of the target road section.
Step S120: and determining the average speed of each lane in the target road section in the current frame according to the vehicle information.
This step can be achieved by: acquiring the number of vehicles in each lane and the running speed of each vehicle in the current frame; and determining the average speed of each lane in the current frame according to the corresponding number and the driving speed of each lane in the current frame.
In order to obtain the average vehicle speed of each lane in the target road section, the vehicle information in each lane is adopted for processing. The vehicle information includes the number of vehicles in each lane of the target section, and the traveling speed of each vehicle. The average vehicle speed of the lane is the sum of the vehicle speeds of each vehicle on the lane divided by the number of vehicles on the lane, and the average vehicle speed of the lane can be calculated by the following formula:
meanVel=(ΣVel)/num
where Vel denotes the vehicle speed of the vehicle on the lane, num denotes the number of vehicles on the lane, and meanVel denotes the average vehicle speed of the lane.
Step S130: and determining the traffic grade of each lane in the current frame of the target road section according to the average speed of each lane.
The specific method of this step can be referred to the related steps of example three below.
Step S140: and determining the traffic grade of the current frame of the target road section according to the traffic grade of each lane.
The traffic level at the median among the traffic levels of each lane may be taken as the traffic level of the current frame of the target link.
Alternatively, as one embodiment, the highest traffic level among the traffic levels of each lane may be taken as the traffic level of the current frame of the target link.
By adopting the technical scheme of the embodiment of the application, the vehicle information of the current frame of the target road section can be obtained, the vehicle information is processed to obtain the average speed of each lane in the target road section, the traffic grade of each lane can be determined according to the average speed, and the traffic grade of the current frame road section can be obtained according to the traffic grade of the current frame lane. The traffic grade of the lane is obtained by measuring each lane independently, and compared with the measurement of the whole road section, the method has the advantages of more fineness and higher result accuracy; the traffic grade of the target road section is determined according to the traffic grade of each lane, so that misjudgment of the traffic grade of the whole target road section caused by the traffic grade of a certain lane can be avoided, and the method has the advantage of higher fault tolerance rate. Therefore, the traffic level of the road section can be determined more accurately.
Example two
The determination of the traffic grade is a continuous observation process, so after the traffic grade of the current frame of the target road section is obtained, the current frame of the target road section needs to be placed in an observation window and fused with historical data in the observation window, and therefore the accurate traffic grade of the target road section is obtained. Therefore, after determining the traffic level of the current frame of the target road segment, the method further includes:
step S210: and acquiring the traffic grade of continuous multiframes before the current frame of the target road section.
The number of the continuous multiframes before the current frame is preset and is equal to the size of the preset observation window minus one. The step of acquiring the traffic levels of the consecutive multiple frames before the current frame of the target road segment may refer to the first embodiment.
The traffic grade data of continuous multiple frames before the current frame are already stored in the observation window, and after the traffic grade data of the current frame are obtained, the traffic grade data are also placed in the observation window so that the observation window is filled.
Step S220: and determining the traffic grade of the target road section according to the traffic grade of the current frame of the target road section and the traffic grade of continuous multiframes before the current frame.
And fusing the traffic grade data of the current frame of the target road section in the filled observation window with the traffic grade data of the continuous multiple frames before, and taking the average value of the window as the output traffic grade of the target road section.
Optionally, taking an average value of the window as the traffic level of the output target road section, which may be to take an average value of the average vehicle speeds of each frame of the same lane in the observation window to obtain a total average vehicle speed of each lane; then obtaining the traffic grade of each lane in the observation window according to the average speed of each lane in the observation window; determining the traffic grade of the target road section according to the traffic grade of each lane in the observation window; in which the method of determining the traffic level of the target link according to the traffic level of each lane in the observation window may refer to step S140.
Optionally, the average value of the window is taken as the traffic level of the output target road segment, and the traffic level of each frame of the target road segment in the observation window may be weighted to obtain the traffic level of the target road segment.
By adopting the technical scheme of the embodiment of the application, the traffic grade of the output target road section can be determined according to the continuous multi-frame data of the target road section, and compared with the method for determining the traffic grade of the target road section according to one frame of data, the method has the advantages of high traffic grade fault tolerance rate and higher accuracy of the obtained target road section.
EXAMPLE III
Referring to fig. 2, a flowchart illustrating a step of determining a traffic class of each lane in a current frame of the target road segment according to the average vehicle speed of each lane in the embodiment of the present invention is shown, and as shown in fig. 2, the method may specifically include the following steps:
step S310: and comparing the average speed of each lane with the standard speed threshold of each traffic class.
Different road sections have different speed limit information and therefore have different traffic class standard speed thresholds.
Fig. 3 is a flow chart illustrating a process of obtaining a predicted traffic class of a lane according to an average vehicle speed of the lane, and referring to fig. 3, the predicted traffic class of each lane may be obtained by comparing the average vehicle speed of each lane in the target road section with a standard speed threshold value of each traffic class in the target road section.
Step S320: and determining the traffic grade of the lane as the unblocked grade aiming at the lane with the average vehicle speed larger than the unblocked grade standard speed threshold value.
Step S330: and determining the traffic grade of the lane aiming at the lane with the average vehicle speed not greater than the standard speed threshold of the unblocked grade according to the average vehicle speed and the space ratio of the lane, wherein the space ratio of the lane is the ratio of the total length of the vehicle with the running speed lower than the preset vehicle speed to the total length of the lane.
The predicted traffic levels of the lanes with the average vehicle speed not greater than the traffic level standard speed threshold value comprise 4 levels of basic traffic, light congestion, medium congestion and heavy congestion.
And aiming at the lane with the predicted traffic grade not being the unblocked grade, judging whether the space ratio of the lane is lower than a preset ratio threshold value or not, wherein the space ratio of the lane is the ratio of the total length of the vehicle with the running speed lower than the preset vehicle speed to the total length of the lane.
Optionally, as an embodiment, for a lane whose average vehicle speed is not greater than the clear level standard speed threshold, determining the traffic level of the lane according to the average vehicle speed and the space ratio of the lane includes: acquiring a traffic grade corresponding to the average speed of the lane; acquiring a preset ratio threshold corresponding to the traffic grade; determining the traffic grade of the lane as the traffic grade corresponding to the average speed of the lane under the condition that the space occupation ratio of the lane is higher than the corresponding preset occupation ratio threshold; and under the condition that the space ratio of the lane is lower than the corresponding preset ratio threshold value, determining that the traffic grade of the lane is the smooth grade.
The step of obtaining the traffic grade corresponding to the average speed of the lane means obtaining a predicted traffic grade of the lane. Different predicted traffic levels correspond to different preset duty ratio thresholds.
And when the space occupation ratio of the lane is higher than a preset occupation ratio threshold corresponding to the predicted traffic grade, the traffic grade of the lane is the predicted traffic grade obtained according to the average speed of the lane. When the space ratio of the lane is lower than a preset ratio threshold corresponding to the predicted traffic level, the fact that the congestion condition of the lane can be solved as soon as possible is proved, and therefore the traffic of the lane is determined as the unblocked level.
By adopting the technical scheme of the embodiment of the application, the predicted traffic grade of the lane can be obtained according to the average speed of the lane, and the traffic grade of the lane can be determined according to different predicted traffic grades and the space ratio of the lane. Therefore, the obtained traffic grade does not influence the judgment of the traffic grade of the whole lane only due to the short-distance congestion, and the more accurate traffic grade of the lane is obtained.
Example four
Referring to fig. 4, a flowchart illustrating a step of determining a traffic class of a road segment according to an embodiment of the present invention is shown, and as shown in fig. 4, the method includes:
step 1: and acquiring the current frame of the target road section.
The current frame can be collected by image collecting equipment arranged on the ground where the target road section is located. And performing image processing on the current frame to obtain lane information of a target road section and vehicle information on the target road section. The vehicle information includes the number of vehicles on each lane, and the length and traveling speed of each vehicle. It is understood that, in the case where the traveling speed of the vehicle is calculated from the positions of the vehicle in the current frame and the previous frame and the time difference between the two frames, the calculated average time may be considered to be equal to the traveling speed of the vehicle in the current frame in the case where the time difference between the two frames is small.
Step 2: the average speed of the current frame of each lane is obtained.
The driving speed of the vehicle on each lane in the current frame is added, and is divided by the number of the vehicles on the lane, so as to obtain the average speed of the current frame of the lane, specifically, the average speed of the lane can be calculated by the following formula:
meanVel=(ΣVel)/num
where Vel denotes the vehicle speed of the vehicle on the lane, num denotes the number of vehicles on the lane, and meanVel denotes the average vehicle speed of the lane.
And step 3: a predicted traffic level for the current frame for each lane is determined.
The predicted traffic class for each lane may be determined by comparing the average vehicle speed for each lane in the target road segment to the traffic class standard speed thresholds in the target road segment.
And 4, step 4: and judging whether the predicted traffic grade of the lane is a smooth grade or not.
And judging that the traffic grade of the lane is the unblocked grade according to whether the average speed of the lane is greater than the unblocked grade standard speed threshold or not. If yes, executing step 8; if not, executing step 5.
And 5: and judging whether the space occupation ratio of the lane is larger than a corresponding preset occupation ratio threshold value or not.
And aiming at the lane with the predicted traffic grade not being the unblocked grade, judging whether the space ratio of the lane is lower than a preset ratio threshold value or not, wherein the space ratio of the lane is the ratio of the total length of the vehicle with the running speed lower than the preset vehicle speed to the total length of the lane.
Different predicted traffic levels correspond to different preset duty ratio thresholds. For each lane, judging whether the space ratio of the lane is larger than a corresponding preset ratio threshold value or not, if so, executing a step 7; if not, executing step 6.
Step 6: the traffic class is modified.
And if the space occupation ratio of the lane is not more than a preset occupation ratio threshold corresponding to the predicted traffic grade of the lane, determining the traffic grade of the lane as a clear traffic grade.
And 7: the traffic class is retained.
And if the space ratio of the lane is greater than a preset ratio threshold corresponding to the predicted traffic grade of the lane, determining the predicted traffic grade of the lane as the traffic grade of the current frame of the lane.
And 8: and determining the road section traffic level.
And determining the traffic grade of the road section according to the traffic grade of each lane of the road section.
The traffic level at the median among the traffic levels of each lane may be taken as the traffic level of the current frame of the target link.
Alternatively, the highest traffic level among the traffic levels of each lane may be used as the traffic level of the current frame of the target link.
And step 9: and putting the traffic grade of the current frame into an observation window.
The determination of the traffic grade is a continuous observation process, so after the traffic grade of the current frame of the target road section is obtained, the traffic grade needs to be placed in an observation window and fused with the multi-frame data in the observation window, and the accurate traffic grade of the target road section is obtained. Therefore, each time the traffic level of a current frame is acquired, it is placed in the observation window.
Step 10: and judging whether the observation window is filled.
If yes, go to step 11. If not, continue to step 10.
Step 11: and fusing data in the observation window.
And when the observation window is filled with the multi-frame data, taking the average value of the window as the output traffic grade of the target road section.
Optionally, taking an average value of the window as the traffic level of the output target road section, which may be to take an average value of the average vehicle speeds of each frame of the same lane in the observation window to obtain a total average vehicle speed of each lane; then obtaining the traffic grade of each lane in the observation window according to the average speed of each lane in the observation window; determining the traffic grade of the target road section according to the traffic grade of each lane in the observation window; in which the method of determining the traffic level of the target link according to the traffic level of each lane in the observation window may refer to step S140.
Optionally, the average value of the window is taken as the traffic level of the output target road segment, and the traffic level of each frame of the target road segment in the observation window may be weighted to obtain the traffic level of the target road segment.
Step 12: and outputting the traffic grade of the road section.
It is understood that, the steps in the present embodiment may refer to the related steps in the previous embodiments. By adopting the technical scheme of the embodiment of the application, the traffic grade of the road section can be determined from three dimensions of time, space and lane; in the aspect of time dimension, the data of multiple frames in an observation window are combined, and the traffic grade of the obtained road section is guaranteed not to be influenced by instantaneous and transient congestion conditions; from the perspective of spatial dimension, for a lane of which the predicted traffic level is a non-unblocked level, the spatial proportion of the lane needs to be determined, so as to avoid misjudgment of the traffic level of the whole lane caused by special conditions, for example, two vehicles stop due to traffic accident, however, other vehicles which normally run can run through the road section from other lanes, so that the road section cannot be regarded as congestion, and if other vehicles cannot run through the road section, the spatial proportion inevitably increases, so that the traffic level of the lane can be correctly judged as congestion; from the view of lane dimension, the smoothness or congestion of one lane cannot determine whether the whole road segment is smooth or congested, for example, only a right-turn lane is smooth but both a straight lane and a left-turn lane are congested in three lanes of the road segment, and the traffic level of the road segment cannot be determined by only one lane. Therefore, by adopting the technical scheme of the embodiment of the application, the influence of instantaneous, short and small space occupation traffic conditions and the traffic grade of a certain lane on the traffic grade of the whole target road section can be avoided, and the traffic grade of the target road section can be comprehensively and accurately obtained.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Fig. 5 is a schematic structural diagram of a traffic class determination device according to an embodiment of the present invention, and as shown in fig. 5, the traffic class determination device includes an acquisition module, a vehicle speed module, a lane module, and a road segment module, where:
the acquisition module is used for acquiring the vehicle information of the current frame of the target road section;
the vehicle speed module is used for determining the average vehicle speed of each lane in the target road section in the current frame according to the vehicle information;
the lane module is used for determining the traffic grade of each lane in the current frame of the target road section according to the average speed of each lane;
and the road section module is used for determining the traffic grade of the current frame of the target road section according to the traffic grade of each lane.
Optionally, as an embodiment, the apparatus further includes:
the historical frame module is used for acquiring the traffic levels of continuous multiframes before the current frame of the target road section;
and the road section grade module is used for determining the traffic grade of the target road section according to the traffic grade of the current frame of the target road section and the traffic grade of continuous multiframes before the current frame.
Optionally, as an embodiment, the vehicle speed module includes:
the obtaining submodule is used for obtaining the number of vehicles in each lane and the running speed of each vehicle in the current frame;
and the vehicle speed submodule is used for determining the average vehicle speed of each lane in the current frame according to the corresponding number and the driving speed of each lane in the current frame.
Optionally, as an embodiment, the lane module includes:
the comparison submodule is used for comparing the average speed of each lane with the standard speed threshold of each traffic level;
the unblocked submodule is used for determining the traffic grade of the lane as the unblocked grade aiming at the lane of which the average speed is greater than the unblocked grade standard speed threshold;
and the non-unblocked submodule is used for determining the traffic level of the lane aiming at the lane with the average vehicle speed not greater than the unblocked level standard speed threshold according to the average vehicle speed and the space ratio of the lane, wherein the space ratio of the lane is the ratio of the total length of the vehicle with the running speed lower than the preset vehicle speed to the total length of the lane.
Optionally, as an embodiment, the non-unblocked sub-module includes:
the traffic grade subunit is used for acquiring the traffic grade corresponding to the average speed of the lane;
the preset occupation ratio threshold subunit is used for acquiring a preset occupation ratio threshold corresponding to the traffic grade;
the higher-than-threshold subunit is used for determining the traffic grade of the lane as the traffic grade corresponding to the average vehicle speed of the lane under the condition that the space occupation ratio of the lane is higher than the corresponding preset occupation ratio threshold;
and the lower-threshold subunit is used for determining that the traffic grade of the lane is the clear grade under the condition that the space ratio of the lane is lower than the corresponding preset ratio threshold.
Optionally, as an embodiment, the road segment module includes:
and the road section submodule is used for taking the highest traffic grade in the traffic grades of each lane as the traffic grade of the current frame of the target road section.
Optionally, as an embodiment, the apparatus further includes:
the current frame module is used for receiving a current frame collected by image collection equipment arranged on the ground where the target road section is located;
and the image processing module is used for carrying out image processing on the current frame to obtain the vehicle information of the current frame of the target road section.
By adopting the technical scheme of the embodiment of the application, the traffic grade of the road section can be determined from three dimensions of time, space and lane; in the aspect of time dimension, the data of multiple frames in an observation window are combined, and the traffic grade of the obtained road section is guaranteed not to be influenced by instantaneous and transient congestion conditions; from the perspective of spatial dimension, for a lane of which the predicted traffic level is a non-unblocked level, the spatial proportion of the lane needs to be determined, so as to avoid misjudgment of the traffic level of the whole lane caused by special conditions, for example, two vehicles stop due to traffic accident, however, other vehicles which normally run can run through the road section from other lanes, so that the road section cannot be regarded as congestion, and if other vehicles cannot run through the road section, the spatial proportion inevitably increases, so that the traffic level of the lane can be correctly judged as congestion; from the view of lane dimension, the smoothness or congestion of one lane cannot determine whether the whole road segment is smooth or congested, for example, only a right-turn lane is smooth but both a straight lane and a left-turn lane are congested in three lanes of the road segment, and the traffic level of the road segment cannot be determined by only one lane. Therefore, by adopting the technical scheme of the embodiment of the application, the influence of instantaneous, short and small space occupation traffic conditions and the traffic grade of a certain lane on the traffic grade of the whole target road section can be avoided, and the traffic grade of the target road section can be comprehensively and accurately obtained.
It should be noted that the device embodiments are similar to the method embodiments, so that the description is simple, and reference may be made to the method embodiments for relevant points.
The present application also discloses a computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the steps of the traffic level determination method as described in the above-mentioned embodiments of the present application.
The application also discloses an electronic device, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the computer program to realize the traffic class determination method disclosed by the embodiment of the application.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus, electronic devices and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The traffic class determination method, the traffic class determination device, the storage medium and the electronic device provided by the present application are introduced in detail, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A traffic class determination method, characterized in that the method comprises:
acquiring vehicle information of a current frame of a target road section;
determining the average speed of each lane in the target road section in the current frame according to the vehicle information;
determining the traffic grade of each lane in the current frame of the target road section according to the average speed of each lane;
and determining the traffic grade of the current frame of the target road section according to the traffic grade of each lane.
2. The method of claim 1, after determining the traffic level of the current frame of the target road segment, further comprising:
acquiring the traffic grade of continuous multiframes before the current frame of the target road section;
and determining the traffic grade of the target road section according to the traffic grade of the current frame of the target road section and the traffic grade of continuous multiframes before the current frame.
3. The method of claim 1, wherein determining, from the vehicle information, an average vehicle speed for each lane in the target road segment in the current frame comprises:
acquiring the number of vehicles in each lane in the current frame;
acquiring the running speed of each vehicle in each lane in the current frame;
and determining the average speed of each lane in the current frame according to the corresponding number and the driving speed of each lane in the current frame.
4. The method of claim 1, wherein determining the traffic class of each lane in the current frame of the target road segment from the average vehicle speed of each lane comprises:
comparing the average speed of each lane with the standard speed threshold of each traffic class;
determining the traffic grade of the lane as the unblocked grade aiming at the lane with the average speed greater than the unblocked grade standard speed threshold;
and determining the traffic grade of the lane aiming at the lane with the average vehicle speed not greater than the standard speed threshold of the unblocked grade according to the average vehicle speed and the space ratio of the lane, wherein the space ratio of the lane is the ratio of the total length of the vehicle with the running speed lower than the preset vehicle speed to the total length of the lane.
5. The method of claim 4, wherein for a lane whose average vehicle speed is not greater than the clear level standard speed threshold, determining the traffic level of the lane based on the average vehicle speed and the space fraction of the lane comprises:
acquiring a traffic grade corresponding to the average speed of the lane; acquiring a preset ratio threshold corresponding to the traffic grade;
determining the traffic grade of the lane as the traffic grade corresponding to the average speed of the lane under the condition that the space occupation ratio of the lane is higher than the corresponding preset occupation ratio threshold;
and under the condition that the space ratio of the lane is lower than the corresponding preset ratio threshold value, determining that the traffic grade of the lane is the smooth grade.
6. The method of claim 1, wherein determining the traffic level of the current frame of the target road segment according to the traffic level of each lane comprises:
and taking the highest traffic grade in the traffic grades of each lane as the traffic grade of the current frame of the target road section.
7. The method according to any one of claims 1 to 6, wherein obtaining vehicle information of a current frame of the target link comprises:
receiving a current frame collected by image collection equipment arranged on the ground where the target road section is located;
and carrying out image processing on the current frame to obtain the vehicle information of the current frame of the target road section.
8. A traffic class determination apparatus, characterized in that the apparatus comprises:
the acquisition module is used for acquiring the vehicle information of the current frame of the target road section;
the vehicle speed module is used for determining the average vehicle speed of each lane in the target road section in the current frame according to the vehicle information;
the lane module is used for determining the traffic grade of each lane in the current frame of the target road section according to the average speed of each lane;
and the road section module is used for determining the traffic grade of the current frame of the target road section according to the traffic grade of each lane.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the traffic class determination method according to any one of claims 1 to 7.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the traffic level determination method according to any one of claims 1 to 7 when executing the computer program.
CN202110673487.XA 2021-06-17 2021-06-17 Traffic grade determination method and device, storage medium and electronic equipment Pending CN113470353A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110673487.XA CN113470353A (en) 2021-06-17 2021-06-17 Traffic grade determination method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110673487.XA CN113470353A (en) 2021-06-17 2021-06-17 Traffic grade determination method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN113470353A true CN113470353A (en) 2021-10-01

Family

ID=77870373

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110673487.XA Pending CN113470353A (en) 2021-06-17 2021-06-17 Traffic grade determination method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN113470353A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114387788A (en) * 2021-12-02 2022-04-22 浙江大华技术股份有限公司 Method and device for identifying alternate passing of vehicles and computer storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103903436A (en) * 2012-12-28 2014-07-02 上海优途信息科技有限公司 Expressway traffic jam detecting method and system based on floating car
CN105261214A (en) * 2015-10-09 2016-01-20 深圳市凯立德科技股份有限公司 Method, device and server for predicting road conditions
CN107610470A (en) * 2017-10-31 2018-01-19 迈锐数据(北京)有限公司 A kind of traffic congestion evaluation method and device
US20200025584A1 (en) * 2018-07-23 2020-01-23 Here Global B.V. Method, apparatus, and computer program product for determining lane level traffic information
CN111028511A (en) * 2019-12-25 2020-04-17 亚信科技(中国)有限公司 Traffic jam early warning method and device
CN111275960A (en) * 2018-12-05 2020-06-12 杭州海康威视***技术有限公司 Traffic road condition analysis method, system and camera
CN111583641A (en) * 2020-04-30 2020-08-25 北京嘀嘀无限科技发展有限公司 Road congestion analysis method, device, equipment and storage medium
CN112069944A (en) * 2020-08-25 2020-12-11 青岛海信网络科技股份有限公司 Road congestion level determination method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103903436A (en) * 2012-12-28 2014-07-02 上海优途信息科技有限公司 Expressway traffic jam detecting method and system based on floating car
CN105261214A (en) * 2015-10-09 2016-01-20 深圳市凯立德科技股份有限公司 Method, device and server for predicting road conditions
CN107610470A (en) * 2017-10-31 2018-01-19 迈锐数据(北京)有限公司 A kind of traffic congestion evaluation method and device
US20200025584A1 (en) * 2018-07-23 2020-01-23 Here Global B.V. Method, apparatus, and computer program product for determining lane level traffic information
CN111275960A (en) * 2018-12-05 2020-06-12 杭州海康威视***技术有限公司 Traffic road condition analysis method, system and camera
CN111028511A (en) * 2019-12-25 2020-04-17 亚信科技(中国)有限公司 Traffic jam early warning method and device
CN111583641A (en) * 2020-04-30 2020-08-25 北京嘀嘀无限科技发展有限公司 Road congestion analysis method, device, equipment and storage medium
CN112069944A (en) * 2020-08-25 2020-12-11 青岛海信网络科技股份有限公司 Road congestion level determination method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114387788A (en) * 2021-12-02 2022-04-22 浙江大华技术股份有限公司 Method and device for identifying alternate passing of vehicles and computer storage medium
CN114387788B (en) * 2021-12-02 2023-09-29 浙江大华技术股份有限公司 Identification method, identification equipment and computer storage medium for alternate traffic of vehicles

Similar Documents

Publication Publication Date Title
CN105405321A (en) Safety early warning method during running of vehicles on freeway and system
US10147315B2 (en) Method and apparatus for determining split lane traffic conditions utilizing both multimedia data and probe data
WO2018061619A1 (en) Route searching device, route searching system, and computer program
CN108871357B (en) Method for displaying accident lane of congested road section on electronic map
JP6828587B2 (en) Image processing system, image processing method, information processing device and recording medium
CN113847925A (en) Method, device, equipment and medium for detecting vehicle yaw based on track data
CN113362602A (en) Congestion analysis method and equipment based on portal traffic data
JP5907249B2 (en) Unexpected prediction sensitivity judgment device
CN115060283A (en) Method and system for identifying navigable elements affected by weather conditions
CN104205186A (en) Device for determining sensitivity to prediction of unexpected situations
CN104875740B (en) For managing the method for following space, main vehicle and following space management unit
CN115294767B (en) Real-time detection and traffic safety early warning method and device for expressway lane line
CN110733507A (en) Lane changing and road isolating method, device, equipment and storage medium
CN113470353A (en) Traffic grade determination method and device, storage medium and electronic equipment
CN103903432A (en) Equipment for determining road link congestion state and method
CN102436742A (en) Method and device for evaluating traffic information service level of floating vehicle system
JP2010140265A (en) Travel support device, method, and program
CN116564097A (en) Intersection passing decision-making method, device and system of vehicle and electronic equipment
CN115031754A (en) Vehicle driving path planning method and device, electronic equipment and storage medium
CN115240432A (en) Traffic jam detection method and device, electronic equipment and storage medium
JP7276276B2 (en) Dangerous driving detection device, dangerous driving detection system, and dangerous driving detection program
CN109923596A (en) It is unable to passing road interval estimation system, and is unable to passing road interval estimation program
CN113345238A (en) Traffic jam analysis system based on urban public transport network perception
CN102903235B (en) Method and device for evaluating quality of real-time road condition
CN115273452A (en) Road condition determination method and device and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20211001

RJ01 Rejection of invention patent application after publication