Navigation map rendering method and device
By determining the current display area and transparency based on vehicle positioning data in the navigation map, gradient rendering of the navigation map is achieved, which solves the complex problem of the traditional navigation map interface and improves driving safety and efficiency.
Patent Information
- Application Number
- CN202411824777.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-11
- Publication Date
- 2025-04-01
AI Technical Summary
When traditional navigation maps display routes, they will render the entire base map, resulting in too much irrelevant information and complicate the navigation interface, affecting driving safety and efficiency.
By determining the current display area of the map base map based on the vehicle's current positioning data, calculating the transparency of the points between the maximum visual range and the boundary of the current display area, the gradient rendering of the navigation map is realized, and only information related to the current driving route is displayed.
The navigation interface is simplified, the driver's burden of processing irrelevant information is reduced, driving safety and efficiency is improved, and the visibility and intuitiveness of the navigation interface is enhanced through gradient rendering technology.
Smart Images

Figure CN119741397A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of big data technology, and in particular to the field of map navigation technology. Background Art
[0002] GPS (Global Positioning System) navigation map is a set of software used for navigation on GPS devices. It is mainly used for route planning and navigation functions.
[0003] From the perspective of composition, navigation maps are composed of roads, backgrounds, annotations and POIs (Point of Interest). Of course, there can be many special features, such as 3D intersection enlarged images, 3D buildings, etc., which are all special features of navigation maps. From the perspective of functional performance, navigation maps need to have the functions of positioning display, indexing, path calculation and guidance.
[0004] Traditional navigation maps display a complete base map. The navigation route actually only involves a small area of the base map. In addition to displaying the navigation route, the base map will also render and display all other areas of the navigation route, including but not limited to map information such as buildings, text, and bubbles. Summary of the invention
[0005] The embodiments of the present disclosure provide a navigation map rendering method, apparatus, device, storage medium, and program product.
[0006] In a first aspect, an embodiment of the present disclosure proposes a navigation map rendering method, including: determining a current display area of a map base map based on current positioning data of a vehicle; determining a visibility range radius based on the current positioning data and the current display area; calculating the transparency of points between the maximum visible range and a boundary of the current display area based on a maximum visible range and the visibility range radius; rendering the current display area based on a first preset transparency, rendering points between the maximum visible range and the boundary of the current display area based on the transparency, and rendering points outside the maximum visible range based on a second preset transparency, to obtain a navigation map.
[0007] In the second aspect, an embodiment of the present disclosure proposes a navigation map rendering device, comprising: a first determination module, configured to determine the current display area of the map base map based on the current positioning data of the vehicle; a second determination module, configured to determine the visibility range radius based on the current positioning data and the current display area; a calculation module, configured to calculate the transparency of the points between the maximum visible range and the boundary of the current display area based on the maximum visible range and the visibility range radius; a rendering module, configured to render the current display area based on a first preset transparency, render the points between the maximum visible range and the boundary of the current display area based on the transparency, and render the points outside the maximum visible range based on the second preset transparency, so as to obtain a navigation map.
[0008] In a third aspect, an embodiment of the present disclosure proposes an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method described in the first aspect.
[0009] In a fourth aspect, an embodiment of the present disclosure proposes a non-transitory computer-readable storage medium storing computer instructions, where the computer instructions are used to cause a computer to execute the method described in the first aspect.
[0010] In a fifth aspect, an embodiment of the present disclosure proposes a computer program product, including a computer program, which implements the method described in the first aspect when executed by a processor.
[0011] The key or important features of the embodiments of the present disclosure are not intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Other features, purposes and advantages of the present disclosure will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings. The drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure. Among them:
[0013] Figure 1 is a flow chart of an embodiment of a navigation map rendering method according to the present disclosure;
[0014] Figure 2 It is the existing technology and utilization Figure 1 A comparative schematic diagram of the navigation map rendered by the navigation map rendering method in ;
[0015] Figure 3 is a flowchart of another embodiment of a navigation map rendering method according to the present disclosure;
[0016] Figure 4 It is the existing technology and utilization Figure 3 A comparative schematic diagram of the navigation map rendered by the navigation map rendering method in ;
[0017] Figure 5 is a structural schematic diagram of an embodiment of a navigation map rendering device according to the present disclosure;
[0018] Figure 6 It is a block diagram of an electronic device used to implement the navigation map rendering method of the embodiment of the present disclosure. DETAILED DESCRIPTION
[0019] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0020] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0021] Figure 1 A process 100 of an embodiment of a navigation map rendering method according to the present disclosure is shown. The navigation map rendering method comprises the following steps:
[0022] Step 101, based on the current positioning data of the vehicle, determine the current display area of the map base map.
[0023] In this embodiment, the execution body of the navigation map rendering method can determine the current display area of the map base map based on the current positioning data of the vehicle.
[0024] The execution subject of the navigation map rendering method is usually a server. The server can be hardware or software. When the server is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or it can be implemented as a single server. When the server is software, it can be implemented as multiple software or software modules (for example, used to provide distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.
[0025] Usually, a vehicle is equipped with an onboard GPS module. Through the onboard GPS module, the current positioning data of the vehicle can be collected. Based on the current positioning data, the current display area of the map base map can be determined. Among them, the current positioning data may include but is not limited to the current position of the vehicle, the current speed and the current driving direction. The current display area may be an area near the current position of the vehicle.
[0026] In some embodiments, the vehicle's current position, current speed and current driving direction can be obtained in real time through the vehicle-mounted GPS module. By comparing the current position with the road in the map base map, the road on which the vehicle is traveling can be determined. According to the current speed, current driving direction and road, the vehicle's driving route within a preset time period is predicted. Based on the driving route, the current display area can be determined in the map base map. For example, by multiplying the current speed (such as 60km / h) with the preset time period (10s), the driving distance of the vehicle in the future preset time period (such as 167m) can be predicted. Combined with the map base map, a driving route with a length of the driving distance can be planned on the road on which the vehicle is traveling along the current driving direction. A circle is drawn with the current position (i.e., the starting point of the driving route) as the center and the end point of the driving route as the radius to obtain a circular area, which can be used as the current display area.
[0027] Step 102, determining the viewing range radius based on the current positioning data and the current display area.
[0028] In this embodiment, the execution entity may determine the viewing range radius based on the current positioning data and the current display area.
[0029] In some embodiments, the current display area may be a circular area with the current position as the center and the end point of the driving route as the radius. The sight range radius may be the radius of the current display area. Specifically, the distance between the current position and the boundary of the current display area is calculated as the sight range radius.
[0030] Step 103: Calculate the transparency of points between the maximum visible range and the boundary of the current display area based on the maximum visible range and the viewing range radius.
[0031] In this embodiment, the execution entity can calculate the transparency of the points between the maximum visible range and the boundary of the current display area based on the maximum visible range and the radius of the viewing range. The maximum visible range is the maximum range that the user can see visually, and its value is an empirical value, such as 3km. The transparency value is between 0 and 1. Generally, between the maximum visible range and the boundary of the current display area, the closer the point is to the vehicle, the higher its transparency. The farther the point is from the vehicle, the lower its transparency.
[0032] In some embodiments, for a point between the maximum visible range and the boundary of the current display area, its transparency may be calculated by the following steps:
[0033] First, the quotient value can be obtained by dividing the difference between the point between the maximum visible range and the boundary of the current display area and the viewing range radius by the difference between the maximum visible range and the visual range radius.
[0034] Then, the difference between the first preset value and the quotient value, and the maximum value of the second preset values can be taken as the transparency of the point between the maximum visible range and the boundary of the current display area.
[0035] That is, the transparency calculation formula can be as follows:
[0036]
[0037] in, alpha is the transparency, d is the distance between the point between the maximum visible range and the boundary of the current display area and the vehicle, r is the radius of the visual range, and d max is the maximum visible range, 1 is the first preset value, and 0 is the second preset value.
[0038] Step 104, render the current display area based on the first preset transparency, render the points between the maximum visible range and the boundary of the current display area based on the transparency, and render the points outside the maximum visible range based on the second preset transparency to obtain a navigation map.
[0039] In this embodiment, the above-mentioned execution entity can render the current display area based on the first preset transparency, render the points between the maximum visible range and the boundary of the current display area based on the transparency, and render the points outside the maximum visible range based on the second preset transparency to obtain a navigation map.
[0040] Usually, the map base map is divided into three areas, namely, the current display area, the area between the maximum visible range and the current display area, and the area outside the maximum visible range. The three areas are rendered using three different transparency levels. Among them, the area closer to the vehicle has a higher transparency. The area farther from the vehicle has a lower transparency. Therefore, the first preset transparency of the current display area is greater than the transparency of the area between the maximum visible range and the current display area. The transparency of the area between the maximum visible range and the current display area is greater than the second preset transparency of the area outside the maximum visible range.
[0041] For ease of understanding, Figure 2 Shows the prior art and the use of Figure 12(a) is a schematic diagram of a navigation map rendered by the navigation map rendering method in the prior art. As shown in 2(a), the transparency of all areas of the map base map is 1, that is, all areas are rendered. 2(b) is a schematic diagram of a navigation map rendered by the navigation map rendering method in the prior art. Figure 1 Schematic diagram of a navigation map rendered by the navigation map rendering method in . As shown in 2(b), the map base map is divided into three areas, namely, the current display area, the area between the maximum visible range and the current display area, and the area outside the maximum visible range. The current display area includes the route guiding the vehicle in the map navigation, and its transparency can be 1, that is, all rendered. The area between the maximum visible range and the current display area includes map information that assists vehicle driving in the map navigation, and its transparency can take a value between 0 and 1, and as the distance from the vehicle increases, its value becomes lower and lower, that is, gradient rendering. The area outside the maximum visible range is the area that the user cannot see, and its transparency can be 0, that is, not rendered at all.
[0042] It should be noted that, through the graphics rendering engine or the map display engine, when rendering each frame of the map base map, the transparency of different areas of the map base map is updated in real time based on the current positioning data of the vehicle, and a smooth transition effect can be achieved through the change of transparency.
[0043] The disclosed embodiment provides a navigation map rendering method, which focuses on the map base map of the current driving route, only displays the map information related to the current driving route, and blurs or completely hides other areas to highlight the current driving route, making the navigation interface more concise and clear, and enhancing driving safety and efficiency. Compared with the existing map navigation, the driver no longer needs to frequently check the complex map interface, which significantly reduces the driver's burden of processing irrelevant information during driving and improves driving safety.
[0044] Continue to refer Figure 3 , which shows a process 300 of another embodiment of a navigation map rendering method according to the present disclosure. The navigation map rendering method comprises the following steps:
[0045] Step 301, based on the current positioning data of the vehicle, determine the current display area of the map base map.
[0046] In this embodiment, the execution body of the navigation map rendering method can determine the current display area of the map base map based on the current positioning data of the vehicle.
[0047] The execution subject of the navigation map rendering method is usually a server. The server can be hardware or software. When the server is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or it can be implemented as a single server. When the server is software, it can be implemented as multiple software or software modules (for example, used to provide distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.
[0048] Usually, a vehicle is equipped with an onboard GPS module. Through the onboard GPS module, the current positioning data of the vehicle can be collected. Based on the current positioning data, the current display area of the map base map can be determined. Among them, the current positioning data may include but is not limited to the current position of the vehicle, the current speed and the current driving direction. The current display area may be an area near the current position of the vehicle.
[0049] In some embodiments, the vehicle's current position, current speed and current driving direction can be obtained in real time through the vehicle-mounted GPS module. By comparing the current position with the road in the map base map, the road on which the vehicle is traveling can be determined. According to the current speed, current driving direction and road, the vehicle's driving route within a preset time period is predicted. Based on the driving route, the current display area can be determined in the map base map. For example, by multiplying the current speed (such as 60km / h) with the preset time period (10s), the driving distance of the vehicle in the future preset time period (such as 167m) can be predicted. Combined with the map base map, a driving route with a length of the driving distance can be planned on the road on which the vehicle is traveling along the current driving direction. A circle is drawn with the current position (i.e., the starting point of the driving route) as the center and the end point of the driving route as the radius to obtain a circular area, which can be used as the current display area.
[0050] Step 302: Determine the viewing range radius based on the current positioning data and the current display area.
[0051] In this embodiment, the execution entity may determine the viewing range radius based on the current positioning data and the current display area.
[0052] In some embodiments, the current display area may be a circular area with the current position as the center and the end point of the driving route as the radius. The sight range radius may be the radius of the current display area. Specifically, the distance between the current position and the boundary of the current display area is calculated as the sight range radius.
[0053] Step 303: Calculate the transparency of points between the maximum visible range and the boundary of the current display area based on the maximum visible range and the viewing range radius.
[0054] In this embodiment, the execution entity can calculate the transparency of the points between the maximum visible range and the boundary of the current display area based on the maximum visible range and the radius of the viewing range. The maximum visible range is the maximum range that the user can see visually, and its value is an empirical value, such as 3km. The transparency value is between 0 and 1. Generally, between the maximum visible range and the boundary of the current display area, the closer the point is to the vehicle, the higher its transparency. The farther the point is from the vehicle, the lower its transparency.
[0055] In some embodiments, for a point between the maximum visible range and the boundary of the current display area, its transparency may be calculated by the following steps:
[0056] First, the quotient value can be obtained by dividing the difference between the point between the maximum visible range and the boundary of the current display area and the viewing range radius by the difference between the maximum visible range and the visual range radius.
[0057] Then, the difference between the first preset value and the quotient value, and the maximum value of the second preset values can be taken as the transparency of the point between the maximum visible range and the boundary of the current display area.
[0058] That is, the transparency calculation formula can be as follows:
[0059]
[0060] in, alpha is the transparency, d is the distance between the point between the maximum visible range and the boundary of the current display area and the vehicle, r is the radius of the visual range, and d max is the maximum visible range, 1 is the first preset value, and 0 is the second preset value.
[0061] Step 304, render the current display area based on the first preset transparency, render the points between the maximum visible range and the boundary of the current display area based on the transparency, and render the points outside the maximum visible range based on the second preset transparency to obtain a navigation map.
[0062] In this embodiment, the above-mentioned execution entity can render the current display area based on the first preset transparency, render the points between the maximum visible range and the boundary of the current display area based on the transparency, and render the points outside the maximum visible range based on the second preset transparency to obtain a navigation map.
[0063] Usually, the map base map is divided into three areas, namely, the current display area, the area between the maximum visible range and the current display area, and the area outside the maximum visible range. The three areas are rendered using three different transparency levels. Among them, the area closer to the vehicle has a higher transparency. The area farther from the vehicle has a lower transparency. Therefore, the first preset transparency of the current display area is greater than the transparency of the area between the maximum visible range and the current display area. The transparency of the area between the maximum visible range and the current display area is greater than the second preset transparency of the area outside the maximum visible range.
[0064] Step 305 , in response to determining that the vehicle has traveled to the vicinity of a preset intersection, a start shooting instruction is sent to a camera of the vehicle, and an image of the road ahead of the vehicle captured by the camera is acquired.
[0065] In this embodiment, when it is determined that the vehicle is traveling near a preset intersection, the execution entity may send a start shooting instruction to the camera of the vehicle and obtain an image of the road ahead of the vehicle captured by the camera.
[0066] The preset intersections may include but are not limited to intersections, turning intersections, city intersections, highway intersections and other easy-to-error intersections. When the vehicle is near the preset intersection, the front camera installed on the vehicle may be triggered to start collecting the road image in front of the vehicle in real time.
[0067] In some embodiments, a preset intersection may be displayed on the navigation map. The distance between the current position and the preset intersection on the navigation map is calculated in real time, and when the distance is less than a preset distance threshold (such as 100m), it can be determined that the vehicle is traveling near the preset intersection.
[0068] Step 306: based on the current positioning data, mark the overlay area on the navigation map.
[0069] In this embodiment, the execution subject may mark the superimposed area on the navigation map based on the current positioning data. The superimposed area may be an area at a preset intersection in the navigation map. For example, a rectangular area within a preset range from the current position of the vehicle is marked at the preset intersection as the superimposed area.
[0070] Step 307: align the front road image with the navigation map, and superimpose the aligned front road image on the superimposed area accordingly.
[0071] In this embodiment, the execution entity may align the front road image with the navigation map, and superimpose the aligned front road image on the superimposed area accordingly.
[0072] By aligning the road ahead image with the navigation map, the consistency between the road ahead image and the vehicle's current position can be ensured. By superimposing the aligned road ahead image on the superimposed area, the road ahead image acquired by the vehicle's camera can be displayed to guide the vehicle through a preset intersection.
[0073] The road ahead image is an image in the camera coordinate system. The navigation map is a map in the world coordinate system. It can be seen that the road ahead image and the navigation map before the transformation are in different coordinate systems. Based on the intrinsic and extrinsic parameters of the vehicle's camera, the road ahead image can be projected and transformed from the camera coordinate system to the world coordinate system. In this way, the transformed road ahead image and the navigation map are both in the world coordinate system, and the alignment of the road ahead image and the navigation map is completed. The road ahead image can be correspondingly superimposed on the superimposed area by replacing the corresponding points of the superimposed area of the navigation map with the pixel points of the aligned road ahead image.
[0074] For ease of understanding, Figure 4 Shows the prior art and the use of Figure 3 4(a) is a schematic diagram of a navigation map rendered by the navigation map rendering method in the prior art. As shown in 4(a), when the vehicle drives near a T-shaped intersection, a pop-up window is used to display an enlarged view of the intersection. 4(b) is a schematic diagram of a navigation map rendered by the navigation map rendering method in the prior art. Figure 3 Schematic diagram of the navigation map rendered by the navigation map rendering method in FIG. As shown in FIG4( b ), after the front road image is aligned with the navigation map, it is superimposed on the superposition area for display.
[0075] Step 308, determining the turning direction of the vehicle based on the driving route.
[0076] In this embodiment, the above-mentioned execution entity can determine the turning direction of the vehicle passing through a preset intersection based on the driving route of the navigation map.
[0077] Step 309: display guidance information corresponding to the turning direction on the front road image.
[0078] In this embodiment, the execution subject may display guidance information corresponding to the turning direction on the image of the road ahead. For example, if the driving route of the navigation map indicates that the vehicle turns right when passing a preset intersection, a right turn arrow may be displayed on the image of the road ahead to guide the vehicle through the preset intersection.
[0079] Step 310, in response to determining that the vehicle passes through a preset intersection, sending a stop shooting instruction to the camera of the vehicle.
[0080] In this embodiment, when it is determined that the vehicle has passed through a preset intersection, the execution entity may send a stop shooting instruction to the vehicle's camera, remove the superimposed area, and transform back to the original navigation map.
[0081] The disclosed embodiment provides a navigation map rendering method. On the one hand, by focusing on the map base map of the current driving route, only the map information related to the current driving route is displayed, and other areas are blurred or completely hidden to highlight the current driving route, so that the navigation interface is more concise and clear, and the driving safety and efficiency are enhanced. Compared with the existing map navigation, the driver no longer needs to frequently view the complex map interface, which significantly reduces the driver's processing burden of irrelevant information during driving and improves driving safety. On the other hand, by superimposing the image of the road ahead on the navigation map, dynamic path guidance is provided. When the vehicle is about to reach the preset intersection, it automatically switches to AR mode, and uses the real-time image of the front camera of the vehicle to guide the driver to turn correctly, significantly reducing the risk of going the wrong way. Combined with the actual view of the intersection, navigation information such as arrows and path lines are intuitively displayed on the screen to help the driver quickly make correct judgments. Compared with the existing map navigation, the AR navigation guidance based on real scenes is direct and intuitive, and can effectively reduce driving errors in complex environments. Especially in complex sections such as multi-fork intersections and roundabouts, real-time image superimposed navigation can significantly reduce the possibility of going the wrong way and improve driving safety and efficiency.
[0082] Further references Figure 5 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a navigation map rendering device. Figure 1 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0083] like Figure 5 As shown, the navigation map rendering device 500 of this embodiment may include: a first determination module 501, a second determination module 502, a calculation module 503 and a rendering module 504. Among them, the first determination module 501 is configured to determine the current display area of the map base map based on the current positioning data of the vehicle; the second determination module 502 is configured to determine the radius of the visual range based on the current positioning data and the current display area; the calculation module 503 is configured to calculate the transparency of the points between the maximum visual range and the boundary of the current display area based on the maximum visual range and the radius of the visual range; the rendering module 504 is configured to render the current display area based on the first preset transparency, render the points between the maximum visual range and the boundary of the current display area based on the transparency, and render the points outside the maximum visual range based on the second preset transparency to obtain a navigation map.
[0084] In this embodiment, in the navigation map rendering device 500, the specific processing of the first determination module 501, the second determination module 502, the calculation module 503 and the rendering module 504 and the technical effects thereof can be referred to respectively. Figure 1 The relevant descriptions of steps 101 - 104 in the corresponding embodiment are not repeated here.
[0085] In some optional implementations of this embodiment, the current positioning data includes the current position of the vehicle, the current speed and the current driving direction; and the first determination module 501 is further configured to: compare the current position with the road in the map base map to determine the road on which the vehicle is traveling; predict the vehicle's driving route within a preset time period based on the current speed, current driving direction and road; and determine the current display area in the map base map based on the driving route.
[0086] In some optional implementations of this embodiment, the second determination module 502 is further configured to: calculate the distance between the current position and the boundary of the current display area as the viewing range radius.
[0087] In some optional implementations of this embodiment, the calculation module 503 is further configured to: divide the difference between the point between the maximum visible range and the boundary of the current display area and the viewing range radius by the difference between the maximum visible range and the visual range radius to obtain a quotient; take the difference between the first preset value and the quotient, and the maximum value of the second preset value as the transparency of the point between the maximum visible range and the boundary of the current display area.
[0088] In some optional implementations of the present embodiment, the navigation map rendering device 500 also includes: an acquisition module, configured to send a start shooting instruction to the vehicle's camera in response to determining that the vehicle is traveling near a preset intersection, and obtain an image of the road ahead of the vehicle captured by the camera; a calibration module, configured to calibrate the overlay area on the navigation map based on the current positioning data; and an overlay module, configured to align the image of the road ahead with the navigation map, and overlay the aligned image of the road ahead on the overlay area accordingly.
[0089] In some optional implementations of this embodiment, the navigation map rendering device 500 also includes: a third determination module, configured to determine the turning direction of the vehicle based on the driving route; and a display module, configured to display guidance information corresponding to the turning direction on the front road image.
[0090] In some optional implementations of this embodiment, the navigation map rendering device 500 also includes: a sending module, configured to send a stop shooting instruction to the camera of the vehicle in response to determining that the vehicle passes through a preset intersection.
[0091] In some optional implementations of this embodiment, the acquisition module is further configured to: calculate the distance between the current position and a preset intersection on the navigation map, wherein the preset intersection includes at least one of the following: an intersection, a turning intersection, a city intersection, and a highway intersection; in response to the distance being less than a preset distance threshold, determine that the vehicle is traveling near the preset intersection.
[0092] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0093] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0094] Figure 6 A schematic block diagram of an example electronic device 600 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0095] like Figure 6 As shown, the device 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 602 or a computer program loaded from a storage unit 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the device 600 can also be stored. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0096] A number of components in the device 600 are connected to the I / O interface 605, including: an input unit 606, such as a keyboard, a mouse, etc.; an output unit 607, such as various types of displays, speakers, etc.; a storage unit 608, such as a disk, an optical disk, etc.; and a communication unit 609, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0097] The computing unit 601 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 601 performs the various methods and processes described above, such as a navigation map rendering method. For example, in some embodiments, the navigation map rendering method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 608. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 600 via the ROM 602 and / or the communication unit 609. When the computer program is loaded into the RAM 603 and executed by the computing unit 601, one or more steps of the navigation map rendering method described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to perform the navigation map rendering method in any other appropriate manner (e.g., by means of firmware).
[0098] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0099] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0100] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0101] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0102] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0103] A computer system may include a client and a server. The client and the server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises through computer programs running on respective computers and having a client-server relationship to each other. The server may be a cloud server, a server in a distributed system, or a server combined with a blockchain.
[0104] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions provided by this disclosure can be achieved, and this document does not limit this.
[0105] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A navigation map rendering method, comprising: Based on the current positioning data of the vehicle, determine the current display area of the map base map; Determine a viewing range radius based on the current positioning data and the current display area; Based on the maximum visible range and the viewing range radius, calculating the transparency of points between the maximum visible range and the boundary of the current display area; The current display area is rendered based on a first preset transparency, points between the maximum visible range and a boundary of the current display area are rendered based on the transparency, and points outside the maximum visible range are rendered based on a second preset transparency to obtain a navigation map.
2. The method according to claim 1, wherein: The current positioning data includes the current position, current speed and current driving direction of the vehicle; as well as The determining of the current display area of the map base map based on the current positioning data of the vehicle includes: Comparing the current position with the roads in the map base map to determine the road the vehicle is traveling on; Predicting a driving route of the vehicle within a preset time period based on the current vehicle speed, the current driving direction and the road; Based on the driving route, the current display area is determined in the map base map.
3. The method according to claim 2, wherein: The determining of the viewing range radius based on the current positioning data and the current display area includes: The distance between the current position and the border of the current display area is calculated as the viewing range radius.
4. The method according to claim 3, wherein: The calculating, based on the maximum visible range and the viewing range radius, the transparency of a point between the maximum visible range and a boundary of the current display area comprises: Dividing the difference between the point between the maximum visible range and the boundary of the current display area and the radius of the viewing range by the difference between the maximum visible range and the radius of the visual range to obtain a quotient; The difference between the first preset value and the quotient and the maximum value of the second preset value are taken as the transparency of the point between the maximum visible range and the boundary of the current display area.
5. The method according to any one of claims 2 to 4, wherein: The method further comprises: In response to determining that the vehicle has traveled to the vicinity of a preset intersection, sending a start shooting instruction to a camera of the vehicle, and acquiring an image of the road ahead of the vehicle captured by the camera; Based on the current positioning data, marking an overlay area on the navigation map; The front road image is aligned with the navigation map, and the aligned front road image is superimposed on the superimposed area accordingly.
6. The method according to claim 5, wherein: The method further comprises: Based on the driving route, determining a turning direction of the vehicle; Guidance information corresponding to the turning direction is displayed on the front road image.
7. The method according to claim 5, wherein: The method further comprises: In response to determining that the vehicle passes through the preset intersection, a stop shooting instruction is sent to the camera of the vehicle.
8. The method according to claim 5, wherein: The determining that the vehicle is traveling near a preset intersection includes: Calculating the distance between the current position and a preset intersection on the navigation map, wherein the preset intersection includes at least one of the following: an intersection, a turning intersection, a city intersection, and a highway intersection; In response to the distance being less than a preset distance threshold, it is determined that the vehicle has traveled to the vicinity of the preset intersection.
9. A navigation map rendering device, comprising: A first determination module is configured to determine a current display area of a map base map based on current positioning data of the vehicle; A second determination module is configured to determine a viewing range radius based on the current positioning data and the current display area; a calculation module configured to calculate the transparency of a point between the maximum visible range and a boundary of the current display area based on the maximum visible range and the viewing range radius; The rendering module is configured to render the current display area based on a first preset transparency, render points between the maximum visible range and the boundary of the current display area based on the transparency, and render points outside the maximum visible range based on a second preset transparency to obtain a navigation map.
10. The device according to claim 9, wherein: The current positioning data includes the current position, current speed and current driving direction of the vehicle; and The first determining module is further configured to: Comparing the current position with the roads in the map base map to determine the road the vehicle is traveling on; Predicting a driving route of the vehicle within a preset time period based on the current vehicle speed, the current driving direction and the road; Based on the driving route, the current display area is determined in the map base map.
11. The device according to claim 10, wherein: The second determining module is further configured to: The distance between the current position and the border of the current display area is calculated as the viewing range radius.
12. The device according to claim 11, wherein The computing module is further configured to: Dividing the difference between the point between the maximum visible range and the boundary of the current display area and the radius of the viewing range by the difference between the maximum visible range and the radius of the visual range to obtain a quotient; The difference between the first preset value and the quotient and the maximum value of the second preset value are taken as the transparency of the point between the maximum visible range and the boundary of the current display area.
13. The device according to any one of claims 10 to 12, wherein: The device also includes: an acquisition module, configured to send a start shooting instruction to a camera of the vehicle in response to determining that the vehicle is traveling near a preset intersection, and acquire an image of the road ahead of the vehicle captured by the camera; A calibration module, configured to calibrate an overlay area on the navigation map based on the current positioning data; The superposition module is configured to align the front road image with the navigation map, and superimpose the aligned front road image on the superposition area accordingly.
14. The device according to claim 13, wherein: The device also includes: A third determination module is configured to determine a turning direction of the vehicle based on the driving route; The display module is configured to display guidance information corresponding to the turning direction on the front road image.
15. The device according to claim 13, wherein: The device also includes: The sending module is configured to send a stop shooting instruction to the camera of the vehicle in response to determining that the vehicle passes through the preset intersection.
16. The device according to claim 13, wherein: The acquisition module is further configured to: Calculating the distance between the current position and a preset intersection on the navigation map, wherein the preset intersection includes at least one of the following: an intersection, a turning intersection, a city intersection, and a highway intersection; In response to the distance being less than a preset distance threshold, it is determined that the vehicle has traveled to the vicinity of the preset intersection.
17. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 8.
18. A non-transitory computer-readable storage medium storing computer instructions, the computer instructions being used to cause the computer to execute the method of any one of claims 1-8.
19. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 8.