Rendering method, device and electronic device
By obtaining the positioning position of the navigation object, determining the target lane segment and adopting a differentiated rendering method, the problem of users having difficulty identifying navigation guidance information in lane-level navigation scenarios is solved, and the effect of users quickly identifying navigation information is achieved.
Patent Information
- Application Number
- CN202111146748.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-28
- Publication Date
- 2025-10-10
- Estimated Expiration
- 2041-09-28
AI Technical Summary
In lane-level navigation scenarios, it is difficult for users to quickly identify effective navigation guidance information.
By obtaining the positioning position of the navigation object, the target lane segment is determined, and different rendering methods are used to render the target lane segment according to the rendering element attributes of the lane segment, so that the rendering effect is different from that of other lane segments, thereby enhancing the user's recognition of navigation guidance information.
In lane-level navigation scenarios, users can quickly identify effective navigation guidance information, improving navigation visibility and accuracy.
Smart Images

Figure CN113868355B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of rendering technology, and in particular to a rendering method, device, and electronic device. Background Art
[0002] With the development and popularization of navigation technology, many users are accustomed to using applications with map navigation functions when traveling. Map navigation applications can plan navigation routes for users based on the starting and destination points entered by the user. During the user's travel, navigation is guided by the user's real-time location and the planned navigation route. However, as electronic maps have evolved from standard electronic maps to high-precision electronic maps, navigation has also evolved from road-level navigation to lane-level navigation. Since high-precision electronic maps provide richer and more detailed representations of roads, how to enable users to quickly identify effective navigation guidance information in lane-level navigation scenarios has become a problem that technicians in this field need to solve. Summary of the Invention
[0003] In view of this, embodiments of the present application provide a rendering method, apparatus, and electronic device to at least partially solve the above-mentioned problems.
[0004] According to a first aspect of an embodiment of the present application, a rendering method is provided, including: obtaining a positioning position of a navigated object; determining, based on the positioning position of the navigated object, a target lane segment included in a target road segment that the navigated object will enter within a set distance in front of the positioning position; determining, based on attributes of the rendering elements of the target lane segment, a rendering method for the rendering elements of the target lane segment; and, when rendering an electronic map, rendering the rendering elements of the target lane segment based on the rendering method for the rendering elements of the target lane segment, wherein the rendering effect of the rendering elements in the target lane segment is different from the rendering effects of the rendering elements of other lane segments in the electronic map.
[0005] According to a second aspect of an embodiment of the present application, a rendering device is provided, including: an acquisition module for acquiring the positioning position of a navigated object; a lane segment module for determining, based on the positioning position of the navigated object, a target lane segment included in a target road segment that the navigated object will enter within a set distance in front of the positioning position; a rendering module for determining a rendering method of a rendering element of the target lane segment based on attributes of the rendering element of the target lane segment; when rendering an electronic map, rendering elements of the target lane segment are rendered based on the rendering method of the rendering elements of the target lane segment, and a rendering effect of the target lane segment is different from the rendering effects of other rendering elements in the electronic map.
[0006] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform an operation corresponding to the rendering method of the first aspect.
[0007] According to a fourth aspect of the embodiments of the present application, a storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the rendering method of the first aspect is implemented.
[0008] According to a fifth aspect of the embodiments of the present application, a computer program product is provided. When the computer program product is executed by a processor, it implements the rendering method of the first aspect.
[0009] The rendering method, device, and electronic device provided in the embodiments of the present application obtain the location of a navigated object; based on the location of the navigated object, determine a target lane segment included in a target road segment that the navigated object will enter within a set distance in front of the location; determine a rendering method for the rendering elements of the target lane segment based on the attributes of the rendering elements of the target lane segment; and when rendering an electronic map, render the rendering elements of the target lane segment based on the rendering method of the rendering elements of the target lane segment, with the rendering effect of the rendering elements in the target lane segment being different from the rendering effects of the rendering elements of other lane segments in the electronic map. Because the rendering effect of the rendering elements in the target lane segment that the navigated object will enter is different from the rendering effects of the rendering elements of other lane segments in the electronic map, users can quickly identify navigation guidance information that is effective for them in lane-level navigation scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0011] Figure 1 A schematic diagram of a scene of a rendering method provided in Example 1 of the present application;
[0012] Figure 2 A flowchart of a rendering method provided in Example 1 of the present application;
[0013] Figure 3 A lane schematic diagram provided in Example 1 of this application;
[0014] Figure 4A structural diagram of a rendering device provided in Example 2 of the present application;
[0015] Figure 5 This is a structural diagram of an electronic device provided in Example 3 of the present application. DETAILED DESCRIPTION
[0016] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the embodiments of the present application, all other embodiments obtained by ordinary technicians in this field should fall within the scope of protection of the embodiments of the present application.
[0017] The specific implementation of the embodiment of the present application is further explained below in conjunction with the accompanying drawings of the embodiment of the present application.
[0018] Example 1
[0019] The first embodiment of the present application provides a rendering method, which is applied to a rendering device. For ease of understanding, the application scenario of the rendering method provided in the first embodiment of the present application is described. Figure 1 As shown, Figure 1 A scene diagram of a rendering method provided in Example 1 of the present application. Figure 1 The scene shown includes an electronic device 101, which can be a device that executes the rendering method provided in the first embodiment of the present application, that is, a rendering device.
[0020] The electronic device 101 can be a terminal device such as a vehicle-mounted terminal, a smart phone, a tablet computer, a laptop computer, etc. The electronic device 101 can access the network, connect to the cloud through the network, and interact with data. In this application, the network includes a local area network (LAN), a wide area network (WAN), and a mobile communication network; such as the World Wide Web (WWW), a long-term evolution (LTE), a 2G network (2nd Generation Mobile Network), a 3G network (3rd Generation Mobile Network), and a 5G network (5th Generation Mobile Network). The cloud can include various devices connected through the network, such as servers, relay devices, end-to-end (Device-to-Device, D2D) devices, etc. Of course, this is just an exemplary description and does not mean that the present application is limited to this.
[0021] Combine Figure 1 The scene shown in the figure details the rendering method provided in the first embodiment of the present application. It should be noted that: Figure 1 This is just one application scenario of the rendering method provided in Example 1 of this application, and does not mean that the rendering method must be applied to Figure 1 The scenario shown can be applied to electronic devices, see Figure 2 As shown, Figure 2 This is a flowchart of a rendering method provided in Example 1 of the present application, the method comprising the following steps:
[0022] Step 201: Obtain the location of the navigated object.
[0023] The object being navigated may be a vehicle driven or ridden by a user, or a terminal device held by the user. Optionally, the location of the object being navigated may be determined by a Global Navigation Satellite System (GNSS) positioning module on a vehicle-mounted terminal or terminal device, or in combination with a network positioning service. For example, the location of the vehicle may be determined by the vehicle-mounted terminal.
[0024] Step 202: Based on the positioning position of the navigated object, determine a target lane segment included in a target road segment that the navigated object will enter and is located within a set distance in front of the positioning position.
[0025] The set distance can be set according to specific conditions, for example, the set distance can be 20 meters, 50 meters, 100 meters, etc. The target lane segment can include all lane segments in the target road segment to be driven by the navigated object, or can include a part of the lane segments in the target road segment. For example, the target road segment has four lanes, and the target lane segment includes a certain segment of each lane, or a certain segment of two lanes in the forward direction, because the driving direction of the navigated object is straight. At the same time, the target lane segment can only include a part of the lane segment displayed on the current screen, or can include a part of the lane segment displayed on the current screen and a part of the lane segment that cannot be displayed on the current screen, and as the navigated object drives forward, these lane segments that cannot be displayed will gradually be displayed on the screen.
[0026] The following describes step 202 by taking two examples of navigation mode and cruise mode.
[0027] In the cruise mode, the target lane segment can be obtained by matching the positioning position of the navigated object with the lane-level road network data in the high-precision map. For example, the positioning position of the navigated object is matched with the target road segment in the high-precision map to obtain the target road segment where the positioning position is located, which includes eight lane segments, wherein the lane segments ABCD are same-direction lane segments, and the lane segments EFGH are same-direction lane segments but opposite to the driving direction of the lane segments ABCD. If the lane segment where the positioning position is located is the lane segment A, the lane segments ABCD belong to the target lane segment.
[0028] It should be noted that the target lane segment can be obtained by matching the positioning position with the lane-level road network data in the high-precision map, which can be performed by the terminal device based on the locally stored lane-level road network data, or the terminal device can send the positioning position to the cloud, and the cloud can complete the matching based on the lane-level road network data stored in the cloud to return the target lane segment, or the cloud can return the lane segment-level road network data related to the positioning position to the terminal device, and then the terminal device can complete the matching.
[0029] In the navigation mode, a navigation route of the navigated object can also be obtained, the navigation route being used to plan a driving route of the user from a starting point to an ending point, and the starting point and the ending point can be set by the user. In this example, the target lane segment can be a lane segment included in a target road segment along which the navigated object will drive in a set distance ahead of the positioning position in a driving direction of the navigated object along the navigation route, or a lane segment included in a target road segment covered by the navigation route in the set distance ahead of the positioning position, where the coverage refers to coverage to a part of the navigation route or the whole navigation route, and the target lane segment includes the lane segment in which the positioning position is located. Alternatively, how to determine the target lane segment is further illustrated by taking the high-definition map as an example. In the navigation mode, the method further includes: obtaining the navigation route of the navigated object.
[0030] Based on the positioning position of the navigated object, the target lane segment located in the set distance ahead of the positioning position and along which the navigated object will drive is determined, including: based on the positioning position of the navigated object and the navigation route, a common road segment located in the set distance ahead of the positioning position and along which the navigated object will drive is determined; based on a mapping relationship between the common road segment in the common map and the high-definition road segment in the high-definition map, a high-definition road segment corresponding to the common road segment along which the navigated object will drive is determined; and from the high-definition map, a lane segment included in the high-definition road segment is obtained as the target lane segment.
[0031] It should be noted that the mapping relationship between the common road segment in the common map and the high-definition road segment in the high-definition map can be mapped by road segment identifiers (English: Identifier, ID), for example, a mapping table between the common road segment and the high-definition road segment is established, the mapping table records road segment IDs of at least one common road segment and road segment IDs of at least one high-definition road segment, and the road segment IDs of the common road segment and the road segment IDs of the high-definition road segment are one-to-one corresponding.
[0032] Further optionally, the method further includes: based on a topological relationship of the high-definition road in the high-definition map, an exit lane segment of the target lane segment is obtained, and the exit lane segment is also taken as the target lane segment. In the navigation process, the target lane segment can be periodically confirmed for rendering, for example, one frame as a period, or 10 seconds, 20 seconds as a period, and the period length can be set according to specific conditions, which is not limited in the present application. Whether in the cruise mode or in the navigation mode, the rendering mode of the rendering element in the target road segment is the same, of course, it can also be applied in other modes, as long as the rendering effect of the rendering element of the target road segment is different from the rendering effect of the rendering element of other lane segments, the user can quickly identify the effective navigation guide information for the user.
[0033] It should be noted that, in this application, a lane segment can be a lane segment of a whole road section, or a lane segment of a part of a road section, such as Figure 3 As shown, Figure 3 A lane segment schematic diagram is provided for the first embodiment of the present application. A section of road includes two lane segments, namely AB and CD. There is an intersection in the middle of lane segment AB. From lane segment AB, you can turn right at the intersection to enter lane segment EF. The navigated object turns right from the current driving lane segment and enters lane segment AB. Turning right at the intersection of lane segment AB will enter lane segment EF. Therefore, in one example, lane segment AB and lane segment EF can both be used as target lane segments. In another example, lane segment AE and lane segment EF are target lane segments. This is just an example description and does not mean that the present application is limited to this.
[0034] Step 203: Determine a rendering mode for the rendering element of the target lane segment according to the attributes of the rendering element of the target lane segment.
[0035] The target lane segment is the lane segment whose display quality needs to be enhanced during the rendering process. Rendering elements in a navigation map include lane models, lane surfaces, lane markings, driving signs, and dedicated lane markings. A lane model is a 2D or 3D model of a lane in an electronic map, and a lane surface is the road surface of a lane segment. A lane segment may include at least one of the lane model, lane surface, and lane markings. Rendering a lane segment involves rendering at least one of the lane model, road surface, and lane markings. Lane markings may include solid white lines, dashed white lines, single solid yellow lines, single dashed yellow lines, double solid yellow lines, double dashed yellow lines, or solid and dashed yellow lines. Driving signs may include right turn signs, straight ahead signs, left turn signs, U-turn signs, minimum speed limit signs, and maximum speed limit signs drawn on the road surface. Dedicated lane markings may include emergency lane segment markings (entirely solid white lines), bus lane segment markings (entirely dashed yellow lines), tidal lane markings, and high-occupancy vehicle lane (HOV) markings. Each rendering element has different properties and is rendered in different ways.
[0036] Optionally, in a specific implementation, if the attributes of a rendering element are more conducive to indicating the target lane segment and / or more conducive to avoiding violations, the rendering mode of the rendering element is more significantly enhanced, and conversely, if the attributes of the rendering element are more conducive to indicating the target lane segment and / or more conducive to avoiding violations, the rendering mode of the rendering element is more significantly weakened. If the rendering element is more conducive to indicating the target lane segment and / or more conducive to avoiding violations, the closer the relationship between the rendering element and the target lane segment, the more significantly the rendering mode of the rendering element is enhanced, i.e., the display effect is more prominent.
[0037] In combination with the above description and specific implementation method, the specific implementation method is only an exemplary description and does not mean that the present application is limited thereto. It can help understand the following examples, but does not impose any limitation. It should also be noted that for non-target lane segments, the rendering method can be different from that of the target lane segment. The rendering elements of the target lane segment can be rendered with an enhanced effect, and the rendering elements of the non-target lane segment can be rendered with a weakened effect, so that the target lane segment is displayed more clearly. Here, taking the different rendering elements of the target lane segment and the non-target lane segment as an example, four specific examples are listed for explanation respectively.
[0038] Optionally, in a first example, a rendering mode for the target lane segment's rendering elements is determined based on the attributes of the target lane segment's rendering elements, including: determining, based on the attributes of the target lane segment's rendering elements, target rendering elements that affect driving behavior, and determining the rendering mode of the target rendering elements to be dynamic rendering. Dynamic rendering can include dynamic rendering modes such as flashing prompts, which can enhance the display effect. In the first example, the target rendering elements that affect the driving route can include at least one of lane segment markings, driving signs, and dedicated lane segment markings. For example, the rendering mode of the target lane segment's solid white line, dashed white line, or dedicated lane segment marking can be determined to be a flashing prompt. When displaying the electronic map, the target lane segment's solid white line, dashed white line, or dedicated lane segment marking will flash to alert the user.
[0039] For example, taking lane markings as an example, based on the attributes of the target lane segment's lane markings, a target lane marking element that affects driving behavior is determined. This includes determining the lane markings as the target lane marking element that affects driving behavior when the attributes of the lane markings in the target lane segment are any of: a long solid line, a dashed line, or a dedicated lane marking. In a specific scenario, the target lane segment contains target rendering elements and non-target rendering elements. The target rendering elements can be dynamically rendered, while the non-target rendering elements can be statically rendered. For example, taking the lane markings in the target lane segment as an example, if the dashed line is the target rendering element, the dashed line of the target lane segment can be rendered as a flashing line. In addition to the flashing lane markings, other lane markings, such as the long solid line, can be rendered statically. During rendering, the static and dynamically rendered portions can be rendered synchronously. In actual applications, the lane markings of the target lane segment displayed on the screen may include both a long solid line and a dashed line. In this case, the lane markings of the target lane segment that the user sees can be a flashing dashed line connected to the statically rendered long solid line. Of course, this is merely an example and does not limit the present application to this.
[0040] Optionally, in a second example, the attributes of the target lane segment's rendering element include the target lane segment's travel direction. Determining a rendering mode for the target lane segment's rendering element based on the attributes of the target lane segment's rendering element includes: When the target lane segment's travel direction is the same as the navigation object's travel direction, determining the rendering mode for the target lane segment's rendering element as dynamic enhancement, where the dynamic enhancement rendering mode includes at least one of drawing enhancement, color deepening, and transparency reduction, and the target lane segment's rendering element includes at least a lane model and lane markings. In the second example, where the rendering elements include the lane model and lane markings, determining the rendering mode for the target lane segment as dynamic enhancement allows users to more easily distinguish between the lane segment they are currently traveling in and the lane segment they are about to travel in.
[0041] The first and second examples illustrate enhancing the rendering of rendering elements in the target lane segment, while reducing the rendering of rendering elements in the non-target lane segment. Exemplarily, the method further includes: determining a rendering method for the non-target lane based on the road relationship between the non-target lane segment and the target lane segment; and rendering the non-target lane based on the determined rendering method.
[0042] Optionally, in the third example, the rendering method of the non-target lane is determined based on the road relationship between the target lane and the non-target lane, including: when the road relationship between the target lane segment and the target lane segment is in the opposite direction of travel, the rendering method of the non-target lane segment is determined to be dynamically weakened, and the dynamic weakening rendering method includes at least one of drawing weakening, color fading, and transparency enhancement. Compared with the third example, the non-enhanced lane segment is dynamically weakened, and the target lane segment is further highlighted to make it easier for users to identify. It should be noted that, in combination with the first example, the rendering method of the rendering elements that do not affect the driving route can also be determined to be dynamically weakened to make it easier for users to identify. It should also be noted that, optionally, in combination with the second example and the third example, a gradient processing of color and transparency can be performed between the target lane segment and the non-target lane segment to make the display effect more natural.
[0043] Optionally, in a fourth example, the rendering method of the non-target lane is determined based on the road relationship between the target lane and the non-target lane, including: determining whether the non-target lane segment is a lane of the upper road located above the target lane segment and forms an obstruction to the target lane segment; if so, determining the rendering method of the non-target lane segment to be transparent rendering. It should be noted that the obstruction of the target lane segment by the non-target lane segment here refers to the obstruction of the target lane segment by the non-target lane segment during the electronic map display process, that is, from the user's viewing angle. By determining the rendering method of the non-target lane segment to be transparent rendering, when the electronic map is displayed, from the user's viewing angle, the non-target lane segment will not form an obstruction to the target lane segment, making it easier for the user to identify.
[0044] It should be noted that the above four examples can be arbitrarily combined or implemented separately, and this application does not impose any restrictions on this, and the execution order of the four examples is also not limited.
[0045] Step 204 : When rendering the electronic map, render the rendering element of the target lane segment according to the rendering mode of the rendering element of the target lane segment.
[0046] The rendering effect of the rendering elements in the target lane segment is different from the rendering effects of the rendering elements in other lane segments on the electronic map. This difference in rendering effect is reflected in the fact that the rendering elements in the target lane segment are more prominent (obvious) than those in other lane segments, making them easier for users to identify. The specific rendering effect has been described above and will not be repeated here. In conjunction with the description of step 203, the rendering elements can be rendered in batches, and rendering elements with the same rendering method are rendered in the same batch.
[0047] The rendering method provided in an embodiment of the present application obtains the location of a navigated object; based on the location of the navigated object, determines a target lane segment included in a target road segment that the navigated object will enter within a set distance in front of the location; determines a rendering method for the rendering elements of the target lane segment based on the attributes of the rendering elements of the target lane segment; and when rendering an electronic map, renders the rendering elements of the target lane segment based on the rendering method of the rendering elements of the target lane segment, with the rendering effect of the rendering elements in the target lane segment being different from the rendering effects of the rendering elements of other lane segments in the electronic map. Because the rendering effect of the rendering elements in the target lane segment that the navigated object will enter is different from the rendering effects of the rendering elements of other lane segments in the electronic map, users can quickly identify navigation guidance information that is effective for them in lane-level navigation scenarios.
[0048] Example 2
[0049] Based on the method described in the above embodiment 1, the second embodiment of the present application provides a rendering device for executing the method described in the above embodiment 1, referring to Figure 4 As shown, the rendering device 40 includes:
[0050] The acquisition module 401 is used to acquire the location of the navigated object.
[0051] The lane segment module 402 is configured to determine, based on the positioning position of the navigated object, a target lane segment included in a target road segment that the navigated object will enter and that is located within a set distance ahead of the positioning position.
[0052] The rendering module 403 is configured to determine a rendering mode for the rendering element of the target lane segment based on the attributes of the rendering element of the target lane segment. When rendering the electronic map, the rendering element of the target lane segment is rendered based on the rendering mode of the rendering element of the target lane segment. The rendering effect of the target lane segment is different from the rendering effects of other rendering elements in the electronic map.
[0053] Optionally, in a specific example, if the attributes of the rendering element are more conducive to indicating the target lane segment and / or more conducive to avoiding illegal behavior, the rendering mode of the rendering element is more obviously enhanced, and conversely, the rendering mode of the rendering element is more obviously weakened.
[0054] Optionally, in a specific example, the rendering module 403 is configured to determine a target rendering element that affects the driving behavior according to the attributes of the rendering element of the target lane segment, and determine the rendering mode of the target rendering element to be dynamic rendering.
[0055] Optionally, in a specific example, the rendering module 403 is configured to determine the lane marking as a target rendering element that affects driving behavior when the attribute of the lane marking of the target lane segment is any one of a long solid line, a dashed line, and a dedicated lane marking.
[0056] Optionally, in a specific example, the rendering module 403 is used to determine the rendering mode of the rendering elements of the target lane segment as dynamic enhancement when the travel direction of the target lane segment is the same as the travel direction of the navigated object. The dynamic enhancement rendering mode includes at least one of drawing enhancement, color deepening, and transparency reduction. The rendering elements of the target lane segment include at least a lane model and lane markings.
[0057] Optionally, in a specific example, the rendering module 403 is used to determine a rendering method for the non-target lane according to a road relationship between the non-target lane segment and the target lane segment; and render the non-target lane according to the determined rendering method for the non-target lane.
[0058] Optionally, in a specific example, the rendering module 403 is used to determine the rendering mode of the non-target lane segment as dynamic attenuation when the road relationship between the target lane segment and the target lane segment is opposite to the travel direction. The dynamic attenuation rendering mode includes at least one of drawing attenuation, color fading, and transparency enhancement.
[0059] Optionally, in a specific example, the rendering module 403 is used to determine whether the non-target lane segment is a lane of the upper road located above the target lane segment and forms an occlusion on the target lane segment. If so, the rendering method of the non-target lane segment is determined to be transparent rendering.
[0060] Optionally, in a specific example, the acquisition module 401 is further used to obtain the navigation route of the navigated object; the lane segment module 402 is used to determine, based on the positioning position and navigation route of the navigated object, the ordinary road segment that the navigated object will enter within a set distance in front of the positioning position; based on the mapping relationship between the ordinary road segments in the ordinary map and the high-precision road segments in the high-precision map, determine the high-precision road segment corresponding to the ordinary road segment that the navigated object will enter; and from the high-precision map, obtain the lane segment contained in the high-precision road segment as the target lane segment.
[0061] The rendering device provided in an embodiment of the present application obtains the location of a navigated object; based on the location of the navigated object, determines a target lane segment included in a target road segment that the navigated object will enter within a set distance in front of the location; determines a rendering method for the rendering elements of the target lane segment based on the attributes of the rendering elements of the target lane segment; and when rendering an electronic map, renders the rendering elements of the target lane segment based on the rendering method of the rendering elements of the target lane segment, rendering the rendering elements in the target lane segment differently from the rendering effects of the rendering elements of other lane segments in the electronic map. Because the rendering effects of the rendering elements in the target lane segment that the navigated object will enter are different from the rendering effects of the rendering elements of other lane segments in the electronic map, users can quickly identify navigation guidance information that is effective for them in lane-level navigation scenarios.
[0062] Example 3
[0063] Based on the method described in the above embodiment 1, the third embodiment of the present application provides an electronic device for executing the method described in the above embodiment 1, referring to Figure 5 , shows a structural diagram of an electronic device according to Example 3 of the present application. The specific embodiments of the present application do not limit the specific implementation of the electronic device.
[0064] like Figure 5As shown, the electronic device 50 may include: a processor (processor) 502 , a communication interface (Communications Interface) 504 , a memory (memory) 506 , and a communication bus 508 .
[0065] in:
[0066] The processor 502 , the communication interface 504 , and the memory 506 communicate with each other via a communication bus 508 .
[0067] The communication interface 504 is used to communicate with other electronic devices or servers.
[0068] The processor 502 is configured to execute the program 510 , and specifically to execute the relevant steps in the above-mentioned rendering method embodiment.
[0069] Specifically, the program 510 may include program codes, which include computer operation instructions.
[0070] Processor 502 may be a CPU (Central Processing Unit), an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the smart device may be processors of the same type, such as one or more CPUs, or may be processors of different types, such as one or more CPUs and one or more ASICs.
[0071] The memory 506 is used to store the program 510. The memory 506 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0072] Program 510 can be specifically configured to cause processor 502 to execute and implement the rendering method described in Embodiment 1. The specific implementation of each step in program 510 can be found in the corresponding descriptions of the corresponding steps and units in the aforementioned rendering method embodiment, and will not be repeated here. Those skilled in the art will clearly understand that, for ease and brevity of description, the specific operating processes of the devices and modules described above can refer to the corresponding process descriptions in the aforementioned method embodiment, and will not be repeated here.
[0073] An electronic device provided in an embodiment of the present application obtains the location of a navigated object; based on the location of the navigated object, determines a target lane segment included in a target road segment that the navigated object will enter within a set distance in front of the location; determines a rendering method for the rendering element of the target lane segment based on the attributes of the rendering element of the target lane segment; and when rendering an electronic map, renders the rendering element of the target lane segment based on the rendering method of the rendering element of the target lane segment, rendering the rendering element in the target lane segment differently from the rendering elements of other lane segments in the electronic map. Because the rendering effect of the rendering element in the target lane segment that the navigated object will enter is different from the rendering effects of the rendering elements of other lane segments in the electronic map, a user can quickly identify navigation guidance information that is effective for the user in a lane-level navigation scenario.
[0074] Example 4
[0075] Based on the method described in the above-mentioned embodiment 1, embodiment 4 of the present application provides a computer storage medium on which a computer program is stored. When the program is executed by a processor, the method described in embodiment 1 is implemented.
[0076] Example 5
[0077] Based on the method described in the above-mentioned embodiment 1, embodiment 5 of the present application provides a computer program product, which implements the method described in embodiment 1 when executed by a processor.
[0078] It should be pointed out that, according to the needs of implementation, the various components / steps described in the embodiments of the present application can be split into more components / steps, or two or more components / steps or partial operations of components / steps can be combined into new components / steps to achieve the purpose of the embodiments of the present application.
[0079] The above-described method according to the embodiment of the present application can be implemented in hardware, firmware, or as software or computer code that can be stored in a recording medium (such as a CD ROM, RAM, floppy disk, hard disk or magneto-optical disk), or as computer code that is originally stored in a remote recording medium or a non-temporary machine-readable medium downloaded via a network and will be stored in a local recording medium, so that the method described herein can be stored in such software processing on a recording medium using a general-purpose computer, a dedicated processor or programmable or dedicated hardware (such as an ASIC or FPGA). It is understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component (e.g., RAM, ROM, flash memory, etc.) that can store or receive software or computer code, and when the software or computer code is accessed and executed by a computer, a processor or hardware, the navigation method described herein is implemented. In addition, when a general-purpose computer accesses the code for implementing the navigation method shown herein, the execution of the code converts the general-purpose computer into a dedicated computer for executing the navigation method shown herein.
[0080] Those skilled in the art will appreciate that the units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of this application.
[0081] The above implementation methods are only used to illustrate the embodiments of the present application, and are not intended to limit the embodiments of the present application. Ordinary technicians in the relevant technical field can make various changes and modifications without departing from the spirit and scope of the embodiments of the present application. Therefore, all equivalent technical solutions also fall within the scope of the embodiments of the present application, and the scope of patent protection of the embodiments of the present application should be defined by the claims.
Claims
1. A rendering method, wherein: include: Get the location of the navigated object; determining, based on the positioning position of the navigated object, a target lane segment included in a target road segment that the navigated object will enter and that is located within a set distance in front of the positioning position; determining a rendering mode of the rendering element of the target lane segment according to an attribute of the rendering element of the target lane segment, wherein if the attribute of the rendering element is more conducive to indicating the target lane segment and / or more conducive to avoiding illegal behavior, the rendering mode of the rendering element is enhanced more significantly, and conversely, if the attribute of the rendering element is less conducive to indicating the target lane segment and / or more conducive to avoiding illegal behavior, the rendering mode of the rendering element is weakened more significantly; When rendering the electronic map, the rendering elements of the target lane segment are rendered according to the rendering mode of the rendering elements of the target lane segment, and the rendering effect of the rendering elements in the target lane segment is different from the rendering effect of the rendering elements of the non-target lane segments in the electronic map.
2. The method according to claim 1, wherein The determining, according to the attribute of the rendering element of the target lane segment, a rendering mode of the rendering element of the target lane segment includes: According to the attributes of the rendering elements of the target lane segment, a target rendering element having an impact on the driving behavior is determined, and the rendering mode of the target rendering element is determined to be dynamic rendering.
3. The method according to claim 1, wherein The attributes of the rendering element of the target lane segment include the travel direction of the target lane segment, and determining the rendering mode of the rendering element of the target lane segment according to the attributes of the rendering element of the target lane segment includes: When the travel direction of the target lane segment is the same as the travel direction of the navigated object, the rendering mode of the rendering elements of the target lane segment is determined to be dynamic enhancement, and the dynamic enhancement rendering mode includes at least one of drawing enhancement, color deepening, and transparency reduction. The rendering elements of the target lane segment include at least a lane model and lane markings.
4. The method according to claim 1, wherein The method further comprises: determining a rendering method of the non-target lane according to a road relationship between the non-target lane segment and the target lane segment; The non-target lane is rendered according to the determined rendering mode of the non-target lane.
5. The method according to claim 4, wherein The determining of the rendering mode of the non-target lane segment according to the road relationship between the target lane segment and the non-target lane segment includes: When the road relationship between the target lane segment and the non-target lane segment is in opposite directions, the rendering mode of the non-target lane segment is determined to be dynamically reduced, and the dynamically reduced rendering mode includes at least one of drawing reduction, color fading, and transparency enhancement.
6. The method according to claim 4, wherein: Based on the road relationship between the target lane and the non-target lane, the rendering method of the non-target lane is determined, including: Determine whether the non-target lane segment is a lane of an upper road located above the target lane segment and blocks the target lane segment. If so, determine the rendering mode of the non-target lane segment as transparent rendering.
7. The method according to any one of claims 1 to 6, wherein: The method further comprises: Obtaining a navigation route of the navigated object; Determining, based on the positioning position of the navigated object, a target lane segment that the navigated object will enter within a set distance in front of the positioning position, includes: determining, based on the positioning position of the navigated object and the navigation route, a common road segment that the navigated object will enter within a set distance in front of the positioning position; Determining, based on a mapping relationship between ordinary road segments in an ordinary map and high-precision road segments in an HD map, a high-precision road segment corresponding to the ordinary road segment that the navigated object will enter; From the high-precision map, a lane segment included in the high-precision road segment is obtained as the target lane segment.
8. The method according to claim 7, wherein: The method further comprises: Based on the topological relationship of the high-precision roads in the high-precision map, an exit lane segment of the target lane segment is obtained, and the exit lane segment is also used as the target lane segment.
9. A rendering device, wherein: include: An acquisition module is used to obtain the location of the navigated object; A lane segment module is configured to determine, based on the positioning position of the navigated object, a target lane segment included in a target road segment that the navigated object will enter and is located within a set distance in front of the positioning position; a rendering module configured to determine a rendering mode for the rendering element of the target lane segment based on attributes of the rendering element of the target lane segment, wherein the rendering mode of the rendering element is enhanced more significantly if the attributes of the rendering element are more conducive to indicating the target lane segment and / or more conducive to avoiding illegal behavior, and conversely, the rendering mode of the rendering element is weakened more significantly if the attributes of the rendering element are less conducive to indicating the target lane segment; and when rendering an electronic map, the rendering element of the target lane segment is rendered based on the rendering mode of the rendering element of the target lane segment, wherein the rendering effect of the rendering element of the target lane segment is different from the rendering effect of the rendering elements of non-target lane segments in the electronic map.
10. An electronic device comprising: A processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute an operation corresponding to the rendering method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Indication information display method and device, navigation equipment and storage medium
CN111256725A
Methods and systems of providing lane information using a navigation apparatus
CN111344535A
Rendering apparatus based on precise map data and method thereof
KR1020190037029A