Method and device for generating traffic guidance information
Through road section coding, rich dynamic traffic information is obtained and integrated, the problem of reducing the accuracy of existing traffic-induced screen data is solved, and high-precision traffic information display is achieved to meet travel needs and reduce costs.
Patent Information
- Application Number
- CN202211364433.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-02
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2042-11-02
AI Technical Summary
The traffic information displayed by the existing traffic induction screen comes from data collected by hardware equipment such as magnetic inductance coils and bayonet microwave radars. The data types are limited and the accuracy decreases as hardware ages, which cannot meet travel needs.
The real road section and road units are associated through section codes, rich dynamic traffic information in the database are obtained, and fusion is carried out to generate high-precision traffic induction information and displayed on the traffic induction screen.
It improves the accuracy and richness of traffic-induced information, meets the public's travel needs, and does not require the deployment of additional hardware, reducing costs.
Smart Images

Figure CN115762144B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of traffic data processing, and in particular to a method and device for generating traffic guidance information. Background Art
[0002] Traffic guidance screens are an important part of the traffic guidance system. Traffic guidance information such as road conditions and travel time can be released to the traffic scene through the traffic guidance screens, so that traffic participants can receive timely reminders.
[0003] At present, the traffic guidance information displayed on the traffic guidance screen comes from the data collected by hardware devices such as magnetic coils and bayonet microwave radars deployed around the road. The traffic management department can summarize these data and send them to the traffic guidance screen for display. However, the data types collected by these hardware devices are limited, and as the hardware devices age, the data accuracy is gradually reduced, which cannot meet travel needs. Summary of the invention
[0004] In view of this, the present specification provides a method and device for generating traffic guidance information.
[0005] Specifically, this specification is implemented through the following technical solutions:
[0006] A method for generating traffic guidance information, comprising:
[0007] Determine the real road section displayed on the target traffic guidance screen, and obtain the road section code of the real road section;
[0008] Determining a number of road units included in the real road section according to the road section code;
[0009] Obtain dynamic traffic information of each road unit from the database;
[0010] The dynamic traffic information of each road unit is integrated to generate corresponding traffic guidance information for the real road section displayed on the target traffic guidance screen.
[0011] Optionally, the step of fusing the dynamic traffic information of each road unit to generate corresponding traffic guidance information for the real road section displayed on the target traffic guidance screen includes:
[0012] If the dynamic traffic information is a driving speed, determining a road weight of each road unit;
[0013] The weighted average of the driving speeds of the various road units is calculated according to the road weights to obtain the driving speed corresponding to the actual road section as the traffic guidance information of the actual road section.
[0014] Optionally, determining the road weight of each road unit includes:
[0015] For each road unit, obtaining a length weight and a grade weight of the road unit;
[0016] The road weight of the road unit is determined according to the length weight and the level weight.
[0017] Optionally, the step of fusing the dynamic traffic information of each road unit to generate corresponding traffic guidance information for the real road section displayed on the target traffic guidance screen includes:
[0018] If the dynamic traffic information is the travel time, the sum of the travel times of the road units is calculated to obtain the travel time corresponding to the real road section as the traffic guidance information of the real road section.
[0019] Optionally, the step of fusing the dynamic traffic information of each road unit to generate corresponding traffic guidance information for the real road section displayed on the target traffic guidance screen includes:
[0020] If the dynamic traffic information is a traffic event, the traffic events of each road unit are summarized as the traffic guidance information of the real road section.
[0021] Optionally, also include:
[0022] Acquire the road display position of the real road section and the information display position of the traffic guidance information;
[0023] Acquire an attribute model matched by the target traffic guidance screen, and determine display attributes corresponding to the traffic guidance information according to the attribute model;
[0024] Perform image rendering based on the display attributes, the road display position and the information display position to obtain an induction screen image;
[0025] The guidance screen picture is sent to the target traffic guidance screen to display traffic guidance information.
[0026] Optionally, the traffic guidance information has multiple types, and the acquiring the attribute model matched by the target traffic guidance screen includes:
[0027] For each type of traffic guidance information, obtaining an attribute model matched by the target traffic guidance screen from the attribute model corresponding to the traffic guidance information type;
[0028] The determining, according to the attribute model, the display attribute corresponding to the traffic guidance information includes:
[0029] The display attribute of the corresponding type of traffic guidance information is determined according to the attribute model.
[0030] Optionally, the road segment code is obtained by encoding the attributes of the real road segment based on the open location reference specification OpenLR.
[0031] A device for generating traffic guidance information, comprising:
[0032] A road section code determination unit determines the real road section displayed on the target traffic guidance screen and obtains the road section code of the real road section;
[0033] A road unit determining unit, which determines a number of road units included in the real road section according to the road section code;
[0034] A traffic information acquisition unit, which acquires dynamic traffic information of each road unit from a database;
[0035] The traffic information fusion unit fuses the dynamic traffic information of each road unit to generate corresponding traffic guidance information for the real road section displayed on the target traffic guidance screen.
[0036] An electronic device, comprising:
[0037] processor;
[0038] a memory for storing processor-executable instructions;
[0039] The processor implements the aforementioned method by running the executable instructions.
[0040] A computer-readable storage medium stores computer instructions, which implement the steps of the above method when executed by a processor.
[0041] By adopting the above implementation, the road units included in the real road section displayed by the target traffic guidance screen can be determined according to the road section code, and then the dynamic traffic information corresponding to each road unit with richer types and higher accuracy can be obtained from the database, and then the dynamic traffic information of each road unit is integrated to obtain the traffic guidance information of the real road section, thereby improving the accuracy of the traffic guidance information and the richness of the types of traffic guidance information to meet the travel needs of the public. At the same time, there is no need to deploy hardware equipment such as magnetic induction coils and bayonet microwave radars, which can greatly reduce costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 It is a flowchart of a method for generating traffic guidance information shown in an exemplary embodiment of this specification.
[0043] Figure 2 It is a flowchart of an induction screen image rendering method shown in an exemplary embodiment of this specification.
[0044] Figure 3 It is a schematic diagram of a real road section in a traffic guidance screen shown as an exemplary embodiment of this specification.
[0045] Figure 4 It is a schematic diagram of an induction screen picture shown in an exemplary embodiment of this specification.
[0046] Figure 5 It is a hardware structure diagram of an electronic device where a traffic guidance information generating device is located as shown in an exemplary embodiment of this specification.
[0047] Figure 6 It is a block diagram of a device for generating traffic guidance information shown in an exemplary embodiment of this specification. DETAILED DESCRIPTION
[0048] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this specification. Instead, they are merely examples of devices and methods consistent with some aspects of this specification as detailed in the appended claims.
[0049] The terms used in this specification are for the purpose of describing specific embodiments only and are not intended to limit this specification. The singular forms "a", "the" and "the" used in this specification and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0050] It should be understood that although the terms first, second, third, etc. may be used in this specification to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this specification, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0051] Traffic guidance screens are an important part of the traffic guidance system. Traffic guidance information such as road conditions and travel time can be released to the traffic scene through the traffic guidance screens, so that traffic participants can receive timely reminders.
[0052] At present, the traffic guidance information displayed on the traffic guidance screen comes from the data collected by hardware devices such as magnetic coils and bayonet microwave radars deployed around the road. The traffic management department can summarize these data and send them to the traffic guidance screen for display. However, the data types collected by these hardware devices are limited, and they can often only collect driving speed. And as the hardware equipment ages, the data accuracy is gradually reduced and cannot meet travel needs.
[0053] This specification provides a method for generating traffic guidance information, which can associate real road sections and road units through road section coding, and then obtain dynamic traffic information with richer types and higher accuracy corresponding to each road unit included in the real road section from the database, and then integrate the dynamic traffic information of each road unit to obtain the traffic guidance information of the real road section, thereby improving the accuracy of the traffic guidance information and the richness of the types of traffic guidance information to meet the travel needs of the public.
[0054] Figure 1 It is a flowchart of a method for generating traffic guidance information shown in an exemplary embodiment of this specification.
[0055] Figure 1 The method for generating traffic guidance information shown can be applied to a server, such as a server of an Internet map company, etc. The method includes the following steps:
[0056] Step 102, determining the actual road section displayed on the target traffic guidance screen, and obtaining the road section code of the actual road section.
[0057] In this specification, the real road sections to be displayed on each traffic guidance screen can be pre-configured in the server. The traffic guidance screen can display only one real road section or multiple real road sections. The real road section can be a complete real road, such as the North Third Ring Road; the real road section can also be a section of a complete real road, such as the West Section of the North Third Ring Road, the East Section of the North Third Ring Road, etc. This specification does not impose any special restrictions on this.
[0058]
[0059] Table 1
[0060] Please refer to the example of Table 1. Assume that the server pre-stores the real road sections displayed by the two traffic guidance screens shown in Table 1. Among them, traffic guidance screen 1 displays 3 real roads: North Third Ring Road, Airport Expressway and North Fourth Ring Road, and traffic guidance screen 2 displays 6 real roads. Of course, Table 1 is only an example. In actual applications, the server may not need to organize such a table.
[0061] In this specification, for a target traffic guidance screen that is to display traffic guidance information, after determining each real road section displayed by the target traffic guidance screen, a section code of the real road section can be obtained for each real road section.
[0062] The road code of each real road section may be stored in advance in the server, and the road code is a string obtained by encoding the attributes of the real road section based on the OpenLR (Open Location Reference) specification. The attributes of the real road section may include: the start and end points of the real road section, the road grade, etc.
[0063] In this specification, this step can be executed when the target traffic guidance screen is refreshed to determine the actual road section displayed by the target traffic guidance screen and obtain the section code of the actual road section. The refresh frequency of the target traffic guidance screen can be 2 minutes, 5 minutes, etc. For details, please refer to the implementation method in the relevant technology, and this specification will not go into details here.
[0064] Step 104: Determine a number of road units included in the real road section according to the road section code.
[0065] Based on the aforementioned step 102, for each real road section displayed on the target traffic guidance screen, after obtaining the road section code of the real road section, a number of road units included in the real road section can be determined according to the road section code.
[0066] Among them, the road unit is the smallest unit for storing dynamic traffic information in the database. A real road will be divided into multiple road units due to intersections, T-junctions, entrances and exits, etc. Each real road section displayed in the traffic guidance screen often includes multiple road units.
[0067] In this specification, the server can call a service such as a basic road network service that can parse a road segment code, and then determine the road units included in the corresponding real road segment according to the road segment code, such as determining the road unit ID, etc. For example, for the real road segment "On Jiefang Park Road", it can be parsed to obtain that the real road segment includes 3 road units, namely road unit 1, road unit 2 and road unit 3.
[0068] In this specification, the road units included in the real road section are determined by road section coding, and then the real road section and the road units in the database are associated with each other. This can effectively solve the problem of frequent changes in road unit IDs, which makes it difficult to associate road units with real road sections, and provide a technical basis for generating more diverse and more accurate traffic guidance information for real road sections.
[0069] Step 106, obtaining dynamic traffic information of each road unit from the database.
[0070] Based on the aforementioned step 104, after the road units included in the real road section are determined, the dynamic traffic information corresponding to the road units may be searched in a database, for example, the dynamic traffic information may be searched in a database according to the road unit ID.
[0071] In this specification, the database may be a traffic information database of an Internet map company, which stores dynamic traffic information of each road unit at the minute level. The dynamic traffic information may be of various types, such as road conditions, traffic events, travel time, traffic lights, etc. Compared with the data collected by hardware devices such as magnetic coils and bayonet microwave radars, the types are richer.
[0072] Among them, the road condition can be smooth, slow, congested, etc., or it can be a driving speed that reflects the road condition; the traffic events can include road repair events, accident events, etc.; the travel time is also in minutes; the traffic light information can be the number of traffic lights, etc.
[0073] For example, still taking the real road section "Jiefang Park Road" including road unit 1, road unit 2 and road unit 3 as an example, the road conditions, traffic events and travel time of road unit 1-road unit 3 can be obtained from the database.
[0074] Step 108, integrating the dynamic traffic information of each road unit to generate corresponding traffic guidance information for the real road section displayed on the target traffic guidance screen.
[0075] Based on the aforementioned step 106, for each real road section displayed on the target traffic guidance screen, the dynamic traffic information of the road units included in the real road section can be integrated to obtain the dynamic traffic information of the real road section as the traffic guidance information of the real road section.
[0076] In this specification, when performing dynamic traffic information fusion, each type can be fused separately to obtain traffic guidance information corresponding to the type. For example, the driving speeds of road units 1 to 3 included in "Jiefang Park Road" can be fused to obtain the driving speed of the real road section "Jiefang Park Road" as a kind of traffic guidance information; the travel time of road units 1 to 3 can also be fused to obtain the overall travel time of the real road section "Jiefang Park Road" as another kind of traffic guidance information; the traffic events of road units 1 to 3 can also be summarized to obtain the traffic events on the real road section "Jiefang Park Road" as another kind of traffic guidance information, etc.
[0077] In this specification, after generating corresponding traffic guidance information for each real road section of the target traffic guidance screen, a guidance screen picture can be generated based on the traffic guidance information, and then the guidance screen picture is sent to the target guidance screen for display.
[0078] From the above description, it can be seen that this manual can determine the road units included in the real road section displayed by the target traffic guidance screen according to the road section code, and then obtain the dynamic traffic information corresponding to each road unit with richer types and higher accuracy from the database, and then integrate the dynamic traffic information of each road unit to obtain the traffic guidance information of the real road section, thereby improving the accuracy of the traffic guidance information and the richness of the traffic guidance information types to meet the travel needs of the public. At the same time, there is no need to deploy hardware equipment such as magnetic induction coils and bayonet microwave radars, which can also greatly reduce costs.
[0079] The following is a detailed description of the technical solution provided in this specification from two aspects: the integration of dynamic traffic information and the display of traffic guidance information.
[0080] 1. Integration of dynamic traffic information
[0081] Internet map companies usually have dynamic traffic information at the minute level. By using the traffic guidance information generation solution provided in this specification, after obtaining the dynamic traffic information of each road unit included in the real road section, each type of dynamic traffic information can be integrated separately according to the type of dynamic traffic information, and then the corresponding type of traffic guidance information can be generated for the real road section.
[0082] The following is a detailed description of the integration of three types of dynamic traffic information: road conditions, travel time, and traffic events.
[0083] (1) Road conditions
[0084] In this specification, the road condition of the road unit stored in the database may be the driving speed of the corresponding road unit.
[0085] In one example, an average value of the driving speeds of multiple road units may be calculated and used as the driving speed of the corresponding real road section. The driving speed is a type of traffic guidance information of the real road section.
[0086] Road unit Travel speed Road Unit 1 20km / h Road Unit 2 25km / h Road Unit 3 30km / h
[0087] Table 2
[0088] Please refer to Table 2. Taking the three road units included in the aforementioned real road section "Jiefang Park Road": road unit 1, road unit 2 and road unit 3 as an example, assuming that the driving speeds of these three road units are 20km / h, 25km / h and 30km / h respectively, and the average value is 25km / h, it can be determined that one type of traffic guidance information on "Jiefang Park Road" is a driving speed of 25km / h.
[0089] In another example, the road weight of each road unit may be determined first, and then the driving speeds of multiple road units may be merged by weighted average. For example, the weighted average of the driving speeds of each road unit may be calculated according to the road weight to achieve fusion and obtain the driving speed of the corresponding real road section.
[0090] Among them, the road weights of the road units can be stored in advance. Assuming that the road weight of road unit 1 is W1, the road weight of road unit 2 is W2, and the road weight of road unit 3 is W3, still taking the driving speed shown in Table 2 as an example, the weighted average of the driving speed can be calculated: (20×W1+25×W2+30×W3) / (W1+W2+W3), and the weighted average is determined as the driving speed on "Jiefang Park Road".
[0091] Optionally, the road weight may also be calculated by using multiple weights. For example, the length weight and the level weight of each road unit may be pre-stored, and then the road weight may be calculated based on the length weight and the level weight.
[0092] The length weight may reflect the length of the corresponding road unit. Generally speaking, the longer the length is, the greater the corresponding length weight is.
[0093] The grade weight may reflect the road grade of the corresponding road unit. For example, the road grade may include expressways, national roads, urban expressways, urban trunk roads, etc. Different road grades correspond to different grade weights.
[0094] Taking the aforementioned road unit 1 as an example, assuming that the length weight of the road unit 1 is W11 and the level weight is W12, the road weight W1 corresponding to the road unit 1 can be obtained by calculating the average value of W11 and W12. Of course, in practical applications, other methods can also be used to calculate W1 based on W11 and W12, and this specification does not impose any special restrictions on this.
[0095] (2) Travel time
[0096] In this specification, the database may also store the travel time of each road unit, and the travel time of each road unit may be integrated by calculating the sum value to obtain the travel time of the corresponding real road section, which is another type of traffic induction information of the real road section.
[0097] Road unit Passing time Road Unit 1 5 minutes Road Unit 2 8 minutes Road Unit 3 3 minutes
[0098] Table 3
[0099] Please refer to Table 2. Taking the three road units on the aforementioned real road section Jiefang Park Road as an example, namely road unit 1, road unit 2 and road unit 3, assuming that the travel time of these three road units are 5 minutes, 8 minutes and 3 minutes respectively, and the sum is 16 minutes, then another traffic guidance information on "Jiefang Park Road" can be determined as a travel time of 16 minutes.
[0100] (3) Traffic incidents
[0101] In this specification, the database also stores traffic events of each road unit, which may include road repair events, road closure events, accident events, etc. The traffic events of each road unit can be integrated by aggregating the traffic events to obtain the traffic events of the corresponding real road section. The traffic event is another type of traffic induction information for the real road section.
[0102] Still taking the three road units included in the aforementioned real road section "Jiefang Park Road": road unit 1, road unit 2 and road unit 3 as an example, assuming that through database query it can be known that road unit 1 has no traffic events, while the traffic event with road unit 2 is an accident, and the traffic event with road unit 3 is road construction, then the accident and road construction can be determined as traffic events on "Jiefang Park Road".
[0103] It should be noted that the above-mentioned dynamic traffic information is only for illustrative purposes. In actual applications, there may be other types of dynamic traffic information. When merging, a suitable fusion method can be selected according to the type and characteristics of the dynamic traffic information. This specification does not impose any special restrictions on this.
[0104] 2. Display of traffic guidance information
[0105] In this specification, based on the above Figure 1 In the illustrated embodiment, after the corresponding traffic guidance information is generated for each real road section displayed on the target traffic guidance screen, image rendering can be performed to obtain a guidance screen image, and then the guidance screen image is sent to the target traffic guidance screen for display.
[0106] Figure 2 It is a flowchart of an induction screen image rendering method shown in an exemplary embodiment of this specification.
[0107] Please refer to Figure 2 , the induction screen image rendering method may include the following steps:
[0108] Step 202, obtaining the road display position of the actual road section and the information display position of the traffic guidance information.
[0109] In this specification, when configuring the real road sections to be displayed on each traffic guidance screen, the road display position of each real road section can also be configured. The road display position is the display position of the corresponding real road section in the traffic guidance screen, which can be reflected as the pixel coordinates in the traffic guidance screen, including the graphic display position corresponding to the real road section graphic and the name display position corresponding to the real road section name.
[0110] Taking the graphic display position corresponding to the real road segment graphic as an example, the real road segment can be a rectangle in the traffic guidance screen, and the pixel coordinates of the four vertices of the rectangle can be configured as the graphic display position of the real road segment. For example, the graphic display position of the aforementioned "Jiefang Park Road" is (175*105; 184*105; 184*123; 175*123), where the pixel coordinates of each vertex are separated by a semicolon ";".
[0111] For another example, see Figure 3 The real road sections “North Third Ring Road”, “North Fourth Ring Road” and “North Fifth Ring Road” shown in the traffic guidance screen can also be a pentagon with an “arrow”. Then the pixel coordinates of the five vertices of the pentagon can be configured as the graphic display position of the real road section.
[0112] Of course, in other examples, the real road section may also be in other shapes, and the corresponding pixel coordinates may be pre-configured, which will not be described in detail in this specification.
[0113] In this specification, when configuring the real road sections that need to be displayed on each traffic guidance screen, the information display position of the traffic guidance information that needs to be displayed on the traffic guidance screen can also be configured. The information display position can also be the pixel coordinates in the traffic guidance screen. The pixel coordinates can be the pixel coordinates of one or more points in the traffic guidance screen, and can be pre-set according to the type of traffic guidance information.
[0114] In this specification, before generating the guidance screen image, this step can be performed to obtain the road display position of the real road section and the information display position of the traffic guidance information. Figure 1 This step is performed after step 108 in the illustrated embodiment, and may also be performed after step 102, or simultaneously with step 102, and this specification does not impose any special restrictions on this.
[0115] Step 204: Acquire the attribute model matched by the target traffic guidance screen, and determine the display attribute corresponding to the traffic guidance information according to the attribute model.
[0116] In this specification, before generating the guidance screen image, it is also necessary to determine the display attributes of each traffic guidance information, and the display attributes may include icons, colors, fonts, font sizes, etc.
[0117] When the traffic guidance information is a road condition, its display attribute can be a color. Commonly, the display attribute of a congested road condition is red, the display attribute of a slow-moving road condition is yellow, and the display attribute of a smooth road condition is green, etc. Among them, the road conditions such as "congested", "slow-moving", and "smooth" correspond to different driving speed ranges, and the processing and implementation of this part can refer to the relevant technology.
[0118] When the traffic guidance information is the passing time, its display attributes may include color, font, and font size. For example, the passing time is in yellow, in Songti font, and in size 4.
[0119] When the traffic guidance information is a traffic event, its display attribute may be an icon. Common traffic event icons may include traffic accident icons, road repair icons, road closure icons, etc.
[0120] In this specification, several different attribute models may be pre-set, and the attribute models may include display attributes corresponding to traffic guidance information, and then the attribute model matching each traffic guidance screen may be set. When determining the display attributes, the attribute model matching the target traffic guidance screen may be first obtained, and then the display attributes corresponding to the corresponding traffic guidance information may be determined according to the attribute model. By setting the attribute model, personalized display of traffic guidance information may be achieved, and even the same traffic guidance information may be displayed with different attributes in different traffic guidance screens.
[0121] In this specification, different attribute models may be set for each type of traffic guidance information.
[0122]
[0123] Table 4
[0124] Please refer to the example in Table 4. For traffic guidance information of this type, due to the different speed limits in cities and highways, two different attribute models can be set, namely, the urban traffic model and the highway traffic model. In the urban traffic model, a speed of 50 km / h represents smooth traffic, and its color attribute is green, while a speed of 50 km / h in the highway traffic model represents slow traffic, and its color attribute is yellow.
[0125] In this example, the traffic guidance screen on the highway can be set to match the highway road condition model, and the traffic guidance screen in the city can be set to match the city road condition model. When obtaining the attribute model matched by the target traffic guidance screen, the attribute model matched by the target traffic guidance screen can be obtained from the attribute model corresponding to the road condition shown in Table 4.
[0126] Different attribute models can also be set for the two types of traffic guidance information, namely, travel time and traffic events. Taking travel time as an example, a travel time model with a yellow font attribute can be set, or a travel time model with a green font attribute can be set, and so on.
[0127] Of course, for the two types of traffic guidance information, namely, travel time and traffic events, only one corresponding attribute model may be set, such as a travel time model and a traffic event model, and this specification does not impose any special restrictions on this.
[0128] For example, it is assumed that the road condition has two attribute models, namely the urban road condition model and the highway road condition model shown in Table 4, while the travel time has only one corresponding attribute model: the travel time model, and the traffic event also has only one corresponding attribute model: the traffic event model.
[0129] For the target traffic guidance screen, its matching attribute model can be determined in the two attribute models corresponding to the road conditions. Assuming that the target traffic guidance screen matches the urban road condition model, the display attributes of each traffic guidance information corresponding to each real road section displayed on the target traffic guidance screen can be determined based on the urban road condition model, the travel time model, and the traffic event model.
[0130] For example, the traffic condition on "Jiefang Park Road" is 50km / h (smooth), and its color attribute is determined to be green according to the urban traffic condition model; the travel time is determined to be yellow size 4 Song font according to the travel time model; the accident icon of the accident event is determined according to the traffic event model, etc.
[0131] Step 206, performing image rendering based on the display attributes, the road display position and the information display position to obtain an induction screen image.
[0132] Based on the aforementioned steps 202 and 204, after obtaining the road display position of the real road section in the traffic guidance screen, the display attributes and the information display position of the traffic guidance information in the traffic guidance screen, image rendering can be performed based on the road display position, the display attributes and the information display position to obtain the corresponding guidance screen image.
[0133] For example, the information display position of the traffic guidance information road condition is within the rectangle where the corresponding real road section is located, and then the corresponding color can be rendered within the rectangle according to the color display attribute.
[0134] For another example, the information display position of the traffic guidance information passage time is above the corresponding real road section, and then the passage time with corresponding attributes can be rendered above the corresponding rectangle of the real road section according to the color, font, font size and other attributes of the passage time.
[0135] Please refer to Figure 4, Figure 4 A rendered induction screen image is shown, which shows three real road sections, among which the road condition of the real road section "Fuxingmen" is green and smooth ( Figure 4 The text represents the color), the travel time is 4 minutes, the actual road condition of the "Fuchengmen" section is yellow slow traffic, and the travel time is 8 minutes, etc.
[0136] In this specification, after obtaining the induction screen image, the induction screen image can be sent to the corresponding target traffic induction screen for display to achieve traffic induction. With such a solution, for the traffic induction screen, it is only necessary to display the induction screen image sent by the server, without the need for dynamic traffic information fusion and other calculations and processing, which is more efficient. Moreover, such a solution can be better compatible with the traffic induction screens currently deployed on the road, without the need to re-purchase and deploy traffic induction screens, which greatly saves costs.
[0137] From the above description, it can be seen that this manual can determine the road units included in the real road section displayed by the target traffic guidance screen according to the road section code, and then obtain the dynamic traffic information corresponding to each road unit with richer types and higher accuracy from the database, and then integrate the dynamic traffic information of each road unit to obtain the traffic guidance information of the real road section, thereby improving the accuracy of the traffic guidance information and the richness of the traffic guidance information types to meet the travel needs of the public. At the same time, there is no need to deploy hardware equipment such as magnetic induction coils and bayonet microwave radars, which can also greatly reduce costs.
[0138] Corresponding to the above-mentioned embodiment of the method for generating traffic guidance information, this specification also provides an embodiment of a device for generating traffic guidance information.
[0139] The embodiments of the traffic guidance information generation device of this specification can be applied in a server. The device embodiments can be implemented by software, hardware, or a combination of software and hardware. Taking software implementation as an example, as a device in a logical sense, it is formed by the processor of the electronic device in which it is located reading the corresponding computer program instructions in the non-volatile memory into the memory and running them. From the hardware level, if Figure 5 The figure is a hardware structure diagram of the server where the traffic guidance information generating device of this manual is located, except Figure 5 In addition to the processor, memory, network interface, and non-volatile memory shown, the server where the device in the embodiment is located may also include other hardware according to the actual function of the server, which will not be described in detail.
[0140] Figure 6 It is a block diagram of a device for generating traffic guidance information shown in an exemplary embodiment of this specification.
[0141] Please refer to Figure 6 The traffic guidance information generation device can be applied to the aforementioned Figure 5 The servers shown, such as those deployed by Internet map companies, include:
[0142] A road section code determination unit determines the real road section displayed on the target traffic guidance screen and obtains the road section code of the real road section;
[0143] A road unit determining unit, which determines a number of road units included in the real road section according to the road section code;
[0144] A traffic information acquisition unit, which acquires dynamic traffic information of each road unit from a database;
[0145] The traffic information fusion unit fuses the dynamic traffic information of each road unit to generate corresponding traffic guidance information for the real road section displayed on the target traffic guidance screen.
[0146] Optionally, the step of fusing the dynamic traffic information of each road unit to generate corresponding traffic guidance information for the real road section displayed on the target traffic guidance screen includes:
[0147] If the dynamic traffic information is a driving speed, determining a road weight of each road unit;
[0148] The weighted average of the driving speeds of the various road units is calculated according to the road weights to obtain the driving speed corresponding to the actual road section as the traffic guidance information of the actual road section.
[0149] Optionally, the step of determining the road weight of each road unit includes:
[0150] For each road unit, obtaining a length weight and a grade weight of the road unit;
[0151] The road weight of the road unit is determined according to the length weight and the level weight.
[0152] Optionally, the step of fusing the dynamic traffic information of each road unit to generate corresponding traffic guidance information for the real road section displayed on the target traffic guidance screen includes:
[0153] If the dynamic traffic information is the travel time, the sum of the travel times of the road units is calculated to obtain the travel time corresponding to the real road section as the traffic guidance information of the real road section.
[0154] Optionally, the step of fusing the dynamic traffic information of each road unit to generate corresponding traffic guidance information for the real road section displayed on the target traffic guidance screen includes:
[0155] If the dynamic traffic information is a traffic event, the traffic events of each road unit are summarized as the traffic guidance information of the real road section.
[0156] Optionally, the step of generating traffic guidance information further includes:
[0157] Acquire the road display position of the real road section and the information display position of the traffic guidance information;
[0158] Acquire an attribute model matched by the target traffic guidance screen, and determine display attributes corresponding to the traffic guidance information according to the attribute model;
[0159] Perform image rendering based on the display attributes, the road display position and the information display position to obtain an induction screen image;
[0160] The guidance screen picture is sent to the target traffic guidance screen to display traffic guidance information.
[0161] Optionally, the traffic guidance information has multiple types, and the step of obtaining the attribute model matched by the target traffic guidance screen includes:
[0162] For each type of traffic guidance information, obtaining an attribute model matched by the target traffic guidance screen from the attribute model corresponding to the traffic guidance information type;
[0163] The determining, according to the attribute model, the display attribute corresponding to the traffic guidance information includes:
[0164] The display attribute of the corresponding type of traffic guidance information is determined according to the attribute model.
[0165] Optionally, the road segment code is obtained by encoding the attributes of the real road segment based on the open location reference specification OpenLR.
[0166] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.
[0167] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can refer to the partial description of the method embodiments. The device embodiments described above are only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this specification. Ordinary technicians in this field can understand and implement it without paying creative work.
[0168] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, a game console, a tablet computer, a wearable device or a combination of any of these devices.
[0169] In a typical configuration, a computer includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0170] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0171] Computer-readable media include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, disk storage, quantum memory, graphene-based storage media or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0172] Corresponding to the embodiment of the method for generating traffic guidance information described above, this specification also provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the following steps are implemented:
[0173] Determine the real road section displayed on the target traffic guidance screen, and obtain the road section code of the real road section;
[0174] Determining a number of road units included in the real road section according to the road section code;
[0175] Obtain dynamic traffic information of each road unit from the database;
[0176] The dynamic traffic information of each road unit is integrated to generate corresponding traffic guidance information for the real road section displayed on the target traffic guidance screen.
[0177] Optionally, the step of fusing the dynamic traffic information of each road unit to generate corresponding traffic guidance information for the real road section displayed on the target traffic guidance screen includes:
[0178] If the dynamic traffic information is a driving speed, determining a road weight of each road unit;
[0179] The weighted average of the driving speeds of the various road units is calculated according to the road weights to obtain the driving speed corresponding to the actual road section as the traffic guidance information of the actual road section.
[0180] Optionally, determining the road weight of each road unit includes:
[0181] For each road unit, obtaining a length weight and a grade weight of the road unit;
[0182] The road weight of the road unit is determined according to the length weight and the level weight.
[0183] Optionally, the step of fusing the dynamic traffic information of each road unit to generate corresponding traffic guidance information for the real road section displayed on the target traffic guidance screen includes:
[0184] If the dynamic traffic information is the travel time, the sum of the travel times of the road units is calculated to obtain the travel time corresponding to the real road section as the traffic guidance information of the real road section.
[0185] Optionally, the step of fusing the dynamic traffic information of each road unit to generate corresponding traffic guidance information for the real road section displayed on the target traffic guidance screen includes:
[0186] If the dynamic traffic information is a traffic event, the traffic events of each road unit are summarized as the traffic guidance information of the real road section.
[0187] Optionally, also include:
[0188] Acquire the road display position of the real road section and the information display position of the traffic guidance information;
[0189] Acquire an attribute model matched by the target traffic guidance screen, and determine display attributes corresponding to the traffic guidance information according to the attribute model;
[0190] Perform image rendering based on the display attributes, the road display position and the information display position to obtain an induction screen image;
[0191] The guidance screen picture is sent to the target traffic guidance screen to display traffic guidance information.
[0192] Optionally, the traffic guidance information has multiple types, and the acquiring the attribute model matched by the target traffic guidance screen includes:
[0193] For each type of traffic guidance information, obtaining an attribute model matched by the target traffic guidance screen from the attribute model corresponding to the traffic guidance information type;
[0194] The determining, according to the attribute model, the display attribute corresponding to the traffic guidance information includes:
[0195] The display attribute of the corresponding type of traffic guidance information is determined according to the attribute model.
[0196] Optionally, the road segment code is obtained by encoding the attributes of the real road segment based on the open location reference specification OpenLR.
[0197] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0198] The above description is only a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this specification should be included in the scope of protection of this specification.
Claims
1. A method for generating traffic guidance information, comprising: Determine the real road section displayed on the target traffic guidance screen, and obtain the road section code of the real road section; Determining a number of road units included in the real road section according to the road section code; Obtain dynamic traffic information of each road unit from the database; The dynamic traffic information of each road unit is integrated to generate corresponding traffic guidance information for the real road section displayed on the target traffic guidance screen; The method further comprises: Acquire the road display position of the real road section and the information display position of the traffic guidance information; Acquire an attribute model matched by the target traffic guidance screen, and determine display attributes corresponding to the traffic guidance information according to the attribute model; Perform image rendering based on the display attributes, the road display position and the information display position to obtain an induction screen image; The guidance screen picture is sent to the target traffic guidance screen to display traffic guidance information.
2. According to the method of claim 1, the step of fusing the dynamic traffic information of each road unit to generate corresponding traffic guidance information for the real road section displayed on the target traffic guidance screen comprises: If the dynamic traffic information is a driving speed, determining a road weight of each road unit; The weighted average of the driving speeds of the various road units is calculated according to the road weights to obtain the driving speed corresponding to the actual road section as the traffic guidance information of the actual road section.
3. The method according to claim 2, wherein determining the road weight of each road unit comprises: For each road unit, obtaining a length weight and a grade weight of the road unit; The road weight of the road unit is determined according to the length weight and the level weight.
4. The method according to claim 1, wherein the step of fusing the dynamic traffic information of each road unit to generate corresponding traffic guidance information for the real road section displayed on the target traffic guidance screen comprises: If the dynamic traffic information is the travel time, the sum of the travel times of the road units is calculated to obtain the travel time corresponding to the real road section as the traffic guidance information of the real road section.
5. The method according to claim 1, wherein the step of fusing the dynamic traffic information of each road unit to generate corresponding traffic guidance information for the real road section displayed on the target traffic guidance screen comprises: If the dynamic traffic information is a traffic event, the traffic events of each road unit are summarized as the traffic guidance information of the real road section.
6. According to the method of claim 1, the traffic guidance information has multiple types, and the step of obtaining the attribute model matched by the target traffic guidance screen comprises: For each type of traffic guidance information, obtaining an attribute model matched by the target traffic guidance screen from the attribute model corresponding to the traffic guidance information type; The determining, according to the attribute model, the display attribute corresponding to the traffic guidance information includes: The display attribute of the corresponding type of traffic guidance information is determined according to the attribute model.
7. According to the method of claim 1, the road segment code is obtained by encoding the attributes of the real road segment based on the open location reference specification OpenLR.
8. A device for generating traffic guidance information, comprising: A road section code determination unit determines the real road section displayed on the target traffic guidance screen and obtains the road section code of the real road section; A road unit determining unit, which determines a number of road units included in the real road section according to the road section code; A traffic information acquisition unit, which acquires dynamic traffic information of each road unit from a database; A traffic information fusion unit, which fuses the dynamic traffic information of each road unit to generate corresponding traffic guidance information for the real road section displayed on the target traffic guidance screen; The step of generating traffic guidance information further includes: Acquire the road display position of the real road section and the information display position of the traffic guidance information; Acquire an attribute model matched by the target traffic guidance screen, and determine display attributes corresponding to the traffic guidance information according to the attribute model; Perform image rendering based on the display attributes, the road display position and the information display position to obtain an induction screen image; The guidance screen picture is sent to the target traffic guidance screen to display traffic guidance information.
9. An electronic device, comprising: processor; a memory for storing processor-executable instructions; The processor implements the method according to any one of claims 1 to 7 by running the executable instructions.
10. A computer-readable storage medium having computer instructions stored thereon, which, when executed by a processor, implement the steps of the method according to any one of claims 1 to 7.
