Traffic flow detection method and related devices
By identifying internal and intersecting roads within the target area, vehicle departure volume and traffic flow information are obtained. Combined with growth factor simulation of repeated counting, the problem of inaccurate traffic flow statistics is solved, and accurate traffic flow determination is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- LINKTECH NAVI TECH
- Filing Date
- 2025-01-24
- Publication Date
- 2026-07-24
AI Technical Summary
Existing technology cannot accurately count traffic flow within a region because it cannot deduplicate the unique identifiers of vehicles, leading to inaccurate traffic flow statistics.
By identifying internal roads and intersections within the target area, vehicle departure information and intersection type are obtained. Combined with traffic flow information of intersections, the total traffic flow is determined. A growth factor is used to simulate repeated counting, and the departure and entry numbers of vehicles are fused together to achieve accurate traffic flow determination.
Even without vehicle identification, it enables accurate determination of traffic flow within a target area, avoids duplicate vehicle counting, and improves the accuracy of traffic flow statistics.
Smart Images

Figure CN122454767A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, specifically to a traffic flow detection method and related equipment. Background Technology
[0002] With rapid economic development, the number of motor vehicles is increasing, leading to various traffic problems such as traffic congestion, frequent traffic accidents, severe noise pollution, and air pollution. Therefore, the demand for traffic flow statistics is gradually increasing. Traffic flow statistics help understand road traffic conditions, identify traffic congestion points, and enable timely traffic scheduling and management to improve road capacity. Furthermore, traffic flow statistics can pinpoint urban traffic bottlenecks, allowing for traffic system optimization measures such as adding new roads, establishing dedicated bus lanes, and adjusting traffic rules. Simultaneously, traffic flow data can identify high-traffic, dangerous road sections, allowing for the implementation of traffic lights, speed limits, and other measures to improve road safety. Accurate traffic flow data also contributes to the study of traffic-related pollution and noise levels.
[0003] Current technologies, for scenarios requiring traffic flow statistics within a region, can only attempt to obtain the trajectory of every vehicle within that region and calculate the traffic flow based on that trajectory. However, due to compliance requirements, the trajectory data of vehicles on roads within a region currently lacks unique vehicle identifiers. This makes it impossible to deduplicate vehicles across all roads within a region using their identifiers, thus hindering accurate traffic flow statistics. Summary of the Invention
[0004] This application provides a traffic flow detection method and related equipment; the related equipment may include a traffic flow detection device, electronic equipment, computer-readable storage medium and computer program product, which can enable the accurate determination of traffic flow information in the target area when only traffic flow statistics information of each internal road and each intersection road without vehicle signs can be obtained.
[0005] This application provides a traffic flow detection method, including:
[0006] Determine the target area for traffic flow detection, and identify each internal road within the target area, as well as each intersecting road that intersects with the boundary line of the target area;
[0007] Obtain vehicle departure information for each internal road within a preset time period;
[0008] For each intersecting road, based on the positional relationship information between the road endpoints of the intersecting road and the target area, the intersection type of the intersecting road is identified to obtain the intersection type of the intersecting road;
[0009] Based on the intersection type of the intersection, obtain the traffic flow information of the intersection within the preset time period;
[0010] Based on the vehicle departure volume information of each internal road within a preset time period and the traffic flow information of each intersecting road within a preset time period, the total traffic flow information of the target area within the preset time period is determined.
[0011] Accordingly, embodiments of this application provide a traffic flow detection device, including:
[0012] The area determination unit is used to determine the target area for traffic flow detection, and to determine each internal road in the target area, as well as each intersecting road that intersects with the area boundary line of the target area;
[0013] The first acquisition unit is used to acquire vehicle departure information for each internal road within a preset time period.
[0014] The identification unit is used to identify the intersection type of each intersection road based on the positional relationship information between the road endpoints of the intersection road and the target area, and to obtain the intersection type of the intersection road.
[0015] The second acquisition unit is used to acquire traffic flow information of the intersecting roads within the preset time period based on the intersection type of the intersecting roads;
[0016] The traffic flow determination unit is used to determine the total traffic flow information of the target area within the preset time period based on the vehicle departure volume information of each internal road within the preset time period and the traffic flow information of each intersecting road within the preset time period.
[0017] Optionally, in some embodiments of this application, the traffic flow detection device may further include a third acquisition unit, a fourth acquisition unit, a growth factor determination unit, and a fusion unit, as follows:
[0018] The third acquisition unit is used to acquire information on the number of vehicles departing from the target area within a preset time period;
[0019] The fourth acquisition unit is used to acquire information on the number of vehicles entering the target area from the outside within the preset time period;
[0020] A growth factor determination unit is used to determine a growth factor for simulating repeated counting based on the region size information of the target region;
[0021] The fusion unit is used to fuse the vehicle departure number information and the vehicle entry number information according to the growth factor to obtain the total traffic flow information of the target area within the preset time period.
[0022] Optionally, in some embodiments of this application, the growth factor determining unit may be specifically used to determine the growth factor used to simulate repeated counting as a preset value when the area size information of the target area is smaller than a preset size;
[0023] Specifically, the fusion unit can be used to perform fusion processing on the number of vehicles departing and the number of vehicles entering based on the preset value when the area size information of the target area is smaller than the preset size, so as to obtain the total traffic flow information of the target area within the preset time period.
[0024] Optionally, in some embodiments of this application, the growth factor determination unit may include a region type identification subunit and a growth factor determination subunit, as follows:
[0025] The region type identification subunit is used to identify the region type of the target region when the region size information of the target region is smaller than a preset size;
[0026] The growth factor determination subunit is used to determine the growth factor used to simulate repeated counting as a preset value when the target region is identified as a non-abnormal region.
[0027] Optionally, in some embodiments of this application, the fusion unit may include a fusion subunit and an adjustment subunit, as follows:
[0028] The fusion subunit is used to fuse the vehicle departure number information and the vehicle entry number information when the area size information of the target area is smaller than the preset size and the target area is a non-abnormal area, so as to obtain the initial total traffic flow information of the target area within the preset time period.
[0029] The adjustment subunit is used to adjust the initial total traffic flow information based on the preset value to obtain the total traffic flow information of the target area within the preset time period.
[0030] Optionally, in some embodiments of this application, the traffic flow detection device may further include a vehicle inflow index determination unit, as follows:
[0031] The vehicle inflow index determination unit is used to determine a first internal arrival quantity based on the number of vehicles arriving at each intersection of the target area within a preset time period; determine a second internal arrival quantity based on the number of vehicles arriving at each internal road of the target area within a preset time period; and determine the vehicle inflow index information of the target area within the preset time period based on the first internal arrival quantity and the second internal arrival quantity.
[0032] Optionally, in some embodiments of this application, the traffic flow detection device may further include a vehicle outflow index determination unit, as follows:
[0033] The vehicle outflow index determination unit is used to determine a first internal departure volume based on the number of vehicle departures at each intersection of the target area within a preset time period; determine a second internal departure volume based on the number of vehicle departures at each internal road of the target area within a preset time period; and determine the vehicle outflow index information of the target area within a preset time period based on the first internal departure volume and the second internal departure volume.
[0034] Optionally, in some embodiments of this application, the identification unit may include a first detection subunit, a second detection subunit, and a third detection subunit, as follows:
[0035] The first detection subunit is used to detect, for each intersecting road, whether the two road endpoints of the intersecting road are located on the same side of the boundary line of the target area;
[0036] The second detection subunit is used to detect the traffic flow direction of the intersecting roads when the two road endpoints of the intersecting roads are on different sides of the boundary line of the target area, so as to determine the intersection type of the intersecting roads based on the detected traffic flow direction.
[0037] The third detection subunit is used to detect the inclusion relationship information between the two road endpoints of the intersecting road and the target area when the two road endpoints of the intersecting road are on the same side of the area boundary line of the target area, so as to determine the intersection type of the intersecting road based on the detected inclusion relationship information.
[0038] Optionally, in some embodiments of this application, the second acquisition unit may include a first acquisition subunit, a second acquisition subunit, a third acquisition subunit, and a fourth acquisition subunit, as follows:
[0039] The first acquisition subunit is used to acquire vehicle departure information of the intersecting road within the preset time period when the intersecting road is an intersection type where both road endpoints are within the target area;
[0040] The second acquisition subunit is used to acquire traffic flow information of the intersection within the preset time period when the intersection is an intersection type in which both road endpoints are outside the target area.
[0041] The third acquisition subunit is used to acquire traffic flow information of the intersection within a preset time period when the two road endpoints of the intersection are located on different sides of the boundary line of the target area and the traffic flow direction is flowing into the target area.
[0042] The fourth acquisition subunit is used to acquire vehicle departure information of the intersecting road within the preset time period when the intersection type is such that the two road endpoints of the intersecting road are on different sides of the boundary line of the target area and the traffic flow direction is out of the target area.
[0043] In this application embodiment, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.
[0044] An electronic device provided in this application includes a processor and a memory. The memory stores multiple instructions, and the processor loads the instructions to execute the steps in the traffic flow detection method provided in this application.
[0045] This application also provides a computer-readable storage medium storing a computer program thereon, wherein the computer program, when executed by a processor, implements the steps in the traffic flow detection method provided in this application.
[0046] Furthermore, embodiments of this application also provide a computer program product, including a computer program or instructions, which, when executed by a processor, implement the steps in the traffic flow detection method provided in embodiments of this application.
[0047] This application provides a traffic flow detection method and related equipment, which can determine a target area for traffic flow detection, and identify each internal road within the target area and each intersecting road that intersects the boundary line of the target area; obtain vehicle departure information of each internal road within a preset time period; for each intersecting road, identify the intersection type based on the positional relationship information between the road endpoints of the intersecting road and the target area to obtain the intersection type of the intersecting road; obtain the traffic flow information of the intersecting road within the preset time period based on the intersection type of the intersecting road; and determine the total traffic flow information of the target area within the preset time period based on the vehicle departure information of each internal road within the preset time period and the traffic flow information of each intersecting road within the preset time period.
[0048] This application enables accurate determination of traffic flow information within a target area, even when only traffic flow statistics for internal roads and intersections without vehicle markings are available. Attached Figure Description
[0049] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0050] Figure 1a This is a schematic diagram of a scenario for the traffic flow detection method provided in the embodiments of this application;
[0051] Figure 1b This is a flowchart of the traffic flow detection method provided in the embodiments of this application;
[0052] Figure 1c This is an explanatory diagram of the traffic flow detection method provided in the embodiments of this application;
[0053] Figure 1d This is another illustrative diagram of the traffic flow detection method provided in the embodiments of this application;
[0054] Figure 2 This is another flowchart of the traffic flow detection method provided in the embodiments of this application;
[0055] Figure 3 This is a schematic diagram of the traffic flow detection device provided in the embodiments of this application;
[0056] Figure 4 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0057] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0058] This application provides a traffic flow detection method and related equipment. The related equipment may include a traffic flow detection device, electronic equipment, a computer-readable storage medium, and a computer program product. Specifically, the traffic flow detection device may be integrated into an electronic device, which may be a terminal or a server, etc.
[0059] It is understood that the traffic flow detection method of this embodiment can be executed on a terminal, on a server, or jointly by a terminal and a server. The above examples should not be construed as limiting this application.
[0060] like Figure 1a As shown, the traffic flow detection method is implemented jointly by a terminal and a server as an example. The traffic flow detection system provided in this application includes a terminal 10 and a server 11, etc.; the terminal 10 and the server 11 are connected through a network, such as through a wired or wireless network, etc., wherein the traffic flow detection device can be integrated into the server.
[0061] Server 11 can be used to: determine a target area for traffic flow detection, and determine each internal road within the target area, as well as each intersecting road that intersects the boundary line of the target area; acquire vehicle departure information for each internal road within a preset time period; for each intersecting road, identify the intersection type based on the positional relationship between the road endpoints of the intersecting road and the target area, and obtain the intersection type of the intersecting road; acquire traffic flow information for the intersecting road within the preset time period based on the intersection type of the intersecting road; and determine the total traffic flow information of the target area within the preset time period based on the vehicle departure information of each internal road and the traffic flow information of each intersecting road within the preset time period. Server 11 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services.
[0062] Terminal 10 can be used to: send area information of the target area for which traffic flow detection needs to be performed to server 11, so that server 11 can perform traffic flow detection on the target area based on the received area information; terminal 10 can also receive total traffic flow information of the target area within a preset time period sent by server 11. Terminal 10 may include mobile phones, vehicle-mounted terminals, aircraft, tablet computers, laptops, or personal computers (PCs), etc. A client can also be set on terminal 10, which can be an application client or a browser client, etc.
[0063] The traffic flow detection and other steps in the aforementioned server 11 can also be performed by the terminal 10.
[0064] The following sections provide detailed descriptions of each example. It should be noted that the order in which the embodiments are described is not intended to limit the preferred order of the embodiments.
[0065] This embodiment will be described from the perspective of a traffic flow detection device, which can be integrated into an electronic device, such as a server or a terminal.
[0066] It is understood that in the specific embodiments of this application, data such as user information are involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0067] like Figure 1b As shown, the specific process of this traffic flow detection method can be as follows:
[0068] 101. Determine the target area for traffic flow detection, and determine each internal road within the target area, as well as each intersecting road that intersects with the area boundary line of the target area.
[0069] In this embodiment, the size and type of the target area are not limited. For example, the target area can be a type of area containing relatively more green hills; or, for example, the target area can be a type of area that has undergone large-scale artificial development and construction. Specifically, the type of area that has undergone large-scale artificial development and construction can be mainly composed of artificial facilities such as buildings, roads, and squares, and generally has very little natural topography such as hills and green spaces.
[0070] The regional boundary line is the line used to divide the area, specifically the boundary line between the target area and its surrounding areas. This embodiment can determine the internal roads and intersecting roads of the target area based on the regional boundary line.
[0071] Internal roads are those entirely within the target area. For internal roads entirely within the target area, based on the relationship between their endpoints and the boundary line of the target area, there are two cases: one is that the internal road does not intersect the boundary line of the target area, meaning the endpoints of the internal road are not on the boundary line of the target area; the other is that the endpoints of the internal road are exactly on the boundary line of the target area. It should be noted that "entirely within the target area" here means that the road has no part outside the target area, but the endpoints of the road can be on the boundary line of the target area.
[0072] Specifically, an intersecting road is a road in which part of the road is located within the target area and the other part is located outside the target area. Specifically, the two endpoints of an intersecting road can both be within the target area, both endpoints can both be outside the target area, or one endpoint can be within the target area and the other endpoint can be outside the target area.
[0073] For a road, if part of the road is located within the target area and another part is located outside the target area, the road is considered an intersecting road within the target area; if the road is entirely within the target area, the road is considered an internal road within the target area. In other words, the two categories of internal roads and intersecting roads do not overlap. If a road is an intersecting road within the target area, then it is not an internal road within the target area; conversely, if a road is an internal road within the target area, then it is not an intersecting road within the target area.
[0074] It should be noted that the road involved in this embodiment is a complete road. For a road segment that intersects with the boundary of the target area and extends into the target area, the road is regarded as an intersecting road of the target area. The intersecting road includes the external road segment itself and the road segment that extends into the target area.
[0075] 102. Obtain vehicle departure information for each internal road within a preset time period.
[0076] The preset time period can be the specific time period for which traffic flow statistics need to be collected, and can be set according to actual conditions. For example, the preset time period can be a certain time of day (such as the morning rush hour) or a certain number of days in a week.
[0077] Specifically, the vehicle departure information for internal roads within a preset time period refers to the number of vehicles departing from those internal roads during that preset time period. "Departing from internal roads" here includes departing from any point on the internal roads.
[0078] For example, the preset time period is from 7:00 AM to 8:00 AM on a weekday. For a certain internal road, if 120 vehicles depart from it between 7:00 AM and 7:15 AM, 150 vehicles between 7:15 AM and 7:30 AM, 180 vehicles between 7:30 AM and 7:45 AM, and 200 vehicles between 7:45 AM and 8:00 AM, then the total number of vehicles departing from that internal road within that hour is: 120 + 150 + 180 + 200 = 650. This total number of departing vehicles is the vehicle departure volume information.
[0079] 103. For each intersecting road, based on the positional relationship information between the road endpoints of the intersecting road and the target area, the intersection type of the intersecting road is identified to obtain the intersection type of the intersecting road.
[0080] The road endpoints of an intersection can include a road start point and a road end point. Specifically, in this embodiment, the road start point and road end point can be determined based on the traffic flow direction, which refers to the main direction in which vehicles travel on the road. The road start point is the end where vehicles enter, and the road end point is the end where vehicles exit.
[0081] The locational relationship information between the road endpoint and the target area can include whether the road endpoint is within the target area, specifically whether the road start point is within the target area and whether the road end point is within the target area.
[0082] Specifically, if the starting point of an intersecting road is identified as being within the target area and the ending point as being outside the target area, then the intersecting road can be determined to be an intersection type where the two road endpoints are on different sides of the boundary line of the target area, and the traffic flow direction is outward from the target area. If the starting point of an intersecting road is identified as being outside the target area and the ending point as being within the target area, then the intersecting road can be determined to be an intersection type where the two road endpoints are on different sides of the boundary line of the target area, and the traffic flow direction is inward from the target area.
[0083] If both the starting and ending points of an intersecting road are located within the target area, the intersecting road can be identified as an intersection where both road endpoints are within the target area. If neither the starting nor ending point of an intersecting road is located within the target area, the intersecting road can be identified as an intersection where both road endpoints are outside the target area.
[0084] Optionally, in this embodiment, the step "for each intersecting road, based on the positional relationship information between the road endpoints of the intersecting road and the target area, identify the intersection type of the intersecting road to obtain the intersection type of the intersecting road" may include:
[0085] For each intersecting road, detect whether the two road endpoints of the intersecting road are located on the same side of the boundary line of the target area;
[0086] When the two road endpoints of the intersection are located on different sides of the boundary line of the target area, the traffic flow direction of the intersection is detected to determine the intersection type of the intersection based on the detected traffic flow direction;
[0087] When the two road endpoints of the intersecting road are on the same side of the boundary line of the target area, the inclusion relationship information between the two road endpoints of the intersecting road and the target area is detected, so as to determine the intersection type of the intersecting road based on the detected inclusion relationship information.
[0088] Specifically, when the two endpoints of an intersecting road are located on opposite sides of the boundary line of the target area, it indicates that one endpoint is within the target area and the other is outside. The specific endpoint within the target area can be determined by the direction of traffic flow. When the traffic flow direction of the intersecting road is detected as inflow (flowing into the target area), it can be determined that the starting point of the intersecting road is outside the target area, and the ending point is within the target area. When the traffic flow direction of the intersecting road is detected as outflow (flowing out of the target area), it can be determined that the starting point of the intersecting road is within the target area, and the ending point is outside the target area.
[0089] When the two road endpoints of the intersecting roads are on the same side of the boundary line of the target area, it can be further determined whether the target area contains the two road endpoints of the intersecting roads. If the target area contains the two road endpoints of the intersecting roads, it means that the two road endpoints of the intersecting roads are both within the target area; if the target area does not contain the two road endpoints of the intersecting roads, it means that the two road endpoints of the intersecting roads are both outside the target area.
[0090] 104. Based on the intersection type of the intersection, obtain the traffic flow information of the intersection within a preset time period.
[0091] In this embodiment, the specific traffic flow information required for different intersection types may vary. Traffic flow information can be categorized in several ways, including vehicle departure information, traffic generation information, and vehicle arrival information.
[0092] Specifically, the traffic volume information for a road within a preset time period can be determined by the number of vehicles departing, arriving, and passing through the road within that preset time period. The number of vehicles arriving can be the number flowing into the road from other roads. In essence, the traffic volume information for a road within a preset time period is the total number of vehicles passing through the road within that preset time period.
[0093] Optionally, in this embodiment, the step "obtaining traffic flow information of the intersecting roads within a preset time period based on the intersection type of the intersecting roads" may include:
[0094] When the intersection is a type of intersection where both road endpoints are within the target area, obtain the vehicle departure volume information of the intersection within the preset time period;
[0095] When the intersection is a type of intersection where both road endpoints are outside the target area, the traffic flow information of the intersection within the preset time period is obtained;
[0096] When the intersection type is such that the two road endpoints of the intersection are located on different sides of the boundary line of the target area, and the traffic flow direction is flowing into the target area, the traffic flow volume information of the intersection within the preset time period is obtained;
[0097] When the intersection type is such that the two road endpoints of the intersection are on different sides of the boundary line of the target area and the traffic flow direction is out of the target area, the vehicle departure volume information of the intersection within the preset time period is obtained.
[0098] This application relates to a method for detecting traffic flow in a target area, which determines the traffic flow information of the target area by statistically analyzing the traffic flow information of roads. To avoid duplicate vehicle counting, this application can divide the roads related to the target area into internal roads and intersecting roads, using different statistical methods for internal roads and intersecting roads.
[0099] Specifically, for internal roads within the target area, the number of vehicles departing from these internal roads can be statistically analyzed. Since vehicles passing through or arriving at internal roads may have originated from other internal roads, and if vehicles originate from roads outside the target area or from intersecting roads within the target area, these vehicles also need to pass through intersecting roads to enter the internal roads. Therefore, they can be included in the traffic flow statistics related to intersecting roads. Thus, for internal roads, only the number of vehicles departing should be obtained, and the number of vehicles passing through and arriving should not be statistically analyzed to avoid duplicate vehicle statistics.
[0100] For intersections in the target area, specific traffic flow information can be obtained based on the intersection type.
[0101] For intersections where the two road endpoints are on opposite sides of the area boundary and the traffic flow is outward, they can be considered similar to internal roads. Vehicles passing through or arriving at these intersections may have originated from internal roads, meaning these vehicles have already been counted in the traffic flow statistics for internal roads and do not need to be counted again here. Vehicles passing through or arriving at these intersections may also have originated from other types of intersections, which can be counted in the traffic flow statistics related to other types of intersections. It should be noted that since the road originates within the target area, vehicles outside the target area cannot directly enter intersections of this type. Vehicles originating from roads outside the target area also need to pass through other types of intersections to enter this type of intersection. Therefore, for this type of intersection, only the vehicle departure volume is collected; the vehicle passage volume and vehicle arrival volume are not counted to avoid duplicate counting. The vehicle departure volume is then used as the traffic flow information for this type of intersection.
[0102] For intersections where both endpoints are within the target area, they can be treated similarly to internal roads. Vehicles passing through or arriving at such intersections may originate from internal roads, meaning these vehicles have already been counted in the traffic flow statistics for internal roads and do not need to be counted again here. Vehicles passing through or arriving at such intersections may also originate from other intersection types, which can be included in the traffic flow statistics related to other intersection types. It should be noted that since the road originates within the target area, vehicles outside the target area cannot directly enter intersections of this type. Vehicles originating from roads outside the target area must also pass through other intersection types to enter this type of intersection. Therefore, for this type of intersection, only the vehicle departure volume is collected; the vehicle passage and arrival volumes are not counted to avoid duplicate counting. The vehicle departure volume is then used as the traffic flow information for this type of intersection.
[0103] For intersections where both road endpoints are outside the target area, since the starting point of the intersection is outside the target area, vehicles passing through or arriving at this type of intersection originate from roads outside the target area. Therefore, it is necessary to count the number of vehicles passing through and arriving at this type of intersection, as well as the number of vehicles departing. Thus, for this type of intersection, it is necessary to obtain its traffic flow generation information and use this traffic flow generation information as the traffic volume information for this type of intersection.
[0104] For intersections where the two road endpoints are on opposite sides of the area boundary and the traffic flow is inflow, since the starting point of this type of intersection is outside the target area, vehicles passing through or arriving at this type of intersection originate from roads outside the target area. Therefore, it is necessary to statistically analyze the vehicle passage and arrival volumes for this type of intersection, as well as the vehicle departure volumes. Specifically, vehicles passing through this intersection originate from roads outside the target area, enter the intersection, and finally flow into the target area via the intersection.
[0105] 105. Based on the vehicle departure volume information of each internal road within a preset time period and the traffic flow information of each intersecting road within a preset time period, determine the total traffic flow information of the target area within the preset time period.
[0106] In this embodiment, the vehicle departure volume information of each internal road and the traffic flow information of each intersecting road within a preset time period can be fused to obtain the total traffic flow information of the target area within the preset time period. Specifically, this fusion processing can be achieved through addition operations, etc.
[0107] The traffic flow information of each intersection within a preset time period can be determined based on the intersection type of the intersection, as described in the above embodiments, and will not be repeated here.
[0108] Specifically, in addition to determining the total traffic flow information of the target area based on the vehicle departure volume information of each internal road and the traffic flow information of the intersecting roads, this embodiment can also determine the total traffic flow information of the target area based on the area size information of the target area, as described below.
[0109] Optionally, in this embodiment, the traffic flow detection method may further include:
[0110] Obtain information on the number of vehicles departing from the target area within a preset time period;
[0111] Obtain the number of vehicles entering the target area from outside within the preset time period;
[0112] Based on the region size information of the target region, a growth factor for simulating repeated counting is determined;
[0113] Based on the growth factor, the vehicle departure number information and the vehicle entry number information are fused to obtain the total traffic flow information of the target area within the preset time period.
[0114] The vehicle departure information can include the number of vehicles leaving the target area and the number of vehicles arriving at another location within the target area. The number of vehicles leaving the target area can be denoted as M, specifically representing the number of vehicles leaving the target area. The number of vehicles arriving at another location within the target area can be denoted as N, specifically representing the number of vehicles arriving at the target area. Therefore, the vehicle departure information for the target area can be represented as M+N.
[0115] The vehicle entry quantity information can include the number of vehicles entering the target area from outside and finally leaving the target area, as well as the number of vehicles entering the target area from outside and finally arriving inside the target area. The number of vehicles entering the target area from outside and finally leaving the target area can be denoted as X, which represents the number of vehicles leaving the target area from the outside; the number of vehicles entering the target area from outside and finally arriving inside the target area can be denoted as Y, which represents the number of vehicles arriving from the target area from the outside. Thus, the vehicle entry quantity information for the target area can be recorded as X + Y.
[0116] In this embodiment, determining the total traffic flow in the target area within a preset time period solely based on vehicle departure and entry information may lead to an underestimation of the actual traffic flow. Specifically, as the number of road segments increases, vehicle routes within the area become more complex, potentially involving multiple passes through certain road segments. For example, a vehicle might travel to different locations multiple times within the area, and each pass should be counted. In such cases, neglecting double counting would result in an underestimation of the actual cumulative traffic volume. Therefore, this embodiment introduces a growth factor to simulate this double counting.
[0117] The growth factor is a simulation parameter used to simulate the double-counting effect as the number of road segments increases, ensuring that the total traffic flow information more accurately reflects the actual total number of vehicles and avoids underestimating actual traffic flow. It should be noted that the total traffic flow information of the target area within the preset time period is also the cumulative number of vehicles within the target area.
[0118] The growth factor can be denoted as s, and the value of s is greater than or equal to 1, i.e., s≥1. The specific value of s needs to be determined through actual traffic data and simulation results. In some specific embodiments, the value of s is related to the area size. The larger the area size, the more road segments it contains, and the larger s will be; conversely, the smaller the area size, the fewer road segments it contains, and the smaller s will be.
[0119] refer to Figure 1c This is a traffic flow diagram for a region. The rectangle represents the boundary of the target region, which can include multiple roads (denoted as "link"), and vehicles can travel on these roads. For the target region, there are the following data: the number of vehicles entering the region from outside and leaving; the number of vehicles arriving within the region from outside; the number of vehicles leaving the region from within; and the number of vehicles arriving at another location within the region from within. Based on X, Y, M, and N, the number of vehicles entering, departing from, arriving from, and leaving the target region within a preset time period can be obtained.
[0120] Among them, vehicle entry is the total number of vehicles entering the area from the outside, vehicle departure is the total number of vehicles leaving the area, vehicle arrival is the total number of vehicles arriving in the area, and vehicle departure is the total number of vehicles leaving the area and arriving outside the area. These four cases can be calculated using equations (1), (2), (3), and (4), respectively:
[0121] Vehicle entry volume = X + Y (1)
[0122] Vehicle departure quantity = M + N (2)
[0123] Arrival quantity inside the vehicle = Y + N (3)
[0124] Vehicle departure amount = X + M (4)
[0125] The cumulative volume within the target area can be represented by formula (5), where the cumulative volume is the total number of vehicles that have appeared within the area, specifically the total traffic flow information of the target area, as follows:
[0126] Internal cumulative quantity = s * (M + N + X + Y) (5)
[0127] Among them, s >= 1 is the growth factor, which simulates the repeated calculation as the number of road segments increases. It can be understood that there is a linear relationship between the cumulative amount within the target area and the vehicle entry amount + vehicle departure amount as shown in the following formula (6):
[0128] t * (X + Y + X + M) = s * (M + N + X + Y) (6)
[0129] Transforming formula (6) can obtain the linear relationship shown in the following formula (7):
[0130] ((2t - s) / s) X + ((t - s) / s) Y + ((t - s) / s) M = N (7)
[0131] Among them, it can be understood that when the area of the region is not large, generally X >= N, so it can be obtained that: (s / 2) <= t <= s. t is specifically the ratio of the internal cumulative flow and the entry and departure amounts, and the entry and departure amounts are the sum of the vehicle entry amount and the vehicle departure amount. This relationship can be specifically verified using data:
[0132] For example, taking the secondary blocks of a city (with an area between 0.05 - 1 square kilometers - simulating a park) as the target area for traffic volume statistical calculation, through actual traffic data, it can be obtained that 78% of the areas have 0.5 < t < 1. In addition, a large part of the remaining 22% of the areas that do not satisfy the relationship 0.5 < t < 1 are abnormal areas; thus, it can be initially judged that more than 78% of the areas have 0.5 < t < 1, so s is close to 1. Therefore, this embodiment can determine the growth factor in combination with the regional size and regional type of the target area.
[0133] Optionally, in this embodiment, the step of "determining the growth factor for simulating repeated counting based on the regional size information of the target area" may include:
[0134] When the regional size information of the target area is less than the preset size, determine the growth factor for simulating repeated counting as the preset value;
[0135] The step of "performing fusion processing on the vehicle departure quantity information and the vehicle entry quantity information according to the growth factor to obtain the total traffic volume information of the target area within the preset time period" may include:
[0136] When the regional size information of the target area is less than the preset size, perform fusion processing on the vehicle departure quantity information and the vehicle entry quantity information based on the preset value to obtain the total traffic volume information of the target area within the preset time period.
[0137] The preset size can be set according to the actual situation. Specifically, when the size of the target area is smaller than the preset size, the growth factor can be set to the preset value of 1.
[0138] Optionally, in this embodiment, the step "when the area size information of the target area is smaller than the preset size, determine the growth factor used to simulate repeated counting as a preset value" may include:
[0139] When the size of the target area is smaller than a preset size, the target area is identified by its type.
[0140] When the target region is identified as a non-abnormal region, the growth factor used to simulate repeated counting is determined to be a preset value;
[0141] The step "When the area size information of the target area is smaller than a preset size, based on the preset value, the vehicle departure number information and the vehicle entry number information are fused to obtain the total traffic flow information of the target area within the preset time period" may include:
[0142] When the area size information of the target area is smaller than the preset size and the target area is a non-abnormal area, the vehicle departure number information and the vehicle entry number information are fused to obtain the initial total traffic flow information of the target area within the preset time period.
[0143] Based on the preset value, the initial total traffic flow information is adjusted to obtain the total traffic flow information of the target area within the preset time period.
[0144] Specifically, in this embodiment, when the area size is detected and determined to be smaller than a preset size, it can further detect whether the target area is an abnormal area. If it is not an abnormal area, the vehicle departure number information and vehicle entry number information are fused based on the growth factor under the preset value to obtain the total traffic flow information of the target area within the preset time period. The specific calculation process can be referred to the above formula (5), where s is the growth factor, X+Y represents the vehicle entry number information, M+N represents the vehicle departure number information, X+Y+M+N represents the initial total traffic flow information, and the cumulative amount is also the total traffic flow information.
[0145] Among them, non-abnormal areas can be areas where the developed and constructed area exceeds a preset first proportion, while abnormal areas can be areas where the undeveloped and constructed area exceeds a preset second proportion. The preset first and second proportions can be set according to actual conditions. For example, if 50% of an area is green space and forest, then that area can be considered an abnormal area.
[0146] For abnormal areas or areas whose size is not smaller than a preset size, the total traffic flow information can be calculated using the method described above, which uses traffic flow statistics for each internal road and intersection within the target area. It should be noted that the same method can also be used to calculate the total traffic flow information for smaller areas and non-abnormal areas.
[0147] In some embodiments, for a target area that needs to be counted traffic flow, the target area can first be identified as a region type. If the target area is identified as a non-abnormal region, a set of mapping relationships between a preset region size and a preset growth factor can be obtained. Based on the region size information and the set of mapping relationships of the target area, the growth factor corresponding to the target area can be determined. Then, based on the growth factor, the vehicle departure number information and the vehicle entry number information can be fused to obtain the total traffic flow information of the target area within a preset time period.
[0148] Specifically, this mapping relationship set can be a table showing the relationship between a preset region size and a preset growth factor. Based on the region size information of the target region, the corresponding growth factor can be found from the relationship table. This mapping relationship set can be statistically constructed based on data collected from actual applications.
[0149] Optionally, in this embodiment, the traffic flow detection method may further include:
[0150] Based on the number of vehicles arriving at each intersection in the target area within a preset time period, the first arrival quantity is determined.
[0151] Based on the number of vehicles arriving on each internal road of the target area within a preset time period, a second internal arrival quantity is determined.
[0152] Based on the first and second intra-regional arrivals, determine the vehicle inflow index information of the target area within a preset time period.
[0153] The first internal arrival quantity can be the sum of the number of vehicles arriving at each intersection road in the target area within a preset time period, and the second internal arrival quantity can be the sum of the number of vehicles arriving at each internal road in the target area within a preset time period. In this embodiment, the first internal arrival quantity and the second internal arrival quantity can be fused to obtain the vehicle inflow index information of the target area within the preset time period. This fusion process can be performed by addition.
[0154] Specifically, the vehicle inflow index information is the number of vehicles arriving in the target area within a preset time period. This number of vehicles includes the number Y of vehicles entering the target area from outside and eventually arriving inside the target area, and the number N of vehicles departing from inside the target area and arriving at another location within the target area. Specifically, the number of vehicles arriving in the target area within the preset time period can be denoted as Y+N.
[0155] Since the acquired vehicle trajectory data within the area lacks unique vehicle identifiers, the values of Y and N are undetermined, and the vehicle inflow index information for the target area cannot be obtained using Y+N. This embodiment provides an alternative method for calculating the vehicle inflow index information for the target area. By statistically analyzing the first internal arrival volume corresponding to the intersecting roads and the second internal arrival volume corresponding to the internal roads within the target area, the vehicle inflow index information for the target area can be obtained, achieving accurate determination of the vehicle inflow index information for the target area.
[0156] Optionally, in this embodiment, the traffic flow detection method may further include:
[0157] Based on the number of vehicle departures at each intersection in the target area within a preset time period, the first internal departure volume is determined.
[0158] Based on the number of vehicle departures from each internal road in the target area within a preset time period, the second internal departure volume is determined.
[0159] Based on the first internal departure volume and the second internal departure volume, determine the vehicle outflow index information of the target area within a preset time period.
[0160] The first internal departure volume can be the sum of the number of vehicles departing from each intersection road in the target area within a preset time period, and the second internal departure volume can be the sum of the number of vehicles departing from each internal road in the target area within a preset time period.
[0161] This embodiment can fuse the first internal departure volume and the second internal departure volume to obtain the vehicle outflow index information of the target area within a preset time period. The fusion processing method can be addition.
[0162] Specifically, the vehicle outflow index information is the number of vehicles departing from the target area within a preset time period. This number of vehicles departing includes the number of vehicles leaving the target area (M) and the number of vehicles arriving at another location within the target area (N). Specifically, the vehicle outflow index information of the target area within the preset time period can be denoted as M+N.
[0163] Since the acquired vehicle trajectory data within the area lacks unique vehicle identifiers, the values of M and N are undetermined, and the vehicle outflow index information for the target area cannot be obtained through M+N. This embodiment provides an alternative method for calculating the vehicle outflow index information of the target area. By statistically analyzing the first internal departure volume corresponding to the intersecting roads and the second internal departure volume corresponding to the internal roads within the target area, the vehicle outflow index information of the target area can be obtained, achieving accurate determination of the vehicle outflow index information of the target area.
[0164] In specific scenarios, such as Figure 1d The diagram illustrates various traffic flow scenarios within the proposed solution, specifically 17 different scenarios. Each line segment represents a road, i.e., a link, and has two endpoints (i.e.,...). Figure 1d The dots shown represent the two ends of the road.
[0165] The rectangle represents the boundary of the area. A line segment outside the rectangle indicates the road is outside the area; a line segment inside the rectangle indicates the road is within the area; a line segment with part inside and part outside the rectangle indicates part of the road is within the area and the other part is outside. These 17 cases are explained in detail below:
[0166] Case 1 represents a vehicle departing from a starting link outside the area, with both ends of the starting link located outside the area. The destination is the arrival link, with one end of the arrival link located outside the area and the other end located within the area.
[0167] Case 2 represents a vehicle starting from a departure link outside the area, with both ends of the departure link located outside the area. The destination is the arrival link, with both ends of the arrival link located within the area. Links passed through are transit links and are not the final destination links.
[0168] Case 3 represents a vehicle starting from a departure link outside the area, with both ends of the departure link located outside the area. The destination is the arrival link, with one end of the arrival link located within the area and the other end located outside the area. The links passed through are transit links and are not the final destination links.
[0169] Case 4 represents a vehicle starting from a departure link outside the area, with both ends of the departure link located outside the area. The vehicle passes through the area and arrives at the arrival link, with both ends of the arrival link located outside the area. The links passed through are transit links and are not the final destination links.
[0170] Case 5 represents a vehicle starting from a departure link, which has two ends, one inside the area and the other outside the area. After passing through the area, the vehicle arrives at a destination link, where both ends of the destination link are inside the area.
[0171] Case 6 represents a vehicle starting from a departure link. The departure link has two ends, one within the area and the other outside the area. The destination is the arrival link, which is the vehicle passing through the area. The arrival link has one end within the area and the other outside the area. The link that is passed through is a transit link and is not the destination link.
[0172] Case 7 represents a vehicle starting from a departure link, which has two ends, one inside the area and the other outside the area. The destination is the arrival link, which is located outside the area. The links passed through are called transit links and are not the final destination links.
[0173] Case 8 represents a vehicle that departs from the starting link within the region, with both ends of the starting link located within the region, passes through the region, and arrives at the destination link, with both ends of the destination link located within the region.
[0174] Case 9 represents a vehicle starting from the departure link within the region, with both ends of the departure link located within the region, passing through the region, and arriving at the arrival link, where one end of the arrival link is located within the region and the other end is located outside the region.
[0175] Case 10 represents a vehicle starting from a departure link within the region, with both ends of the departure link located within the region, passing through the region, and arriving at a destination link, with both ends of the arrival link located outside the region. Links passed through are considered transit links and are not the final destination links.
[0176] Case 11 represents a vehicle that departs from a starting link, which has two ends, one within the area and the other outside the area. The destination is a arriving link, where both ends of the arriving link are outside the area.
[0177] Case 12 represents a situation where both ends of the departure link are outside the area, but part of the road in the departure link is within the area. Vehicles depart from the departure link and arrive at the arrival link, where both ends of the arrival link are outside the area.
[0178] Case 13 represents a vehicle that departs from the departure link, both ends of which are outside the area, and arrives at the arrival link, both ends of which are outside the area. However, part of the road in the arrival link is within the area.
[0179] Case 14 represents a vehicle starting from a departure link, both ends of which are outside the area, and arriving at a destination link, both ends of which are outside the area. A passing link is a transit link, not a destination link; both ends of a passing link are outside the area, but part of the road within the passing link is within the area.
[0180] Case 15 represents a situation where both ends of the departure link are within the area, but part of the road in the departure link is outside the area. Vehicles depart from the departure link and arrive at the arrival link, where both ends of the arrival link are within the area.
[0181] Case 16 represents a vehicle that departs from the starting link, both ends of which are within the area, and arrives at the destination link, both ends of which are within the area. However, part of the road in the destination link is outside the area.
[0182] Case 17 represents a vehicle starting from a departure link, both ends of which are within the area, and arriving at a destination link, both ends of which are also within the area. A passing link is a transit link, not a destination link; both ends of a passing link are within the area, but part of the road within the passing link is outside the area.
[0183] Based on the above explanation and Figure 1d It can be seen that the situation of traveling from outside the region to within the region (i.e.) Figure 1c Case Y) includes cases numbered 1, 2, 3, and 13.
[0184] The situation of starting from within the region and arriving within the region (i.e.) Figure 1c Case N) includes cases numbered 5, 6, 8, 9, 15, 16, and 17.
[0185] The situation of traveling from within the region to outside the region (i.e.) Figure 1c Case M) includes cases numbered 7, 10, 11, and 12.
[0186] The situation of traveling from outside the region to outside the region (i.e.) Figure 1c Case X) includes cases numbered 4 and 14.
[0187] Thus, the vehicle inflow index information of the target area = Y + N = arrival volume from outside the area to within the area + arrival volume from within the area to within the area = arrival volume of all links (including intersecting and internal links) in the target area, corresponding to cases 1, 2, 3, 13, 5, 6, 8, 9, 15, 16, and 17.
[0188] Vehicle outflow index information for the target area = M + N = number of departures from within the area to outside the area + number of departures from within the area to within the area = number of departures from all links (including intersecting and internal links) in the target area, corresponding to cases 7, 10, 11, 12, 5, 6, 8, 9, 15, 16, and 17.
[0189] The calculation of total traffic flow (i.e., the total traffic flow information mentioned above) may include situations 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, and 17.
[0190] Total flow = Number of intersecting links occurring in the direction of inflow (corresponding to cases 1, 2, 3, 4, 5, 6, 7)
[0191] + Departure volume of Links within the region (corresponding to cases 8, 9, 10, 16, and 17)
[0192] + The direction is the starting point of the intersecting link flowing out (corresponding to case 11).
[0193] + The occurrence of intersecting links whose origin and destination are both outside the region (corresponding to cases 12, 13, and 14).
[0194] + The number of departures from intersecting links whose origin and destination are both within the region (corresponding to case 15).
[0195] Specifically, intersecting links with the direction of inflow refer to intersecting links where the road starts outside the area and ends within the area, while intersecting links with the direction of outflow refer to intersecting links where the road starts within the area and ends outside the area.
[0196] Specifically, inflows, outflows, and total flow can also be expressed in the following forms:
[0197] The vehicle inflow index information of the target area can be determined by flow_end_0 + flow_end_1, where flow_end_0 represents the arrival volume of all intersecting links in the target area, and flow_end_1 represents the arrival volume of all internal links in the target area.
[0198] The vehicle outflow index information of the target area can be obtained by flow_start_0 + flow_start_1; flow_start_0 represents the departure volume of all intersecting links in the target area; flow_start_1 represents the departure volume of all internal links in the target area.
[0199] The total traffic flow in the target area can be obtained by adding the traffic flow statistics of each internal link and each intersecting link. The traffic flow statistics to be obtained for internal links or intersecting links are explained below:
[0200] (1) If the link is completely within the region, its starting volume can be obtained. The starting volume of all internal links in the target region can be represented by flow_start_1.
[0201] (2) If the link starts outside the area and ends within the area, obtain its traffic flow volume, represented by flow_total_0;
[0202] (3) If the link starts within the region and ends outside the region, obtain its starting volume, represented by flow_start_0;
[0203] (4) For intersecting links whose starting and ending points are both within the region, obtain their starting volume, represented by flow_start_0;
[0204] (5) For intersecting links whose starting and ending points are not in the area, obtain their traffic flow volume, represented by flow_total_0.
[0205] Where flow_total is the amount of traffic generated on the link, flow_start is the amount of traffic originating, and flow_end is the amount of traffic arriving; 0 indicates intersecting links, and 1 indicates internal links.
[0206] In scenarios where it is necessary to count traffic flow in a region, the region includes multiple roads. A road can be viewed as a link, which has two ends. When one end of the link is considered the starting point of the road, the other end of the link can be considered the ending point of the road.
[0207] This application provides a method for calculating the regional traffic flow index based on link traffic flow statistics. In cases where there is no unique vehicle identifier in the trajectory data of vehicles on roads within the region, and only statistical values of vehicles without vehicle identifiers can be obtained on each road within the region, the traffic flow within the region can be accurately obtained. Based on the statistical information of the electronic fence boundary, the inflow and outflow traffic flow index of the electronic fence can be estimated, thereby determining the traffic flow change trend of the region at different times.
[0208] As can be seen from the above, this embodiment can determine the target area for traffic flow detection, and identify each internal road within the target area, as well as each intersecting road that intersects with the boundary line of the target area; obtain vehicle departure information for each internal road within a preset time period; for each intersecting road, based on the positional relationship information between the road endpoints of the intersecting road and the target area, identify the intersection type of the intersecting road to obtain the intersection type of the intersecting road; based on the intersection type of the intersecting road, obtain the traffic flow information of the intersecting road within the preset time period; and determine the total traffic flow information of the target area within the preset time period based on the vehicle departure information of each internal road within the preset time period and the traffic flow information of each intersecting road within the preset time period.
[0209] This application enables accurate determination of traffic flow information within a target area, even when only traffic flow statistics for internal roads and intersections without vehicle markings are available.
[0210] Based on the method described in the preceding embodiments, the following will provide a more detailed explanation by taking the specific integration of the traffic flow detection device into a server as an example.
[0211] This application provides a method for detecting traffic flow, such as... Figure 2 As shown, the specific process of this traffic flow detection method can be as follows:
[0212] 201. The server determines the target area for traffic flow detection, and determines each internal road in the target area, as well as each intersecting road that intersects with the area boundary line of the target area.
[0213] In this embodiment, the size and type of the target area are not limited. For example, the target area can be a type of area containing relatively more green hills; or, for example, the target area can be a type of area that has undergone large-scale artificial development and construction. Specifically, the type of area that has undergone large-scale artificial development and construction can be mainly composed of artificial facilities such as buildings, roads, and squares, and generally has very little natural topography such as hills and green spaces.
[0214] Internal roads are roads entirely located within the target area. Intersecting roads are roads where part of the road is located within the target area and another part is located outside the target area. Specifically, the two endpoints of an intersecting road can both be within the target area, both endpoints can be outside the target area, or one endpoint can be within the target area and the other endpoint can be outside the target area.
[0215] 202. The server obtains vehicle departure information for each internal road within a preset time period.
[0216] The preset time period can be the specific time period for which traffic flow statistics are required, and can be set according to actual conditions. The vehicle departure information for internal roads within the preset time period is specifically the number of vehicles departing from that internal road within that preset time period.
[0217] 203. For each intersecting road, the server identifies the intersection type based on the positional relationship information between the road endpoints of the intersecting road and the target area, and obtains the intersection type of the intersecting road.
[0218] The road endpoints of an intersection can include a road start point and a road end point. Specifically, in this embodiment, the road start point and road end point can be determined based on the traffic flow direction, which refers to the main direction in which vehicles travel on the road. The road start point is the end where vehicles enter, and the road end point is the end where vehicles exit.
[0219] The locational relationship information between the road endpoint and the target area can include whether the road endpoint is within the target area, specifically whether the road start point is within the target area and whether the road end point is within the target area.
[0220] Optionally, in this embodiment, the step "for each intersecting road, based on the positional relationship information between the road endpoints of the intersecting road and the target area, identify the intersection type of the intersecting road to obtain the intersection type of the intersecting road" may include:
[0221] For each intersecting road, detect whether the two road endpoints of the intersecting road are located on the same side of the boundary line of the target area;
[0222] When the two road endpoints of the intersection are located on different sides of the boundary line of the target area, the traffic flow direction of the intersection is detected to determine the intersection type of the intersection based on the detected traffic flow direction;
[0223] When the two road endpoints of the intersecting road are on the same side of the boundary line of the target area, the inclusion relationship information between the two road endpoints of the intersecting road and the target area is detected, so as to determine the intersection type of the intersecting road based on the detected inclusion relationship information.
[0224] Specifically, when the two endpoints of an intersecting road are located on opposite sides of the boundary line of the target area, it indicates that one endpoint is within the target area and the other is outside. The specific endpoint within the target area can be determined by the direction of traffic flow. When the traffic flow direction of the intersecting road is detected as inflow (flowing into the target area), it can be determined that the starting point of the intersecting road is outside the target area, and the ending point is within the target area. When the traffic flow direction of the intersecting road is detected as outflow (flowing out of the target area), it can be determined that the starting point of the intersecting road is within the target area, and the ending point is outside the target area.
[0225] When the two road endpoints of the intersecting roads are on the same side of the boundary line of the target area, it can be further determined whether the target area contains the two road endpoints of the intersecting roads. If the target area contains the two road endpoints of the intersecting roads, it means that the two road endpoints of the intersecting roads are both within the target area; if the target area does not contain the two road endpoints of the intersecting roads, it means that the two road endpoints of the intersecting roads are both outside the target area.
[0226] 204. The server obtains the traffic flow information of the intersection within the preset time period based on the intersection type of the intersection.
[0227] In this embodiment, the specific traffic flow information required for different intersection types may vary. Traffic flow information can be categorized in several ways, including vehicle departure information, traffic generation information, and vehicle arrival information.
[0228] Specifically, the traffic volume information for a road within a preset time period can be determined by the number of vehicles departing, arriving, and passing through the road within that preset time period. The number of vehicles arriving can be the number flowing into the road from other roads. In essence, the traffic volume information for a road within a preset time period is the total number of vehicles passing through the road within that preset time period.
[0229] Optionally, in this embodiment, the step "obtaining traffic flow information of the intersecting roads within a preset time period based on the intersection type of the intersecting roads" may include:
[0230] When the intersection is a type of intersection where both road endpoints are within the target area, obtain the vehicle departure volume information of the intersection within the preset time period;
[0231] When the intersection is a type of intersection where both road endpoints are outside the target area, the traffic flow information of the intersection within the preset time period is obtained;
[0232] When the intersection type is such that the two road endpoints of the intersection are on different sides of the boundary line of the target area and the traffic flow direction is flowing into the target area, the traffic flow volume information of the intersection within the preset time period is obtained;
[0233] When the intersection type is such that the two road endpoints of the intersection are on different sides of the boundary line of the target area and the traffic flow direction is out of the target area, the vehicle departure volume information of the intersection within the preset time period is obtained.
[0234] 205. The server determines the total traffic flow information of the target area within the preset time period based on the vehicle departure volume information of each internal road within the preset time period and the traffic flow information of each intersecting road within the preset time period.
[0235] In this embodiment, the vehicle departure volume information of each internal road and the traffic flow information of each intersecting road within a preset time period can be fused to obtain the total traffic flow information of the target area within the preset time period. Specifically, this fusion processing can be achieved through addition operations, etc.
[0236] The traffic flow information of each intersection within a preset time period can be determined based on the intersection type of the intersection, as described in the above embodiments, and will not be repeated here.
[0237] Specifically, in addition to determining the total traffic flow information of the target area based on the vehicle departure volume information of each internal road and the traffic flow information of the intersecting roads, this embodiment can also determine the total traffic flow information of the target area based on the area size information of the target area, as described below.
[0238] Optionally, in this embodiment, the traffic flow detection method may further include:
[0239] Obtain information on the number of vehicles departing from the target area within a preset time period;
[0240] Obtain the number of vehicles entering the target area from outside within the preset time period;
[0241] Based on the region size information of the target region, a growth factor for simulating repeated counting is determined;
[0242] Based on the growth factor, the vehicle departure number information and the vehicle entry number information are fused to obtain the total traffic flow information of the target area within the preset time period.
[0243] The vehicle departure information may include the number of vehicles departing from within the target area and leaving the target area, as well as the number of vehicles departing from within the target area and arriving at another location within the target area.
[0244] The vehicle entry information can include the number of vehicles that enter the target area from outside and eventually leave the target area, as well as the number of vehicles that enter the target area from outside and eventually arrive inside the target area.
[0245] In this embodiment, determining the total traffic flow in the target area within a preset time period solely based on vehicle departure and entry information may lead to an underestimation of the actual traffic flow. Specifically, as the number of road segments increases, vehicle routes within the area become more complex, potentially involving multiple passes through certain road segments. For example, a vehicle might travel to different locations multiple times within the area, and each pass should be counted. In such cases, neglecting double counting would result in an underestimation of the actual cumulative traffic volume. Therefore, this embodiment introduces a growth factor to simulate this double counting.
[0246] The growth factor is a simulation parameter used to simulate the double-counting effect as the number of road segments increases, ensuring that the total traffic flow information more accurately reflects the actual total number of vehicles and avoids underestimating actual traffic flow. It should be noted that the total traffic flow information of the target area within the preset time period is also the cumulative number of vehicles within the target area.
[0247] The growth factor can be denoted as s, and the value of s is greater than or equal to 1, i.e., s≥1. The specific value of s needs to be determined through actual traffic data and simulation results. In some specific embodiments, the value of s is related to the area size. The larger the area size, the more road segments it contains, and the larger s will be; conversely, the smaller the area size, the fewer road segments it contains, and the smaller s will be.
[0248] Optionally, in this embodiment, the step "determining the growth factor for simulating repeated counting based on the region size information of the target region" may include:
[0249] When the size of the target area is smaller than the preset size, the growth factor used to simulate repeated counting is determined to be the preset value;
[0250] The step "based on the growth factor, fusing the vehicle departure number information and the vehicle entry number information to obtain the total traffic flow information of the target area within the preset time period" may include:
[0251] When the area size of the target area is smaller than a preset size, the number of vehicles departing and the number of vehicles entering are fused based on the preset value to obtain the total traffic flow information of the target area within the preset time period.
[0252] The preset size can be set according to the actual situation. Specifically, when the size of the target area is smaller than the preset size, the growth factor can be set to the preset value of 1.
[0253] Optionally, in this embodiment, the step "when the area size information of the target area is smaller than the preset size, determine the growth factor used to simulate repeated counting as a preset value" may include:
[0254] When the size of the target area is smaller than a preset size, the target area is identified by its type.
[0255] When the target region is identified as a non-abnormal region, the growth factor used to simulate repeated counting is determined to be a preset value;
[0256] The step "When the area size information of the target area is smaller than a preset size, based on the preset value, the vehicle departure number information and the vehicle entry number information are fused to obtain the total traffic flow information of the target area within the preset time period" may include:
[0257] When the area size information of the target area is smaller than the preset size and the target area is a non-abnormal area, the vehicle departure number information and the vehicle entry number information are fused to obtain the initial total traffic flow information of the target area within the preset time period.
[0258] Based on the preset value, the initial total traffic flow information is adjusted to obtain the total traffic flow information of the target area within the preset time period.
[0259] Specifically, in this embodiment, when the area size is detected and it is determined that the area size is smaller than the preset size, it can further detect whether the target area is an abnormal area. If it is not an abnormal area, the vehicle departure number information and vehicle entry number information are fused based on the growth factor under the preset value, so as to obtain the total traffic flow information of the target area within the preset time period.
[0260] Among them, non-abnormal areas can be areas where the developed and constructed area exceeds a preset first proportion, while abnormal areas can be areas where the undeveloped and constructed area exceeds a preset second proportion. The preset first and second proportions can be set according to actual conditions. For example, if 50% of an area is green space and forest, then that area can be considered an abnormal area.
[0261] For abnormal areas or areas whose size is not smaller than a preset size, the method described above, which uses traffic flow statistics from internal roads and intersections within the target area, can be used to calculate the total traffic flow. It should be noted that this method can also be used for smaller areas and non-abnormal areas.
[0262] In some embodiments, for a target area that needs to be counted traffic flow, the target area can first be identified as a region type. If the target area is identified as a non-abnormal region, a set of mapping relationships between a preset region size and a preset growth factor can be obtained. Based on the region size information and the set of mapping relationships of the target area, the growth factor corresponding to the target area can be determined. Then, based on the growth factor, the vehicle departure number information and the vehicle entry number information can be fused to obtain the total traffic flow information of the target area within a preset time period.
[0263] Specifically, this mapping relationship set can be a table showing the relationship between a preset region size and a preset growth factor. Based on the region size information of the target region, the corresponding growth factor can be found from the relationship table. This mapping relationship set can be statistically constructed based on data collected from actual applications.
[0264] As can be seen from the above, this embodiment can determine the target area for traffic flow detection through a server, and determine each internal road in the target area, as well as each intersecting road that intersects with the boundary line of the target area; obtain vehicle departure information of each internal road within a preset time period; for each intersecting road, based on the positional relationship information between the road endpoints of the intersecting road and the target area, identify the intersection type of the intersecting road to obtain the intersection type of the intersecting road; based on the intersection type of the intersecting road, obtain the traffic flow information of the intersecting road within the preset time period; and determine the total traffic flow information of the target area within the preset time period based on the vehicle departure information of each internal road within the preset time period and the traffic flow information of each intersecting road within the preset time period.
[0265] This application enables accurate determination of traffic flow information within a target area, even when only traffic flow statistics for internal roads and intersections without vehicle markings are available.
[0266] To better implement the above methods, embodiments of this application also provide a traffic flow detection device, such as... Figure 3 As shown, the traffic flow detection device may include a region determination unit 301, a first acquisition unit 302, an identification unit 303, a second acquisition unit 304, and a traffic flow determination unit 305, as follows:
[0267] (1) Region determination unit 301;
[0268] The area determination unit is used to determine the target area for traffic flow detection, and to determine each internal road in the target area, as well as each intersecting road that intersects with the area boundary line of the target area.
[0269] (2) First acquisition unit 302;
[0270] The first acquisition unit is used to acquire vehicle departure information for each internal road within a preset time period.
[0271] (3) Identification unit 303;
[0272] The identification unit is used to identify the intersection type of each intersection road based on the positional relationship information between the road endpoints of the intersection road and the target area, and to obtain the intersection type of the intersection road.
[0273] Optionally, in some embodiments of this application, the identification unit may include a first detection subunit, a second detection subunit, and a third detection subunit, as follows:
[0274] The first detection subunit is used to detect, for each intersecting road, whether the two road endpoints of the intersecting road are located on the same side of the boundary line of the target area;
[0275] The second detection subunit is used to detect the traffic flow direction of the intersecting roads when the two road endpoints of the intersecting roads are on different sides of the boundary line of the target area, so as to determine the intersection type of the intersecting roads based on the detected traffic flow direction.
[0276] The third detection subunit is used to detect the inclusion relationship information between the two road endpoints of the intersecting road and the target area when the two road endpoints of the intersecting road are on the same side of the area boundary line of the target area, so as to determine the intersection type of the intersecting road based on the detected inclusion relationship information.
[0277] (4) Second acquisition unit 304;
[0278] The second acquisition unit is used to acquire traffic flow information of the intersection within the preset time period based on the intersection type of the intersection.
[0279] Optionally, in some embodiments of this application, the second acquisition unit may include a first acquisition subunit, a second acquisition subunit, a third acquisition subunit, and a fourth acquisition subunit, as follows:
[0280] The first acquisition subunit is used to acquire vehicle departure information of the intersecting road within the preset time period when the intersecting road is an intersection type where both road endpoints are within the target area;
[0281] The second acquisition subunit is used to acquire traffic flow information of the intersection within the preset time period when the intersection is an intersection type in which both road endpoints are outside the target area.
[0282] The third acquisition subunit is used to acquire traffic flow information of the intersection within a preset time period when the two road endpoints of the intersection are located on different sides of the boundary line of the target area and the traffic flow direction is flowing into the target area.
[0283] The fourth acquisition subunit is used to acquire vehicle departure information of the intersecting road within the preset time period when the intersection type is such that the two road endpoints of the intersecting road are on different sides of the boundary line of the target area and the traffic flow direction is out of the target area.
[0284] (5) Traffic flow determination unit 305;
[0285] The traffic flow determination unit is used to determine the total traffic flow information of the target area within the preset time period based on the vehicle departure volume information of each internal road within the preset time period and the traffic flow information of each intersecting road within the preset time period.
[0286] Optionally, in some embodiments of this application, the traffic flow detection device may further include a third acquisition unit, a fourth acquisition unit, a growth factor determination unit, and a fusion unit, as follows:
[0287] The third acquisition unit is used to acquire information on the number of vehicles departing from the target area within a preset time period;
[0288] The fourth acquisition unit is used to acquire information on the number of vehicles entering the target area from the outside within the preset time period;
[0289] A growth factor determination unit is used to determine a growth factor for simulating repeated counting based on the region size information of the target region;
[0290] The fusion unit is used to fuse the vehicle departure number information and the vehicle entry number information according to the growth factor to obtain the total traffic flow information of the target area within the preset time period.
[0291] Optionally, in some embodiments of this application, the growth factor determining unit may be specifically used to determine the growth factor used to simulate repeated counting as a preset value when the area size information of the target area is smaller than a preset size;
[0292] Specifically, the fusion unit can be used to perform fusion processing on the number of vehicles departing and the number of vehicles entering based on the preset value when the area size information of the target area is smaller than the preset size, so as to obtain the total traffic flow information of the target area within the preset time period.
[0293] Optionally, in some embodiments of this application, the growth factor determination unit may include a region type identification subunit and a growth factor determination subunit, as follows:
[0294] The region type identification subunit is used to identify the region type of the target region when the region size information of the target region is smaller than a preset size;
[0295] The growth factor determination subunit is used to determine the growth factor used to simulate repeated counting as a preset value when the target region is identified as a non-abnormal region.
[0296] Optionally, in some embodiments of this application, the fusion unit may include a fusion subunit and an adjustment subunit, as follows:
[0297] The fusion subunit is used to fuse the vehicle departure number information and the vehicle entry number information when the area size information of the target area is smaller than the preset size and the target area is a non-abnormal area, to obtain the initial total traffic flow information of the target area within the preset time period.
[0298] The adjustment subunit is used to adjust the initial total traffic flow information based on the preset value to obtain the total traffic flow information of the target area within the preset time period.
[0299] Optionally, in some embodiments of this application, the traffic flow detection device may further include a vehicle inflow index determination unit, as follows:
[0300] The vehicle inflow index determination unit is used to determine a first internal arrival quantity based on the number of vehicles arriving at each intersection of the target area within a preset time period; determine a second internal arrival quantity based on the number of vehicles arriving at each internal road of the target area within a preset time period; and determine the vehicle inflow index information of the target area within the preset time period based on the first internal arrival quantity and the second internal arrival quantity.
[0301] Optionally, in some embodiments of this application, the traffic flow detection device may further include a vehicle outflow index determination unit, as follows:
[0302] The vehicle outflow index determination unit is used to determine a first internal departure volume based on the number of vehicle departures at each intersection of the target area within a preset time period; determine a second internal departure volume based on the number of vehicle departures at each internal road of the target area within a preset time period; and determine the vehicle outflow index information of the target area within a preset time period based on the first internal departure volume and the second internal departure volume.
[0303] As can be seen from the above, in this embodiment, the area determination unit 301 determines the target area for traffic flow detection, and determines each internal road in the target area and each intersecting road that intersects with the area boundary line of the target area; the first acquisition unit 302 acquires the vehicle departure volume information of each internal road within a preset time period; the identification unit 303 identifies the intersection type of each intersection road based on the positional relationship information between the road endpoints of the intersection road and the target area, and obtains the intersection type of the intersection road; the second acquisition unit 304 acquires the traffic flow information of the intersection road within the preset time period based on the intersection type of the intersection road; and the traffic flow determination unit 305 determines the total traffic flow information of the target area within the preset time period based on the vehicle departure volume information of each internal road within the preset time period and the traffic flow information of each intersection road within the preset time period.
[0304] This application enables accurate determination of traffic flow information within a target area, even when only traffic flow statistics for internal roads and intersections without vehicle markings are available.
[0305] This application also provides an electronic device, such as... Figure 4 The diagram shows a structural schematic of an electronic device involved in an embodiment of this application. This electronic device can be a terminal or a server, specifically:
[0306] The electronic device may include components such as a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will understand that... Figure 4 The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein:
[0307] The processor 401 is the control center of the electronic device, connecting various parts of the device via various interfaces and lines. It executes software programs and / or modules stored in the memory 402, and calls data stored in the memory 402, to perform various functions and process data. Optionally, the processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 401.
[0308] The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
[0309] The electronic device also includes a power supply 403 that supplies power to the various components. Preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 403 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0310] The electronic device may also include an input unit 404, which can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
[0311] Although not shown, the electronic device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 401 in the electronic device loads the executable files corresponding to the processes of one or more applications into the memory 402 according to the following instructions, and the processor 401 runs the applications stored in the memory 402 to realize various functions, as follows:
[0312] The system identifies a target area for traffic flow detection, including all internal roads within the target area and all intersecting roads that intersect with the area boundary. It then acquires vehicle departure volume information for each internal road within a preset time period. For each intersecting road, based on the positional relationship between the road endpoints and the target area, it identifies the intersection type to obtain the intersection type. Based on the intersection type, it acquires traffic flow information for each intersecting road within the preset time period. Finally, based on the vehicle departure volume information for each internal road and the traffic flow information for each intersecting road within the preset time period, it determines the total traffic flow information for the target area within the preset time period.
[0313] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0314] As can be seen from the above, this embodiment can determine the target area for traffic flow detection, and identify each internal road within the target area, as well as each intersecting road that intersects with the boundary line of the target area; obtain vehicle departure information for each internal road within a preset time period; for each intersecting road, based on the positional relationship information between the road endpoints of the intersecting road and the target area, identify the intersection type of the intersecting road to obtain the intersection type of the intersecting road; based on the intersection type of the intersecting road, obtain the traffic flow information of the intersecting road within the preset time period; and determine the total traffic flow information of the target area within the preset time period based on the vehicle departure information of each internal road within the preset time period and the traffic flow information of each intersecting road within the preset time period.
[0315] This application enables accurate determination of traffic flow information within a target area, even when only traffic flow statistics for internal roads and intersections without vehicle markings are available.
[0316] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0317] Therefore, embodiments of this application provide a computer-readable storage medium storing a plurality of instructions that can be loaded by a processor to execute steps in any of the traffic flow detection methods provided in embodiments of this application. For example, the instructions can execute the following steps:
[0318] The system identifies a target area for traffic flow detection, including all internal roads within the target area and all intersecting roads that intersect with the area boundary. It then acquires vehicle departure volume information for each internal road within a preset time period. For each intersecting road, based on the positional relationship between the road endpoints and the target area, it identifies the intersection type to obtain the intersection type. Based on the intersection type, it acquires traffic flow information for each intersecting road within the preset time period. Finally, based on the vehicle departure volume information for each internal road and the traffic flow information for each intersecting road within the preset time period, it determines the total traffic flow information for the target area within the preset time period.
[0319] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0320] The computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0321] Since the instructions stored in the computer-readable storage medium can execute the steps of any of the traffic flow detection methods provided in the embodiments of this application, the beneficial effects that any of the traffic flow detection methods provided in the embodiments of this application can achieve can be realized, as detailed in the preceding embodiments, and will not be repeated here.
[0322] According to one aspect of this application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in the various alternative implementations of the above-described traffic flow detection.
[0323] The above provides a detailed description of a traffic flow detection method and related equipment provided in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A method for detecting traffic flow, characterized in that, include: Determine the target area for traffic flow detection, and identify each internal road within the target area, as well as each intersecting road that intersects with the boundary line of the target area; Obtain vehicle departure information for each internal road within a preset time period; For each intersecting road, based on the positional relationship information between the road endpoints of the intersecting road and the target area, the intersection type of the intersecting road is identified to obtain the intersection type of the intersecting road; Based on the intersection type of the intersection, obtain the traffic flow information of the intersection within the preset time period; Based on the vehicle departure volume information of each internal road within a preset time period and the traffic flow information of each intersecting road within a preset time period, the total traffic flow information of the target area within the preset time period is determined.
2. The method according to claim 1, characterized in that, The method further includes: Obtain information on the number of vehicles departing from the target area within a preset time period; Obtain the number of vehicles entering the target area from outside within the preset time period; Based on the region size information of the target region, a growth factor for simulating repeated counting is determined; Based on the growth factor, the vehicle departure number information and the vehicle entry number information are fused to obtain the total traffic flow information of the target area within the preset time period.
3. The method according to claim 2, characterized in that, The step of determining the growth factor for simulating repeated counting based on the region size information of the target region includes: When the size of the target area is smaller than the preset size, the growth factor used to simulate repeated counting is determined to be the preset value; The step of fusing the vehicle departure number information and the vehicle entry number information according to the growth factor to obtain the total traffic flow information of the target area within the preset time period includes: When the area size of the target area is smaller than the preset size, the vehicle departure number information and the vehicle entry number information are fused based on the preset value to obtain the total traffic flow information of the target area within the preset time period.
4. The method according to claim 3, characterized in that, When the size information of the target region is smaller than a preset size, determining the growth factor used to simulate repeated counting as a preset value includes: When the size of the target area is smaller than a preset size, the target area is identified by its type. When the target region is identified as a non-abnormal region, the growth factor used to simulate repeated counting is determined to be a preset value; When the area size information of the target area is smaller than the preset size, based on the preset value, the vehicle departure number information and the vehicle entry number information are fused to obtain the total traffic flow information of the target area within the preset time period, including: When the area size information of the target area is smaller than the preset size and the target area is a non-abnormal area, the vehicle departure number information and the vehicle entry number information are fused to obtain the initial total traffic flow information of the target area within the preset time period. Based on the preset value, the initial total traffic flow information is adjusted to obtain the total traffic flow information of the target area within the preset time period.
5. The method according to claim 1, characterized in that, The method further includes: Based on the number of vehicles arriving at each intersection in the target area within a preset time period, the first arrival quantity is determined. Based on the number of vehicles arriving on each internal road of the target area within a preset time period, a second internal arrival quantity is determined. Based on the first and second intra-regional arrivals, determine the vehicle inflow index information of the target area within a preset time period.
6. The method according to claim 1, characterized in that, The method further includes: Based on the number of vehicle departures at each intersection in the target area within a preset time period, the first internal departure volume is determined. Based on the number of vehicle departures from each internal road in the target area within a preset time period, the second internal departure volume is determined. Based on the first internal departure volume and the second internal departure volume, determine the vehicle outflow index information of the target area within a preset time period.
7. The method according to claim 1, characterized in that, For each intersecting road, based on the positional relationship information between the road endpoints of the intersecting road and the target area, the intersection type of the intersecting road is identified to obtain the intersection type of the intersecting road, including: For each intersecting road, detect whether the two road endpoints of the intersecting road are located on the same side of the boundary line of the target area; When the two road endpoints of the intersection are located on different sides of the boundary line of the target area, the traffic flow direction of the intersection is detected to determine the intersection type of the intersection based on the detected traffic flow direction; When the two road endpoints of the intersecting road are on the same side of the boundary line of the target area, the inclusion relationship information between the two road endpoints of the intersecting road and the target area is detected, so as to determine the intersection type of the intersecting road based on the detected inclusion relationship information.
8. The method according to claim 7, characterized in that, The step of obtaining traffic flow information of the intersecting roads within the preset time period based on the intersection type of the intersecting roads includes: When the intersection is a type of intersection where both road endpoints are within the target area, obtain the vehicle departure volume information of the intersection within the preset time period; When the intersection is a type of intersection where both road endpoints are outside the target area, the traffic flow information of the intersection within the preset time period is obtained; When the intersection type is such that the two road endpoints of the intersection are on different sides of the boundary line of the target area and the traffic flow direction is flowing into the target area, the traffic flow volume information of the intersection within the preset time period is obtained; When the intersection type is such that the two road endpoints of the intersection are on different sides of the boundary line of the target area and the traffic flow direction is out of the target area, the vehicle departure volume information of the intersection within the preset time period is obtained.
9. A traffic flow detection device, characterized in that, include: The area determination unit is used to determine the target area for traffic flow detection, and to determine each internal road in the target area, as well as each intersecting road that intersects with the area boundary line of the target area; The first acquisition unit is used to acquire vehicle departure information for each internal road within a preset time period. The identification unit is used to identify the intersection type of each intersection road based on the positional relationship information between the road endpoints of the intersection road and the target area, and to obtain the intersection type of the intersection road. The second acquisition unit is used to acquire traffic flow information of the intersecting roads within the preset time period based on the intersection type of the intersecting roads; The traffic flow determination unit is used to determine the total traffic flow information of the target area within the preset time period based on the vehicle departure volume information of each internal road within the preset time period and the traffic flow information of each intersecting road within the preset time period.
10. An electronic device, characterized in that, It includes a memory and a processor; the memory stores an application program, and the processor runs the application program within the memory to perform the operations in the traffic flow detection method according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a plurality of instructions adapted for loading by a processor to perform the steps of the traffic flow detection method according to any one of claims 1 to 8.
12. A computer program product, comprising a computer program or instructions, characterized in that, When the computer program or instructions are executed by a processor, they implement the steps of the traffic flow detection method according to any one of claims 1 to 8.