Road condition display method, road condition processing method, device and computer equipment
Patent Information
- Application Number
- CN202211211207.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-30
- Publication Date
- 2026-10-27
- Estimated Expiration
- 2042-09-30
AI Technical Summary
[0003]传统技术中,在导航时,通常只是在导航画面上简单机械地标注出道路的路况信息,路况信息的展示较粗糙,不够精准
[0016]上述路况展示方法、装置、计算机设备、存储介质和计算机程序产品,通过展示初始导航画面,在初始导航画面上显示目标导航路线,响应于针对目标导航路线的导航触发事件,展示目标导航画面,在目标导航画面上显示目标导航路线中的当前路段所对应的渐变路况面;其中,渐变路况面用于指示当前路段从第一路况变化至第二路况的过程;渐变路况面包括第一路况对应的第一路况纹理、第二路况对应的第二路况纹理、从第一路况纹理渐变至第二路况纹理的渐变路况纹理,渐变路况纹理对应的路况过渡范围是通过第一路况和第二路况对应的路况纹理和路况覆盖范围确定的。这样,若触发针对目标导航路线的导航,则在导航画面上通过显示导航路线中当前路段对应的渐变路况面来展示当前路段的路况信息,渐变路况面可以反映当前路段从第一路况逐渐变化至第二路况的过程,使得路况信息的展示更加符合真实的道路场景,从而提高路况展示的精准度。第一路况纹理和第二路况纹理用于区分不同的路况,渐变路况纹理用于反映不同路况之间的变化过程,路况覆盖范围和路况过渡范围可以确定不同路况的路况纹理和渐变路况纹理的覆盖范围,从而基于这些数据生成的渐变路况面可以实现不同路况之间的平滑渐变效果,生成的渐变路况面可以反映当前路段从第一路况逐渐变化至第二路况的过程,使得路况信息的展示更加符合真实的道路场景,从而提高路况展示的精准度,提高导航的准确性。
Smart Images

