Method and device for determining road operation condition, and storage medium
Abstract
A method for determining road operation condition includes: acquiring an image of a road to be monitored; acquiring the number of vehicles on the road to be monitored, and dividing the road to be monitored into an upstream road and a downstream road based on the image and the number of vehicles on the road to be monitored; acquiring the number of vehicles on the upstream road and the number of vehicles on the downstream road, and determining a target domain value based on the number of vehicles on the road to be monitored, the number of vehicles on the upstream road, the number of vehicles on the downstream road, and a traffic wave of the road to be monitored; and determining that congestion occurs on the road to be monitored if the number of vehicles on the road to be monitored is greater than the target domain value.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1 . A method for determining road operation condition, comprising:
acquiring an image of a road to be monitored, wherein the image is obtained by photographing the road to be monitored; acquiring a number of vehicles on the road to be monitored, and dividing the road to be monitored into an upstream road and a downstream road based on the image and the number of vehicles on the road to be monitored; acquiring a number of vehicles on the upstream road and a number of vehicles on the downstream road, and determining a target domain value based on the number of vehicles on the road to be monitored, the number of vehicles on the upstream road, the number of vehicles on the downstream road, and a traffic wave of the road to be monitored; and determining that congestion occurs on the road to be monitored in a case where the number of vehicles on the road to be monitored is greater than the target domain value.
2 . The method of claim 1 , wherein the acquiring the number of vehicles on the road to be monitored comprises:
analyzing the image of the road to be monitored by using a neural network algorithm to divide the road to be monitored into roads in different directions; and respectively acquiring a number of vehicles on roads in each direction of the road to be monitored; and correspondingly, the step of dividing the road to be monitored into an upstream road and a downstream road based on the image of the road to be monitored and the number of vehicles on the road to be monitored comprises: respectively dividing the roads in each direction into an upstream road and a downstream road based on the image of the road to be monitored and the number of vehicles on the roads in each direction.
3 . The method of claim 2 , wherein the respectively dividing the roads in each direction into an upstream road and a downstream road based on the image of the road to be monitored and the number of vehicles on the roads in each direction comprises:
respectively discretizing the roads in each direction into J parts, wherein J is a positive integer greater than 1; analyzing the image of the road to be monitored and the number of vehicles on the roads in each direction to respectively determine a number of vehicles on each of the J parts of the roads in each direction within a first preset time period; and performing calculation processing on the number of vehicles on each part of the roads in each direction within the first preset time period, and dividing the roads in each direction into the upstream road and the downstream road based on a calculation result.
4 . The method of claim 3 , wherein the performing calculation processing on the number of vehicles on each part of the roads in each direction within the first preset time period, and dividing the roads in each direction into the upstream road and the downstream road based on a calculation result comprises:
determining a cut point k by calculation based on the number of vehicles on each part of the roads in each direction within the first preset time period; and determining, according to traveling directions of the vehicles, one or more roads corresponding to first k parts of the roads in each direction as the upstream road, and determining one or more roads corresponding to a remaining part other than the first k parts of the roads in each direction as the downstream road.
5 . The method of claim 1 , wherein the acquiring the number of vehicles on the road to be monitored comprises:
acquiring a first number of vehicles on roads in each direction of the road to be monitored at each moment within a second preset time period; and correspondingly, the step of acquiring the number of vehicles on the upstream road and the number of vehicles on the downstream road, and determining a target domain value based on the number of vehicles on the road to be monitored, the number of vehicles on the upstream road, the number of vehicles on the downstream road, and a traffic wave of the road to be monitored comprises: determining a suspected congestion moment and a suspected congestion number for the roads in each direction by calculation based on the first number of vehicles on the roads in each direction of the road to be monitored at each moment within the second preset time period; acquiring the number of vehicles on the upstream road and the number of vehicles on the downstream road in the roads in each direction at each moment within a first preset time period; and for the roads in each direction, responsive to determining, based on the number of vehicles on the upstream road and the number of vehicles on the downstream road in the roads in each direction at each moment within the first preset time period, that a congested traffic wave exists in the traffic wave of the road to be monitored at the suspected congestion moment, determining the target domain value as the suspected congestion number.
6 . The method of claim 5 , wherein the determining a suspected congestion moment and a suspected congestion number for the roads in each direction by calculation based on the first number of vehicles on the roads in each direction of the road to be monitored at each moment within the second preset time period comprises:
acquiring a second number of vehicles on the roads in each direction after a preset interval time from each moment within the second preset time period; acquiring a third number of vehicles on the roads in each direction before a preset interval time from each moment within the second preset time period; and for the roads in each direction, determining a moment at which the first number is less than the second number and the first number is greater than the third number as the suspected congestion moment, and determining a number of vehicles at the suspected congestion moment as the suspected congestion number.
7 . The method of claim 5 , wherein said for the roads in each direction, responsive to determining, based on the number of vehicles on the upstream road and the number of vehicles on the downstream road in the roads in each direction at each moment within the first preset time period, that a congested traffic wave exists in the traffic wave of the road to be monitored at the suspected congestion moment, determining the target domain value as the suspected congestion number comprises:
calculating operation time of the roads in each direction based on the number of vehicles on the upstream road and the number of vehicles on the downstream road in the roads in each direction at each moment within the first preset time period, wherein the operation time is time when the vehicles travel from the upstream road to the downstream road; calculating a first growth rate for the upstream road in the roads in each direction of the road to be monitored at the suspected congestion moment, and a second growth rate for the downstream road in the roads in each direction after the operation time from the suspected congestion moment; for the roads in each direction, calculating a to-be-determined numerical value based on the first growth rate and the second growth rate; and for the roads in each direction, in a case where the to-be-determined numerical value is greater than a preset threshold value, determining that a congested traffic wave exists in the traffic wave of the road to be monitored at the suspected congestion moment, and determine the target threshold value as the suspected congestion number.
8 . The method of claim 7 , wherein the calculating a first growth rate for the upstream road in the roads in each direction of the road to be monitored at the suspected congestion moment, and a second growth rate for the downstream road in the roads in each direction after the operation time from the suspected congestion moment comprises:
acquiring a number of vehicles on the upstream road in the roads in each direction at the suspected congestion moment, and a number of vehicles on the downstream road in the roads in each direction at a moment after the operation time from the suspected congestion moment; calculating a first average number of vehicles on the upstream road in the roads in each direction and a second average number of vehicles on the downstream road within a third preset time period; calculating the first growth rate based on the number of vehicles on the upstream road in the roads in each direction at the suspected congestion moment and the first average number of vehicles on the roads in each direction; and calculating the second growth rate based on the number of vehicles on the downstream road in the roads in each direction at the moment after the operation time from the suspected congestion moment and the second average number of vehicles on the roads in each direction.
9 . The method of claim 7 , wherein said for the roads in each direction, calculating a to-be-determined numerical value based on the first growth rate and the second growth rate comprises:
calculating a first difference between a growth rate of the upstream road and a growth rate of the downstream road in the roads in each direction based on the first growth rate and the second growth rate of the roads in each direction; calculating a second difference between the number of vehicles on the roads in each direction at the suspected congestion moment and a number of vehicles on the roads in each direction at a previous moment of the suspected congestion moment; and for the roads in each direction, calculating the to-be-determined numerical value based on the first difference and the second difference.
10 . The method of claim 1 , wherein said in a case where the number of vehicles on the road to be monitored is greater than the target domain value, determining that congestion occurs on the road to be monitored comprises:
acquiring a duration during which the number of vehicles on the road to be monitored is greater than the target domain value; and in a case where the number of vehicles on the road to be monitored is greater than the target domain value and the duration is greater than a preset time threshold value, determining that congestion occurs on the road to be monitored.
11 . A device for determining road operation condition, comprising a memory, a communication bus, and a processor, wherein
the memory is configured to store a program for determining road operation condition executable by the processor; the communication bus is configured to implement connection communication between the processor and the memory; and the processor is configured to: acquire an image of road to be monitored, wherein the image is obtained by photographing the road to be monitored; acquire a number of vehicles on the road to be monitored, and divide the road to be monitored into an upstream road and a downstream road based on the image and the number of vehicles on the road to be monitored; acquire a number of vehicles on the upstream road and a number of vehicles on the downstream road, and determine a target domain value based on the number of vehicles on the road to be monitored, the number of vehicles on the upstream road, the number of vehicles on the downstream road, and a traffic wave of the road to be monitored; and determine that congestion occurs on the road to be monitored in a case where the number of vehicles on the road to be monitored is greater than the target domain value.
12 . The device of claim 11 , wherein the processor is further configured to:
analyze the image by using a neural network algorithm to divide the road to be monitored into roads in different directions; and respectively acquire a number of vehicles on roads in each direction of the road to be monitored; and correspondingly, the processor is further configured to: respectively divide the roads in each direction into an upstream road and a downstream road based on the image of the road to be monitored and the number of vehicles on the roads in each direction.
13 . The device of claim 12 , wherein the processor is further configured to:
respectively discretize the roads in each direction into J parts, wherein J is a positive integer greater than 1; analyze the image of the road to be monitored and the number of vehicles on the roads in each direction to respectively determine a number of vehicles on each of the J parts of the roads in each direction within a first preset time period; and perform calculation processing on the number of vehicles on each part of the roads among the roads in each direction within the first preset time period, and divide the roads in each direction into the upstream road and the downstream road based on a calculation result.
14 . The device of claim 13 , wherein the processor is further configured to:
determine a cut point k by calculation based on the number of vehicles on each part of the roads in each direction within the first preset time period; and determine, according to traveling directions of the vehicles, one or more roads corresponding to first k parts of the roads in each direction as the upstream road, and determine none or more roads corresponding to a remaining part other than the first k parts of the roads in each direction as the downstream road.
15 . The device of claim 11 , wherein the processor is further configured to:
acquire a first number of vehicles on roads in each direction of the road to be monitored at each moment within a second preset time period; and determine a suspected congestion moment and a suspected congestion number for the roads in each direction by calculation based on the first number of vehicles on the roads in each direction of the road to be monitored at each moment within the second preset time period; acquire the number of vehicles on the upstream road and the number of vehicles on the downstream road in the roads in each direction at each moment within a first preset time period; and for the roads in each direction, responsive to determining, based on the number of vehicles on the upstream road and the number of vehicles on the downstream road in the roads in each direction at each moment within the first preset time period, that a congested traffic wave exists in the traffic wave of the road to be monitored at the suspected congestion moment, to determine the target domain value as the suspected congestion number.
16 . The device of claim 15 , wherein the processor is further configured to:
acquire a second number of vehicles on the roads in each direction after a preset interval time from each moment within the second preset time period; acquire a third number of vehicles on the roads in each direction before a preset interval time from each moment within the second preset time period; and for the roads in each direction, determine a moment at which the first number is less than the second number and the first number is greater than the third number as the suspected congestion moment, and determine a number of vehicles at the suspected congestion moment as the suspected congestion number.
17 . The device of claim 15 , wherein the processor is further configured to:
calculate operation time of the roads in each direction based on the number of vehicles on the upstream road and the number of vehicles on the downstream road in the roads in each direction at each moment within the first preset time period, wherein the operation time is time when the vehicles travel from the upstream road to the downstream road; calculate a first growth rate for the upstream road in the roads in each direction of the road to be monitored at the suspected congestion moment, and a second growth rate for the downstream road in the roads in each direction after the operation time from the suspected congestion moment; for the roads in each direction, calculate a to-be-determined numerical value based on the first growth rate and the second growth rate; and for the roads in each direction, in a case where the to-be-determined numerical value is greater than a preset threshold value, determine that a congested traffic wave exists in the traffic wave of the road to be monitored at the suspected congestion moment, and determine the target threshold value as the suspected congestion number.
18 . The device of claim 17 , wherein the processor is further configured to:
acquire a number of vehicles on the upstream road in the roads in each direction at the suspected congestion moment, and a number of vehicles on the downstream road in the roads in each direction at a moment after the operation time from the suspected congestion moment; calculate a first average number of vehicles on the upstream road in the roads in each direction and a second average number of vehicles on the downstream road within a third preset time period; calculate the first growth rate based on the number of vehicles on the upstream road in the roads in each direction at the suspected congestion moment and the first average number of vehicles on the roads in each direction; and calculate the second growth rate based on the number of vehicles on the downstream road in the roads in each direction at the moment after the operation time from the suspected congestion moment and the second average number of vehicles on the roads in each direction.
19 . The device of claim 17 , wherein the processor is further configured to:
calculate a first difference between a growth rate of the upstream road and a growth rate of the downstream road in the roads in each direction based on the first growth rate and the second growth rate of the roads in each direction; calculate a second difference between the number of vehicles on the roads in each direction at the suspected congestion moment and the number of vehicles on the roads in each direction at a previous moment of the suspected congestion moment; and for the roads in each direction, calculate the to-be-determined numerical value based on the first difference and the second difference.
20 . A non-transitory computer-readable storage medium, having a computer program stored thereon, wherein the computer program, when executed by a processor, implements operations including:
acquiring an image of a road to be monitored, wherein the image is obtained by photographing the road to be monitored; acquiring a number of vehicles on the road to be monitored, and dividing the road to be monitored into an upstream road and a downstream road based on the image and the number of vehicles on the road to be monitored; acquiring a number of vehicles on the upstream road and a number of vehicles on the downstream road, and determining a target domain value based on the number of vehicles on the road to be monitored, the number of vehicles on the upstream road, the number of vehicles on the downstream road, and a traffic wave of the road to be monitored; and determining that congestion occurs on the road to be monitored in a case where the number of vehicles on the road to be monitored is greater than the target domain value.Join the waitlist — get patent alerts
Track US2022148316A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.