Intersection traffic visual graph model processing method and device, equipment and medium
By acquiring information such as the number of branch roads and their geometric orientation at intersections, and drawing intersection orientation layers and parameter display layers, the problem of low accuracy in existing intersection traffic status visualization views is solved. This achieves accurate matching and intuitive presentation of traffic status parameters, improving the accuracy and practicality of traffic visualization.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- ZHEJIANG INTELLIGENT TRANSPORTATION TECHNOLOGY INNOVATION CENTER
- Filing Date
- 2026-01-29
- Publication Date
- 2026-06-05
AI Technical Summary
The accuracy of existing traffic condition visualization views at intersections is low, and they cannot accurately match the actual structural features of the intersections. As a result, the display position and direction of traffic condition parameters lack clear basis, and they cannot intuitively present the real traffic conditions of each oriented road segment.
Obtain the location information of the intersection, including the number of branch roads, geometric orientation, number of lanes and turning type, draw the intersection location layer and parameter display layer, and generate a traffic visualization model of the intersection by overlaying the two layers to ensure that the parameter display matches the road segment.
It improves the accuracy of the traffic status visualization view at intersections, achieves precise matching and intuitive presentation of traffic status parameters, and enhances the accuracy and practicality of traffic visualization.
Smart Images

Figure CN122156359A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of intelligent transportation technology, and in particular to a method, device, equipment and medium for processing traffic visualization graph models at intersections. Background Technology
[0002] In complex urban road networks, intersections are key nodes in traffic flow. The accurate presentation of data such as traffic flow distribution, traffic light status, and lane utilization efficiency directly affects the scheduling decisions of traffic management departments and the route selection of the public.
[0003] Currently, intersection visualization mainly uses the fixed template method. This method uses pre-set standardized intersection geometric templates (such as cross, T, and straight lines), and selects the corresponding template for drawing based on the intersection type provided by the backend during front-end rendering, thereby generating a visual view of the intersection's traffic status.
[0004] However, the accuracy of the traffic condition visualization view of intersections generated by existing technologies is low. Summary of the Invention
[0005] This application provides a method, apparatus, equipment, and medium for processing traffic visualization map models at intersections, in order to achieve the technical effect of improving map accuracy.
[0006] In a first aspect, embodiments of this application provide a method for processing a traffic visualization model at an intersection, including:
[0007] Obtain the location information of each intersection, including the number of branch roads, the geometric location of each branch road and the number of lanes it contains, the driving direction of each lane and the turning type.
[0008] For each intersection, an intersection orientation layer is drawn based on the intersection's orientation information. The intersection orientation layer includes the flow direction of directional road segments between different branch roads.
[0009] Based on the flow direction, a parameter display layer is drawn, which is used to define the display position and display direction of traffic status parameters;
[0010] Based on the parameter display layer and the intersection orientation layer, an intersection traffic visualization model is generated. The intersection traffic visualization model is used to generate an intersection traffic status visualization view based on the traffic status parameters of each directed road segment.
[0011] In one possible implementation, drawing an intersection orientation layer based on the intersection's orientation information for each intersection includes:
[0012] For each directed road segment, determine the drawing data related to the directed road segment from the orientation information of each intersection;
[0013] Based on the drawing data, the first SVG element is configured to generate a corresponding connector; wherein, the configured first SVG element is used to display the flow direction of the directed road segment.
[0014] The intersection orientation layer is drawn based on the connector.
[0015] In one possible implementation, the orientation information further includes the ground clearance of each branch road; the step of drawing the intersection orientation layer based on the connector includes:
[0016] The hierarchical relationship between directed road segments is determined based on the ground clearance of each branch road;
[0017] Based on the connectors of the directed road segments at the same level, draw the sub-intersection orientation layer corresponding to the level;
[0018] The intersection orientation layers are superimposed according to the hierarchical relationship to generate the intersection orientation layer.
[0019] In one possible implementation, generating the intersection traffic visualization model based on the parameter display layer and the intersection orientation layer includes:
[0020] The direction indication layer, the parameter display layer, and the intersection orientation layer are superimposed sequentially from top to bottom to generate the intersection traffic visualization model.
[0021] In one possible implementation, drawing the parameter display layer based on the flow direction includes:
[0022] Based on the flow direction, determine the display position and display direction of the traffic state parameters corresponding to each directed road segment;
[0023] The second SVG element is configured based on the display position and display direction to generate a configured second SVG element, which is used to display the traffic status parameters;
[0024] The parameter display layer is drawn based on the configured second SVG element.
[0025] In one possible implementation, the method further includes:
[0026] For each branch, the configured second SVG elements of the directed road segments associated with the branch are combined to generate an SVG element set;
[0027] Accordingly, after generating the traffic status visualization view of the intersection, the method further includes:
[0028] In response to a user's click operation on a target branch road based on the intersection traffic status visualization view, the traffic status parameters corresponding to the target directed road segment associated with the target branch road are output according to the SVG element set.
[0029] Secondly, embodiments of this application provide an intersection traffic visualization model processing device, comprising:
[0030] The acquisition module is used to acquire the location information of each intersection, including the number of branch roads, the geometric location of each branch road and the number of lanes it contains, the driving direction of each lane and the turning type.
[0031] The drawing module is used to draw an intersection orientation layer for each intersection based on the intersection's orientation information. The intersection orientation layer includes the flow direction of directional road segments between different branch roads.
[0032] The drawing module is also used to draw a parameter display layer based on the flow direction, wherein the parameter display layer is used to define the display position and display direction of traffic state parameters;
[0033] The generation module is used to generate an intersection traffic visualization model based on the parameter display layer and the intersection orientation layer. The intersection traffic visualization model is used to generate an intersection traffic status visualization view based on the traffic status parameters of each directed road segment.
[0034] In one possible implementation, the drawing module is specifically used for:
[0035] For each directed road segment, determine the drawing data related to the directed road segment from the orientation information of each intersection;
[0036] Based on the drawing data, the first SVG element is configured to generate a corresponding connector; wherein, the configured first SVG element is used to display the flow direction of the directed road segment.
[0037] The intersection orientation layer is drawn based on the connector.
[0038] In one possible implementation, the orientation information further includes the ground clearance of each branch; the drawing module is specifically used for:
[0039] The hierarchical relationship between directed road segments is determined based on the ground clearance of each branch road;
[0040] Based on the connectors of the directed road segments at the same level, draw the sub-intersection orientation layer corresponding to the level;
[0041] The intersection orientation layers are superimposed according to the hierarchical relationship to generate the intersection orientation layer.
[0042] In one possible implementation, the generation module is specifically used for:
[0043] The direction indication layer, the parameter display layer, and the intersection orientation layer are superimposed sequentially from top to bottom to generate the intersection traffic visualization model.
[0044] In one possible implementation, the drawing module is specifically used for:
[0045] Based on the flow direction, determine the display position and display direction of the traffic state parameters corresponding to each directed road segment;
[0046] The second SVG element is configured based on the display position and display direction to generate a configured second SVG element, which is used to display the traffic status parameters;
[0047] The parameter display layer is drawn based on the configured second SVG element.
[0048] In one possible implementation, the generation module is further configured to combine the configured second SVG elements of the directed road segment associated with the branch for each branch to generate an SVG element set.
[0049] Correspondingly, the intersection traffic visualization model processing device also includes an output module. After generating the intersection traffic status visualization view, the output module is used to respond to the user's click operation on the target branch road based on the intersection traffic status visualization view, and output the traffic status parameters corresponding to the target directed road segment related to the target branch road according to the SVG element set.
[0050] Thirdly, embodiments of this application provide an electronic device, including: a memory and a processor;
[0051] The memory stores computer-executed instructions;
[0052] The processor executes computer execution instructions stored in the memory, causing the processor to perform the first aspect and / or various possible implementations of the first aspect as described above.
[0053] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the first aspect and / or various possible implementations of the first aspect.
[0054] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the first aspect and / or various possible implementations of the first aspect.
[0055] The intersection traffic visualization model processing method, apparatus, equipment, and medium provided in this application obtains directional information, including key information such as the number of branch roads and their geometric orientation, to ensure that the intersection directional layer accurately presents the flow direction of oriented road segments. A parameter display layer based on flow direction definition parameter display rules achieves accurate matching between parameters and road segments. The resulting intersection traffic visualization model efficiently integrates structural and parameter information, outputting an intuitive visualization view that allows users to clearly identify the traffic status of each oriented road segment. This provides reliable support for traffic management and decision-making, improves the accuracy of the intersection traffic status visualization view, and thus enhances the precision and practicality of traffic visualization. Attached Figure Description
[0056] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0057] Figure 1 Flowchart of the intersection traffic visualization model processing method provided in this application Figure 1 ;
[0058] Figure 2 Flowchart of the intersection traffic visualization model processing method provided in this application Figure 2 ;
[0059] Figure 3 A visual view of the traffic conditions at an intersection provided for this application;
[0060] Figure 4 A schematic diagram illustrating the principle of the intersection traffic visualization model processing method provided in this application;
[0061] Figure 5 A schematic diagram of the intersection traffic visualization model processing device provided in this application;
[0062] Figure 6 A schematic diagram of the structure of the electronic device provided in this application.
[0063] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0064] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0065] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with relevant laws, regulations and standards, and corresponding operation entry points are provided for users to choose to authorize or refuse.
[0066] First, the application scenarios involved in this application will be explained:
[0067] With the rapid development of urbanization and intelligent transportation systems, real-time monitoring and visualization of traffic intersections have become core requirements for traffic management, urban planning, and public services. In complex urban road networks, intersections are key nodes in traffic flow, and the accurate presentation of data such as traffic flow distribution, traffic light status, and lane utilization efficiency directly affects the scheduling decisions of traffic management departments and the route choices of the public.
[0068] For example, during peak hours, traffic control centers need to quickly identify bottlenecks in traffic flow at congested intersections through visualization systems; in handling traffic accidents, it is necessary to display the lane occupancy status and surrounding traffic conditions at the accident intersection in real time; and in public navigation services, users need to intuitively understand the lane distribution and traffic light countdown at intersections through map applications.
[0069] Currently, intersection visualization primarily employs the fixed template method. This method uses pre-defined, standardized intersection geometric templates, and during front-end rendering, the corresponding template is selected based on the intersection type provided by the back-end. Specifically, fixed geometric structures are designed for common intersection shapes (such as crossroads and roundabouts), and static graphics are drawn using coordinate systems and path outlining. Parameters such as traffic flow and traffic light status are bound to preset positions within the template, and based on the fixed structure of the template, visualization graphics are generated through a front-end framework.
[0070] However, while this method is efficient in simple intersection scenarios, the template library needs to cover all possible intersection types, making it difficult to adapt to complex structures such as multi-level elevated roads and irregular intersections, resulting in distorted visualization. Furthermore, the fixed structure of the template cannot be automatically adjusted according to the actual intersection's orientation (such as tilt angle and hierarchical relationship), and the parameter annotation positions are prone to deviating from the actual positions.
[0071] In other words, the existing technology produces visual views of intersection traffic conditions with low accuracy.
[0072] Based on the aforementioned technical problems, the technical concept of this application is as follows: In the process of researching intersection traffic status visualization schemes, the inventors discovered that existing schemes often fail to accurately match the actual structural characteristics of intersections when presenting traffic status. Low-precision representations of intersection structures not only fail to clearly reflect the directional traffic relationships between different branch roads and lanes, but also result in a lack of clear basis for the display position and direction of traffic status parameters, making it impossible to intuitively present the real traffic status of each directional road segment. Furthermore, basic information such as the number of branch roads, geometric orientation, and lane travel direction at the intersection are the core basis for constructing a visualization view; visualization schemes that lack this information cannot meet the needs of accurate display. Therefore, the inventors considered first obtaining intersection orientation information including the number of branch roads, the geometric orientation of each branch road, the number of lanes, the driving direction of each lane, and the turning type. Based on this information, an intersection orientation layer reflecting the flow direction of directional road segments is drawn. Then, a parameter display layer defining the display position and direction of traffic state parameters is drawn in combination with the flow direction. By overlaying the two layers, an intersection traffic visualization model is generated. A visualization view can be generated by combining the actual traffic state parameters of each directional road segment, thereby achieving an accurate presentation of the intersection traffic state.
[0073] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will be described below with reference to the accompanying drawings.
[0074] Figure 1 Flowchart of the intersection traffic visualization model processing method provided in this application Figure 1 ,like Figure 1 As shown, the method includes:
[0075] S11. Obtain the location information of each intersection.
[0076] An intersection is a traffic node formed by the convergence of roads; it is an area where vehicle directions change and traffic flows from different branch roads converge or diverge.
[0077] The location information includes the number of branch roads, the geometric location of each branch road, the number of lanes it contains, the driving direction of each lane, and the turning type.
[0078] Specifically, a side road refers to a secondary road that extends from an intersection. For example, a straight intersection has 2 side roads, a crossroads has 4 side roads, and a T-junction has 3 side roads.
[0079] Geometric orientation refers to the spatial position and direction of each branch road relative to the center of the intersection, usually described by azimuth angles and directions such as east, south, west, and north. For example, geometric orientation can be: 90° from the center of the intersection to due east; 180° from the center of the intersection to due south; and 315° from the center of the intersection to northwest (between due north and due west).
[0080] The number of lanes refers to the total number of independent lanes for vehicle traffic on each branch road. The driving direction of a lane refers to the direction in which vehicles are allowed to travel on each lane, such as from east to west or from south to north.
[0081] Steering type refers to the way a vehicle turns when moving from one lane of a side road to another at an intersection, such as going straight, turning left, or turning right.
[0082] In one possible implementation, raw intersection information can be obtained through a Transportation Geographic Information System (GIS), data interfaces of intersection monitoring equipment, basic databases of traffic management departments, and intelligent transportation information collection providers. This raw intersection information is then generalized, simplifying complex and diverse flow direction data into three unified standard flow direction types: right turn, straight ahead, and left turn. This results in generalized data containing only these unified flow direction types. Subsequently, this generalized data undergoes format standardization to ensure that information such as the number of branch roads and their geometric orientations are completely consistent, forming structured location information for each intersection.
[0083] Optionally, the orientation information also includes the ground clearance of each branch road. Ground clearance refers to the vertical height difference between the road surface corresponding to the branch road and the reference plane (such as the urban planning elevation reference plane). The ground clearance of the branch roads corresponding to elevated intersections, ground intersections, and sunken intersections are different.
[0084] S12. For each intersection, draw the intersection orientation layer based on the intersection's orientation information.
[0085] The intersection orientation layer includes the flow direction of directional road segments between different branch roads. A directional road segment refers to a road section that connects different branch roads within an intersection and has a clear direction of vehicle travel. The flow direction refers to the direction of vehicle travel on the directional road segment.
[0086] For example, the eastbound branch road to the northbound branch road constitutes a directed road segment, and the flow direction of the directed road segment is from the eastbound branch road to the northbound branch road.
[0087] In one possible implementation, for the structured orientation information of each intersection, the geometric orientation and lane distribution of each branch road are first extracted to determine the spatial layout of the branch roads in the graphical interface. Then, based on the driving direction and turning type of each lane, the traffic relationships between different branch roads are determined, forming multiple independent directed road segments. Finally, through graphic drawing technology, the spatial location of the branch roads, the extension trajectory of the directed road segments, and the flow direction are presented with graphic elements such as lines and arrows, constructing a complete intersection orientation layer that reflects the traffic relationships at the intersection.
[0088] In another possible implementation, for each directed road segment, the drawing data related to the directed road segment in the orientation information of each intersection is determined. Based on the drawing data, the first Scalable Vector Graphics (SVG) elements are configured to generate the corresponding connectors, and finally, the intersection orientation layer is drawn based on the connectors.
[0089] It should be understood that the specific implementation method and principle of this method will be explained later. Figure 2 The embodiments shown are explained in detail, and will not be repeated here.
[0090] S13. Draw the parameter display layer based on the flow direction.
[0091] The parameter display layer is used to define the display location and direction of traffic status parameters. Traffic status parameters refer to quantitative indicators that reflect the traffic operation status of a directional road segment, such as congestion and number of stops.
[0092] The display location refers to the specific coordinates of the traffic status parameters in the visualization interface, while the direction refers to the orientation of the text or graphics of the traffic status parameters in the visualization interface.
[0093] In one possible implementation, the flow direction of each directional road segment in the intersection orientation layer is used as a reference. For each directional road segment, the coordinates (i.e., display position) of the parameter display are determined by combining its extension trajectory and length in the interface. This ensures that the parameter does not obscure the flow direction indicator of the directional road segment and can accurately correspond to the directional road segment. At the same time, the display direction of the parameter is set according to the flow direction of the directional road segment. For example, when the flow direction is from west to east, the parameter text also adopts a horizontal eastward orientation. These display rules are solidified into the graphical layer to form a parameter display layer that can directly carry the parameter.
[0094] Specifically, a location at a preset distance from the starting point of a directional road segment can be determined as the display location, and the flow direction of the directional road segment or the direction perpendicular to that flow direction can be determined as the display direction.
[0095] In one possible implementation, the display position and direction of traffic state parameters for each directed road segment are determined based on the flow direction. The second SVG element is then configured based on its display position and direction to generate a configured second SVG element. Finally, the parameter display layer is drawn based on the configured second SVG element.
[0096] The configured second SVG element is used to display traffic status parameters.
[0097] Specifically, based on the flow direction of each directional road segment in the intersection orientation layer, the spatial trajectory of each directional road segment in the visualization interface is located. Based on the length, curvature, and other characteristics of the spatial trajectory, coordinate points that neither obstruct the flow direction markings nor hinder easy viewing are selected as the parameter display positions. Then, based on the flow direction of the directional road segment, the orientation of the parameter display is determined to ensure visual consistency between the display direction and the flow direction. For each determined parameter display position and orientation of the directional road segment, a preset second SVG element is retrieved. The coordinate values corresponding to the display position are assigned to the position attribute of the second SVG element, and the angle values corresponding to the display direction are assigned to the rotation attribute. Simultaneously, the font, color, size, and other style attributes of the element can be configured according to the parameter display requirements. After configuration, a second SVG element that accurately matches the display rules and can carry traffic status parameters is generated. The pre-configured second SVG elements corresponding to all directional road segments within the intersection are arranged in the corresponding positions on the visualization canvas according to their display positions and directions, ensuring that each second SVG element corresponds one-to-one with its respective directional road segment. Then, all elements are integrated into layers and their attributes are unified to finally form a parameter display layer that can fully carry and display all traffic status parameters of the intersection.
[0098] In this implementation, the display position and direction of parameters are determined based on the flow direction, ensuring that the parameter display aligns with the traffic characteristics of the road segment. By configuring a second SVG element and drawing a layer based on it, the parameter presentation has a standardized carrier. This method allows the traffic state parameters of each oriented road segment to accurately correspond to its spatial location and flow direction, avoiding problems such as parameter floating and misalignment in traditional solutions. This makes the parameter display layer both aesthetically pleasing and practical, and works in conjunction with the intersection orientation layer to improve the information transmission efficiency and accuracy of the entire visualization view.
[0099] S14. Generate a traffic visualization model of the intersection based on the parameter display layer and the intersection orientation layer.
[0100] The intersection traffic visualization model is used to generate a visual view of the intersection traffic status based on the traffic state parameters of each directed road segment. This visual view serves as the final graphical interface for users, intuitively presenting the physical structure of the intersection, the flow direction of each directed road segment, and the corresponding traffic state parameters, providing a reference for traffic management and travel decisions.
[0101] One possible implementation involves layer overlay technology, where a parameter display layer is overlaid on the intersection orientation layer, and the two are then merged. This ensures that the display position and direction of each parameter in the parameter display layer match the corresponding directed road segment in the intersection orientation layer. The merged layer is then formatted and encapsulated to form an intersection traffic visualization model containing data association rules and graphics rendering rules. When a visualization view is needed, the intersection traffic visualization model calls the traffic state parameters corresponding to each directed road segment, fills the parameters into the designated positions in the parameter display layer, and outputs a complete intersection traffic state visualization view containing the intersection structure, flow direction, and parameters through graphics rendering technology.
[0102] In one possible implementation, the direction indication layer, parameter display layer, and intersection orientation layer are superimposed sequentially from top to bottom to generate an intersection traffic visualization model.
[0103] The directional indication layer is the top auxiliary layer of the intersection traffic visualization model, used to provide users with intuitive directional references and avoid directional confusion caused by the complexity of the intersection structure. This directional indication layer includes east, south, west, and north directional indicators, which can be represented by arrows or other methods to help users quickly determine the direction of each branch road.
[0104] Optionally, the orientation marker can be placed in the lower right corner of the orientation illustration layer or in another position that does not obstruct the display of other information. This application embodiment does not impose specific restrictions on the display position of the orientation marker.
[0105] Specifically, based on the directional characteristics corresponding to the flow direction of each oriented road segment, a unified directional reference (such as east, south, west, and north markers) centered on the intersection is determined, and then integrated to form a directional indication layer for indicating the overall orientation. Then, similar to the above implementation, layer overlay technology is used to sequentially overlay the directional indication layer, parameter display layer, and intersection orientation layer from top to bottom, merging the three. Finally, the merged layer is formatted and encapsulated to form an intersection traffic visualization model containing data association rules and graphic rendering rules.
[0106] In this implementation, the direction indication layer serves as the top layer, providing users with clear directional references and avoiding misinterpretations of road segment directions. The intermediate parameter display layer ensures that traffic status parameters are intuitively visible, while the bottom intersection orientation layer provides basic structural support. This overlay method achieves complementary functions among the layers, ensuring that core information such as parameters and flow direction are not obscured, while reducing the user's interpretation cost through the direction indication layer. This results in a more reasonable structure for the generated intersection traffic visualization model, making the output visualization view easier for users to understand and use.
[0107] The intersection traffic visualization model processing method provided in this application obtains the orientation information of each intersection. For each intersection, an intersection orientation layer is drawn based on the orientation information, and a parameter display layer is drawn based on the flow direction. An intersection traffic visualization model is generated based on the parameter display layer and the intersection orientation layer. The orientation information includes the number of branch roads, the geometric orientation of each branch road, the number of lanes it contains, the driving direction of each lane, and the turning type. The intersection orientation layer includes the flow direction of directed road segments between different branch roads. The parameter display layer is used to define the display position and direction of traffic state parameters. The intersection traffic visualization model is used to generate a visual view of the intersection traffic state based on the traffic state parameters of each directed road segment. In this technical solution, by obtaining orientation information containing key information such as the number of branch roads and their geometric orientation, it is ensured that the intersection orientation layer can accurately present the flow direction of directed road segments; the parameter display layer, which defines parameter display rules based on the flow direction, achieves accurate matching between parameters and road segments. The final generated intersection traffic visualization model can efficiently integrate structural and parameter information, output intuitive visualization views, and allow users to clearly identify the traffic status of each directional road segment. This provides reliable support for traffic management and decision-making, improves the accuracy of the intersection traffic status visualization view, and thus enhances the precision and practicality of traffic visualization.
[0108] Figure 2 Flowchart of the intersection traffic visualization model processing method provided in this application Figure 2 ,like Figure 2 As shown, S12 includes:
[0109] S21. For each directed road segment, determine the drawing data related to the directed road segment in the orientation information of each intersection.
[0110] Among them, the drawing data refers to the core data selected from the intersection location information and used to draw the flow direction of directional road segments.
[0111] In one possible implementation, each directed road segment is taken as the smallest unit of analysis. First, the starting branch and ending branch corresponding to the directed road segment are identified. Then, data matching the starting branch and ending branch are extracted from the orientation information of the intersection. This includes the geometric orientation of the starting branch and ending branch, the driving direction of the corresponding lane, the turning type, etc. This data is the drawing data corresponding to the directed road segment.
[0112] S22. Configure the first SVG element based on the drawing data to generate the corresponding connector.
[0113] The configured first SVG element is used to display the flow direction of the directed road segment, and the connector refers to the model that integrates the configured first SVG element with the corresponding directed road segment.
[0114] In one possible implementation, for each determined directional road segment's drawing data, a preset first SVG element is retrieved, and the geometric orientation in the drawing data is converted into the coordinate attributes of the SVG element. The driving direction and steering type are converted into the path trajectory attributes of the SVG element. At the same time, visual attributes such as the element's line style and arrow mark are configured to enhance the flow direction recognition. After the configuration of the first SVG element is completed, the configured SVG element is bound to the unique identifier of the corresponding directional road segment to generate a connector that can accurately map the flow direction of the directional road segment.
[0115] S23. Draw the intersection orientation layer based on the connector.
[0116] In one possible implementation, the connectors corresponding to all directional road segments at the intersection are integrated. According to the coordinate attributes of the first SVG element in each connector, all the configured SVG elements are arranged in the corresponding positions on the visualization canvas to ensure that the direction and position of each element are consistent with the actual structure of the intersection. Then, the layer attributes of all SVG elements are unified, such as the background color. Finally, the scattered connectors are integrated into an intersection orientation layer that can completely present the flow direction of all directional road segments at the intersection.
[0117] In another possible implementation, when the orientation information includes the ground clearance of each branch road, the hierarchical relationship between directed road segments can be determined based on the ground clearance of each branch road. Sub-intersection orientation layers corresponding to the same level are drawn based on the connectors of the directed road segments. The sub-intersection orientation layers are then overlaid according to the hierarchical relationship to generate the intersection orientation layer.
[0118] In this context, the hierarchical relationship refers to the vertical arrangement of different oriented road segments. For example, the oriented road segments at elevated intersections are higher in the hierarchical relationship than the oriented road segments at ground-level intersections.
[0119] It should be understood that the sub-intersection orientation layer refers to a local layer that only contains the flow direction graphics of directional road segments at the same level.
[0120] Specifically, based on the ground clearance of each branch road, the elevation level corresponding to each branch road is first determined. Then, all oriented road segments are categorized according to the elevation level of their respective branch roads, with oriented road segments having higher ground clearance values designated as the upper layer and those with lower ground clearance values as the lower layer. This clarifies the vertical spatial hierarchy among all oriented road segments. According to the established hierarchy, the connectors of all oriented road segments belonging to the same elevation level are aggregated. Then, based on the coordinates, trajectory, and other attributes of the first SVG element in each connector, the flow direction graphics of these oriented road segments are precisely arranged in the corresponding area of the visualization canvas, ensuring that the flow direction graphics within the same level do not obstruct each other and are laid out reasonably. After completion, the sub-intersection orientation layer corresponding to that level is generated. Based on the established hierarchical relationship, all sub-intersection orientation layers are superimposed. Following the principle that the sub-intersection orientation layers with higher ground clearance are on top and the sub-intersection orientation layers with lower ground clearance are on the bottom, the superposition order and display priority of the layers are set to ensure that the upper sub-intersection orientation layer does not completely obscure the key information of the lower sub-intersection orientation layer. Finally, all sub-intersection orientation layers are integrated into a complete intersection orientation layer that can reflect the three-dimensional spatial structure of the intersection.
[0121] In this approach, incorporating ground clearance into the orientation information allows for precise differentiation of the spatial hierarchy of oriented road segments. By drawing and overlaying sub-intersection orientation layers at the same level, road segments at different elevations are clearly distinguished within the orientation layers. This technology avoids the visual confusion between elevated and ground-level road segments in traditional planar mapping, enabling intersection orientation layers to present a three-dimensional spatial structure. This allows users to intuitively identify the flow direction of road segments at each level, improving the clarity and recognizability of traffic visualization at complex intersections and broadening the applicability of the solution.
[0122] In the above embodiments, by extracting associated drawing data for each directed road segment, the configuration of the first SVG element is ensured to have a precise basis; the configured first SVG element is converted into a connector, establishing a stable association between data and graphics. This method standardizes the drawing process of the intersection orientation layer, avoids deviations between flow direction and actual road segments, and ensures that the orientation layer can clearly and accurately reflect the traffic relationships between different branches. This lays a reliable foundation for the subsequent drawing of the parameter display layer and model generation, improving the feasibility and stability of the visualization solution.
[0123] Optionally, in some embodiments, for each branch road, the configured second SVG elements of the directed road segment associated with the intersection of that branch road can be combined to generate an SVG element set.
[0124] Specifically, based on each branch, the configured second SVG elements corresponding to all directed road segments under that branch are first selected, and then these elements are given a unified branch identifier. All second SVG elements with the same branch identifier are classified and integrated to form the SVG element set corresponding to that branch.
[0125] Based on this, after generating the intersection traffic status visualization view, it can also respond to the user's click operation on the target branch road based on the intersection traffic status visualization view, and output the traffic status parameters corresponding to the target directed road segment related to the target branch road according to the SVG element set.
[0126] In practical applications, "user" refers to someone viewing the visual view of intersection traffic conditions, such as traffic management personnel or travelers. "Target branch road" refers to a specific branch road selected by the user through a click operation, for which the user needs to view traffic status parameters.
[0127] When a user clicks on a target branch road in the intersection traffic status visualization view, the branch road identifier corresponding to the click operation is captured. Based on the identifier, the pre-generated SVG element set corresponding to the target branch road is retrieved. Then, the traffic status parameters of the target directed road segment associated with all the second SVG elements are extracted from the set. Finally, these parameters are output in a preset display format, completing the linkage between the user's click operation and the parameter display.
[0128] In the above embodiments, the second SVG elements of the same branch road are combined into a set, realizing centralized management and rapid retrieval of parameters. When the user clicks on the target intersection, the corresponding parameters are accurately output based on the set, meeting the needs of on-demand query. This technology upgrades the visualization view from passive display to active interaction. Users do not need to search for parameters one by one in a complex view; they can obtain the traffic status information of the target intersection with a simple click, improving the user experience and practical value of the solution, and making it more suitable for efficient query scenarios in traffic management.
[0129] Figure 3 This application provides a visual view of the traffic conditions at an intersection. For example... Figure 3 As shown, the intersection includes four side roads. When the user clicks on the left side road in the intersection traffic status visualization view, the lane indicators (i.e., the traffic status parameters mentioned above) of each directional road segment will be displayed in a table at the bottom of the intersection traffic status visualization view.
[0130] Traffic status parameters include parking delay, number of stops, and saturation.
[0131] A traffic status parameter switching control (the number of stops in the image) is deployed in the upper left corner of the intersection traffic status visualization view. Users can use this traffic status parameter switching control to determine the traffic status parameters displayed in the intersection traffic status visualization view.
[0132] Optionally, the intersection traffic status visualization view also includes trend analysis controls and view switching controls. Users can use the trend analysis controls to obtain the changing trends of intersection traffic status, and use the view switching controls to switch between different display modes of the intersection traffic status visualization view.
[0133] It should be understood that the table also includes a route switching control (East in the figure), which users can use to switch between different routes. The table also includes a data refresh rate control (5 minutes in the figure), which users can use to determine the refresh frequency of traffic status parameters.
[0134] Figure 4 This is a schematic diagram illustrating the principle of the intersection traffic visualization model processing method provided in this application, such as... Figure 4 As shown, this method first acquires the original intersection information, then generalizes it to obtain generalized data. The generalized data is then integrated to obtain the orientation information for each intersection. For each directed road segment, the orientation information for each intersection is broken down, and the drawing data related to the directed road segment within the orientation information of each intersection is determined. Based on the drawing data, the first SVG element is configured to generate the corresponding connector. Then, based on the connectors of directed road segments at the same level, the corresponding sub-intersection orientation layers are drawn, and the sub-intersection orientation layers are superimposed according to the hierarchical relationship to generate the intersection orientation layer.
[0135] Simultaneously, based on the flow direction of the directed road segments displayed by the configured first SVG element, the display position and direction of the traffic state parameters corresponding to each directed road segment are determined. Then, a parameter display layer is drawn based on the display position and direction, and a direction indication layer is determined according to the direction indication of the connector. Finally, the direction indication layer, parameter display layer, and intersection orientation layer are superimposed sequentially from top to bottom to generate an intersection traffic visualization model.
[0136] In practical applications, real-time traffic status parameters for each directed road segment are obtained and displayed through a parameter display layer to generate a real-time visual view of intersection traffic status.
[0137] Figure 5 This is a schematic diagram of the intersection traffic visualization model processing device provided in this application, such as... Figure 5 As shown, the intersection traffic visualization model processing device 50 provided in this embodiment includes:
[0138] The acquisition module 501 is used to acquire the orientation information of each intersection. The orientation information includes the number of branch roads, the geometric orientation of each branch road and the number of lanes it contains, the driving direction of each lane and the turning type.
[0139] The drawing module 502 is used to draw the intersection orientation layer for each intersection based on the intersection's orientation information. The intersection orientation layer includes the flow direction of the directional road segments between different branch roads.
[0140] The drawing module 502 is also used to draw a parameter display layer based on the flow direction. The parameter display layer is used to define the display position and display direction of traffic status parameters.
[0141] The generation module 503 is used to generate an intersection traffic visualization model based on the parameter display layer and the intersection orientation layer. The intersection traffic visualization model is used to generate an intersection traffic status visualization view based on the traffic status parameters of each directed road segment.
[0142] In one possible implementation, the drawing module 502 is specifically used for:
[0143] For each directed road segment, determine the drawing data related to the directed road segment from the orientation information of each intersection.
[0144] The first SVG element is configured based on the rendering data to generate the corresponding connector. The configured first SVG element is used to display the flow direction of the directed road segment.
[0145] Draw the intersection orientation layer based on the connector.
[0146] In one possible implementation, the orientation information also includes the ground clearance of each branch. The drawing module 502 is specifically used for:
[0147] The hierarchical relationship between directed road segments is determined based on the ground clearance of each branch road.
[0148] Based on the connectors of the directed road segments at the same level, draw the sub-intersection orientation layer corresponding to the level.
[0149] The sub-intersection orientation layers are overlaid according to the hierarchical relationship to generate the intersection orientation layer.
[0150] In one possible implementation, the generation module 503 is specifically used for:
[0151] The direction indication layer, parameter display layer, and intersection orientation layer are superimposed in a top-to-bottom order to generate a traffic visualization model of the intersection.
[0152] In one possible implementation, the drawing module 502 is specifically used for:
[0153] Based on the flow direction, determine the display location and direction of the traffic state parameters corresponding to each directional road segment.
[0154] The second SVG element is configured based on its display position and display direction to generate a configured second SVG element, which is used to display traffic status parameters.
[0155] Draw the parameter display layer based on the configured second SVG element.
[0156] In one possible implementation, the generation module 503 is further configured to combine the configured second SVG elements of the directed road segment associated with each branch to generate an SVG element set.
[0157] Correspondingly, the intersection traffic visualization model processing device 50 also includes an output module. After generating the intersection traffic status visualization view, the output module is used to respond to the user's click operation on the target branch road based on the intersection traffic status visualization view, and output the traffic status parameters corresponding to the target directed road segment related to the target branch road according to the SVG element set.
[0158] The intersection traffic visualization model processing device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.
[0159] Figure 6 A schematic diagram of the structure of the electronic device provided in this application. Figure 6 As shown, the electronic device 60 provided in this embodiment includes at least one processor 601 and a memory 602. Optionally, the electronic device 60 further includes a communication component 603. The processor 601, memory 602, and communication component 603 are connected via a bus 604.
[0160] In a specific implementation, at least one processor 601 executes computer execution instructions stored in memory 602, causing at least one processor 601 to perform the above-described method.
[0161] The specific implementation process of processor 601 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.
[0162] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.
[0163] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.
[0164] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.
[0165] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.
[0166] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the above-described method.
[0167] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random-Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.
[0168] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an application-specific integrated circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.
[0169] The division of units is merely a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.
[0170] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0171] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0172] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.
[0173] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.
[0174] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.
Claims
1. A method for processing a traffic visualization model at an intersection, characterized in that, include: Obtain the location information of each intersection, including the number of branch roads, the geometric location of each branch road and the number of lanes it contains, the driving direction of each lane and the turning type. For each intersection, an intersection orientation layer is drawn based on the intersection's orientation information. The intersection orientation layer includes the flow direction of directional road segments between different branch roads. Based on the flow direction, a parameter display layer is drawn, which is used to define the display position and display direction of traffic status parameters; Based on the parameter display layer and the intersection orientation layer, an intersection traffic visualization model is generated. The intersection traffic visualization model is used to generate an intersection traffic status visualization view based on the traffic status parameters of each directed road segment.
2. The method according to claim 1, characterized in that, The step of drawing an intersection orientation layer based on the intersection's orientation information for each intersection includes: For each directed road segment, determine the drawing data related to the directed road segment from the orientation information of each intersection; Based on the drawing data, the first scalable vector graphics SVG element is configured to generate a corresponding connector; wherein, the configured first SVG element is used to display the flow direction of the directed road segment. The intersection orientation layer is drawn based on the connector.
3. The method according to claim 2, characterized in that, The orientation information also includes the ground clearance of each branch road; the process of drawing the intersection orientation layer based on the connector includes: The hierarchical relationship between directed road segments is determined based on the ground clearance of each branch road; Based on the connectors of the directed road segments at the same level, draw the sub-intersection orientation layer corresponding to the level; The intersection orientation layers are superimposed according to the hierarchical relationship to generate the intersection orientation layer.
4. The method according to any one of claims 1-3, characterized in that, The step of generating a traffic visualization model of the intersection based on the parameter display layer and the intersection orientation layer includes: The direction indication layer, the parameter display layer, and the intersection orientation layer are superimposed sequentially from top to bottom to generate the intersection traffic visualization model.
5. The method according to any one of claims 1-3, characterized in that, The step of drawing the parameter display layer based on the flow direction includes: Based on the flow direction, determine the display position and display direction of the traffic state parameters corresponding to each directed road segment; The second SVG element is configured based on the display position and display direction to generate a configured second SVG element, which is used to display the traffic status parameters; The parameter display layer is drawn based on the configured second SVG element.
6. The method according to claim 5, characterized in that, The method further includes: For each branch, the configured second SVG elements of the directed road segments associated with the branch are combined to generate an SVG element set; Accordingly, after generating the traffic status visualization view of the intersection, the method further includes: In response to a user's click operation on a target branch road based on the intersection traffic status visualization view, the traffic status parameters corresponding to the target directed road segment associated with the target branch road are output according to the SVG element set.
7. A traffic visualization model processing device for intersections, characterized in that, include: The acquisition module is used to acquire the location information of each intersection, including the number of branch roads, the geometric location of each branch road and the number of lanes it contains, the driving direction of each lane and the turning type. The drawing module is used to draw an intersection orientation layer for each intersection based on the intersection's orientation information. The intersection orientation layer includes the flow direction of directional road segments between different branch roads. The drawing module is also used to draw a parameter display layer based on the flow direction, wherein the parameter display layer is used to define the display position and display direction of traffic state parameters; The generation module is used to generate an intersection traffic visualization model based on the parameter display layer and the intersection orientation layer. The intersection traffic visualization model is used to generate an intersection traffic status visualization view based on the traffic status parameters of each directed road segment.
8. An electronic device, characterized in that, include: Memory, processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the method as described in any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-6.
10. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method described in any one of claims 1-6.