Figure CN117848375B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a traffic condition display method, traffic condition processing method, apparatus, computer equipment, storage medium, and computer program product. Background Technology
[0002] With the development of computer technology, navigation technology has emerged. Navigation technology provides navigation and positioning services and is widely used in daily life, such as in ride-hailing applications, navigation applications, and map applications, greatly facilitating people's travel.
[0003] In traditional technologies, navigation typically involves simply and mechanically marking road condition information on the navigation screen, resulting in a crude and inaccurate display of this information. Summary of the Invention
[0004] Therefore, it is necessary to provide a road condition display method, road condition processing method, device, computer equipment, computer-readable storage medium, and computer program product that can improve the accuracy of road condition display in response to the above-mentioned technical problems.
[0005] This application provides a method for displaying road conditions. The method includes:
[0006] Display the initial navigation screen, and show the target navigation route on the initial navigation screen;
[0007] In response to a navigation trigger event for the target navigation route, the target navigation screen is displayed, showing the gradient road surface corresponding to the current road segment in the target navigation route.
[0008] The gradient road condition surface is used to indicate the process of the current road segment changing from the first road condition to the second road condition; the gradient road condition surface includes a first road condition texture corresponding to the first road condition, a second road condition texture corresponding to the second road condition, and a gradient road condition texture that gradually changes from the first road condition texture to the second road condition texture. The road condition transition range corresponding to the gradient road condition texture is determined by the road condition textures corresponding to the first road condition and the second road condition and the road condition coverage range.
[0009] This application also provides a road condition display device. The device includes:
[0010] The initial navigation screen display module is used to display the initial navigation screen and show the target navigation route on the initial navigation screen;
[0011] The target navigation screen display module is used to respond to a navigation trigger event for the target navigation route, display the target navigation screen, and display the gradient road condition surface corresponding to the current road segment in the target navigation route on the target navigation screen;
[0012] The gradient road condition surface is used to indicate the process of the current road segment changing from the first road condition to the second road condition; the gradient road condition surface includes a first road condition texture corresponding to the first road condition, a second road condition texture corresponding to the second road condition, and a gradient road condition texture that gradually changes from the first road condition texture to the second road condition texture. The road condition transition range corresponding to the gradient road condition texture is determined by the road condition textures corresponding to the first road condition and the second road condition and the road condition coverage range.
[0013] A computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the steps described in the traffic condition display method above.
[0014] A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps described in the above-described traffic condition display method.
[0015] A computer program product includes a computer program that, when executed by a processor, implements the steps described in the traffic condition display method above.
[0016] The aforementioned road condition display method, apparatus, computer equipment, storage medium, and computer program product display an initial navigation screen, show the target navigation route on the initial navigation screen, and, in response to a navigation trigger event for the target navigation route, display a target navigation screen, displaying a gradient road condition surface corresponding to the current road segment in the target navigation route on the target navigation screen; wherein, the gradient road condition surface is used to indicate the process of the current road segment changing from a first road condition to a second road condition; the gradient road condition surface includes a first road condition texture corresponding to the first road condition, a second road condition texture corresponding to the second road condition, and a gradient road condition texture that gradually transitions from the first road condition texture to the second road condition texture, and the road condition transition range corresponding to the gradient road condition texture is determined by the road condition textures corresponding to the first and second road conditions and the road condition coverage area. In this way, if navigation for a target route is triggered, the navigation screen displays the current road segment's traffic information by showing a gradient road condition surface. This gradient surface reflects the gradual change from the first road condition to the second, making the traffic information display more realistic and improving the accuracy of the traffic information display. The first and second road condition textures distinguish different road conditions, while the gradient texture reflects the change between different road conditions. The road condition coverage and transition range determine the coverage of the road condition textures and the gradient texture for different road conditions. Based on this data, the generated gradient road condition surface achieves a smooth transition between different road conditions, reflecting the gradual change from the first road condition to the second, making the traffic information display more realistic and improving the accuracy of the traffic information display and navigation.
[0017] This application provides a method for handling road conditions. The method includes:
[0018] Obtain the initial road condition texture and road condition coverage area corresponding to the first and second road conditions involved in the current road segment, respectively;
[0019] Based on the initial road condition texture and road condition coverage corresponding to the first road condition and the second road condition respectively, the road condition transition range between the first road condition and the second road condition is determined;
[0020] The road condition texture is gradually adjusted from the initial road condition texture corresponding to the first road condition to the initial road condition texture corresponding to the second road condition, to obtain the gradient road condition texture corresponding to the road condition transition range;
[0021] Based on the initial road condition texture and the corresponding road condition coverage area, the gradient road condition texture and the corresponding road condition transition area, the road segment texture data corresponding to the current road segment is obtained; the road segment texture data is used to generate the gradient road condition surface corresponding to the current road segment, and the gradient road condition surface is used to indicate the process of the current road segment changing from the first road condition to the second road condition.
[0022] This application also provides a road condition processing device. The device includes:
[0023] The road condition data acquisition module is used to acquire the initial road condition texture and road condition coverage area corresponding to the first and second road conditions involved in the current road segment, respectively.
[0024] The road condition transition range determination module is used to determine the road condition transition range between the first road condition and the second road condition based on the initial road condition texture and road condition coverage range corresponding to the first road condition and the second road condition, respectively.
[0025] The gradient road condition texture determination module is used to adjust the road condition texture from the initial road condition texture corresponding to the first road condition to the initial road condition texture corresponding to the second road condition, so as to obtain the gradient road condition texture corresponding to the road condition transition range.
[0026] The road segment texture data determination module is used to obtain the road segment texture data corresponding to the current road segment based on the initial road condition texture and the corresponding road condition coverage range, the gradient road condition texture and the corresponding road condition transition range; the road segment texture data is used to generate the gradient road condition surface corresponding to the current road segment, and the gradient road condition surface is used to indicate the process of the current road segment changing from the first road condition to the second road condition.
[0027] A computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the steps described in the traffic condition processing method above.
[0028] A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps described in the traffic condition processing method above.
[0029] A computer program product includes a computer program that, when executed by a processor, implements the steps described in the traffic condition processing method above.
[0030] The aforementioned road condition processing method, apparatus, computer equipment, storage medium, and computer program product acquire the initial road condition textures and road condition coverage areas corresponding to the first and second road conditions involved in the current road segment, respectively; determine the road condition transition range between the first and second road conditions based on the initial road condition textures and road condition coverage areas corresponding to the first and second road conditions, respectively; gradually adjust the road condition texture from the initial road condition texture corresponding to the first road condition to the initial road condition texture corresponding to the second road condition to obtain the gradient road condition texture corresponding to the road condition transition range; obtain the road segment texture data corresponding to the current road segment based on the initial road condition texture and the corresponding road condition coverage area, the gradient road condition texture and the corresponding road condition transition range; the road segment texture data is used to generate the gradient road condition surface corresponding to the current road segment, and the gradient road condition surface is used to indicate the process of the current road segment changing from the first road condition to the second road condition. In this way, the road segment texture data obtained based on the initial road condition texture, the gradient road condition texture, the road condition coverage range, and the road condition transition range can be used to generate gradient road condition surfaces. The initial road condition texture is used to distinguish different road conditions, the gradient road condition texture is used to reflect the change process between different road conditions, and the road condition coverage range and the road condition transition range can determine the coverage range of the initial road condition texture and the gradient road condition texture. As a result, the generated gradient road condition surface can achieve a smooth gradient effect between different road conditions. The generated gradient road condition surface can reflect the process of the current road segment gradually changing from the first road condition to the second road condition, making the display of road condition information more consistent with the real road scene, thereby improving the accuracy of road condition display and navigation accuracy. Attached Figure Description
[0031] Figure 1 This is an application environment diagram of the traffic condition display method and the traffic condition processing method in one embodiment;
[0032] Figure 2 This is a flowchart illustrating a traffic condition display method in one embodiment;
[0033] Figure 3 This is a schematic diagram of the initial navigation screen in one embodiment;
[0034] Figure 4 This is a schematic diagram of the target navigation screen in one embodiment;
[0035] Figure 5 This is a schematic diagram of the target navigation screen in another embodiment;
[0036] Figure 6 This is a schematic diagram of the target navigation screen in another embodiment;
[0037] Figure 7 This is a schematic diagram of the initial navigation screen in another embodiment;
[0038] Figure 8This is a flowchart illustrating a road condition handling method in one embodiment;
[0039] Figure 9 This is a schematic diagram of a candidate road condition texture set in one embodiment;
[0040] Figure 10 This is a schematic diagram of the process for generating a gradient road surface in one embodiment;
[0041] Figure 11A This is a schematic diagram of the road edge line and road center line in one embodiment;
[0042] Figure 11B This is a schematic diagram of the region division in one embodiment;
[0043] Figure 12 This is a schematic diagram of proportional alignment in one embodiment;
[0044] Figure 13A This is a schematic diagram of a road surface in one embodiment;
[0045] Figure 13B This is a schematic diagram of road surface division in one embodiment;
[0046] Figure 13C This is a schematic diagram of triangulation processing in one embodiment;
[0047] Figure 14 This is a schematic diagram of travel navigation in one embodiment;
[0048] Figure 15 This is a structural block diagram of a road condition display device in one embodiment;
[0049] Figure 16 This is a structural block diagram of a road condition display device in one embodiment;
[0050] Figure 17 This is an internal structural diagram of a computer device in one embodiment;
[0051] Figure 18 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0052] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0053] It is understood that the triggering operations in this application include, but are not limited to, touch operations, cursor operations, button operations, voice operations, and motion operations. For example, touch operations can be touch pressing, touch clicking, or touch swiping. Cursor operations can be controlling the cursor to click, press, or swipe. Button operations can be virtual button operations or physical button operations. Voice operations refer to operations controlled by voice. Motion operations refer to operations controlled by user actions, such as hand movements, head movements, etc.
[0054] The embodiments of the present invention can be applied to various scenarios, including but not limited to cloud technology, artificial intelligence, smart transportation, assisted driving, navigation, etc.
[0055] The road condition display method and road condition processing method provided in this application can be applied to, for example... Figure 1 In the application environment shown, terminal 102 communicates with server 104 via a network. A data storage system can store the data that server 104 needs to process. The data storage system can be integrated onto server 104, or it can be located in the cloud or on other servers. Terminal 102 can be, but is not limited to, various desktop computers, laptops, smartphones, tablets, smart voice interaction devices, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart vehicle devices, aircraft, etc. Portable wearable devices can include smartwatches, smart bracelets, head-mounted devices, etc. Server 104 can be implemented using a standalone server, a server cluster consisting of multiple servers, or a cloud server.
[0056] Terminal 102 displays an initial navigation screen, showing the target navigation route. In response to a navigation trigger event for the target navigation route, terminal 102 displays a target navigation screen, showing the gradient road condition surface corresponding to the current road segment in the target navigation route. The gradient road condition surface indicates the process of the current road segment changing from a first road condition to a second road condition; the gradient road condition surface includes a first road condition texture corresponding to the first road condition, a second road condition texture corresponding to the second road condition, and a gradient road condition texture that gradually transitions from the first road condition texture to the second road condition texture. The road condition transition range corresponding to the gradient road condition texture is determined by the road condition textures corresponding to the first and second road conditions and the road condition coverage area.
[0057] The server obtains the initial road condition textures and coverage areas corresponding to the first and second road conditions for the current road segment. Based on these initial road condition textures and coverage areas, it determines the road condition transition range between the first and second road conditions. The server then adjusts the road condition texture from the initial road condition texture corresponding to the first road condition to the initial road condition texture corresponding to the second road condition, obtaining the gradient road condition texture corresponding to the road condition transition range. Based on the initial road condition texture and its corresponding coverage area, the gradient road condition texture and its corresponding transition range, the server obtains the road segment texture data corresponding to the current road segment. This road segment texture data is used to generate the gradient road condition surface corresponding to the current road segment, which indicates the process of the current road segment changing from the first road condition to the second road condition. The server can send the road segment texture data to the terminal, and the terminal generates the gradient road condition surface based on the road segment texture data.
[0058] It is understood that both the terminal and the server can be used independently to execute the traffic condition processing method provided in the embodiments of this application. The terminal and the server can also be used collaboratively to execute the traffic condition display method and the traffic condition processing method provided in the embodiments of this application.
[0059] In one embodiment, such as Figure 2 As shown, a method for displaying traffic conditions is provided, and its application to a terminal is illustrated with an example. (Reference) Figure 2 The method for displaying road conditions includes the following steps:
[0060] Step S202: Display the initial navigation screen and show the target navigation route on the initial navigation screen.
[0061] The navigation screen refers to the screen displayed during navigation. The initial navigation screen is used to display the target navigation route.
[0062] A navigation route refers to the path taken from the origin to the destination. The origin is the point of departure during navigation.
[0063] The starting point can be the terminal's current location, or it can be a location entered or selected by the user through terminal operations. For example, it could be the location corresponding to the starting point name entered by the user in the starting point information input field of the map application; it could be a location determined by selecting a point on the map in the starting point determination interface of the map application; and so on.
[0064] The destination refers to the point of arrival during navigation. The destination can be a location that the user inputs or selects through terminal operations. For example, it could be the location corresponding to the destination name entered by the user in the destination information input field of a map application; it could be a location determined by selecting a point on the map in the destination selection interface of the map application; and so on. The destination can also be a location recommended to the user through the terminal. For example, it could be the location corresponding to recommended restaurants, shopping malls, cinemas, etc.
[0065] The target navigation route refers to the currently determined navigation route. The target navigation route can be a route selected by the user through a selection action. For example, after determining the origin and destination, in response to the activation of the route planning function, the terminal displays multiple candidate navigation routes from the same origin to the same destination. The terminal then selects the candidate navigation route chosen by the user on the displayed interface as the target navigation route. The target navigation route can also be a route proactively recommended to the user. For example, the terminal or server may proactively select the navigation route with the shortest navigation distance as the target navigation route; the terminal or server may proactively select the navigation route with the shortest estimated navigation time as the target navigation route; and so on.
[0066] Specifically, when the origin and destination are determined, the terminal can display an initial navigation screen showing the target navigation route from the origin to the destination, so that the user can understand the movement route from the origin to the destination.
[0067] In one embodiment, the terminal displays the entered destination in response to input. In response to activating the route planning function, the terminal displays at least one candidate navigation route from the terminal's location to the destination. In response to selecting a target navigation route from the candidate routes, the terminal displays an initial navigation screen showing the target navigation route.
[0068] In one embodiment, after determining the target navigation route, the candidate navigation routes and the target navigation route can be displayed on different navigation interfaces or on the same navigation interface. If displayed on the same navigation interface, the target navigation route and other candidate navigation routes can be differentiated on the initial navigation screen. Specifically, the target navigation route can be highlighted on the initial navigation screen, while other candidate navigation routes can be highlighted. For example, the target navigation route can be displayed in a dark color, while other candidate navigation routes can be displayed in a light color. Furthermore, if the user wants to change the target navigation route, the terminal can respond to a trigger operation on other candidate navigation routes and change the target navigation route. The initial navigation screen can be as follows: Figure 3 As shown, Figure 3 In the diagram, 302 represents the origin, 304 represents the destination, route C (filled in black) is the target navigation route, and routes A and B are other candidate navigation routes.
[0069] Step S204: In response to a navigation trigger event for the target navigation route, display the target navigation screen and show the gradient road surface corresponding to the current road segment in the target navigation route.
[0070] Among them, a navigation trigger event refers to an event that initiates the navigation function. A navigation trigger event for a target navigation route refers to an event that initiates navigation according to the target navigation route. The current road segment is the road segment currently to be entered in the target navigation route. The current road segment is a road segment determined from the target navigation route based on the terminal's current location. If the starting point of the target navigation route is determined based on the terminal's current location, the current road segment can be considered the starting road segment in the target navigation route.
[0071] Navigation trigger events for the target navigation route can be triggered by triggering actions applied to the initial navigation screen. For example, triggering events for the target navigation route can be triggered by triggering actions applied to ...
[0072] The target navigation screen displayed in response to a navigation trigger event shows the gradually changing road conditions corresponding to the current road segment in the target navigation route. The current road segment involves two road conditions: First Road Condition and Second Road Condition. First Road Condition and Second Road Condition are two adjacent but different road conditions. Road conditions are used to represent the traffic congestion situation.
[0073] To differentiate between different road conditions during display, road condition textures can be used to represent them. Different road conditions correspond to different road condition textures. Road condition textures refer to the texture information attached to the road to visually reflect road congestion. Road condition textures can be presented in at least one way, such as color, lines, or patterns. For example, different road condition textures can have different colors; different road condition textures can have lines of different densities; and so on. In one embodiment, a road condition texture is a texture image, used in computer graphics to add visual features to road areas on the screen.
[0074] A gradient road surface refers to a road surface that displays a gradual change in appearance, reflecting the process of changing road conditions. The gradient road surface corresponding to the current road segment indicates the transition from the first road condition to the second. The gradient road surface uses a gradually changing road texture to vividly represent this transition, providing users with a more realistic experience of road condition changes.
[0075] The current road segment's gradient road condition surface includes a first road condition texture corresponding to the first road condition, a second road condition texture corresponding to the second road condition, and a gradient road condition texture that transitions from the first road condition texture to the second road condition texture. The first road condition texture corresponding to the first road condition is the initial road condition texture for the first road condition, and the second road condition texture corresponding to the second road condition is the initial road condition texture for the second road condition. The initial road condition texture refers to the initialized and fixed road condition texture, used to visually distinguish different road conditions during display. Initial road condition textures corresponding to various road conditions can be preset to differentiate them; for example, different colors can be used to represent different road conditions, with each road condition having its own corresponding texture color. The gradient road condition texture is a set of road condition textures composed of multiple regularly changing road condition textures, used to visually present the gradual transition effect between road conditions during display. For example, if different colors are used to represent different road conditions, the initial road condition texture is a preset texture color, and the gradient road condition texture includes at least one transition color between the preset different texture colors. The road condition texture that gradually transitions from the first road condition texture to the second road condition texture includes a set of road condition textures that regularly change from the first road condition texture to the second road condition texture. For example, if the first road condition texture is green and the second road condition texture is red, the gradient road condition texture corresponding to the transition range between the first and second road conditions can include an ordered arrangement of green, yellow-green, yellow, orange-yellow, orange, orange-red, and red. This ordered arrangement of green, yellow-green, yellow, orange-yellow, orange, orange-red, and red can present a color transition process that gradually changes from green to red.
[0076] The road condition transition range refers to the road segment area where a road condition texture transition is required. It indicates the coverage area of the gradient road condition texture on the road segment. The road condition transition range between the first and second road conditions is determined by the corresponding road condition textures and coverage areas of the first and second road conditions; that is, it is determined by the initial road condition textures and coverage areas of the first and second road conditions. The terminal or server can determine the road condition transition range based on the differences in the initial road condition textures and coverage areas of the first and second road conditions. Referring to the initial road condition textures of different road conditions when determining the transition range allows it to change with road conditions, ensuring flexibility in the road condition transition display. For example, if the differences between the initial road condition textures corresponding to different road conditions are large, a larger road condition transition range can be used in the road condition transition display. When the texture representation of adjacent road conditions differs significantly, a larger space can be used to present the process of gradually changing from one texture to another, making the texture transition more natural and improving the clarity of the road condition transition display. Referring to the coverage range of different road conditions when determining the road condition transition range helps ensure that the road condition transition range does not exceed the coverage range of a single road condition segment, thus ensuring the reliability of the road condition transition display.
[0077] In one embodiment, the gradient road condition surface corresponding to the current road segment is generated based on the road segment texture data corresponding to the current road segment. The road segment texture data is obtained by arranging and combining the road condition coverage area and initial road condition texture corresponding to the first road condition and the second road condition, respectively, as well as the road condition transition area and corresponding gradient road condition texture between the first road condition and the second road condition. The road segment texture data can be obtained by arranging and combining the initial road condition texture and the gradient road condition texture corresponding to the road condition transition area corresponding to the first road condition and the second road condition, respectively, based on the road condition coverage area and the road condition transition area between the first road condition and the second road condition. That is, the road segment texture data is obtained by combining the ordered initial road condition texture and the gradient road condition texture. The road condition coverage area refers to the road segment range corresponding to a single road condition, and the road condition coverage area is used to indicate the initial coverage area of the initial road condition texture on the road segment.
[0078] It is understood that the specific process of generating a gradient road surface can also be found in the various embodiments of the subsequent road condition processing methods.
[0079] Specifically, when the terminal detects a corresponding trigger operation on the initial navigation interface, it triggers a navigation trigger event for the target navigation route. In response to the navigation trigger event, the target navigation screen is displayed, showing the gradual road condition surface corresponding to the current road segment in the target navigation route.
[0080] In one embodiment, the target navigation screen is a three-dimensional stereoscopic image. The target navigation screen is a partial three-dimensional electronic map obtained by projecting the road scene of the current road segment onto a three-dimensional electronic map according to a certain navigation perspective. The target navigation screen is as follows: Figure 4 As shown, the road texture on the road surface corresponding to the current road segment in the target navigation screen is a gradual transition. In the 3D map generated through 3D modeling, capturing images using a virtual camera matched to the navigation viewpoint creates an immersive 3D navigation screen. This immersive navigation screen provides users with an immersive navigation experience, allowing them to feel a navigation experience that more closely resembles real-world road scenarios.
[0081] In one embodiment, the initial navigation screen and the target navigation screen can be displayed on the same interface. For example, the initial navigation screen can be displayed on the left half of the navigation interface, and the target navigation screen on the right half. If the initial navigation screen and the target navigation screen are displayed on the same interface, the triggered navigation screen can be displayed independently in response to a trigger operation applied to either navigation screen. For example, in response to a user's click on the target navigation screen, the terminal can enlarge the target navigation screen, allowing it to be displayed independently within the navigation interface. Of course, the initial navigation screen and the target navigation screen can also be displayed on different interfaces. For example, after determining the target navigation route, the initial navigation screen is displayed first, and upon detecting a trigger operation targeting the current segment of the target navigation route, the user jumps from the initial navigation screen to the target navigation screen.
[0082] In the aforementioned traffic condition display method, an initial navigation screen is displayed, showing the target navigation route. In response to a navigation trigger event for the target navigation route, a target navigation screen is displayed, showing a gradient traffic condition surface corresponding to the current road segment within the target navigation route. This gradient traffic condition surface indicates the transition from a first traffic condition to a second traffic condition for the current road segment. The gradient traffic condition surface includes a first traffic condition texture corresponding to the first traffic condition, a second traffic condition texture corresponding to the second traffic condition, and a gradient traffic condition texture that gradually transitions from the first to the second traffic condition texture. The transition range of the gradient traffic condition texture is determined by the traffic condition textures corresponding to the first and second traffic conditions and the traffic condition coverage area. Thus, if navigation for the target route is triggered, the traffic condition information for the current road segment is displayed on the navigation screen by showing the gradient traffic condition surface corresponding to the current road segment. The gradient traffic condition surface reflects the gradual change from the first to the second traffic condition for the current road segment, making the display of traffic condition information more consistent with real-world road conditions and improving the accuracy of traffic condition display. The first and second road condition textures are used to distinguish different road conditions, while the gradient road condition texture is used to reflect the change process between different road conditions. The road condition coverage range and road condition transition range can determine the coverage range of the road condition texture and the gradient road condition texture for different road conditions. Therefore, the gradient road condition surface generated based on these data can achieve a smooth gradient effect between different road conditions. The generated gradient road condition surface can reflect the process of the current road segment gradually changing from the first road condition to the second road condition, making the display of road condition information more consistent with the real road scene, thereby improving the accuracy of road condition display and navigation accuracy.
[0083] In one embodiment, the target navigation route is used to instruct the navigation object to travel along the target navigation route. The initial navigation screen includes a navigation launch control, which is used to respond to a navigation trigger event. Step S204 includes:
[0084] In response to a trigger operation on the navigation launch control, the target navigation screen is displayed, showing the gradually changing road conditions corresponding to the current road segment that the navigation object is about to enter. The current road segment is determined from the target navigation route based on the current location of the navigation object. The target navigation screen is a 3D navigation screen determined from the current navigation viewpoint of the navigation object at its current location.
[0085] The navigation object is the object being navigated to, such as a user who has enabled navigation or the vehicle driven by that user. The terminal determines its own location as the location of the navigation object. For example, when a user is driving and using navigation via their mobile phone, the phone's location is the location of the navigation object. Similarly, when a user is using a car navigation system, the vehicle's location is the location of the navigation object.
[0086] The navigation launch control is used to trigger the route navigation function. Route navigation refers to the function of providing real-time route guidance during navigation. By triggering the navigation launch control, you can start a navigation function that guides you from the current location of the navigation object to the destination according to the target navigation route. After triggering the navigation launch control, the gradual road condition surface corresponding to the current road segment that the navigation object is about to enter can be displayed. The current road segment is a segment determined from the target navigation route based on the current location of the navigation object. You can use the current location of the navigation object as the starting point of the road segment and determine the ending point of the road segment on the target navigation route. The road segment consisting of the starting point and the ending point on the target navigation route will be the current road segment. For example, you can advance a preset distance along the starting point of the road segment on the target navigation route to reach the ending point. Alternatively, you can determine the ending point of the road segment on the target navigation route from the current navigation viewpoint of the navigation object's current location. The current navigation view is determined by the current navigation perspective at the location of the navigation object. The farthest position on the target navigation route that falls within the current navigation view is taken as the end point of the road segment. In other words, the end point of the road segment is the farthest position that the user can observe on the target navigation screen during navigation, and the current road segment is the maximum road segment on the target navigation route that the user can currently observe on the target navigation screen.
[0087] The navigation viewpoint is the reference position when projecting an electronic map, used to determine the navigation field of view and the range of road scenes that the user can observe during navigation. The current navigation viewpoint corresponding to the navigation object refers to the navigation viewpoint currently being used for the navigation object.
[0088] A 3D navigation screen is a partial 3D electronic map projected onto a 3D electronic map according to the navigation perspective. It provides an immersive 3D experience for users during navigation.
[0089] Specifically, navigation trigger events for the target navigation route can be initiated through a selection operation on the navigation launch control. After determining the target navigation route, the user can activate the navigation launch control to initiate the route navigation function. This activation displays a 3D navigation screen showing the current road segment the navigation object is about to enter on the target route, guiding the navigation object to travel correctly. The 3D navigation screen simultaneously displays the gradually changing road conditions of the starting road segment the navigation object is about to enter, allowing the user to understand the upcoming road scenes and detailed road conditions in real time. Responding to the user's trigger operation on the navigation launch control in the initial navigation screen, the terminal displays an immersive navigation screen on the navigation interface, projected onto the 3D electronic map at the navigation object's current navigation viewpoint.
[0090] The target navigation screen can be used as a reference. Figure 5 The target navigation screen can also display an identifier 502 for the navigation object, the location of which on the electronic map reflects the geographical location of the navigation object. Furthermore, the target navigation screen can also display navigation route guidance information, which can be text or graphic information. For example, the identifier corresponding to the navigation object may include a directional arrow indicating the driving direction. Figure 5 A guide arrow that indicates the direction of travel, starting from the identifier corresponding to the navigation object.
[0091] In the above embodiments, in response to a trigger operation on the navigation start control, a gradually changing road surface corresponding to the current road segment that the navigation object is about to enter is displayed on the target navigation screen. This allows the user to see the gradually changing road surface starting from the initial segment of the target navigation route during navigation, assisting the navigation object in its journey and making it convenient for the user to view the changes in road conditions along the navigation route while driving. The target navigation screen is a three-dimensional navigation screen determined by the current navigation viewpoint of the navigation object at its location, providing the user with an immersive navigation experience. The navigation screen is more in line with the real visual scene, which helps improve navigation accuracy.
[0092] In one embodiment, the traffic condition display method further includes:
[0093] As the navigation object moves along the target navigation route, the target navigation screen, which changes synchronously with the movement of the navigation object, displays in an orderly manner the gradually changing road conditions corresponding to each segment that the navigation object is about to enter on the target navigation route.
[0094] Specifically, in response to the user's triggering of the navigation initiation control on the initial navigation screen, the terminal displays the target navigation screen, which shows the gradually changing road conditions corresponding to the initial road segment the navigation object is about to enter. As the navigation object moves along the target navigation route, the target navigation screen, determined by the current navigation viewpoint of the navigation object, updates in real time to guide the navigation object's route. On the target navigation screen, which changes synchronously with the navigation object's movement, the gradually changing road conditions corresponding to each road segment the navigation object enters sequentially along the target navigation route can be displayed sequentially, allowing the user to understand the road scene and detailed road condition information of the next road segment during the navigation object's journey. (Reference) Figure 6 The image shows three example images of a target navigation screen that change in real time as the same navigation object moves. The order of (a), (b), and (c) is (a)-(b)-(c).
[0095] For example, the target navigation route involves road conditions that are sequentially adjacent: first road condition, second road condition, third road condition, and fourth road condition. First and second road conditions correspond to road segment A, second and third road conditions correspond to road segment B, and third and fourth road conditions correspond to road segment C. After the user clicks the navigation start control, the target navigation screen is displayed. As the user drives, the target navigation screen displays a synchronized moving road scene, showing the gradual changes in road condition surfaces corresponding to road segment A, road segment B, and road condition C in the order they appear in the corresponding navigation field of view.
[0096] As the navigation object moves along the target navigation route, the road condition surface can always be displayed on the target navigation screen, which changes synchronously with the movement of the navigation object. If the target navigation route involves multiple road conditions, each road condition is displayed sequentially as the navigation object moves along the target navigation route. If the road segment of the target navigation route currently displayed on the navigation screen has different road conditions, the displayed road condition surface is a gradient road condition surface; if the road segment of the target navigation route currently displayed on the navigation screen has only one road condition, the displayed road condition surface includes the initial road condition texture corresponding to that single road condition.
[0097] In the above embodiments, when the navigation object moves according to the target navigation route, the gradually changing road conditions corresponding to each road segment that the navigation object is about to enter are displayed in real time, thereby providing real-time route guidance and displaying accurate road condition information for the navigation object, which helps to improve navigation accuracy.
[0098] In one embodiment, the traffic condition display method further includes:
[0099] In response to the selection of a target road segment among the various road segments of the target navigation route, a reference navigation screen is displayed, showing the gradual road condition surface corresponding to the target road segment. The reference navigation screen is a three-dimensional navigation screen determined by a preset navigation perspective at the location of the target road segment.
[0100] The reference navigation screen is a navigation screen used to display the gradual road condition changes corresponding to the target road segment. The target road segment is any road segment selected from the various road segments of the target navigation route. It can be understood that the target navigation route can be divided into multiple road segments according to the various road conditions involved. Each road segment involves at least two adjacent different road conditions, and the road segment selected from these segments is used as the target road segment.
[0101] The preset navigation viewpoint refers to a pre-set, fixed navigation viewpoint. The preset navigation viewpoint can be the system default viewpoint or a viewpoint entered or selected by the user through terminal operation. The road segment location is used to determine the geographical location of the road segment.
[0102] Specifically, in addition to displaying a gradual road condition surface during route navigation following the target route, the gradual road condition surface can also be triggered by selecting any segment within the target navigation route. Users can select segments within the target navigation route to trigger the display of the corresponding 3D navigation screen, which then displays the gradual road condition surface, allowing users to preview the road scene and detailed traffic information for any segment within the target navigation route. In response to the user's selection of the target segment within the target navigation route, the terminal displays an immersive navigation screen on the navigation interface, projected from a preset navigation perspective onto the 3D electronic map at the target segment's location.
[0103] In the above embodiments, in response to the selection operation of the current road segment among various road segments of the target navigation route, the gradient road condition surface corresponding to the current road segment is displayed on the target navigation screen. This allows the user to see the gradient road condition surface corresponding to the selected current road segment, and the user can easily select and view the road condition change process of any road segment. The target navigation screen is a three-dimensional navigation screen determined by a preset navigation perspective at the current road segment's location, providing the user with an immersive navigation experience. The navigation screen is more in line with the real visual scene, which helps improve navigation accuracy.
[0104] In one embodiment, the traffic condition display method further includes:
[0105] The initial navigation screen displays the global traffic surface corresponding to the target navigation route; the global traffic surface is used to indicate the various traffic conditions involved in the target navigation route, and the global traffic surface includes the initial traffic texture corresponding to each traffic condition.
[0106] The global road condition surface refers to the geometric surface that displays all road conditions involved in the navigation route. The global road condition surface corresponding to the target navigation route is used to indicate the various road conditions involved in the target navigation route. The global road condition surface includes the initial road condition textures corresponding to each road condition involved in the target navigation route. The global road condition surface uses the initial road condition textures to vividly represent the various road conditions involved in the navigation route, reflecting the overall road condition information of the navigation route.
[0107] Specifically, when displaying the target navigation route on the initial navigation screen, the global traffic condition map corresponding to the target navigation route can be displayed so that users can understand the overall traffic condition information of the target navigation route.
[0108] In one embodiment, to improve display efficiency, the road condition texture involved in the global road condition surface may only include the initial road condition texture corresponding to each road condition. (See reference) Figure 7 In the global road condition surface, the initial road condition textures of adjacent road conditions are directly stitched together without texture transition. Figure 7 In this context, different colors represent different road conditions. Of course, to improve display accuracy, the global road condition surface can also be a road condition surface with a gradual transition in texture between adjacent groups of road conditions involved in the target navigation route.
[0109] In the above embodiments, the global traffic condition map corresponding to the target navigation route can also be displayed on the initial navigation screen, so that users can view all the traffic conditions involved in the target navigation route at once, thereby improving the efficiency of traffic condition viewing.
[0110] In one embodiment, the traffic condition display method further includes:
[0111] When the road conditions of the current road segment change, the gradually changing road condition surface will be refreshed and displayed as the updated road condition surface; the updated road condition surface is used to indicate the updated road conditions of the current road segment.
[0112] Specifically, traffic information can be updated periodically or in real time. The initial traffic textures, corresponding transition ranges, and gradient traffic textures for the first and second traffic conditions can be updated along with the traffic information. Consequently, the gradient traffic surface can also be updated along with the traffic information. Therefore, when the traffic conditions of the current road segment change, the terminal can refresh the gradient traffic surface to display the updated traffic surface, ensuring the accuracy of the traffic display.
[0113] In one embodiment, to improve response speed, after determining the target navigation route, the various road conditions involved in the target navigation route can be obtained, and the road condition transition range between adjacent road conditions and the corresponding gradient road condition texture can be calculated. Subsequently, in response to a navigation trigger event for the target navigation route, the initial road condition textures corresponding to the first and second road conditions involved in the current road segment, and the gradient road condition texture corresponding to the road condition transition range between the first and second road conditions, are directly obtained to generate the gradient road condition surface corresponding to the current road segment, thereby allowing the gradient road condition surface to be quickly displayed on the target navigation screen. Subsequently, if a change in the road conditions of the current road segment is detected, the initial road condition texture of the latest road condition of the current road segment is obtained to generate an updated road condition surface, and the gradient road condition surface is refreshed and displayed as the updated road condition surface.
[0114] In the above embodiments, when the road conditions of the current road segment change, the gradual road condition surface is refreshed and displayed as an updated road condition surface, which can ensure the timeliness of the displayed road condition information, always show users the latest road condition information, and improve the display accuracy of road condition information.
[0115] In one embodiment, displaying the gradient road surface corresponding to the current road segment in the target navigation route on the target navigation screen includes:
[0116] The first texture color corresponding to the first road condition is displayed in the starting area of the current road segment; in the middle area between the starting and ending areas of the current road segment, a transition texture color that gradually changes from the first texture color to the second texture color is displayed; the transition texture color includes a dynamic number of gradient texture colors, the number of which is determined based on the road condition transition range; and the second texture color corresponding to the second road condition is displayed in the ending area of the current road segment.
[0117] Road condition textures can be represented by colors, and the colors used to characterize these textures are called texture colors. The first texture color refers to the texture color corresponding to the first road condition, and the second texture color refers to the texture color corresponding to the second road condition. Transition texture colors include multiple gradient texture colors that gradually change from the first texture color to the second texture color, used to achieve color transitions between different colors. Transition texture colors include a dynamically increasing number of gradient texture colors, determined based on the road condition transition range. In other words, the larger the road condition transition range, the more gradient texture colors can be included in the transition texture colors.
[0118] The starting area of the current road segment refers to the area encompassing the starting position of the current road segment. The ending area of the current road segment refers to the area encompassing the ending position of the current road segment. The intermediate area refers to the area on the current road segment located between the starting and ending areas.
[0119] Specifically, the initial road condition texture and the gradient road condition texture can be displayed in different areas on the current road segment, thus presenting a display effect of the initial road condition texture gradually changing from the first road condition to the initial road condition texture of the second road condition on the current road segment. Specifically, the first texture color corresponding to the first road condition can be displayed in the starting area of the current road segment to indicate that the current road segment's road condition begins with the first road condition; the second texture color corresponding to the second road condition can be displayed in the ending area of the current road segment to indicate that the current road segment's road condition ends with the second road condition; and a transition texture color that gradually changes from the first texture color to the second texture color can be displayed in the middle area between the starting and ending areas of the current road segment to indicate that the current road segment's road condition gradually changes from the first road condition to the second road condition.
[0120] In the above embodiments, the first texture color corresponding to the first road condition is displayed in the starting area of the current road segment; a transition texture color that gradually changes from the first texture color to the second texture color is displayed in the middle area between the starting and ending areas of the current road segment; and the second texture color corresponding to the second road condition is displayed in the ending area of the current road segment. In this way, different colors distinguish different road conditions, transition colors achieve color transitions between road conditions, and a rich palette represents the process of the current road segment changing from the first road condition to the second. The transition texture colors include a dynamically numbered number of gradient texture colors, determined based on the road condition transition range, ensuring adaptive color transitions under various road condition combinations.
[0121] In one embodiment, such as Figure 8 As shown, a traffic condition display method is provided. Taking the application of this method to a computer device as an example, the computer device can be a terminal or a server. The method can be executed independently by the terminal or server, or it can be implemented through interaction between the terminal and the server. (Reference) Figure 9 The method for displaying road conditions includes the following steps:
[0122] Step S802: Obtain the initial road condition texture and road condition coverage area corresponding to the first and second road conditions involved in the current road segment.
[0123] The current road segment can be any road segment containing different road conditions. The current road segment can be a road segment determined by the user through terminal operation, such as a road segment entered or selected by the user through terminal operation; or a road segment determined from the target navigation route based on the terminal's location when the user triggers route navigation through the terminal.
[0124] Initial road condition texture refers to the initialized and fixed road condition texture, used to visually distinguish different road conditions during display. Road condition coverage refers to the road segment range corresponding to a single road condition, used to indicate the initial coverage range of the initial road condition texture on the road segment.
[0125] Specifically, the computer device can obtain the initial road condition texture and road condition coverage area corresponding to the first road condition and the second road condition involved in the current road segment, respectively, locally or from other devices, and generate the road segment texture data corresponding to the current road segment based on the initial road condition texture and road condition coverage area corresponding to the first road condition and the second road condition, respectively. The road segment texture data can be used to generate the gradient road condition surface corresponding to the current road segment.
[0126] Step S804: Based on the initial road condition texture and road condition coverage corresponding to the first road condition and the second road condition respectively, determine the road condition transition range between the first road condition and the second road condition.
[0127] Among them, the road condition transition range refers to the range of road sections that need to undergo road condition texture transition, and is used to indicate the coverage of the gradient road condition texture on the road section.
[0128] Specifically, the computer device can determine the road condition transition range between the first road condition and the second road condition based on the initial road condition texture and road condition coverage area corresponding to the first road condition and the second road condition, respectively. Specifically, the road condition transition range between the first road condition and the second road condition can be determined based on the differences in the initial road condition texture and road condition coverage area between the two road conditions.
[0129] In one embodiment, a target coverage area is determined from the road condition coverage areas corresponding to the first and second road conditions, respectively. The road condition span is determined based on the initial road condition textures corresponding to the first and second road conditions, respectively. The target coverage area is then adjusted based on the road condition span to obtain a road condition transition range. Specifically, the road condition coverage area with smaller coverage can be selected from the road condition coverage areas corresponding to the first and second road conditions as the target coverage area. The target coverage area is then reduced based on the road condition span to obtain the road condition transition range. For example, the road condition transition range decreases as the road condition span decreases; the smaller the road condition span, the larger the reduction value used to reduce the range, and the smaller the resulting road condition transition range. It can be understood that if the road condition span is small, a relatively small road condition transition range can effectively represent the texture transition between different road conditions.
[0130] Step S806: The road condition texture is gradually adjusted from the initial road condition texture corresponding to the first road condition to the initial road condition texture corresponding to the second road condition, so as to obtain the gradient road condition texture corresponding to the road condition transition range.
[0131] The gradient road condition texture is a collection of road condition textures that change regularly, used to visually present a gradual transition effect between road conditions during display. The gradient road condition texture corresponding to the transition range between the first and second road conditions includes a collection of road condition textures that change regularly from the initial road condition texture corresponding to the first road condition to the initial road condition texture corresponding to the second road condition.
[0132] Specifically, in order to achieve a gradient effect, the computer device adjusts the road condition texture from the initial road condition texture corresponding to the first road condition to the initial road condition texture corresponding to the second road condition, resulting in a variety of road condition textures that change regularly between the first and second road condition textures. These regularly changing road condition textures are combined into a gradient road condition texture corresponding to the road condition transition range. The gradient road condition texture can be used to achieve the effect of gradation from the first road condition texture to the second road condition texture.
[0133] Step S808: Based on the initial road condition texture and the corresponding road condition coverage area, the gradient road condition texture and the corresponding road condition transition area, obtain the road segment texture data corresponding to the current road segment; the road segment texture data is used to generate the gradient road condition surface corresponding to the current road segment, and the gradient road condition surface is used to indicate the process of the current road segment changing from the first road condition to the second road condition.
[0134] Among them, road segment texture data refers to the complete texture data corresponding to the current road segment. The road segment texture data includes the first road condition texture, gradient texture data and the second road condition texture arranged in an orderly manner, which are used to present the texture transition effect from the first road condition to the second road condition.
[0135] Specifically, the computer device obtains the road segment texture data corresponding to the current road segment based on the initial road condition texture and its corresponding road condition coverage area, and the gradient road condition texture and its corresponding road condition transition area. The initial road condition texture and the gradient road condition texture can be arranged and combined according to their corresponding road condition coverage areas and road condition transition areas to obtain the road segment texture data corresponding to the current road segment. Following the order of the road condition coverage area corresponding to the first road condition texture, the road condition coverage area corresponding to the second road condition texture, and the road condition transition area corresponding to the gradient texture data, the first road condition texture, the second road condition texture, and the gradient texture data are combined in an ordered manner to obtain the road segment texture data corresponding to the current road segment. In the road segment texture data, the first road condition texture, the second road condition texture, and the gradient texture data each have their corresponding coverage areas.
[0136] Road segment texture data is used to generate the gradient road condition surface corresponding to the current road segment. When generating the gradient road condition surface, road condition textures can be added to the road surface in an orderly manner according to the road segment texture data, thus obtaining the gradient road condition surface. The gradient road condition surface can be displayed on the terminal.
[0137] In one embodiment, road geometry data corresponding to the current road segment can be obtained, and a gradient road surface can be generated based on the road geometry data and road segment texture data. The road geometry data is used to characterize the geometric information of the road, such as its shape and size. The road geometry data is used to generate the road surface. The road segment texture data is used to characterize the road's texture information and to determine the display texture of the road surface. A gradient road surface conforming to the road's geometry can be generated based on the road geometry data and road segment texture data.
[0138] In one embodiment, the road geometry data includes multiple road geometry points for drawing the road. Based on the relative positions of the road geometry points in the road segment, texture sampling is performed in the road segment texture data to obtain the target road condition texture corresponding to each road geometry point. A gradient road condition surface is generated based on the target road condition texture corresponding to each road geometry point and its relative position.
[0139] In one embodiment, based on the road condition transition range, the road condition coverage ranges corresponding to the first and second road conditions are adjusted to obtain updated coverage ranges corresponding to the first and second road conditions. The updated coverage ranges are used to indicate the target and final coverage ranges of the initial road condition textures on the road segment. Based on the road condition transition ranges and updated coverage ranges, the first road condition texture, the second road condition texture, and the gradient road condition texture are arranged and combined to obtain road segment texture data.
[0140] The aforementioned road condition processing method involves obtaining the initial road condition textures and coverage areas corresponding to the first and second road conditions involved in the current road segment, respectively; determining the road condition transition range between the first and second road conditions based on the initial road condition textures and coverage areas corresponding to the first and second road conditions, respectively; gradually adjusting the road condition texture from the initial road condition texture corresponding to the first road condition to the initial road condition texture corresponding to the second road condition to obtain the gradient road condition texture corresponding to the road condition transition range; obtaining the road segment texture data corresponding to the current road segment based on the initial road condition texture and the corresponding road condition coverage area, the gradient road condition texture and the corresponding road condition transition range; and using the road segment texture data to generate the gradient road condition surface corresponding to the current road segment, which indicates the process of the current road segment changing from the first road condition to the second road condition. In this way, the road segment texture data obtained based on the initial road condition texture, the gradient road condition texture, the road condition coverage range, and the road condition transition range can be used to generate gradient road condition surfaces. The initial road condition texture is used to distinguish different road conditions, the gradient road condition texture is used to reflect the change process between different road conditions, and the road condition coverage range and the road condition transition range can determine the coverage range of the initial road condition texture and the gradient road condition texture. As a result, the generated gradient road condition surface can achieve a smooth gradient effect between different road conditions. The generated gradient road condition surface can reflect the process of the current road segment gradually changing from the first road condition to the second road condition, making the display of road condition information more consistent with the real road scene, thereby improving the accuracy of road condition display and navigation accuracy.
[0141] In one embodiment, step S804 includes:
[0142] The target coverage area is determined from the road condition coverage areas corresponding to the first road condition and the second road condition, respectively; the road condition span is determined based on the difference between the initial road condition textures corresponding to the first road condition and the second road condition; the road condition texture gradient radius is obtained based on the road condition gradient reference range and the target coverage area corresponding to the road condition span; and the road condition transition range is obtained based on the road condition boundary position of the first road condition and the road condition texture gradient radius.
[0143] Different road condition spans correspond to different road condition transition reference ranges. The road condition transition reference range refers to the maximum road condition transition range preset for a given road condition span.
[0144] Specifically, the computer device can determine the road condition texture gradient radius based on the differences in road condition coverage and initial road condition texture between the first and second road conditions. The differences in the initial road condition texture between the first and second road conditions can be reflected by the road condition span. Based on the road condition texture gradient radius, the range is divided at the road condition boundary between the first and second road conditions to obtain the road condition transition range between the first and second road conditions.
[0145] First, the computer device can select the road condition coverage area with smaller coverage from the road condition coverage areas corresponding to the first and second road conditions, respectively, as the target coverage area. This target coverage area is used to constrain the road condition transition range, ensuring that the transition range does not exceed the target coverage area. Simultaneously, the computer device can determine the road condition span between the first and second road conditions based on the difference between their initial road condition textures, and obtain the road condition gradient reference range corresponding to this span. This reference range is used to constrain the road condition transition range, ensuring that the transition range does not exceed the reference range. Finally, the computer device determines the road condition texture gradient radius based on the road condition gradient reference range corresponding to the road condition span and the target coverage area. It then selects the area with the smallest coverage from these two ranges to generate the road condition texture gradient radius. The road condition transition range generated based on this gradient radius ensures that the transition range does not exceed both the target coverage area and the road condition gradient reference range.
[0146] In one embodiment, the formula for calculating the road condition transition range is as follows:
[0147]
[0148] Δ(i+1)=n*cn*b
[0149] Δ(i)=n*bn*a
[0150] len(i,i+1)=value*span(i,i+1)
[0151] Here, a 1xn array is used to represent the coverage area of the current road segment. The road condition corresponding to the i-th road condition is represented by (a, b, road condition i), which indicates that the i-th road condition covers from the n*a-th column to the n*b-th column of the array. The road condition corresponding to the (i+1)-th road condition is represented by (b, c, road condition i), which indicates that the i-th road condition covers from the n*b-th column to the n*c-th column of the array. Therefore, Δ(i) represents the coverage area of the road condition corresponding to the i-th road condition, and Δ(i+1) represents the coverage area of the road condition corresponding to the (i+1)-th road condition.
[0152] span(i, i+1) represents the span between road condition i and road condition i+1. value represents the maximum range of road condition change when the span is 1, and len(i, i+1) represents the maximum range of road condition change corresponding to the span between road condition i and road condition i+1 (i.e., the reference range of road condition change between road condition i and road condition i+1).
[0153] radius represents the gradient radius of the road texture. The road boundary position is n*b, and the gradient coverage range is from n*b-radius to n*b+radius. It is used to characterize the gradient coverage range from the n*b-radius column to the n*b+radius column in the array.
[0154] Furthermore, the number of columns n can be selected according to the required length of the road segment. n increases as the length of the road segment increases.
[0155] In one embodiment, the road condition gradient reference range corresponding to the road condition span is less than or equal to the texture gradient range corresponding to that road condition span in the candidate road condition texture set. The candidate road condition texture set includes multiple road condition textures arranged in an ordered manner, which include multiple initial road condition textures corresponding to different road conditions and at least one transition road condition texture between different initial road condition textures. The texture gradient range corresponding to the road condition span between the first road condition and the second road condition in the candidate road condition texture set refers to the road condition texture range determined by the initial road condition textures corresponding to the first road condition and the second road condition in the candidate road condition texture set. This road condition texture range includes the initial road condition textures corresponding to the first road condition and the second road condition, and all road condition textures between the initial road condition textures corresponding to the first road condition and the second road condition.
[0156] For example, road condition textures are represented by colors, and the candidate road condition texture set includes all candidate road condition textures. Figure 9As shown, the candidate road condition texture set involves five road conditions: no road conditions, smooth traffic, slow traffic, congestion, and severe congestion. The candidate road condition texture set includes texture colors arranged in an ordered manner. In the candidate road condition texture set, each road condition has a corresponding texture color, and there is a color transition between different road conditions. For the texture colors from left to right, Sample(0) = no road conditions, Sample(0.25) = smooth traffic, Sample(0.5) = slow traffic, Sample(0.75) = congestion, Sample(1) = severe congestion, Sample(i) represents the road condition information represented by the color obtained from the candidate road condition texture set, i represents the percentage position of the texture color, and the area between adjacent road conditions represents the transition between road conditions. The pixel gradient range between different road conditions is limited, so the pixel gradient range between different road conditions can be used as the texture gradient range corresponding to the road condition span between different road conditions.
[0157] In the above embodiments, the road condition texture gradient radius is determined based on the difference between the first and second road conditions in terms of road condition coverage and initial road condition texture. Based on this gradient radius, dividing the road condition at the boundary between the first and second road conditions allows for rapid determination of the road condition transition range between them. A target coverage area is determined from the road condition coverage areas corresponding to the first and second road conditions, respectively. The road condition texture gradient radius is obtained based on the road condition gradient reference range corresponding to the road condition span between the first and second road conditions and the target coverage area. The road condition transition range generated based on this gradient radius ensures that the transition range does not exceed the target coverage area and does not exceed the road condition gradient reference range.
[0158] In one embodiment, step S806 includes:
[0159] The process involves several steps: First, determining the target location from all locations within the road condition transition range. Second, determining the change in road condition texture between the target location and the starting location of the road condition transition range, based on the distance between the target location and the starting location of the road condition transition range. Third, obtaining the target road condition texture corresponding to the target location based on the initial road condition texture and the change in road condition texture corresponding to the starting location. Fourth, selecting the next location from all locations within the road condition transition range as the target location, and returning to the previous steps of determining the change in road condition texture between the target location and the starting location of the road condition transition range, until the target road condition textures corresponding to each location within the road condition transition range are obtained. Finally, obtaining the gradient road condition texture corresponding to the road condition transition range based on the target road condition textures corresponding to each location.
[0160] The road condition transition range comprises multiple ordered location points. These location points divide the road condition transition range into several smaller regions, and the gradient road condition texture is obtained by combining the target road condition textures corresponding to each location point.
[0161] It can be understood that the initial road condition texture corresponding to the starting point of the road condition transition range refers to the first road condition texture, and correspondingly, the initial road condition texture corresponding to the ending point of the road condition transition range refers to the second road condition texture.
[0162] Specifically, when generating the gradient road condition texture corresponding to the road condition transition range, the target road condition texture corresponding to each location point is first determined, and then the target road condition textures corresponding to each location point are combined to form the gradient road condition texture corresponding to the road condition transition range.
[0163] The computer device selects an arbitrary point from all locations within the road condition transition range as the target point. Based on the distance between the target point and the starting point of the road condition transition range, it determines the change in road condition texture between the target point and the starting point. Specifically, it can determine the maximum texture change based on the difference between the initial road condition textures corresponding to the starting and ending points of the road condition transition range, and then determine the road condition texture change corresponding to the distance between the target point and the starting point from the maximum texture change. For example, it can calculate the ratio of the distance between the target point and the starting point to the total distance between the starting and ending points, and multiply this ratio by the maximum texture change to obtain the change in road condition texture between the target point and the starting point. Then, based on the initial road condition texture and the change in road condition texture corresponding to the starting point, it obtains the target road condition texture corresponding to the target point. For example, it can add the initial road condition texture and the change in road condition texture to obtain the target road condition texture. The method for determining the target road condition texture corresponding to each location point is similar. By calculating the change in road condition texture, the target road condition texture can be obtained, and finally the target road condition texture corresponding to each location point can be obtained.
[0164] In one embodiment, if the gradient coverage range is from n*b-radius to n*b+radius, for position j within the gradient coverage range, the texture sampling position of position j in the candidate road condition texture set is: Where Loc(i) represents the texture sampling position of road condition i in the candidate road condition texture set, and Loc(i+1) represents the texture sampling position of road condition i+1 in the road condition texture set.
[0165] In the above embodiments, based on the distance between the location points included in the road condition transition range and the starting location point, the change in road condition texture of the target location point relative to the starting location point is determined. Based on the initial road condition texture corresponding to the starting location point and the change in road condition texture, the target road condition texture corresponding to the target location point is obtained. The target road condition texture corresponding to each location point changes from the first road condition texture to the second road condition texture at a uniform speed according to its position in the road condition transition range. Thus, the final gradient road condition texture includes multiple road condition textures that are uniformly gradient from the first road condition texture to the second road condition texture. Such a gradient road condition texture helps to ensure the display effect of the road condition gradient transition.
[0166] In one embodiment, such as Figure 10 As shown, road condition handling methods also include:
[0167] Step S1002: Obtain the edge point positions of each road edge point corresponding to the current road segment, and determine the texture sampling ratio corresponding to the road edge point based on the edge point positions.
[0168] Step S1004: Based on the texture sampling ratio corresponding to the road edge points, perform texture sampling in the road segment texture data to obtain the target road condition texture corresponding to each road edge point.
[0169] Step S1006: Generate a gradient road surface based on the target road condition texture and the position of each road edge point.
[0170] Among them, road edge points are spatial geometric points used to form road edges. Road edges refer to the boundary lines of roads. The location of edge points is used to characterize their spatial position. Based on the location of road edge points, the corresponding texture sampling ratio can be determined. The texture sampling ratio characterizes the edge position of road edge points on the road edge and is used for texture sampling from road segment texture data.
[0171] Specifically, in order to generate an irregular, gradient road surface that conforms to the road shape, road edge points used to form road edge lines can be obtained, the target road condition texture corresponding to each road edge point can be determined from the road segment texture data, and an irregular road surface with texture and specific shape and gradient texture can be generated based on the target road condition texture corresponding to each road edge point and the position of the edge point.
[0172] Computer equipment can determine the position of road edge points on the road edge based on their location, thereby obtaining the texture sampling ratio corresponding to each road edge point. Further, based on the texture sampling ratio of the road edge points, texture sampling is performed on the road segment texture data to obtain the target road condition texture corresponding to each road edge point. The road segment texture data includes multiple road condition textures arranged in an orderly manner from the road start point to the road end point. The target road condition texture is sampled from the road segment texture data based on the texture sampling ratio of the road edge points. During texture display, the target road condition texture is rendered according to the edge position of the road edge points, ultimately presenting a texture effect that gradually transitions from the road start point to the road end point.
[0173] When generating a gradient road surface, the position of the road edge point is used to form the road surface, and the target road texture of the road edge point is used to form the texture of the road surface. Combining the position of the road edge point and the target road texture, a textured road surface can be obtained.
[0174] In one embodiment, a 1xn array is used to represent the road segment texture data of the current road segment. The road condition coverage range corresponding to the first road condition corresponds to column 0 to column n*a in the array, and the road condition coverage range corresponding to the second road condition corresponds to column n*a to column n in the array. The road condition transition range determined based on the relevant information of the first and second road conditions corresponds to column n*a-radius to column n*a+radius in the array. Referring to the road condition transition range, the final coverage range corresponding to the first road condition corresponds to column 0 to column n*a-radius in the array, and the final coverage range corresponding to the second road condition corresponds to column n*a+radius to column n in the array. Column 0 to column n*a-radius corresponds to the first road condition texture, column n*a-radius to column n*a+radius corresponds to the gradient road condition texture, and column n*a+radius to column n corresponds to the second road condition texture. If the texture sampling ratio corresponding to a certain road edge point is m, then the road condition texture corresponding to the n*mth column is obtained from the array as the target road condition texture corresponding to the road edge point.
[0175] In the above embodiments, by obtaining the edge point positions of each road edge point corresponding to the current road segment, determining the texture sampling ratio corresponding to the road edge point based on the edge point position, and performing texture sampling in the road segment texture data based on the texture sampling ratio corresponding to the road edge point, the target road condition texture corresponding to each road edge point is obtained. Based on the target road condition texture corresponding to each road edge point and the edge point position, an irregular road surface with texture and specific shape and texture gradient can be generated.
[0176] In one embodiment, road edge points include left road edge points and right road edge points. Determining the texture sampling ratio corresponding to each road edge point based on its position includes:
[0177] Based on the cumulative distance of each right-side line point from the starting point of the right-side line, the length ratio of each cumulative distance on the right-side line is calculated to obtain the texture sampling ratio corresponding to each right-side line point. Based on the texture sampling ratio corresponding to the right-side line point, the position of the edge point, and the position of the edge point corresponding to the left-side line point, the left-side line points are proportionally aligned to obtain the texture sampling ratio corresponding to each left-side line point.
[0178] Specifically, proportional alignment is used to align the texture sampling ratio of one road edge line with that of another, ensuring that road edge points on the left and right road edges at the same horizontal level correspond to the same texture sampling ratio. This means that points at the same horizontal level on the left and right road edges correspond to the same road texture. Based on this, the road texture on the generated gradient road surface is horizontally aligned, preventing any tilting of the road texture on the gradient road surface.
[0179] Specifically, the right edge of the road can be used as a reference to first determine the texture sampling ratio corresponding to each right edge point. Considering that the road edge is formed by connecting each road edge point sequentially, the computer device can calculate the proportion of each cumulative distance from the starting point of the right edge to the length of the right edge, using this proportion as the texture sampling ratio to obtain the texture sampling ratio corresponding to each right edge point. Then, referring to the edge point positions and texture sampling ratios of the right edge points, the computer device performs proportional alignment on the left edge points based on their corresponding edge point positions to obtain the texture sampling ratio corresponding to each left edge point.
[0180] Alternatively, you can first calculate the texture sampling ratio corresponding to each left-side line point of the road, and then use the left-side line of the road as a reference to calculate the texture sampling ratio corresponding to each right-side line point of the road.
[0181] In one embodiment, the texture sampling ratio corresponding to the starting point of the right line is used as the texture sampling ratio corresponding to the starting point of the left line, and the texture sampling ratio corresponding to the ending point of the right line is used as the texture sampling ratio corresponding to the ending point of the left line. Based on the edge position of the left line point on the left line, the initial sampling ratio corresponding to the left line point is determined within the texture sampling ratio range formed from the texture sampling ratio corresponding to the starting point of the left line to the texture sampling ratio corresponding to the ending point of the right line. The initial sampling ratio corresponding to the left line point is adjusted based on the length of the left and right lines of the road to obtain the texture sampling ratio corresponding to the left line point.
[0182] In the above embodiments, based on the cumulative distance of each right-side line point from the starting point of the right-side line, the length ratio of each cumulative distance on the right-side line is calculated to obtain the texture sampling ratio corresponding to each right-side line point. When displaying the target road condition texture sampled by the texture sampling ratio corresponding to the right-side line point, the first road condition texture is presented first, then gradually transitions to the second road condition texture, and finally the second road condition texture is presented. Furthermore, by aligning the proportions, road edge points on the left and right road edges that are in the same horizontal direction correspond to the same texture sampling ratio. When displaying the road condition textures sampled by the texture sampling ratios corresponding to the right-side and left-side road edge points, the texture of the road surface is flat and aligned in the horizontal direction, effectively avoiding the tilting of the road condition texture on the road surface, and the road condition texture can also be better displayed at road corners.
[0183] In one embodiment, based on the texture sampling ratio and edge point position corresponding to the right edge point of the road and the edge point position corresponding to the left edge point of the road, the left edge point of the road is proportionally aligned to obtain the texture sampling ratio corresponding to each left edge point of the road, including:
[0184] Obtain the road centerline corresponding to the current road segment; based on the road centerline, divide the current road segment into regions to obtain at least two regions; based on the texture sampling ratio, edge point position, and edge point position corresponding to the right edge point of the road in the same region, align the left edge point of the road in the region to obtain the texture sampling ratio corresponding to each left edge point of the road.
[0185] The road centerline is a road marking line located at the center of the road, which reflects the road's horizontal position and curvature.
[0186] Specifically, to improve the accuracy and efficiency of proportional alignment, it can be performed by region. The computer device can divide the current road segment into regions based on the road centerline, resulting in at least two regions. Proportional alignment is then performed within each region. Based on the texture sampling ratio, edge point position, and left-side edge point position of the road right-side line points within the same region, the left-side line points within that region are proportionally aligned, resulting in the texture sampling ratios corresponding to the left-side line points of each region. The texture sampling ratios corresponding to the left-side line points of each region constitute the texture sampling ratios corresponding to the left-side line points of the current road segment.
[0187] In the above embodiments, the current road segment is divided into regions based on the road centerline to obtain at least two regions. The regions are then proportionally aligned, which can improve the efficiency of proportional alignment.
[0188] In one embodiment, the current road segment is divided into regions based on the road centerline, resulting in at least two regions, including:
[0189] The road centerline is sampled to obtain multiple center sampling points; the direction of the dividing line is determined based on the center sampling points and their corresponding adjacent sampling points to obtain the dividing line direction corresponding to each center sampling point; regional dividing lines are generated along the dividing line direction of the center sampling points to obtain the regional dividing lines corresponding to each center sampling point; based on each regional dividing line, the current road segment is divided into regions to obtain at least two regions.
[0190] The adjacent sampling points of the central sampling point include at least one other central sampling point adjacent to the central sampling point in different directions along the road centerline. For example, refer to Figure 11A The centerline of the road is sampled to obtain the center sampling point AE, which is the starting point of the road centerline. Taking center sampling point B as an example, center sampling points A and C are adjacent sampling points of center sampling point B. Center sampling point A is the forward adjacent sampling point of center sampling point B, and center sampling point C is the backward adjacent sampling point of center sampling point B.
[0191] Specifically, region division can be based on sampling points obtained from sampling the road centerline. Computer equipment can sample the road centerline to obtain multiple center sampling points. Based on these center sampling points, region dividing lines are generated to divide the current road segment into at least two regions. A region dividing line can be determined by the center sampling point and its corresponding dividing line direction; the straight line passing through the center sampling point along the dividing line direction is used as the region dividing line. The dividing line direction corresponding to a center sampling point is determined based on the center sampling point and its adjacent sampling points.
[0192] In one embodiment, the direction of the angle bisector of the angle formed by the center sampling point and the preceding and following adjacent sampling points can be used as the direction of the dividing line. Alternatively, the direction of the normal to the line formed by the center sampling point and either the preceding or following adjacent sampling point can be used as the direction of the dividing line.
[0193] refer to Figure 11B Equivalent sampling is performed on the center line of the lane. The intersection of the straight line passing through the dividing line of the center sampling point with the left and right edge lines of the lane is found. The dividing line direction is selected as the direction of the angle bisector of the angle formed by the center sampling point and the adjacent sampling points on the center line of the lane. The intersection of the adjacent sampling points with the left and right edge lines of the lane divides the road surface into several regions.
[0194] In the above embodiments, based on the center sampling point obtained by sampling the road centerline and the dividing line direction determined by the center sampling point and the corresponding adjacent sampling point, the area dividing line corresponding to each center sampling point can be quickly obtained. Based on each area dividing line, the current road segment can be divided into areas along the road extension direction. The multiple areas obtained after area division help to make the road texture accurately transition along the road extension direction when the road surface is displayed.
[0195] In one embodiment, the method for determining the center sampling point includes any of the following methods:
[0196] Multiple center sampling points were obtained by sampling the road centerline at equal intervals.
[0197] Based on the curvature of the road centerline, the road centerline is dynamically sampled to obtain multiple center sampling points.
[0198] Specifically, when sampling the center line of a road, the center line can be sampled at equal intervals, with a point sampled at a preset distance along the center line, thus obtaining multiple center sampling points.
[0199] When sampling the center line of a road, the center line can also be dynamically sampled according to its curvature. More points are sampled in areas with greater curvature on the center line, and fewer points are sampled in areas with less curvature, thus obtaining multiple center sampling points.
[0200] In the above embodiments, sampling the road centerline at equal intervals can quickly obtain multiple center sampling points. Dynamically sampling the road centerline according to its curvature can obtain multiple center sampling points with varying intervals. Areas with greater curvature correspond to more center sampling points, meaning more refined sampling is performed at road corners. This helps improve the accuracy of displaying road textures at road corners.
[0201] In one embodiment, based on the texture sampling ratio, edge point position, and edge point position corresponding to the right edge point of the road in the same area, the left edge point of the road in the area is proportionally aligned to obtain the texture sampling ratio corresponding to each left edge point of the road, including:
[0202] Using the starting and ending points of the left-hand road line in the current region as the current left-hand start and end points, and the starting and ending points of the right-hand road line in the current region as the current right-hand start and end points; using the texture sampling ratio corresponding to the current right-hand start point as the texture sampling ratio corresponding to the current left-hand start point, and the texture sampling ratio corresponding to the current right-hand end point as the texture sampling ratio corresponding to the current left-hand end point; calculating the distance ratio corresponding to the current left-hand point based on the cumulative distances from the current left-hand point to the current left-hand start point and the current left-hand end point in the current region; obtaining the initial sampling ratio corresponding to the current left-hand point based on the texture sampling ratios corresponding to the current left-hand start point and the current left-hand end point, and the distance ratio corresponding to the current left-hand point; adjusting the initial sampling ratio corresponding to the current left-hand point based on the lengths of the left-hand and right-hand roads in the current region, to obtain the texture sampling ratio corresponding to the current left-hand point.
[0203] Here, "current region" refers to the region currently being processed. The starting point of the current left-hand line is the starting point of the left-hand line of the road in the current region, and the ending point of the current left-hand line is the ending point of the left-hand line of the road in the current region. The starting point of the current right-hand line is the starting point of the right-hand line of the road in the current region, and the ending point of the current right-hand line is the ending point of the right-hand line of the road in the current region. The current left-hand line point is the currently processed left-hand line point in the current region.
[0204] Specifically, when performing proportional alignment by region, for the current region, firstly, the texture sampling ratio corresponding to the current right edge starting point is used as the texture sampling ratio corresponding to the current left edge starting point, and the texture sampling ratio corresponding to the current right edge ending point is used as the texture sampling ratio corresponding to the current left edge ending point, so that the left and right starting points and ending points of a region have the same texture sampling ratio. Then, any left edge point is selected from the remaining left edge points in the current region as the current left edge point. The distances between the current left edge point and the current left edge starting point and the current left edge ending point are calculated, and the ratio of the two distances is calculated to obtain the distance ratio corresponding to the current left edge point. The distance ratio indicates the position of the current left edge point on the left edge of the current region. Furthermore, based on the texture sampling ratios corresponding to the current left edge starting point and the current left edge ending point, and the distance ratio corresponding to the current left edge point, the initial sampling ratio corresponding to the current left edge point is obtained. Specifically, the maximum scale change can be calculated by measuring the difference between the texture sampling ratios corresponding to the current left edge start point and the current left edge end point. The product of this maximum scale change and the distance ratio is then used to obtain the sampling scale change corresponding to the current left edge point. Based on the texture sampling ratio corresponding to the current left edge start point and the sampling scale change, the initial sampling ratio corresponding to the current left edge point is obtained. The initial sampling ratio is determined within the texture sampling ratio range of the left edge of region 1, based on the edge position of the current left edge start point on the left edge of region 1. To achieve scale alignment of the left and right edges, the initial sampling ratio corresponding to the current left edge point is adjusted based on the lengths of the left and right edges of the road in the current region, resulting in the texture sampling ratio corresponding to the current left edge point. Specifically, the length ratio of the left and right edges of the road can be calculated, and the initial sampling ratio and the length ratio can be fused to obtain the texture sampling ratio.
[0205] In one embodiment, reference Figure 12Taking region 1 as an example, the calculation process for proportional alignment is explained. For region 1, the cumulative distance ADist(i) from the starting point of the right edge of each point R1, R2, R3, RS1 is calculated as ADist(i) = ADist(i-1) + Dist(i,i-1). Here, Dist(i,i-1) represents the distance between the i-th point and the (i-1)-th point. Assume the total length of the right edge is RT, and the lengths of the left and right edges of region 1 are LT1 and RT1, respectively. For the right edge of region 1, the length ratio of each point on the right edge is calculated as: Ratio(i) = ADist(i) / RT. For the left edge of region 1, the ratios of the starting point L1 and the ending point LS1 are set to Ratio(R1) and Ratio(RS1), respectively. The texture sampling ratio corresponding to other points Li in region 1 is Ratio(Li) = (Ratio(L1) + (Ratio(LS1) – Ratio(L1))*k)*LT1 / RT1. Where k = (ADist(Li) – ADist(L1)) / (ADist(LS1) – ADist(L1)), ADist(Li) = ADist(Li-1) + Dist(Li,Li-1), and Dist(Li,Li-1) represents the distance between the i-th point on the left edge and the (i-1)-th point on the left edge. Finally, the left and right edges of region 1 are aligned proportionally based on the right edge. The same process can be applied to the remaining areas of the current road segment.
[0206] In the above embodiments, using the texture sampling ratio corresponding to the current right edge starting point as the texture sampling ratio corresponding to the current left edge starting point, and using the texture sampling ratio corresponding to the current right edge ending point as the texture sampling ratio corresponding to the current left edge ending point, aligns the proportions of the left and right starting and ending points of the region. Based on the cumulative distances from the current left edge point to the current left edge starting point and the current left edge ending point in the current region, the distance ratio corresponding to the current left edge point is calculated. Based on the texture sampling ratios corresponding to the current left edge starting point and the current left edge ending point, and the distance ratio corresponding to the current left edge point, the initial sampling ratio corresponding to the current left edge point is obtained. Based on the lengths of the left and right edges of the road in the current region, the initial sampling ratio corresponding to the current left edge point is adjusted to obtain the texture sampling ratio corresponding to the current left edge point, ultimately achieving proportional alignment of other left and right edge points in the region.
[0207] In one specific embodiment, the traffic display method and traffic processing method of this application can be applied to navigation scenarios for lane-level maps.
[0208] During map navigation, the server's route calculation service returns a navigation route from the starting point to the destination to the client. This route is a trajectory line composed of a series of spatial geometric coordinate points. Existing standard maps represent navigation routes by generating regular surfaces of a certain width based on the trajectory line. The client then adds texture information representing different road conditions to these regular surfaces based on congestion information provided by the server's traffic condition service. However, for lane-level maps, because the route calculation service returns more refined and irregular navigation routes, a new traffic condition implementation scheme for irregular navigation routes is needed, along with a smooth transition between road conditions. The traffic condition display and processing methods in this application achieve smooth alignment of traffic condition effects through the division and proportional alignment of irregular road condition surface regions. Furthermore, precise texture sampling enables natural transitions between different road condition effects, effectively solving the problem of excessive filling of different road conditions on irregular surfaces. The solution is universal, efficient, and can be quickly applied.
[0209] The traffic condition display method and traffic condition processing method of this application include the following:
[0210] Regarding road conditions, such as Figure 13A As shown, by combining the data provided by the road calculation service and the road condition service, we can obtain the two edge lines formed by spatial geometric points on the left and right sides of the road condition surface, as well as a smoothly curved lane center line between the road condition surfaces. At the same time, the road conditions in different areas are represented by the length range of the right edge line. For example, the range [0, 0.5, smooth] represents the area where the right edge line extends from the starting point to 50% of its total length, which is green and smooth.
[0211] 1. Determine the proportional information corresponding to each vertex.
[0212] First, road surface division is performed. This simple division ensures that the areas formed by different road surface sections are flat and aligned, ultimately achieving horizontal alignment of the overall road surface color. For example... Figure 13B As shown, equidistant sampling is performed along the centerline of the lane. The intersection of the sampling point and the left and right sidelines is calculated along a straight line passing through the sampling point in a certain direction. This direction is selected as the angle bisector of the angle formed by the sampling point and the adjacent points on the centerline. The intersections of adjacent sampling points with the left and right sidelines divide the road surface into several regions.
[0213] Next, align the road surface proportions. (Reference) Figure 12For region 1, calculate the cumulative distance ADist(i) = ADist(i-1) + Dist(i,i-1) from the starting point of the right side line for each point R1, R2, R3, and RS1. Assume the total length of the right side line is RT, and the lengths of the left and right sides of region 1 are LT1 and RT1, respectively. For the right side line of region 1, calculate the length ratio of each point on the right side line of region 1: Ratio(i) = ADist(i) / RT. For the left side line of region 1, set the ratios of the starting point L1 and ending point LS1 of the region to Ratio(R1) and Ratio(RS1), respectively. The texture sampling ratio for other points Li in region 1 is Ratio(Li) = (Ratio(L1) + (Ratio(LS1) – Ratio(L1)) * k) * LT1 / RT1, k = (ADist(Li) – ADist(L1)) / (ADist(LS1) – ADist(L1)), ADist(Li) = ADist(Li-1) + Dist(Li,Li-1). Finally, align the left and right edges of area 1 according to the right edge. Similarly, the other areas can be processed in the same way.
[0214] II. Constructing road surface texture and color information
[0215] First, road surface texture information is constructed. Based on the real-time road condition information provided by the road condition service, road condition textures are dynamically generated according to the following road condition sampling textures. From left to right, Sample(0) = no road conditions, Sample(0.25) = smooth traffic, Sample(0.5) = slow traffic, Sample(0.75) = congested traffic, Sample(1) = severe congestion. Sample(i) represents the road condition information represented by the color obtained from the sampling texture, where i represents the percentage position of the sampling texture, and the area between adjacent road conditions represents the transition between road conditions. A 1-row, n-column array is used to record the constructed road surface texture color information. The number of columns n can be selected according to the required length of the road surface. For the road condition range, road condition 1 contains color information ranging from 0 to n*a columns (where 0 <= a <= 1), and the corresponding color information within the array range is Sample(0.25). Road condition 2 contains color information ranging from n*a to n columns, and the corresponding color information within the array range is Sample(0.75). This road condition texture construction method can be applied to any number of road condition information. After processing all road conditions, it initially obtains texture information with different road conditions, but there is no smooth gradient transition effect between road conditions.
[0216] Then, a gradual transition of road condition colors is performed. For the (i+1)th road condition information (b, c, road condition i+1), a gradual color transition is needed between it and the ith road condition (a, b, road condition i). In the initially constructed road condition information, the color coverage range of road condition i+1 is from n*b to n*c, with a coverage amount Δ(i+1) = n*cn*b; the color coverage range of road condition i is from n*a to n*b, with a coverage amount Δ(i) = n*bn*a; and the color boundary position is n*b. The color gradient radius at the road condition boundary point is set to... The gradient coverage range is from n*b-radius to n*b+radius. For position j within the gradient coverage range, the texture sampling position (i.e., Loc(j)) at position j is... Where Loc(i) represents the relative position (in percentage) of road condition i in the sampled texture. len(i,i+1) = value * span(i,i+1). To ensure the maximum range of road condition gradation, span(i,i+1) represents the span between road condition i and road condition i+1. For adjacent road conditions in the sampled texture, the span is 1. value represents the maximum range of road condition gradation with a span of 1, and it is guaranteed not to exceed the gradation range of that span in the sampled texture.
[0217] The texture color information for road condition i and road condition i+1 is as follows: n*a to n*b-radius in the array corresponds to Sample(Loc(i)), n*b+radius to n*c in the array corresponds to Sample(Loc(i+1)), and for the j-th column in the array from n*b-radius to n*cn*b+radius, it corresponds to Sample(Loc(j)).
[0218] 3. Triangulate and render the region.
[0219] Triangulation is performed on each region separately. Region 1 is processed as follows: Figure 13C The triangulation method shown is applied to other areas; the same operation is performed. Triangulation is a common processing method in rendering techniques. Finally, the triangulated data, the proportional information of each vertex obtained by aligning the road surface proportions, and the constructed texture color information are uploaded to the GPU. The color of each vertex is obtained by sampling from the texture color information using the proportional information. This allows for the rendering of gradient road surfaces using rendering techniques such as OpenGL.
[0220] In the above embodiments, the high-precision positioning and guidance requirements in lane-level maps place higher demands on traditional road condition guidance. The guidance surface may exhibit irregular shapes, and smooth transitions between road conditions are required. The lane-level road condition surface generated by the method of this application is detailed down to the lane level and also has an irregular shape, providing better guidance. In addition to being flat and aligned, the left and right display effects of the road condition surface also feature smooth gradients between road conditions, greatly enhancing the visual appeal of the product and making the display of road condition information more consistent with real-world road scenarios. This improves the accuracy of road condition display and navigation accuracy.
[0221] In one specific embodiment, a user can use a navigation application on their device for travel navigation. (Reference) Figure 14 In (a), users can enter their destination in the search bar to view the geographic location of any location. (See reference) Figure 14 In (b), after the user enters "Mall A" in the search bar and starts the search, the interface displays the geographical location of Mall A and a "Route" control. The "Route" control is used to activate the route planning function. After the user clicks the "Route" control, the system will provide a route planning option. Figure 14 In section (c), the interface displays the navigation route from the starting point (the terminal's current location) to the destination (Shopping Mall A) and a "Start Navigation" control. After determining the target navigation route, the user can click the "Start Navigation" control to enter the 3D navigation screen. (Reference) Figure 14 (d) in the diagram displays the gradually changing road surface corresponding to the segment the user is currently entering on the target navigation route in the 3D navigation screen. As the user moves along the target navigation route, the interface displays a synchronized 3D navigation screen in real time.
[0222] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0223] Based on the same inventive concept, this application also provides a road condition display device for implementing the road condition display method described above. The solution provided by this device is similar to the solution described in the above method. Therefore, the specific limitations of one or more road condition display device embodiments provided below can be found in the limitations of the road condition display method above, and will not be repeated here.
[0224] In one embodiment, such as Figure 15 As shown, a road condition display device is provided, including: an initial navigation screen display module 1502 and a target navigation screen display module 1504, wherein:
[0225] The initial navigation screen display module 1502 is used to display the initial navigation screen and show the target navigation route on the initial navigation screen.
[0226] The target navigation screen display module 1504 is used to respond to navigation trigger events for the target navigation route, display the target navigation screen, and show the gradual road condition surface corresponding to the current road segment in the target navigation route on the target navigation screen.
[0227] The gradient road condition surface is used to indicate the process of the current road segment changing from the first road condition to the second road condition. The gradient road condition surface includes the first road condition texture corresponding to the first road condition, the second road condition texture corresponding to the second road condition, and the gradient road condition texture that gradually changes from the first road condition texture to the second road condition texture. The road condition transition range corresponding to the gradient road condition texture is determined by the road condition textures corresponding to the first and second road conditions and the road condition coverage range.
[0228] The aforementioned road condition display device uses a first road condition texture and a second road condition texture to distinguish different road conditions, and a gradient road condition texture to reflect the change process between different road conditions. The road condition coverage range and the road condition transition range can determine the coverage range of the road condition texture and the gradient road condition texture for different road conditions. The resulting gradient road condition surface can achieve a more refined display of road condition information and a smooth gradient effect between different road conditions, making the display of road condition information more consistent with the real road scene, thereby improving the accuracy of road condition display and navigation accuracy.
[0229] In one embodiment, the target navigation route is used to instruct the navigation object to travel along the target navigation route, and the initial navigation screen includes a navigation start control, which is used to respond to navigation trigger events.
[0230] The target navigation screen display module is also used to respond to the trigger operation of the navigation start control and display the target navigation screen. The target navigation screen displays the gradual road condition surface corresponding to the current road segment that the navigation object is about to enter. The current road segment is a road segment determined from the target navigation route based on the current location of the navigation object. The target navigation screen is a three-dimensional navigation screen determined from the current navigation viewpoint of the navigation object at the current location of the navigation object.
[0231] In one embodiment, the target navigation screen display module is further configured to, when the navigation object moves along the target navigation route, sequentially display the gradually changing road conditions corresponding to each road segment that the navigation object is to enter in sequence on the target navigation screen that changes synchronously with the movement of the navigation object.
[0232] In one embodiment, the target navigation screen display module is further configured to respond to the selection operation of the target road segment in each road segment of the target navigation route, and display a reference navigation screen, on which the gradient road condition surface corresponding to the target road segment is displayed; the reference navigation screen is a three-dimensional navigation screen determined by a preset navigation perspective at the road segment location where the target road segment is located.
[0233] In one embodiment, the initial navigation screen display module is further configured to display a global road condition surface corresponding to the target navigation route on the initial navigation screen; the global road condition surface is used to indicate the various road conditions involved in the target navigation route, and the global road condition surface includes the initial road condition texture corresponding to each road condition.
[0234] In one embodiment, the target navigation screen display module is further configured to refresh and display the gradient road condition surface as an updated road condition surface when the road conditions of the current road segment change; the updated road condition surface is used to indicate the updated road conditions of the current road segment.
[0235] In one embodiment, the target navigation screen display module is further configured to display a first texture color corresponding to a first road condition in the starting area of the current road segment; display a transition texture color that gradually changes from the first texture color to a second texture color between the starting area and the ending area of the current road segment; the transition texture color includes a dynamic number of gradient texture colors, the number of gradient texture colors being determined based on the road condition transition range; and display a second texture color corresponding to a second road condition in the ending area of the current road segment.
[0236] In one embodiment, such as Figure 16 As shown, a road condition processing device is provided, including: a road condition data acquisition module 1602, a road condition transition range determination module 1604, a gradual road condition texture determination module 1506, and a road segment texture data determination module 1608, wherein:
[0237] The road condition data acquisition module 1602 is used to acquire the initial road condition texture and road condition coverage area corresponding to the first and second road conditions involved in the current road segment, respectively.
[0238] The road condition transition range determination module 1604 is used to determine the road condition transition range between the first road condition and the second road condition based on the initial road condition texture and road condition coverage range corresponding to the first road condition and the second road condition, respectively.
[0239] The gradient road condition texture determination module 1606 is used to adjust the road condition texture from the initial road condition texture corresponding to the first road condition to the initial road condition texture corresponding to the second road condition, so as to obtain the gradient road condition texture corresponding to the road condition transition range.
[0240] The road segment texture data determination module 1608 is used to obtain the road segment texture data corresponding to the current road segment based on the initial road condition texture and the corresponding road condition coverage range, the gradient road condition texture and the corresponding road condition transition range; the road segment texture data is used to generate the gradient road condition surface corresponding to the current road segment, and the gradient road condition surface is used to indicate the process of the current road segment changing from the first road condition to the second road condition.
[0241] The aforementioned road condition processing device can generate a gradient road condition surface based on road segment texture data obtained from initial road condition texture, gradient road condition texture, road condition coverage range, and road condition transition range. The initial road condition texture is used to distinguish different road conditions, while the gradient road condition texture is used to reflect the change process between different road conditions. The road condition coverage range and road condition transition range can determine the coverage range of the initial road condition texture and the gradient road condition texture. The resulting gradient road condition surface can achieve a more refined display of road condition information and a smooth gradient effect between different road conditions, making the display of road condition information more consistent with the real road scene, thereby improving the accuracy of road condition display and navigation accuracy.
[0242] In one embodiment, the road condition transition range determination module is further configured to determine a target coverage range from the road condition coverage ranges corresponding to the first road condition and the second road condition, respectively; determine the road condition span based on the difference between the initial road condition textures corresponding to the first road condition and the second road condition; obtain the road condition texture gradient radius based on the road condition gradient reference range and the target coverage range corresponding to the road condition span; and obtain the road condition transition range based on the road condition boundary position of the first road condition and the second road condition and the road condition texture gradient radius.
[0243] In one embodiment, the gradient road texture determination module is also used to determine the target location point from the various location points included in the road transition range;
[0244] Based on the distance between the target location and the starting location of the road condition transition range, determine the change in road condition texture of the target location relative to the starting location. Based on the initial road condition texture and the change in road condition texture corresponding to the starting location, obtain the target road condition texture corresponding to the target location. From each location point included in the road condition transition range, obtain the next location point as the target location point, and return the execution of the step of determining the change in road condition texture of the target location relative to the starting location based on the distance between the target location and the starting location of the road condition transition range, until the target road condition textures corresponding to each location point included in the road condition transition range are obtained. Based on the target road condition textures corresponding to each location point, obtain the gradient road condition texture corresponding to the road condition transition range.
[0245] In one embodiment, the traffic management device further includes:
[0246] The texture sampling ratio determination module is used to obtain the edge point positions of each road edge point corresponding to the current road segment, and determine the texture sampling ratio corresponding to the road edge point based on the edge point positions.
[0247] The target road condition texture determination module is used to perform texture sampling in the road segment texture data based on the texture sampling ratio corresponding to the road edge point, so as to obtain the target road condition texture corresponding to each road edge point.
[0248] The gradient road surface generation module is used to generate gradient road surfaces based on the target road texture and the position of each road edge point.
[0249] In one embodiment, road edge points include left road edge points and right road edge points. The texture sampling ratio determination module is further used to calculate the proportion of each cumulative distance on the right road edge based on the cumulative distance of each right road edge point from the starting point of the right road edge, thereby obtaining the texture sampling ratio corresponding to each right road edge point; based on the texture sampling ratio corresponding to the right road edge point, the edge point position, and the edge point position corresponding to the left road edge point, the left road edge points are proportionally aligned to obtain the texture sampling ratio corresponding to each left road edge point.
[0250] In one embodiment, the texture sampling ratio determination module is further used to obtain the road centerline corresponding to the current road segment; based on the road centerline, the current road segment is divided into regions to obtain at least two regions; based on the texture sampling ratio, edge point position and left edge point position corresponding to the right edge point of the road in the same region, the left edge point of the road in the region is proportionally aligned to obtain the texture sampling ratio corresponding to each left edge point of the road.
[0251] In one embodiment, the texture sampling ratio determination module is further used to sample the road centerline to obtain multiple center sampling points; determine the dividing line direction based on the center sampling points and their corresponding adjacent sampling points to obtain the dividing line direction corresponding to each center sampling point; generate a region dividing line along the dividing line direction of the center sampling points to obtain the region dividing line corresponding to each center sampling point; and divide the current road segment into regions based on each region dividing line to obtain at least two regions.
[0252] In one embodiment, the texture sampling ratio determination module is further configured to perform equidistant sampling on the road centerline to obtain multiple center sampling points. The texture sampling ratio determination module is also configured to dynamically sample the road centerline according to its curvature to obtain multiple center sampling points.
[0253] In one embodiment, the texture sampling ratio determination module is further configured to:
[0254] Using the starting and ending points of the left-hand road line in the current region as the current left-hand start and end points, and the starting and ending points of the right-hand road line in the current region as the current right-hand start and end points; using the texture sampling ratio corresponding to the current right-hand start point as the texture sampling ratio corresponding to the current left-hand start point, and the texture sampling ratio corresponding to the current right-hand end point as the texture sampling ratio corresponding to the current left-hand end point; calculating the distance ratio corresponding to the current left-hand point based on the cumulative distances from the current left-hand point to the current left-hand start point and the current left-hand end point in the current region; obtaining the initial sampling ratio corresponding to the current left-hand point based on the texture sampling ratios corresponding to the current left-hand start point and the current left-hand end point, and the distance ratio corresponding to the current left-hand point; adjusting the initial sampling ratio corresponding to the current left-hand point based on the lengths of the left-hand and right-hand roads in the current region, to obtain the texture sampling ratio corresponding to the current left-hand point.
[0255] Each module in the aforementioned traffic condition display device and traffic condition processing device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device in hardware form, or stored in the memory of a computer device in software form, so that the processor can call and execute the corresponding operations of each module.
[0256] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 17As shown, this computer device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operating system and computer programs stored in the non-volatile storage media. The database stores data such as road condition textures and navigation perspectives. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communication with external terminals via a network connection. When the computer program is executed by the processor, it implements a road condition display method.
[0257] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 18 As shown, the computer device includes a processor, memory, input / output interface, communication interface, display unit, and input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interface. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage medium. The input / output interface is used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a traffic condition display method and a traffic condition processing method. The display unit of the computer device is used to form a visually visible image. It can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.
[0258] Those skilled in the art will understand that Figure 17 , 18The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0259] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.
[0260] In one embodiment, a computer-readable storage medium is provided storing a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[0261] In one embodiment, a computer program product or computer program is provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and executes the computer instructions, causing the computer device to perform the steps in the above method embodiments.
[0262] 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, and the collection, use and processing of the relevant data shall comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0263] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0264] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0265] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A method for displaying road conditions, characterized in that, The method includes: Display the initial navigation screen, and show the target navigation route on the initial navigation screen; In response to a navigation trigger event for the target navigation route, a target navigation screen is displayed, showing the gradient road surface corresponding to the current road segment in the target navigation route. The gradient road condition surface is used to indicate the process of the current road segment changing from a first road condition to a second road condition. The gradient road condition surface includes a first road condition texture corresponding to the first road condition, a second road condition texture corresponding to the second road condition, and a gradient road condition texture that gradually transitions from the first road condition texture to the second road condition texture. The road condition transition range corresponding to the gradient road condition texture is determined by the road condition textures and road condition coverage ranges corresponding to the first and second road conditions. The road condition textures are used to visually reflect the road congestion situation. The gradient road condition textures are used to visually present the gradient transition effect between road conditions during display. The road condition transition range is used to indicate the coverage range of the gradient road condition texture on the road segment, and is determined based on the difference between the first and second road conditions in the initial road condition texture and road condition coverage range.
2. The method according to claim 1, characterized in that, The target navigation route is used to instruct the navigation object to travel and navigate according to the target navigation route. The initial navigation screen includes a navigation launch control, which is used to respond to the navigation trigger event. The step of responding to a navigation trigger event for the target navigation route by displaying a target navigation screen, and showing the gradient road condition surface corresponding to the current road segment in the target navigation route on the target navigation screen, includes: In response to a trigger operation on the navigation launch control, a target navigation screen is displayed, showing a gradient road surface corresponding to the current road segment that the navigation object is about to enter. The current road segment is a road segment determined from the target navigation route based on the current location of the navigation object. The target navigation screen is a three-dimensional navigation screen determined from the current navigation viewpoint corresponding to the current location of the navigation object.
3. The method according to claim 2, characterized in that, The method further includes: As the navigation object moves along the target navigation route, the target navigation screen, which changes synchronously with the movement of the navigation object, displays in an orderly manner the gradually changing road conditions corresponding to each road segment that the navigation object is to enter in sequence on the target navigation route.
4. The method according to claim 1, characterized in that, The method further includes: In response to the selection operation of the target road segment among the various road segments of the target navigation route, a reference navigation screen is displayed, on which the gradient road condition surface corresponding to the target road segment is displayed; the reference navigation screen is a three-dimensional navigation screen determined by a preset navigation perspective at the location of the target road segment.
5. The method according to claim 1, characterized in that, The method further includes: The global traffic condition surface corresponding to the target navigation route is displayed on the initial navigation screen; the global traffic condition surface is used to indicate the various traffic conditions involved in the target navigation route, and the global traffic condition surface includes the initial traffic condition texture corresponding to each traffic condition.
6. The method according to claim 1, characterized in that, The method further includes: When the road conditions of the current road segment change, the gradient road condition surface is refreshed and displayed as an updated road condition surface; the updated road condition surface is used to indicate the updated road conditions of the current road segment.
7. The method according to claim 1, characterized in that, The step of displaying the gradient road condition surface corresponding to the current road segment in the target navigation route on the target navigation screen includes: The first texture color corresponding to the first road condition is displayed in the starting area of the current road segment; Between the start and end areas of the current road segment, a transition texture color is displayed that gradually changes from the first texture color to the second texture color; the transition texture color includes a dynamic number of gradient texture colors, the number of which is determined based on the road condition transition range; The second texture color corresponding to the second road condition is displayed in the termination area of the current road segment.
8. A road condition handling method, characterized in that, The method further includes: Obtain the initial road condition texture and road condition coverage area corresponding to the first and second road conditions involved in the current road segment, respectively; Based on the initial road condition texture and road condition coverage area corresponding to the first road condition and the second road condition respectively, the road condition transition range between the first road condition and the second road condition is determined; the road condition transition range is used to indicate the coverage area of the gradient road condition texture on the road segment, and is determined based on the difference between the first road condition and the second road condition in the initial road condition texture and road condition coverage area. The road condition texture is gradually adjusted from the initial road condition texture corresponding to the first road condition to the initial road condition texture corresponding to the second road condition, resulting in a gradient road condition texture corresponding to the road condition transition range. The road condition texture is used to visually reflect the road congestion situation; the gradient road condition texture is used to visually present the gradient transition effect between road conditions when displayed. Based on the initial road condition texture and the corresponding road condition coverage area, the gradient road condition texture and the corresponding road condition transition area, the road segment texture data corresponding to the current road segment is obtained; the road segment texture data is used to generate the gradient road condition surface corresponding to the current road segment, and the gradient road condition surface is used to indicate the process of the current road segment changing from the first road condition to the second road condition.
9. The method according to claim 8, characterized in that, The step of determining the road condition transition range between the first road condition and the second road condition based on the initial road condition texture and road condition coverage area corresponding to the first road condition and the second road condition respectively includes: Determine the target coverage area from the coverage areas corresponding to the first road condition and the second road condition, respectively; The road condition span is determined based on the difference between the initial road condition textures corresponding to the first road condition and the second road condition. Based on the road condition gradient reference range corresponding to the road condition span and the target coverage range, the road condition texture gradient radius is obtained; The road condition transition range is obtained based on the road condition boundary position between the first road condition and the second road condition and the road condition texture gradient radius.
10. The method according to claim 8, characterized in that, The step of adjusting the road condition texture from the initial road condition texture corresponding to the first road condition to the initial road condition texture corresponding to the second road condition, to obtain the gradient road condition texture corresponding to the road condition transition range, includes: Determine the target location from the various location points included in the road condition transition range; Based on the distance between the target location point and the starting location point of the road condition transition range, the amount of road condition texture change of the target location point relative to the starting location point is determined; Based on the initial road condition texture corresponding to the starting position point and the change amount of the road condition texture, the target road condition texture corresponding to the target position point is obtained; The next location point is obtained from each location point included in the road condition transition range as the target location point. The step of determining the change in road condition texture of the target location point relative to the starting location point based on the distance between the target location point and the starting location point of the road condition transition range is performed until the target road condition texture corresponding to each location point included in the road condition transition range is obtained. Based on the target road condition texture corresponding to each location point, the gradient road condition texture corresponding to the road condition transition range is obtained.
11. The method according to claim 8, characterized in that, The method further includes: Obtain the edge point positions of each road edge point corresponding to the current road segment, and determine the texture sampling ratio corresponding to the road edge point based on the edge point positions; Based on the texture sampling ratio corresponding to the road edge points, texture sampling is performed in the road segment texture data to obtain the target road condition texture corresponding to each road edge point. The gradient road surface is generated based on the target road condition texture and the position of each road edge point.
12. The method according to claim 11, characterized in that, The road edge points include the left edge point and the right edge point; The determination of the texture sampling ratio corresponding to the road edge point based on the edge point position includes: Based on the cumulative distance of each right-side line point from the starting point of the right-side line of the road, the length ratio of each cumulative distance on the right-side line of the road is calculated to obtain the texture sampling ratio corresponding to each right-side line point of the road. Based on the texture sampling ratio and edge point position corresponding to the right edge point of the road and the edge point position corresponding to the left edge point of the road, the left edge point of the road is proportionally aligned to obtain the texture sampling ratio corresponding to each left edge point of the road.
13. The method according to claim 12, characterized in that, The method involves aligning the left-side line points based on the texture sampling ratio and position of the right-side line point, and the position of the left-side line point, to obtain the texture sampling ratio for each left-side line point. This includes: Obtain the centerline of the road corresponding to the current road segment; Based on the road centerline, the current road segment is divided into regions to obtain at least two regions; Based on the texture sampling ratio, edge point position, and edge point position of the right-side line point of the road in the same area, the left-side line points of the road in the area are proportionally aligned to obtain the texture sampling ratio corresponding to each left-side line point of the road.
14. The method according to claim 13, characterized in that, The current road segment is divided into regions based on the road centerline, resulting in at least two regions, including: The centerline of the road is sampled to obtain multiple center sampling points; The direction of the dividing line is determined based on the central sampling point and its corresponding adjacent sampling points, thus obtaining the direction of the dividing line corresponding to each central sampling point. Generate region segmentation lines along the dividing line direction along the central sampling point to obtain the region segmentation lines corresponding to each central sampling point; Based on the dividing lines of each region, the current road segment is divided into regions to obtain at least two regions.
15. The method according to claim 14, characterized in that, The method for determining the central sampling point includes any one of the following: Multiple center sampling points are obtained by sampling the centerline of the road at equal intervals; Based on the curvature of the road centerline, the road centerline is dynamically sampled to obtain multiple center sampling points.
16. The method according to claim 13, characterized in that, The method involves aligning the left-side road points in the same region based on the texture sampling ratio, edge point position, and edge point position corresponding to the right-side road points, as well as the left-side road points, to obtain the texture sampling ratios for each left-side road point. This includes: Take the starting point and ending point of the left side line of the road in the current area as the current left side line starting point and the current left side line ending point, and take the starting point and ending point of the right side line of the road in the current area as the current right side line starting point and the current right side line ending point. Use the texture sampling ratio corresponding to the current right edge start point as the texture sampling ratio corresponding to the current left edge start point, and use the texture sampling ratio corresponding to the current right edge end point as the texture sampling ratio corresponding to the current left edge end point. Based on the cumulative distances from the current left-side line point to the current left-side line start point and the current left-side line end point in the current region, calculate the distance ratio corresponding to the current left-side line point; Based on the texture sampling ratios corresponding to the current left edge start point and the current left edge end point, and the distance ratio corresponding to the current left edge point, the initial sampling ratio corresponding to the current left edge point is obtained; Based on the lengths of the left and right sides of the road corresponding to the current region, the initial sampling ratio corresponding to the current left side point is adjusted to obtain the texture sampling ratio corresponding to the current left side point.
17. A road condition display device, characterized in that, The device includes: The initial navigation screen display module is used to display the initial navigation screen and show the target navigation route on the initial navigation screen; The target navigation screen display module is used to respond to a navigation trigger event for the target navigation route, display the target navigation screen, and display the gradient road condition surface corresponding to the current road segment in the target navigation route on the target navigation screen; The gradient road condition surface is used to indicate the process of the current road segment changing from a first road condition to a second road condition. The gradient road condition surface includes a first road condition texture corresponding to the first road condition, a second road condition texture corresponding to the second road condition, and a gradient road condition texture that gradually transitions from the first road condition texture to the second road condition texture. The road condition transition range corresponding to the gradient road condition texture is determined by the road condition textures and road condition coverage ranges corresponding to the first and second road conditions. The road condition textures are used to visually reflect the road congestion situation. The gradient road condition textures are used to visually present the gradient transition effect between road conditions during display. The road condition transition range is used to indicate the coverage range of the gradient road condition texture on the road segment, and is determined based on the difference between the first and second road conditions in the initial road condition texture and road condition coverage range.
18. A road condition processing device, characterized in that, The device includes: The road condition data acquisition module is used to acquire the initial road condition texture and road condition coverage area corresponding to the first and second road conditions involved in the current road segment, respectively. The road condition transition range determination module is used to determine the road condition transition range between the first road condition and the second road condition based on the initial road condition texture and road condition coverage range corresponding to the first road condition and the second road condition, respectively; the road condition transition range is used to indicate the coverage range of the gradient road condition texture on the road segment, and is determined based on the difference between the first road condition and the second road condition in the initial road condition texture and road condition coverage range. The gradient road condition texture determination module is used to adjust the road condition texture from the initial road condition texture corresponding to the first road condition to the initial road condition texture corresponding to the second road condition, thereby obtaining the gradient road condition texture corresponding to the road condition transition range. The road condition texture is used to visually reflect the road congestion situation. The gradient road condition texture is used to visually present the gradient transition effect between road conditions when displayed. The road segment texture data determination module is used to obtain the road segment texture data corresponding to the current road segment based on the initial road condition texture and the corresponding road condition coverage range, the gradient road condition texture and the corresponding road condition transition range; the road segment texture data is used to generate the gradient road condition surface corresponding to the current road segment, and the gradient road condition surface is used to indicate the process of the current road segment changing from the first road condition to the second road condition.
19. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 16.
20. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 16.
21. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 16.
Citation Information
Patent Citations
Road condition displaying method and device applied in map and display apparatus
CN109425360A
Navigation route drawing method and related device
CN109724617A
Graphical user interface for mobile phones
CN304345057S