Map interface display method, region determination method and related products
By identifying and processing the transparent areas covering roads in electronic maps, the problem of obscured road markings on lower levels has been solved, improving navigation capabilities and information visibility.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2026-03-10
AI Technical Summary
In existing electronic maps, road markings on lower levels are not visible due to road overlap, which reduces navigation capabilities.
By determining the current covered area of the covered road in the map interface, and based on the type of covered area and the intersection of the road outline, a transparency processing strategy is adopted to make the target area transparent, ensuring that the road markings below are visible.
The improved navigation capabilities of electronic maps enable drivers to clearly obtain road information, thus enhancing navigation effectiveness.
Smart Images

Figure CN121636628A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic map technology, specifically to a map interface display method, a region determination method, a map interface display device, a region determination device, an electronic device, a computer-readable storage medium, and a computer program product. Background Technology
[0002] As map data accuracy improves, map interfaces can display more three-dimensional effects. When drawing roads in a map interface, they are usually drawn according to the elevation information of real roads, so that the roads in the map interface have the same spatial hierarchy as real roads.
[0003] Due to the complexity of roads, in the real world, there are often situations where roads overlap each other, such as multi-level interchanges and overpasses. When these roads with overlapping relationships in the real world are drawn onto the map interface, they will also present a spatial overlapping hierarchy, resulting in situations where lower-level roads are obscured by upper-level roads in the map interface. This makes the road markings of the lower-level roads (such as lane lines, herringbone lines, etc.) invisible, reducing the navigation capability of the electronic map. Summary of the Invention
[0004] This application provides a map interface display method, a region determination method, a map interface display device, a region determination device, an electronic device, a computer-readable storage medium, and a computer product, which can improve the navigation capabilities of electronic maps.
[0005] Firstly, this application provides a map interface display method suitable for terminal devices, including:
[0006] Determine the currently covered road in the map interface that is overriding the current driving road;
[0007] The server retrieves the current covered area of the road that is currently covering the road being driven. The current covered area is determined in advance by the server based on the type of the road being covered and the intersection of the road outline of the covered road and the road outline of the covering road in the map coordinate system.
[0008] Based on the current overlay area, determine the target area in the map interface that needs to be made transparent and the corresponding transparency strategy;
[0009] In accordance with the transparency strategy, the target area is made transparent.
[0010] Secondly, this application provides a method for determining a region suitable for a server, including:
[0011] Identify the covered roads and the roads that have a covering relationship;
[0012] Determine the intersection point of the outlines of the covered road and the road outlines of the road covering the road in the map coordinate system;
[0013] Based on the type of covered road and the intersection of its contours, determine the covered area of the covered road that is being covered by the covered road;
[0014] In response to the terminal device's request for a coverage area query, the current coverage area of the current road being covered by the terminal device is returned. The current coverage area is used by the terminal device to determine the target area in the map interface that needs to be made transparent and the corresponding transparency strategy. The map interface displays the current driving road and the current covered road.
[0015] Thirdly, this application provides a map interface display device suitable for terminal devices, comprising:
[0016] The first road determination module is used to determine the currently covered road in the map interface that covers the current driving road;
[0017] The first area determination module is used to obtain from the server the current covered area of the currently covered road that covers the currently driving road. The current covered area is determined in advance by the server based on the type of the currently covered road and the intersection of the road contour of the covered road and the road contour of the covering road in the map coordinate system.
[0018] The strategy determination module is used to determine the target area in the map interface that needs to be made transparent and the corresponding transparency strategy based on the current overlay area.
[0019] The strategy execution module is used to make the target area transparent in accordance with the transparency strategy.
[0020] Optionally, in one embodiment, the strategy determination module is used to determine the current overlay area as a first target area, determine the target transparency based on the distance between the current location and the current overlay area, and determine the first transparency strategy corresponding to the first target area as uniformly transparentizing the first target area according to the target transparency; and according to the area determination strategy, determine the second target area connected to the first target area from the current overlay road and other roads connected to the current overlay road, and determine the second transparency strategy corresponding to the second target area as gradually transparentizing the second target area according to the target transparency.
[0021] Optionally, in one embodiment, the strategy determination module is used to perform path searching along the current covered road and other roads connected to the current covered road, starting from the two ends of the first target area in the uphill and downhill directions of the current covered road, until the path length of the search path reaches a first length threshold; and to determine the second target area corresponding to the uphill and downhill directions respectively based on the search paths corresponding to the uphill and downhill directions.
[0022] Optionally, in one embodiment, the strategy determination module is further configured to, if at least two first target regions are determined, and other first target regions are found during the path search process corresponding to a first target region, determine the length of the target region based on the path length of the search path, and determine the portion of the length of the target region connected to different first target regions at both ends of the search path as the second target region.
[0023] Optionally, in one embodiment, the strategy execution module is used to obtain the current viewpoint position of the driver. If the viewpoint position moves toward the target area, the target area is made transparent according to the transparency strategy.
[0024] Optionally, in one embodiment, the map interface display device provided in this application further includes a quality assessment module and a local magnification module. The quality assessment module is used to acquire a first interface image of the map interface; and based on the first interface image, acquire a first display quality score of the map interface after transparency processing to display the current driving road.
[0025] If the first display quality score is less than the first display quality threshold, the local zoom-in module is used to determine the currently covered area in the current driving road based on the current covered area; and to overlay the local zoom-in interface on the map interface and display the currently covered area in the local zoom-in interface, wherein the scale of the local zoom-in interface is larger than the scale of the map interface.
[0026] Optionally, in one embodiment, the quality assessment module is used to obtain the visibility of road markings in the currently covered area based on the first interface image, and obtain a first candidate display quality score based on the visibility; obtain a second candidate display quality score based on the first interface image through a display quality assessment model; and obtain a first display quality score based on the first candidate display quality score and the second candidate display quality score.
[0027] Optionally, in one embodiment, the quality assessment module is further configured to acquire a second interface image of the map interface; and based on the second interface image, acquire a second display quality score of the map interface displaying the currently driving road;
[0028] If the second display quality score is less than the second display quality threshold, the first region determination module obtains the current covered area of the currently covered road from the server, and the second display quality threshold is less than the first display quality threshold.
[0029] Fourthly, this application provides a region determination device suitable for a server, comprising:
[0030] The second road determination module is used to identify covered roads and covering roads that have a covering relationship;
[0031] The contour intersection point determination module is used to determine the contour intersection point of the covered road and the road contour of the road being covered in the map coordinate system.
[0032] The second area determination module is used to determine the covering area of the covered road in the covered road based on the type of covered road and the intersection of the contours.
[0033] The area query module is used to respond to the coverage area query request of the terminal device and return the current coverage area of the current road of the current driving road of the coverage terminal device. The current coverage area is used by the terminal device to determine the target area that needs to be transparent in the map interface and the corresponding transparency strategy. The map interface displays the current driving road and the current coverage road.
[0034] Optionally, in one embodiment, the second region determination module is used to: if the covered road is an intersection and there is at least one contour intersection, then determine the entire area of the intersection as the covered region; or, if the covered road is a road segment and there are at least two contour intersections, then determine the largest rectangular area that can be determined in the road segment based on the at least two contour intersections as the covered region.
[0035] Optionally, in one embodiment, the second region determination module is further configured to, if there is partial overlap between different covered areas corresponding to different covered roads in the same covered road, merge the partially overlapping different covered areas to obtain a merged covered area, and set the merged covered area as the covered area for covering different covered roads.
[0036] Fifthly, the electronic device provided in this application includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program in the memory when the electronic device is configured as a terminal device to implement the steps in the map interface display method provided in this application; or, the processor executes the computer program in the memory when the electronic device is configured as a server to implement the steps in the area determination method provided in this application.
[0037] Sixthly, the computer-readable storage medium provided in this application stores a computer program adapted for processor execution to implement the steps in the map interface display method suitable for terminal devices provided in this application, or to implement the steps in the area determination method suitable for servers provided in this application.
[0038] Seventhly, the computer program product provided in this application includes a computer program adapted for processor execution to implement the steps in the map interface display method suitable for terminal devices provided in this application, or to implement the steps in the area determination method suitable for servers provided in this application.
[0039] The map interface display scheme provided in this application involves the terminal device determining in real time the currently covered road on the map interface, and obtaining the currently covered area of the currently covered road from the server. This currently covered area is pre-determined by the server based on the type of the currently covered road and the intersection of the outlines of the covered road and the road outline of the covering road in the map coordinate system. Then, based on this currently covered area, the target area in the map interface that needs to be made transparent and the corresponding transparency strategy are determined. Finally, the determined target area is made transparent according to the determined transparency strategy. In this way, based on the dynamic changes of the map interface, the target area in the map interface that needs to be made transparent can be quickly determined using the pre-determined covered area of the currently covered road, and the corresponding transparency processing is performed, making the road markings that are currently obscured visible. This ensures that the driver can obtain the information needed for current driving from the electronic map interface, thereby improving the navigation effect of the electronic map. Attached Figure Description
[0040] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0041] Figure 1a This is a schematic diagram of a map interface display system provided in an embodiment of this application;
[0042] Figure 1b This is a flowchart illustrating the map interface display method provided in the embodiments of this application;
[0043] Figure 1c This is an example diagram of the current driving road and the current covered road displayed on the map interface of the terminal device in this application embodiment;
[0044] Figure 1d This is an example diagram of the search path obtained by path lookup in the embodiments of this application;
[0045] Figure 1e This is an example diagram illustrating the determination of two first target areas in the current covered road in this application embodiment;
[0046] Figure 1f This is an embodiment of the present application. Figure 1c The image shown is an example of a map interface that has been made transparent.
[0047] Figure 1g This is an embodiment of the present application. Figure 1c Another example of a transparent map interface is shown.
[0048] Figure 1h This is an example diagram showing a partially enlarged view of the currently covered area of the road in this application embodiment;
[0049] Figure 2a This is a flowchart illustrating the region determination method provided in an embodiment of this application;
[0050] Figure 2b This is an example diagram of the road outline of road segments and intersections in the embodiments of this application;
[0051] Figure 2c This is a schematic diagram of the road section covered at the intersection in the embodiments of this application;
[0052] Figure 2d This is a schematic diagram of road segment a covering road segment b in an embodiment of this application;
[0053] Figure 2e This is a schematic diagram of road segment d covering road segment c in an embodiment of this application;
[0054] Figure 2f This is an example diagram of a merged capping area obtained by merging overlapping capping areas in an embodiment of this application;
[0055] Figure 3 This is a schematic diagram of the structure of the map interface display device provided in the embodiments of this application;
[0056] Figure 4 This is another structural schematic diagram of the area determination device provided in the embodiments of this application;
[0057] Figure 5 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0058] It should be noted that the principles of this application are illustrated by example in a suitable computing environment. The following description is based on the specific embodiments of this application that are illustrated, and should not be regarded as limiting other specific embodiments not detailed herein.
[0059] In the following description of this application, "some embodiments" are referred to, which describe a subset of all possible embodiments. However, it is understood that "some embodiments" may be the same subset or different subset of all possible embodiments, and may be combined with each other without conflict.
[0060] In the following description of this application, the terms "first, second, third" are used only to distinguish similar objects and do not represent a specific order of objects. It is understood that "first, second, third" may be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.
[0061] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.
[0062] It should be noted that, unless otherwise specified, the maps mentioned in the following embodiments refer to electronic maps.
[0063] To improve the navigation effect of electronic maps, this application provides a map interface display method, a map interface display device, a terminal device, a computer-readable storage medium, and a computer program product. The map interface display method can be executed by the map interface display device or by a terminal device integrating the map interface display device.
[0064] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the embodiments described below are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0065] Please refer to the reference. Figure 1aThis application also provides a map interface display system, which includes a terminal device 100 for executing the map interface display method provided in this application. The terminal device 100 can be an in-vehicle terminal device or a mobile terminal device. First, the system determines the currently covered road and the currently covered area within the currently covered road in the map interface. The currently covered area is pre-determined by the server based on the type of the currently covered road and the intersection of the outlines of the covered road and the road outline of the overriding road in the map coordinate system. Then, based on the obtained currently covered area, the system further determines the target area in the map interface that needs to be made transparent and the corresponding transparency strategy, and performs transparency processing on the determined target area according to the transparency strategy.
[0066] In addition, such as Figure 1a As shown, the map interface display system may also include a memory 200 for storing relevant data during the map interface display process, such as the description information of the currently covered area, the description information of the determined target area, and the determined transparency strategy.
[0067] It should be noted that the map interface display system described above is merely an example, intended to more clearly illustrate the technical solutions of the embodiments of this application, and does not constitute a limitation on the technical solutions provided in the embodiments of this application. As those skilled in the art will know, with the evolution of map interface display systems and the emergence of new business scenarios, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.
[0068] The following sections provide detailed descriptions of each example. It should be noted that the sequence numbers of the following embodiments are not intended to limit the preferred order of the embodiments.
[0069] Please refer to Figure 1b This embodiment provides a map interface display method suitable for execution on terminal devices, such as... Figure 1b As shown, the process of displaying this map interface can be as follows:
[0070] In step 110, determine the currently covered road in the map interface that is covering the current driving road.
[0071] The terminal device can be any device capable of running electronic map applications to provide navigation services. For example, the terminal device can be an in-vehicle terminal device deployed in a vehicle (a vehicle can be any vehicle legally driving on the road, including motor vehicles such as cars and motorcycles, and non-motor vehicles such as bicycles and electric bicycles), or it can be a mobile terminal device that can be used in a portable manner. For instance, when driving a vehicle, a driver can use the vehicle's infotainment system to launch an electronic map application to achieve navigation, or they can use their mobile phone to run an electronic map application to achieve navigation instead of using the vehicle's infotainment system.
[0072] In this embodiment, the current driving road refers to the road that the vehicle providing navigation services is currently traveling on. For example, when the terminal device is an in-vehicle terminal device, the current driving road is the road where the in-vehicle terminal device is currently located; when the terminal device is a mobile terminal device for the vehicle driver, the current driving road is the road where the mobile terminal device is currently located. For instance, the first road description information of the current driving road can be directly obtained from a running electronic map application, and the current driving road can be determined based on this first road description information.
[0073] It is understandable that the size of the geographical area displayed on the map interface is not fixed, but can be zoomed in or out as needed. For the same road, as the size of the geographical area displayed on the map interface changes, the number of roads covering that road will also increase or decrease. Therefore, after determining the current driving road, the roads covering the current driving road within the corresponding geographical area on the map interface are further identified and recorded as the current covering roads. It should be noted that in this embodiment, the server pre-identifies the covered roads and covering roads with overlapping relationships based on the elevation information of different roads, and establishes a corresponding overlapping relationship between the covered roads and the covering roads. The server can maintain this overlapping relationship locally, distribute it to different terminal devices, or maintain it locally on the server while distributing it to different terminal devices. Taking the aforementioned overlay correspondence maintenance on the server as an example, when determining the current overlay road covering the current driving road on the map interface, an overlay road query request carrying first road description information is generated and sent to the server. This instructs the server to query the overlay road corresponding to the current driving road described in the first road description information and return second road description information describing that overlay road. After receiving the second road description information returned by the server, candidate overlay roads covering the current driving road are determined based on this information. Then, from the determined candidate overlay roads, candidate overlay roads located within the corresponding geographical area on the map interface are further selected as the current overlay road. For example, please refer to... Figure 1c This shows the current driving road with a covering relationship and the current covering road covering the current driving road, such as... Figure 1c As shown, the road markings of the current driving route in the map interface are obscured by the currently covered road portion, which will affect the driver's decision-making regarding driving operations.
[0074] It should be noted that in other embodiments, if it is determined that there is no currently covered road in the map interface that covers the current driving road, then wait until the next processing cycle and re-enter execution 110.
[0075] In step 120, the current covered area of the currently covered road is obtained from the server. The current covered area is determined in advance by the server based on the type of the currently covered road and the intersection of the road contours of the covered road and the road contours of the covered road in the map coordinate system.
[0076] It should be noted that, in addition to establishing the above-mentioned correspondence between covered roads and covered roads, the server also determines the covered area of the corresponding covered road for each group of covered roads and covered roads based on the type of covered road and the intersection point of the road outlines of the covered road and the covered road in the map coordinate system. Accordingly, a correspondence between each group of covered roads and covered roads and covered areas is established. In this embodiment, two types of roads are defined: road segments and intersections.
[0077] Accordingly, in this embodiment, after determining the currently covered road in the map interface, the overlapping area of the currently covered road is further obtained from the server and denoted as the current covered area. Specifically, on one hand, a covered area query request carrying first road description information of the currently traveled road and second road description information of the currently covered road can be generated and sent to the server, instructing the server to query the covered area corresponding to the currently traveled road and return area description information describing that covered area. On the other hand, after receiving the area description information returned by the server, the covered area corresponding to the currently traveled road can be determined based on this area description information and denoted as the current covered area.
[0078] In step 130, based on the current overlay area, the target area in the map interface that needs to be made transparent and the corresponding transparency strategy are determined.
[0079] As described above, after identifying the currently covered road on the map interface and obtaining the currently covered area within that road, the system further determines the target area requiring transparency processing on the map interface, along with a transparency strategy to indicate how to perform this process. Transparency processing of the target area can be understood as adjusting the transparency of pixels within that area. Typically, the transparency value ranges from 0 to 1. For a pixel, a transparency value of 0 indicates that the pixel is completely opaque, while a transparency value of 1 indicates that the pixel is completely transparent.
[0080] It is understandable that the defined target area can be larger than the current capping area, smaller than the current capping area, or equal to the current capping area.
[0081] Optionally, in one embodiment, based on the current overlay area, the target area in the map interface that needs to be made transparent and the corresponding transparency strategy are determined, including:
[0082] The current covered area is determined as the first target area, and the target transparency is determined based on the distance between the current location and the current covered area. The first transparency strategy corresponding to the first target area is to uniformly process the first target area according to the target transparency.
[0083] According to the area determination strategy, from the current covered road and other roads connected to the current covered road, a second target area connected to the first target area is determined, and the second transparency strategy corresponding to the second target area is to gradually make the second target area transparent according to the target transparency.
[0084] In this embodiment of the application, the determined target area includes not only the current overlay area, but also a portion of the area connected to the current overlay area, thereby improving the display effect of the map interface after transparency processing.
[0085] On one hand, the current covered area is defined as the first target area, and the target transparency is determined based on the distance between the current location and the current covered area. Specifically, the distance between the current location and the geometric center of the current covered area can be taken as the distance between the current location and the current covered area, and the target transparency is determined based on the distance between the current location and the current covered area according to the configured transparency determination strategy.
[0086] As an optional implementation, the transparency determination strategy can be configured such that the target transparency is negatively correlated with the distance between the current location and the current covering area, that is, the farther the current location is from the current covering area, the smaller the corresponding target transparency.
[0087] As another optional implementation, the transparency determination strategy can also be configured as follows: when the distance between the current location and the road marking obscured by the current covered area is greater than a distance threshold, the target transparency is constrained to be no less than the transparency threshold, and the target transparency is negatively correlated with the distance between the current location and the current covered area; when the distance between the current location and the current covered area is less than or equal to the distance threshold, the target transparency is set to the transparency threshold. Different distance thresholds can be configured for different types of road markings. For example, the operation distance (i.e., the distance between the vehicle's location and the road marking when the driver performs the corresponding driving operation) based on the driver's historical driving behavior data can be obtained in advance based on the driver's historical driving behavior data. For each type of road marking, the distance threshold corresponding to that type of road marking is determined based on the operation distance of the driver's corresponding driving operation. For example, for a certain type of road marking, the average, median, or minimum distance of all driving operations performed by the driver corresponding to that type of road marking can be taken as the distance threshold for that type of road marking.
[0088] As shown above, after determining the target transparency, the first transparency strategy corresponding to the first target area is further determined to be to uniformly make the first target area transparent according to the target transparency, that is, to uniformly adjust the transparency of the pixels corresponding to the first target area to the target transparency.
[0089] On the other hand, according to the configured area determination strategy, a second target area connected to the first target area is determined from the currently covered road and other roads adjacent to it. The second transparency strategy for the second target area is determined to be a gradual transparency process based on the target transparency. This gradual transparency process can be understood as follows: from the end of the second target area closest to the first target area to the end furthest from the first target area, the transparency of different pixels in the second target area is adjusted to a gradual transition from the target transparency to a preset transparency. In other words, for pixels in the second target area, the adjusted transparency is negatively correlated with the distance between them and the first target area. The maximum adjusted transparency of pixels in the second target area is the target transparency, and the minimum adjusted transparency is the preset transparency. The preset transparency is the default transparency of the roads displayed on the map interface (for example, it can be configured to be 0, i.e., completely opaque).
[0090] Optionally, in one embodiment, according to a region determination strategy, a second target region connected to the first target region is determined from the current covered road and other roads connected to the current covered road, including:
[0091] Starting from the two ends of the first target area in the current covered road in the uphill and downhill directions respectively, a path search is performed along the uphill and downhill directions in the current covered road and other roads connected to the current covered road until the path length of the search path reaches the first length threshold.
[0092] Based on the search paths corresponding to the upward and downward directions, determine the second target areas corresponding to the upward and downward directions, respectively.
[0093] It should be noted that the upward direction of a road refers to the direction in which the road mileage markers decrease, while the downward direction of a road refers to the direction in which the road mileage markers increase.
[0094] In this embodiment, starting from both ends of the first target area in the uphill and downhill directions of the current covered road, a path search is performed along the uphill and downhill directions on the current covered road and other roads connected to the current covered road until the path length reaches a first length threshold, or the search path reaches a previously searched area. This first length threshold can be configured to be negatively correlated with the map scale; that is, the larger the map scale, the smaller the first length threshold, and vice versa.
[0095] When the path length of the search path in the upward direction reaches a first length threshold, the road area traversed by the search path in the upward direction is determined as the second target area in the upward direction; when the path length of the search path in the downward direction reaches the first length threshold, the road area traversed by the search path in the downward direction is determined as the second target area in the downward direction. Accordingly, when determining the second transparency strategy for the second target area, along the search path, pixels corresponding to different path lengths within the second target area undergo a linear gradient from target transparency to preset transparency.
[0096] For example, please refer to Figure 1d Section 1 is the currently covered road ( Figure 1d(The current driving road is not shown in the image). Starting from the first target area, the search proceeds downhill along road segment 1. Upon entering intersection 1, since intersection 1 connects road segments 3, 4, and 5, searches are performed on each of these segments until the path lengths of search path 1 (corresponding to road segment 3), search path 2 (corresponding to road segment 4), and search path 3 (corresponding to road segment 5) reach the first length threshold. The road areas traversed by search paths 1, 2, and 3 are then designated as second target areas. In total, three second target areas are identified, and these three second target areas partially overlap with road segment 2. For the overlapping portion of these three second target areas, transparency is calculated only once. Then, transparency is calculated separately for each overlapping portion as its starting point and its respective path endpoint.
[0097] Optionally, in one embodiment, during the path finding process, the intersection is regarded as a search point, and only the length of the road segment traversed by the search path is accumulated as the path length of the search path. Thus, when determining the second transparency strategy of the second target area including the intersection area, since the intersection area is regarded as a search point, the transparency of the corresponding pixel in the intersection area will be determined to be the same transparency between the target transparency and the preset transparency, so that the intersection area is displayed with uniform transparency after the transparency processing, and the display effect is not abrupt.
[0098] Optionally, in one embodiment, the map interface display method provided in this application further includes:
[0099] If at least two first target regions are identified, and other first target regions are found during the path search process corresponding to one of the first target regions, then the length of the target region is determined according to the path length of the search path, and the portion of the length of the target region connected to different first target regions at both ends of the search path is determined as the second target region.
[0100] For example, please refer to Figure 1eTwo first target regions were identified: the left first target region and the right first target region, as shown in Figure 1e. A path search was performed along the right target region at one end of the current covered road in the downward direction. The left first target region was found before the path length reached a first length threshold. At this point, the length difference between the path length and the preset retention length was calculated, and this difference was divided by two to obtain the target region length. Correspondingly, the portion of the target region length connected to different first target regions at both ends of the search path was identified as the second target region. Specifically, the portion connected to the left first target region was the left second target region, and the portion connected to the right first target region was the right second target region. Thus, during transparency processing, the left first target region was uniformly transparent based on its target transparency, while the left second target region was gradually transparent. Similarly, the right first target region was uniformly transparent based on its target transparency, while the right second target region was gradually transparent.
[0101] In 140, the defined target area is made transparent according to the established transparency strategy.
[0102] In this embodiment of the application, after determining the target area in the map interface that needs to be made transparent and the corresponding transparency strategy, the opacity of the pixels in the target area can be adjusted according to the transparency strategy to complete the transparency processing of the target area.
[0103] For example, please refer to Figure 1f If we define the entire currently covered area of the road that is currently covering the road being driven as the target area, and then make it transparent, the road markings of the covered road can be made visible.
[0104] For example, please refer to Figure 1g In addition to defining the currently covered area of the road as the first target area, two second target areas connected to the first target area are also defined. The first target area is uniformly made transparent according to target transparency, while the second target areas are made gradually transparent according to target transparency. Figure 1g As shown, the similarity transparency of the first target region remains consistent, while the transparency of the pixels corresponding to the second target region is negatively correlated with their distance from the first target region, and the transparency gradually changes from the target transparency to the preset transparency.
[0105] Optionally, in one embodiment, the target area is made transparent according to a transparency strategy, including:
[0106] Obtain the current viewpoint position of the driver. If the viewpoint position moves toward the target area, then make the target area transparent according to the transparency strategy.
[0107] It should be noted that the above viewpoint position acquisition operation requires the authorization of the current driver. That is, this application will only acquire the current driver's viewpoint position if the current driver has been authorized to do so.
[0108] In this embodiment, after determining the target area requiring transparency processing and the corresponding transparency strategy, the target area is not immediately made transparent according to the determined transparency strategy. Instead, the timing of transparency processing is determined based on the current driver's viewpoint position. Specifically, the current driver's viewpoint position is obtained according to the configured viewpoint position acquisition algorithm, and it is identified whether the current driver's viewpoint position is moving towards the target area. If the current driver's viewpoint position is identified as moving towards the target area, it is determined that the current driver needs to obtain road information from the map interface for guidance. At this time, the target area is made transparent, making the road markings that are currently obscured on the driving road visible, thus better guiding the current driver.
[0109] It should be noted that the present application does not impose specific restrictions on the viewpoint position acquisition algorithm used, and those skilled in the art can select it according to actual needs.
[0110] Optionally, in one embodiment, after making the target area transparent according to the transparency strategy, the method further includes:
[0111] Get the first image of the map interface;
[0112] Based on the first interface image, obtain the first display quality score of the map interface after transparency processing to show the current driving road;
[0113] If the first display quality score is less than the first display quality threshold, then the currently covered area in the current driving road is determined based on the current covered area;
[0114] A zoomed-in view is overlaid on the map interface, and the currently covered area of the current driving road is displayed in the zoomed-in view. The scale of the zoomed-in view is larger than that of the map interface.
[0115] To ensure that the current driver can obtain the road information required for driving from the electronic map, this application embodiment further magnifies the current driving road in addition to making the map interface transparent.
[0116] Specifically, after the target area is made transparent according to the determined transparency strategy, the interface image of the map interface is further obtained and recorded as the first interface image. According to the configured display quality evaluation strategy, the display quality of the map interface displaying the current driving road after the transparency process is evaluated based on the first interface image, and the display quality score of the map interface displaying the current driving road after the transparency process is obtained and recorded as the first display quality score.
[0117] As mentioned above, after evaluating the first display quality score of the map interface after transparency processing to show the current driving road, it is further identified whether the first display quality score is less than the first display quality threshold. If the first display quality score is less than the first display quality threshold, it is determined that the content currently displayed on the map interface is insufficient to provide enough road information. At this time, a local zoom-in interface is superimposed on the map interface, and the currently covered area of the current driving road is displayed in the local zoom-in interface, and the scale of the local zoom-in interface is larger than the scale of the map interface.
[0118] For example, please refer to Figure 1h In addition to making the first and second target areas transparent, the system also displays the currently covered areas on the driving road at a larger scale than the map interface in the zoomed-in interface, thus ensuring that the driver can obtain sufficient road information to guide the driving.
[0119] As an alternative implementation, the demonstration quality assessment strategy can be configured as follows:
[0120] Based on the first interface image, obtain the visibility of road markings in the currently covered area, and obtain the first display quality score based on the visibility of the road markings.
[0121] Specifically, based on the first interface image of the first interface, the visibility of road markings in the currently covered area can be further obtained, and according to the preset correspondence between visibility and display quality score, the display quality score corresponding to the visibility of the road markings is determined as the first display quality score of the map interface after transparency processing to display the currently driving road.
[0122] As another optional implementation, the demonstration quality assessment strategy can be configured as follows:
[0123] Based on the first interface image, a first display quality score is obtained by displaying a quality assessment model.
[0124] The display quality assessment model can be trained using interface image samples and corresponding label display quality scores. The model architecture is not limited here and can be selected by those skilled in the art according to actual needs. The interface image samples can be interface images used in electronic map applications to display different driving roads, such as interface images where the driving road is covered by other roads but not transparent, interface images where the driving road is covered by other roads and then transparent, and interface images where the driving road is not covered by other roads, etc. The label display quality scores of the interface image samples can be obtained by calibrating the display quality scores of the interface image samples.
[0125] For example, a visual transducer encoding network can be used as the base model for the display quality assessment model. The visual transducer encoding network is trained based on the interface image samples and the corresponding label display quality scores to obtain the display quality assessment model.
[0126] As another optional implementation, the demonstration quality assessment strategy can be configured as follows:
[0127] Based on the first interface image, obtain the visibility of road markings in the currently covered area, and obtain the first candidate display quality score based on the visibility;
[0128] Based on the first interface image, the second candidate display quality score is obtained through the display quality assessment model;
[0129] The first display quality score is obtained based on the first candidate display quality score and the second candidate display quality score.
[0130] In addition to the two optional quality assessment strategies provided above, the two strategies can be combined to achieve a quality assessment of the map interface after transparency processing to display the current driving road.
[0131] On one hand, based on the first interface image obtained, the visibility of road markings in the currently covered area is further obtained. According to the preset correspondence between visibility and display quality score, the display quality score corresponding to the visibility of the road markings is determined as the first candidate display quality score for displaying the currently driving road on the map interface after transparency processing. On the other hand, the first interface image is input into the display quality evaluation model for quality evaluation, resulting in a second candidate display quality score for displaying the currently driving road on the map interface after transparency processing.
[0132] After obtaining the first and second candidate display quality scores for the map interface after transparency processing using the two different quality assessment strategies described above, the first display quality score for the map interface after transparency processing is further obtained based on these first and second candidate display quality scores. Specifically, the first display quality score can be calculated by averaging the first and second candidate display quality scores, calculating a weighted sum of the first and second candidate display quality scores, or selecting the larger or smaller value between the first and second candidate display quality scores, and so on.
[0133] Optionally, in one embodiment, before overlaying a zoomed-in view onto the map interface and displaying the currently covered area of the currently driving road in the zoomed-in view, the method further includes:
[0134] Determine if a header display component is currently available;
[0135] A zoomed-in view is overlaid on the map interface, displaying the currently covered area of the current driving road, including:
[0136] If no head-up display component is currently available, a zoom-in view is overlaid on the map interface, and the currently covered area of the current driving road is displayed in the zoom-in view.
[0137] In this embodiment, the terminal device first determines whether a head-up display (HUD) component is available. If no HUD component is available, a magnified view is overlaid on the map interface, displaying the currently covered area of the driving road. In other embodiments, if a HUD component is available, the currently covered area of the driving road is directly displayed through the HUD component. Compared to overlaying a magnified view on the map interface of a mobile or vehicle-mounted terminal device to display the currently covered area of the driving road, using a HUD component provides a more intuitive display of the currently covered area and eliminates the need for the driver to turn their head, thus minimizing the impact on driving safety.
[0138] Optionally, in one embodiment, before obtaining the current covering area covering the current driving road from the server, the method further includes:
[0139] Get the second interface image of the map interface;
[0140] Based on the second interface image, obtain the second display quality score of the map interface showing the current driving road;
[0141] Retrieve from the server the current covered area of the currently covered road that is currently covering the road being driven, including:
[0142] If the second display quality score is less than the second display quality threshold, then the current covered area of the currently covered road is obtained from the server, and the second display quality threshold is less than the first display quality threshold.
[0143] In this embodiment, the current driving road is not made transparent immediately when it is covered. Instead, the display quality of the covered current driving road on the map interface is evaluated first, and the transparency process is only performed when the display quality is poor.
[0144] When there is a road covering the current driving road, the map interface image at this moment is first obtained and recorded as the second interface image. Then, based on the obtained second interface image, the display quality of the currently covered driving road on the map interface is further evaluated to obtain a second display quality score for the currently driving road on the map interface. The specific implementation of how to obtain the second display quality score for the currently driving road on the map interface based on the second interface image can be referred to the method in the above embodiment for obtaining the first display quality score for the currently driving road on the map interface based on the first interface image, and will not be elaborated here.
[0145] In addition, a second display quality threshold is configured to determine whether the current driving road displayed on the map interface can provide sufficient information. If the second display quality score of the current driving road is less than the second display quality threshold, it is determined that the current driving road displayed on the map interface cannot provide sufficient information to guide the current driver. If the second display quality score of the current driving road is greater than or equal to the second display quality threshold, it is determined that the current driving road displayed on the map interface can provide sufficient information to guide the current driver.
[0146] Accordingly, in this embodiment, if the second display quality score of the map interface showing the current driving road is less than the second display quality threshold, the current overlay area of the currently overlay road is obtained from the server, and then the transparency processing of the map interface is further realized based on the current overlay area. For details, please refer to the relevant descriptions in the above embodiments, which will not be repeated here.
[0147] In other embodiments, if the second display quality score of the currently driving road shown on the map interface is greater than or equal to the second display quality threshold, then wait until the next processing cycle and re-enter execution 110. The processing cycle can be configured according to actual needs, and no specific limitation is made here. For example, if the processing cycle is configured to be 2 seconds, then every 2 seconds it is determined whether there is a currently covered road in the map interface that covers the currently driving road. If it exists, the map interface display method provided in the above embodiments of this application continues to be executed; if it does not exist, then wait until the next processing cycle and re-enter execution 110.
[0148] As can be seen from the above, the map interface display scheme provided in this application involves the terminal device determining the currently covered road in the map interface in real time, and obtaining the currently covered area of the currently covered road from the server. This currently covered area is pre-determined by the server based on the type of the currently covered road and the intersection point of the contours between the road projections of the currently driving road and the currently covered road on the current driving road. Then, based on this currently covered area, the target area in the map interface that needs to be made transparent and the corresponding transparency strategy are determined. Finally, the determined target area is made transparent according to the determined transparency strategy. In this way, based on the dynamic changes of the map interface, the server-determined covered area of the currently covered road can quickly determine the target area in the map interface that needs to be made transparent, and perform the corresponding transparency processing, making the road markings that are currently obscured visible. This ensures that the driver can obtain the information needed for current driving from the electronic map interface, thereby improving the navigation effect of the electronic map.
[0149] Please refer to Figure 2a This application also provides a region determination method suitable for server execution, wherein the server can be an independent physical server, a server cluster composed of multiple physical servers, or a distributed system, such as... Figure 2a As shown, the process of this region determination method suitable for server execution can be as follows:
[0150] In 210, identify the covered road and the covering road that have a covering relationship.
[0151] The server can obtain elevation information of different roads. For a road, the elevation information is used to describe the height of the road from the reference plane. The reference plane can be selected by those skilled in the art according to actual needs, and no specific restrictions are imposed here. For example, a horizontal plane can be selected as the reference plane.
[0152] It should be noted that roads are stored as outline coordinate points in a map coordinate system. For a given road, its corresponding outline coordinate points form the road outline. In this embodiment, roads are divided into two categories: road segments and intersections. Compared to intersections, road segments focus more on the linear portion, characterized by a length much greater than its width. Intersections are where road segments intersect or branch off. For example, please refer to... Figure 2b This shows the road outline of a section and an intersection. It can be seen that, due to the simple shape of the road section (rectangular), only the coordinates of its outline points parallel to the direction of travel are stored, such as... Figure 2b As shown, the outline coordinates of a road segment form the left and right outline edges of that road segment; however, due to the complex shape of an intersection, it is necessary to store the outline coordinates of all intersection points, such as... Figure 2b As shown, the coordinate points of the intersection form the polygonal outline of the intersection.
[0153] It is understandable that if two roads intersect and have different elevation information, they are considered to have a covering relationship. The road with a higher elevation than the reference surface is the covering road, and the road with a lower elevation is the covered road. Therefore, the server can identify the covered and overriding roads based on their elevation information and road contours, and establish a covering correspondence between them.
[0154] In 220, determine the intersection point of the road outline of the covered road and the road outline of the overlaid road in the map coordinate system.
[0155] After identifying the covered roads and the overlapping roads that have a covering relationship, for each pair of covered roads and the overlapping roads, the intersection point of the road contours of the covered roads and the overlapping roads in the map coordinate system is further determined.
[0156] For a road segment, the road outline is the left and right outline edges formed by its outline coordinate points; for an intersection, the road outline is the polygonal outline of the intersection.
[0157] In 230, the covering area of the covered road is determined based on the type of covered road and the intersection of the contours.
[0158] As shown above, after the server determines the intersection point of the road outline of the covered road and the road outline of the overlay road in the map coordinate system, it further determines the overlay area of the covered road according to the configured overlay area determination strategy, based on the type of the overlay road and the intersection point of the outlines.
[0159] The strategy for determining the capping area can be configured as follows:
[0160] If the covered road is an intersection and there is at least one intersection point, then the entire area of the intersection is defined as the covered area; or,
[0161] If the covered road is a road segment and there are at least two contour intersections, then the largest rectangular area that can be determined in the road segment based on the at least two contour intersections will be defined as the covered area.
[0162] For example, please refer to Figure 2c This shows a set of roads that overlap each other, where the overlapping road is an intersection and the covered road is a road segment. Figure 2c As shown, if there are two intersection points between the road profile of a road segment and the road profile of an intersection, then the entire area of the intersection covering the road segment will be determined as the covered area.
[0163] For example, please refer to Figure 2d This shows another set of covered roads and covering roads that have a covering relationship, where the covering road is segment a and the covered road is segment b, as shown below. Figure 2d As shown, the left contour edge of road segment a intersects with both the left and right contour edges of road segment b. That is, there are two contour intersection points between the road contour of road segment a and the road contour of road segment b. At this time, the rectangular area obtained by drawing perpendicular lines from the contour edge where these two intersection points are located to the other contour edge is denoted as the largest rectangular area that can be determined in road segment b based on these two contour intersection points. Accordingly, this rectangular area is regarded as the area covered by road segment b over road segment a.
[0164] For example, please refer to Figure 2e This shows another set of covered roads and covering roads that have a covering relationship, where the covering road is road segment d and the covered road is road segment c, as shown in the example. Figure 2e As shown, the left contour edge of road segment d intersects the left contour edge of road segment c at contour intersection point A and the right contour edge of road segment c at contour intersection point B. The left contour edge of road segment d intersects the left contour edge of road segment c at contour intersection point D and the right contour edge of road segment c at contour intersection point C. That is, the road contour of road segment a and the road contour of road segment b have four contour intersection points. At this time, as... Figure 2e As shown, the rectangular area obtained by drawing perpendicular lines from the contour intersection points D and B to their respective corresponding contour edges is the largest rectangular area that can be determined in road segment d based on the contour intersection points A, B, C, and D. Accordingly, this rectangular area is used as the coverage area of road segment d over road segment c.
[0165] Optionally, in one embodiment, the region determination method provided in this application further includes:
[0166] If there is partial overlap between different covered areas corresponding to different covered roads in the same covered road, then the partially overlapping different covered areas are merged to obtain a merged covered area, and the merged covered area is set as the covered area covering the different covered roads.
[0167] For example, please refer to Figure 2f There are two covered roads corresponding to the same covered road, where the covered road corresponds to two different covered roads with covered areas, namely covered area 1 and covered area 2, as follows: Figure 2f As shown, the covering area 1 and the covering area 2 partially overlap. At this time, the covering area 1 and the covering area 2 are merged into a larger combined covering area 3, and this covering area 3 is used as the common covering area for the two different covered roads corresponding to the covered road.
[0168] As shown above, for each group of covered roads and covering roads with a covering relationship, the covering area of the covering road that covers the covered road can be determined, thereby establishing the correspondence between each group of covered roads and covering roads and the covering area.
[0169] In step 240, in response to the terminal device's request for a coverage area query, the current coverage area of the current road covering the current driving road of the terminal device is returned. The current coverage area is used by the terminal device to determine the target area in the map interface that needs to be transparent and the corresponding transparency strategy. The map interface displays the current driving road and the current coverage road.
[0170] The terminal device can be any device capable of running electronic map applications to provide navigation services. For example, it can be an in-vehicle terminal deployed in a vehicle (any vehicle legally allowed on the road, including cars, motorcycles, and other motor vehicles, as well as bicycles, electric bicycles, and other non-motorized vehicles), or a mobile terminal device that can be used on a mobile device. The map interface of the electronic map application running on the terminal device displays the current driving route and the currently covered road corresponding to the terminal device.
[0171] The current driving road refers to the road that the vehicle providing navigation services is currently traveling on. For example, when the terminal device is an in-vehicle terminal device, the current driving road is the road where the in-vehicle terminal device is currently located; when the terminal device is a mobile terminal device for the driver, the current driving road is the road where the mobile terminal device is currently located. For instance, the terminal device can directly obtain the first road description information of the current driving road from a running electronic map application and determine the current driving road based on this first road description information. Furthermore, it is understood that the size of the geographical area displayed on the map interface is not fixed but can be enlarged or reduced as needed. For the same road, as the size of the geographical area displayed on the map interface changes, the number of roads covering that road will also increase or decrease. Therefore, after determining the current driving road, the terminal device further determines the roads covering the current driving road within the corresponding geographical area on the map interface, and records them as the current covered roads. When determining the current overlay road on the map interface that covers the current driving road, an overlay road query request carrying first road description information is generated and sent to the server. This instructs the server to query the overlay road corresponding to the current driving road described in the first road description information and return second road description information describing that overlay road. Correspondingly, the server responds to the overlay road query request by returning the second road description information to the terminal device. The terminal device then determines candidate overlay roads covering the current driving road based on this second road description information, and further identifies candidate overlay roads located within the corresponding geographical area on the map interface as the current overlay road from these candidate overlay roads.
[0172] After identifying the currently covered road in the map interface, the terminal device further generates a covered area query request carrying first road description information of the current driving road and second road description information of the currently covered road, and sends it to the server. The request instructs the server to query the covered area corresponding to the currently covered road and return area description information describing that covered area. Correspondingly, the server responds to the area query request and returns the corresponding area description information to the terminal device. The terminal device then determines the covered area corresponding to the currently covered road based on this area description information, and records it as the current covered area. Afterwards, the terminal device can further determine the target area in its map interface that needs to be made transparent and the corresponding transparency strategy based on the current covered area. The target area is then made transparent according to the determined transparency strategy to enhance the navigation capabilities of the map interface. For details on how the terminal device determines the target area in its map interface that needs to be made transparent and the corresponding transparency strategy based on the current covered area, and how it makes the target area transparent according to the determined transparency strategy, please refer to the relevant descriptions in the embodiments of the map interface display method above; these will not be repeated here.
[0173] To facilitate better implementation of the above-described map interface display method suitable for terminal devices, this application also provides a corresponding map interface display device. The meanings of the terms used are the same as in the above-described map interface display method suitable for terminal devices; for specific implementation details, please refer to the descriptions in the above method embodiments.
[0174] Please refer to Figure 3 , Figure 3 This is a schematic diagram of the structure of a map interface display device suitable for a terminal device provided in an embodiment of this application. The map interface display device may include a first road determination module 310, a first area determination module 320, a strategy determination module 330, and a strategy execution module 340, wherein...
[0175] The first road determination module 310 is used to determine the currently covered road in the map interface that covers the current driving road;
[0176] The first area determination module 320 is used to obtain from the server the current covered area of the currently covered road that covers the currently driving road. The current covered area is determined in advance by the server based on the type of the currently covered road and the intersection of the road contour of the covered road and the road contour of the covered road in the map coordinate system.
[0177] The strategy determination module 330 is used to determine the target area that needs to be made transparent in the map interface and the corresponding transparency strategy based on the current overlay area.
[0178] The strategy execution module 340 is used to make the target area transparent in accordance with the transparency strategy.
[0179] Optionally, in one embodiment, the strategy determination module 330 is used to determine the current overlay area as a first target area, determine the target transparency based on the distance between the current location and the current overlay area, and determine the first transparency strategy corresponding to the first target area as uniformly transparent processing of the first target area according to the target transparency; and according to the area determination strategy, determine the second target area connected to the first target area from the current overlay road and other roads connected to the current overlay road, and determine the second transparency strategy corresponding to the second target area as gradually transparent processing of the second target area according to the target transparency.
[0180] Optionally, in one embodiment, the strategy determination module 330 is used to perform path searching along the current covered road and other roads connected to the current covered road, starting from the two ends of the first target area in the uphill and downhill directions of the current covered road, until the path length of the search path reaches a first length threshold; and to determine the second target area corresponding to the uphill and downhill directions respectively based on the search paths corresponding to the uphill and downhill directions.
[0181] Optionally, in one embodiment, the strategy determination module 330 is further configured to, if at least two first target regions are determined, and other first target regions are found during the path search process corresponding to a first target region, determine the length of the target region based on the path length of the search path, and determine the portion of the length of the target region connected to different first target regions at both ends of the search path as the second target region.
[0182] Optionally, in one embodiment, the strategy execution module 340 is used to obtain the current viewpoint position of the driver. If the viewpoint position moves toward the target area, the target area is made transparent according to the transparency strategy.
[0183] Optionally, in one embodiment, the map interface display device provided in this application further includes a quality assessment module and a local magnification module. The quality assessment module is used to acquire a first interface image of the map interface; and based on the first interface image, acquire a first display quality score of the map interface after transparency processing to display the current driving road.
[0184] If the first display quality score is less than the first display quality threshold, the local zoom-in module is used to determine the currently covered area in the current driving road based on the current covered area; and to overlay the local zoom-in interface on the map interface and display the currently covered area in the local zoom-in interface, wherein the scale of the local zoom-in interface is larger than the scale of the map interface.
[0185] Optionally, in one embodiment, the quality assessment module is used to obtain the visibility of road markings in the currently covered area based on the first interface image, and obtain a first candidate display quality score based on the visibility; obtain a second candidate display quality score based on the first interface image through a display quality assessment model; and obtain a first display quality score based on the first candidate display quality score and the second candidate display quality score.
[0186] Optionally, in one embodiment, the quality assessment module is further configured to acquire a second interface image of the map interface; and based on the second interface image, acquire a second display quality score of the map interface displaying the currently driving road;
[0187] If the second display quality score is less than the second display quality threshold, the first area determination module 320 obtains the current covered area of the currently covered road from the server, and the second display quality threshold is less than the first display quality threshold.
[0188] For details on the implementation of each of the above modules, please refer to the previous example of the map interface display method, which will not be repeated here.
[0189] To facilitate better implementation of the above-described server-suitable region determination method, this application also provides a corresponding region determination device. The meanings of the terms used are the same as in the above-described server-suitable region determination method; for specific implementation details, please refer to the descriptions in the above method embodiments.
[0190] Please refer to Figure 4 , Figure 4 This is a schematic diagram of a server-suitable region determination device provided in an embodiment of this application. The region determination device may include a second road determination module 410, a contour intersection determination module 420, a second region determination module 430, and a region query module 440, wherein...
[0191] The second road determination module 410 is used to identify the covered road and the covering road that have a covering relationship.
[0192] The contour intersection point determination module 420 is used to determine the contour intersection point of the covered road and the road contour of the road in the map coordinate system.
[0193] The second area determination module 430 is used to determine the covering area of the covered road in the covered road based on the type of covered road and the contour intersection.
[0194] The area query module 440 is used to respond to the coverage area query request of the terminal device and return the current coverage area of the current road of the current driving road of the coverage terminal device. The current coverage area is used by the terminal device to determine the target area that needs to be transparent in the map interface and the corresponding transparency strategy. The map interface displays the current driving road and the current coverage road.
[0195] Optionally, in one embodiment, the second region determination module 430 is used to: if the covered road is an intersection and there is at least one contour intersection, then determine the entire area of the intersection as the covered region; or, if the covered road is a road segment and there are at least two contour intersections, then determine the largest rectangular area that can be determined in the road segment based on the at least two contour intersections as the covered region.
[0196] Optionally, in one embodiment, the second region determination module 430 is further configured to, if there is partial overlap between different covered areas corresponding to different covered roads in the same covered road, merge the partially overlapping different covered areas to obtain a merged covered area, and set the merged covered area as the covered area for covering different covered roads.
[0197] For details on the implementation of each of the above modules, please refer to the previous implementation examples of the region determination method, which will not be repeated here.
[0198] This application also provides an electronic device, including a memory and a processor. When the electronic device is configured as a terminal device, the processor executes the steps in the map interface display method suitable for terminal devices provided in the above embodiments by calling a computer program stored in the memory, or executes the steps in the region determination method suitable for servers provided in the above embodiments when the electronic device is configured as a server.
[0199] Please refer to Figure 5 , Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.
[0200] The electronic device may include components such as a processor 101 with one or more processing cores, a memory 102 with one or more computer-readable storage media, a power supply 103, and an input unit 104. Those skilled in the art will understand that... Figure 5 The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein:
[0201] The processor 101 is the control center of the electronic device, connecting various parts of the device via various interfaces and lines. It executes software programs and / or modules stored in the memory 102, and calls data stored in the memory 102, to perform various functions and process data. Optionally, the processor 101 may include one or more processing cores; alternatively, the processor 101 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, while the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 101.
[0202] The memory 102 can be used to store software programs and modules. The processor 101 executes various functional applications and data processing by running the software programs and modules stored in the memory 102. The memory 102 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 102 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 102 may also include a memory controller to provide the processor 101 with access to the memory 102.
[0203] The electronic device also includes a power supply 103 that supplies power to the various components. Optionally, the power supply 103 can be logically connected to the processor 101 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 103 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0204] The electronic device may also include an input unit 104, which can be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
[0205] Although not shown, the electronic device may also include a display unit, an image acquisition component, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 101 loads one or more executable codes corresponding to computer programs into the memory 102, and the processor 101 executes the steps in the map interface display method provided in this application. For example, when the electronic device is configured as a terminal device, the processor 101 executes the map interface display method suitable for terminal devices provided in this application.
[0206] Determine the currently covered road in the map interface that is overriding the current driving road;
[0207] The server retrieves the current covered area of the road that is currently covering the road being driven. The current covered area is determined in advance by the server based on the type of the road being covered and the intersection of the road outline of the covered road and the road outline of the covering road in the map coordinate system.
[0208] Based on the current overlay area, determine the target area in the map interface that needs to be made transparent and the corresponding transparency strategy;
[0209] In accordance with the transparency strategy, the target area is made transparent.
[0210] For example, when an electronic device is configured as a server, the processor 101 executes the server-appropriate region determination method provided in this application:
[0211] Identify the covered roads and the roads that have a covering relationship;
[0212] Determine the intersection point of the outlines of the covered road and the road outlines of the road covering the road in the map coordinate system;
[0213] Based on the type of covered road and the intersection of its contours, determine the covered area of the covered road that is being covered by the covered road;
[0214] In response to the terminal device's request for a coverage area query, the current coverage area of the current road being covered by the terminal device is returned. The current coverage area is used by the terminal device to determine the target area in the map interface that needs to be made transparent and the corresponding transparency strategy. The map interface displays the current driving road and the current covered road.
[0215] It should be noted that the electronic device provided in this application embodiment and the map interface display method suitable for terminal devices / region determination method suitable for servers in the above embodiments belong to the same concept. For details of its specific implementation process, please refer to the above related embodiments, which will not be repeated here.
[0216] This application also provides a computer-readable storage medium storing a computer program thereon. When the computer program stored thereon is executed on the processor of the electronic device provided in the embodiments of this application, the processor causes the processor to implement the steps of the map interface display method suitable for terminal devices provided in this application when the electronic device is configured as a terminal device, or causes the processor to implement the steps of the region determination method suitable for servers provided in this application when the electronic device is configured as a server. The storage medium may be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.
[0217] This application also provides a computer program product, which includes a computer program that, when executed on a processor of an electronic device provided in the embodiments of this application, causes the processor to implement the steps in the map interface display method suitable for terminal devices provided in this application when the electronic device is configured as a terminal device, or causes the processor to implement the steps in the region determination method suitable for servers provided in this application when the electronic device is configured as a server.
[0218] The foregoing has provided a detailed description of the map interface display method, map interface display device, region determination method, region determination device, electronic device, computer-readable storage medium, and computer program product provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
[0219] It should be noted that when the above embodiments of this application are applied to specific products or technologies, and user-related data is involved, user permission or consent is required, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
Claims
1. A map interface display method, applicable to a terminal device, characterized in that, The method comprises the following steps: determining a current pressing road in a map interface which presses a current driving road; obtaining a current pressing area in the current pressing road which presses the current driving road from a server, the current pressing area being determined by the server according to a type of the current pressing road and a profile intersection of a road profile of the pressed road and a road profile of the pressing road in a map coordinate system; determining a target area in the map interface which needs transparent processing and a corresponding transparent strategy according to the current pressing area; transparent processing the target area according to the transparent strategy.
2. The map interface presentation method of claim 1, wherein, The step of determining the target area in the map interface which needs transparent processing and the corresponding transparent strategy according to the current pressing area comprises the following steps: determining the current pressing area as a first target area, determining a target transparency according to a distance between a current position and the current pressing area, and determining a first transparent strategy corresponding to the first target area as uniform transparent processing of the first target area according to the target transparency; determining a second target area connected with the first target area from the current pressing road and other roads connected with the current pressing road according to a region determination strategy, and determining a second transparent strategy corresponding to the second target area as gradual transparent processing of the second target area according to the target transparency.
3. The map interface presentation method of claim 2, wherein, The step of determining the second target area connected with the first target area from the current pressing road and other roads connected with the current pressing road according to the region determination strategy comprises the following steps: respectively taking two ends of the first target area in an uplink direction and a downlink direction of the current pressing road as starting points, and performing path searching in the current pressing road and other roads connected with the current pressing road along the uplink direction and the downlink direction until a path length of the searched path reaches a first length threshold; determining a second target area corresponding to the uplink direction and the downlink direction respectively according to the searched path corresponding to the uplink direction and the downlink direction.
4. The map interface presentation method of claim 3, wherein, The method further comprises the following steps: if at least two first target areas are determined and other first target areas are found in the path searching process corresponding to a first target area, determining a target area length according to a path length of the searched path, and determining a part of the target area length connected with different first target areas at two ends of the searched path as a second target area.
5. The map interface presentation method of claim 1, wherein, The step of transparent processing the target area according to the transparent strategy comprises the following steps: obtaining a viewpoint position of a current driver, and if the viewpoint position moves towards the target area, transparent processing the target area according to the transparent strategy.
6. The map interface presentation method of claim 5, wherein, The method further comprises the following steps after the step of transparent processing the target area according to the transparent strategy: obtaining a first interface image of the map interface; obtaining a first display quality score of the map interface after transparent processing for displaying the current driving road according to the first interface image; determining a current tamping region in the current driving road according to the current tamping area if the first display quality score is less than a first display quality threshold; superimposing a local zoom-in interface on the map interface, and displaying the current tamping region in the local zoom-in interface, the scale of the local zoom-in interface being greater than the scale of the map interface.
7. The map interface presentation method of claim 6, wherein, The first display quality score of the map interface after the transparent treatment for displaying the current driving road is obtained according to the first interface image, including: obtaining the visibility of the road marking in the current tamping region according to the first interface image, and obtaining a first candidate display quality score according to the visibility; obtaining a second candidate display quality score through a display quality evaluation model according to the first interface image; obtaining the first display quality score according to the first candidate display quality score and the second candidate display quality score.
8. The map interface presentation method of claim 6, wherein, Before the current tamping region in the current tamping road tamping the current driving road is obtained from the server, further comprising: obtaining a second interface image of the map interface; obtaining a second display quality score of the map interface for displaying the current driving road according to the second interface image; The current tamping region in the current tamping road tamping the current driving road is obtained from the server, including: if the second display quality score is less than a second display quality threshold, the current tamping region in the current tamping road tamping the current driving road is obtained from the server, and the second display quality threshold is less than the first display quality threshold.
9. A region determination method, applicable to a server, characterized in that, Further comprising: identifying the tamped road and the tamping road with tamping relationship; determining the profile intersection of the road profile of the tamped road and the road profile of the tamping road in the map coordinate system; determining the tamping region of the tamping road tamping the tamped road according to the type of the tamping road and the profile intersection; in response to the tamping region query request of the terminal device, returning the current tamping region of the current tamping road tamping the current driving road of the terminal device, the current tamping region being used for the terminal device to determine the target region needing transparent treatment and the corresponding transparent strategy in the map interface, and the current driving road and the current tamping road being displayed in the map interface.
10. The region determination method of claim 9, wherein, The tamping region of the tamping road tamping the tamped road is determined according to the type of the tamping road and the profile intersection, including: if the tamping road is an intersection and there is at least one profile intersection, determining all regions of the intersection as the tamping region; or if the tamping road is a road segment and there are at least two profile intersections, determining the maximum rectangular region that can be determined in the road segment according to the at least two profile intersections as the tamping region.
11. The region determination method of claim 9, wherein, Further comprising: if different tamping regions corresponding to different tamped roads in the same tamping road partially overlap, merging the partially overlapping different tamping regions to obtain a merged tamping region, and setting the merged tamping region as the tamping region tamping the different tamped roads.
12. A map interface presentation device adapted for a terminal device, characterized in that including: The first road determining module is configured to determine a current cover road in the map interface that covers a current driving road; The first area determining module is configured to acquire, from the server, a current cover area in the current cover road that covers the current driving road, the current cover area being determined by the server according to a type of the current cover road and a contour intersection between the current driving road and the current cover road in a road projection of the current driving road; The policy determining module is configured to determine, according to the current cover area, a target area in the map interface that needs to be transparentized and a corresponding transparentization policy; The policy executing module is configured to transparentize the target area according to the transparentization policy.
13. A region determining apparatus adapted for a server, characterized by comprising: The second road determining module is configured to identify a covered road and a cover road that have a cover relationship; The contour intersection determining module is configured to determine a contour intersection between a road contour of the covered road and a road contour of the cover road in a map coordinate system; The second area determining module is configured to determine, according to the type of the cover road and the contour intersection, a cover area in the cover road that covers the covered road; The area querying module is configured to return, in response to a cover area querying request of a terminal device, a current cover area of a current cover road that covers a current driving road of the terminal device, the current cover area being used by the terminal device to determine a target area in a map interface that needs to be transparentized and a corresponding transparentization policy, the current driving road and the current cover road being displayed in the map interface. The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor executes the computer program in the memory when the electronic device is configured as a terminal device to implement steps in the map interface display method of any one of claims 1 to 8.
14. An electronic device, comprising: Alternatively, the processor executes the computer program in the memory when the electronic device is configured as a server to implement steps in the area determining method of any one of claims 9 to 11. The computer readable storage medium stores a computer program, and the computer program is adapted to be executed by the processor to implement steps in the map interface display method of any one of claims 1 to 8 or implement steps in the area determining method of any one of claims 9 to 11.
15. A computer-readable storage medium, characterized in that, The computer program is executed by the processor to implement steps in the map interface display method of any one of claims 1 to 8 or implement steps in the area determining method of any one of claims 9 to 11.
16. A computer program product comprising a computer program, characterized in that,