Road surface generation method and apparatus, computer device, and storage medium

By expanding the road lines in the electronic map and adjusting the width adjustment ratio, the rendering distortion and flickering problems caused by the imbalance of road surface width in ordinary electronic maps are solved, and the rendering accuracy and visual effects of the electronic map are improved.

WO2024222657A1PCT designated stage expired Publication Date: 2024-10-31TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/089240
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-24
Filing Date
2024-04-23
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

In ordinary electronic maps, due to the unbalanced width adjustment ratio between road surfaces, the rendering effect is distorted and there is flickering, which affects the accuracy of the electronic map.

Method used

By obtaining the road lines of the electronic map, the road surface is expanded, and the width adjustment ratio is determined. The adjustment is made to ensure that the difference in the width adjustment ratio of any two road surfaces is not greater than the threshold, thereby avoiding overlap and distortion and achieving more accurate rendering.

Benefits of technology

It effectively reduces the overlap and flickering problems between road surfaces, improves the rendering accuracy and visual effects of electronic maps, and ensures a balanced road surface width adjustment ratio.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024089240_31102024_PF_FP_ABST
    Figure CN2024089240_31102024_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present application relate to the technical field of maps, and disclose a road surface generation method and apparatus, a computer device, and a storage medium. The method comprises: acquiring a plurality of road lines of an electronic map, and expanding the plurality of road lines to obtain a plurality of road surfaces having widths; when a road surface overlap occurs in the plurality of road surfaces, determining a first group of width adjustment ratios for adjusting the widths of the plurality of road surfaces; adjusting a width adjustment ratio of at least one of the plurality of road surfaces in the first group of width adjustment ratios to obtain a second group of width adjustment ratios of the plurality of road surfaces, wherein in the second group of width adjustment ratios, an absolute value of a difference between the width adjustment ratios of any two road surfaces in the plurality of road surfaces is not greater than a ratio threshold; and adjusting the widths of the plurality of road surfaces on the basis of the second group of width adjustment ratios.
Need to check novelty before this filing date? Find Prior Art

Description

Road surface generation method, device, computer equipment and storage medium

[0001] This application claims priority to the Chinese patent application with application number 202310454010.1 filed on April 24, 2023, and invention name “Road surface generation method, device, computer equipment and storage medium”. Technical Field

[0002] The embodiments of the present application relate to the field of map technology, and in particular to a road surface generation method, apparatus, computer equipment, and storage medium. Background Art

[0003] Electronic maps are divided into high-precision electronic maps and standard electronic maps. On standard electronic maps, roads are represented by lines without width, while on high-precision electronic maps, roads are represented by road surfaces with width. For areas where only standard electronic maps are available but no high-precision electronic maps are available, the road surfaces can be expanded from the road lines on the standard electronic map and then rendered for display to achieve the effect of a high-precision map.

[0004] In related technologies, in order to avoid overlapping areas between expanded road surfaces, the width of the road surface can be adjusted according to the width adjustment ratio. However, this will result in a large difference between the width adjustment ratios of different road surfaces, resulting in distorted rendering effects of the road surface.

[0005] Summary of the Invention

[0006] The present invention provides a method, device, computer equipment, and storage medium for generating a road surface. The technical solution is as follows:

[0007] In one aspect, a road surface generation method is provided, the method comprising:

[0008] Acquire multiple road lines from an electronic map, and expand the multiple road lines to obtain multiple road surfaces having widths;

[0009] determining a first set of width adjustment ratios for adjusting widths of the plurality of road surfaces when there is overlap among the plurality of road surfaces;

[0010] adjusting the width adjustment ratio of at least one road surface among the plurality of road surfaces in the first set of width adjustment ratios to obtain a second set of width adjustment ratios for the plurality of road surfaces, wherein an absolute value of a difference between the width adjustment ratios of any two road surfaces among the plurality of road surfaces in the second set of width adjustment ratios is not greater than a ratio threshold;

[0011] The widths of the plurality of road surfaces are adjusted based on the second set of width adjustment ratios.

[0012] In another aspect, a road surface generation device is provided, the device comprising:

[0013] a data acquisition module, configured to acquire a plurality of road lines from an electronic map, and expand the plurality of road lines to obtain a plurality of road surfaces having widths;

[0014] a ratio determination module, configured to determine a first set of width adjustment ratios for adjusting the widths of the plurality of road surfaces when there is overlap among the plurality of road surfaces;

[0015] a ratio adjustment module, configured to adjust the width adjustment ratio of at least one road surface among the plurality of road surfaces in the first set of width adjustment ratios to obtain a second set of width adjustment ratios for the plurality of road surfaces, wherein an absolute value of a difference between the width adjustment ratios of any two road surfaces among the plurality of road surfaces in the second set of width adjustment ratios is not greater than a ratio threshold;

[0016] A road surface rendering module is configured to adjust the widths of the plurality of road surfaces based on the second set of width adjustment ratios.

[0017] On the other hand, a computer device is provided, which includes a processor and a memory, wherein the memory stores at least one computer program, and the at least one computer program is loaded and executed by the processor to implement the operations performed by the road surface generation method described in the above aspects.

[0018] On the other hand, a computer-readable storage medium is provided, in which at least one computer program is stored. The at least one computer program is loaded and executed by a processor to implement the operations performed by the road surface generation method as described in the above aspects.

[0019] On the other hand, a computer program product is provided, comprising a computer program, wherein the computer program is loaded and executed by a processor to implement the operations performed by the road surface generation method as described in the above aspects.

[0020] The solution provided by the embodiments of the present application expands a road line to obtain multiple road surfaces, then determines the width adjustment ratios for the multiple road surfaces. If the absolute value of the difference between the width adjustment ratios of two road surfaces is greater than a ratio threshold, the width adjustment ratios of the two road surfaces are considered unbalanced. Based on this, the width adjustment ratio of at least one of the multiple road surfaces is adjusted so that the absolute value of the difference between the width adjustment ratios of any two road surfaces is no greater than the ratio threshold. The width of the road surface is then adjusted based on the adjusted width adjustment ratio, and the adjusted road surface is rendered. This method can render a road surface with width based on a road line without width, reduces flickering on the electronic map screen, and improves the accuracy of the road surface on the electronic map. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0022] FIG1 is a schematic diagram of an implementation environment provided by an embodiment of the present application;

[0023] FIG2 is a schematic diagram of an electronic map provided in an embodiment of the present application;

[0024] FIG3 is a schematic diagram of an expanded electronic map provided in an embodiment of the present application;

[0025] FIG4A is a flow chart of a road surface generation method provided in an embodiment of the present application;

[0026] FIG4B is a schematic diagram of a road surface generation method provided in an embodiment of the present application;

[0027] FIG5 is a flow chart of a road surface generation method provided in an embodiment of the present application;

[0028] FIG6 is a flow chart of a road surface generation method provided in an embodiment of the present application;

[0029] FIG7 is a flow chart of determining an unbalanced road surface provided by an embodiment of the present application;

[0030] FIG8 is a flow chart of determining an unbalanced road surface group provided by an embodiment of the present application;

[0031] FIG9 is a flow chart of determining an unbalanced road surface set according to an embodiment of the present application;

[0032] FIG10 is a schematic diagram of an unbalanced road surface set provided in an embodiment of the present application;

[0033] FIG11 is a flow chart of adjusting the width adjustment ratio provided by an embodiment of the present application;

[0034] FIG12 is a flow chart of determining an unbalanced road surface set provided by an embodiment of the present application;

[0035] FIG13 is a flow chart of a road surface generation method provided in an embodiment of the present application;

[0036] FIG14 is a schematic structural diagram of a road surface generating device provided in an embodiment of the present application;

[0037] FIG15 is a schematic structural diagram of another road surface generating device provided in an embodiment of the present application;

[0038] FIG16 is a schematic structural diagram of a terminal provided in an embodiment of the present application;

[0039] FIG17 is a schematic diagram of the structure of a server provided in an embodiment of the present application. DETAILED DESCRIPTION

[0040] In order to make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0041] It is understood that the terms "first", "second", etc. used in this application can be used to describe various concepts in this article, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another.

[0042] Here, "at least one" refers to one or more than one. For example, at least one unbalanced road surface set can be one unbalanced road surface set, two unbalanced road surface sets, three unbalanced road surface sets, or any other unbalanced road surface set greater than or equal to one. "Multiple" refers to two or more than two. For example, multiple unbalanced road surface sets can be two unbalanced road surface sets, three unbalanced road surface sets, or any other unbalanced road surface set greater than or equal to two. "Each" refers to each of at least one. For example, each unbalanced road surface set refers to each unbalanced road surface set in the multiple unbalanced road surface sets. If the multiple unbalanced road surface sets are three unbalanced road surface sets, then each unbalanced road surface set refers to each unbalanced road surface set in the three unbalanced road surface sets.

[0043] It can be understood that in the implementation of the present application, related data such as road information and map data including road location information are involved. When the above embodiments of the present application are applied to specific products or technologies, the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0044] FIG1 is a schematic diagram of an implementation environment provided by an embodiment of the present application. Referring to FIG1 , the implementation environment includes a server 101 and a terminal 102. The server 101 and the terminal 102 are directly or indirectly connected via wired or wireless communication. The server 101 expands multiple road lines on an electronic map in a road network database to obtain multiple road surfaces and determines a width adjustment ratio for each road surface. Based on this, the server 101 can further adjust the width adjustment ratios of the road surfaces so that the absolute value of the difference between the width adjustment ratios of any two road surfaces after adjustment is no greater than a ratio threshold. Furthermore, the server 101 can adjust the widths of the road surfaces based on the adjusted width adjustment ratios to obtain adjusted road surface data. The server 101 can compile the adjusted road surface data to convert the text file-based road surface data into a binary file, which is then provided to upper-layer applications (e.g., navigation applications, positioning applications, rendering applications, etc.) for invocation. In some embodiments, the terminal 102 is installed with an electronic map application for implementing map display and navigation functions. The server 101 is configured to provide services for the electronic map application on the terminal 102. After obtaining the adjusted road surface data, the server 101 may provide it to the electronic map application of the terminal 102. The terminal 102 renders the adjusted road surface data and displays the rendered electronic map in the electronic map application, thereby providing an electronic map service.

[0045] In one possible implementation, server 101 can be a standalone physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. Terminal 102 can be a smartphone, tablet computer, laptop computer, desktop computer, smart speaker, smart watch, in-vehicle terminal, etc.

[0046] The road surface generation method provided in the embodiment of the present application can be applied to the scenario of converting an ordinary electronic map into a high-precision electronic map.

[0047] Ordinary electronic maps have low accuracy, with roads represented by links without width. High-precision electronic maps have higher accuracy, with roads represented by road surfaces with width. Currently, lane-level navigation primarily uses high-precision electronic maps. However, some areas only have map data from ordinary electronic maps, not high-precision electronic maps. To achieve a similar effect to a high-precision electronic map in areas where high-precision electronic map data is unavailable, it is necessary to first expand the road information in the ordinary electronic map to determine the road surface, and then render and display it to achieve the effect of a high-precision map.

[0048] Each road line in an ordinary electronic map has some road attribute information, such as road grade, number of lanes, etc., and the road width can be determined based on this road attribute information. In an embodiment of the present application, the road line can be regarded as the center line of the road surface. Figure 2 is a schematic diagram of an electronic map provided by an embodiment of the present application. As shown in Figure 2, in an ordinary electronic map, line segments without width are used to represent roads. Each line segment represents a road, and each line segment is composed of a number of discrete shape points. By expanding the road line shown in Figure 2, a road surface can be obtained. Figure 3 is a schematic diagram of an expanded electronic map provided by an embodiment of the present application. As shown in Figure 3, taking the road line in the electronic map as the center line, the boundaries are expanded to both sides to obtain a road surface with width.

[0049] Since each road surface is independent of each other when generated by expansion, overlap may occur between the road surfaces. There is an overlapping area between two road surfaces, which can also be referred to as an overlapping relationship between the two road surfaces, or an intersection area between the two road surfaces. In the overlapping area, depth conflict (z-fighting) will occur when rendering, causing the presented electronic map image to flicker. In order to alleviate the flickering problem caused by the existence of overlapping areas between the road surfaces obtained by expansion, the width of the road surface can be adjusted according to the width adjustment ratio after expansion. However, this will result in a large difference between the width adjustment ratios of different road surfaces, which may cause the rendering effect of the road surface in the electronic map to be distorted to a large extent compared with the corresponding road surface in reality, misleading the user. By adopting the road surface generation method provided in the embodiment of the present application, the width adjustment ratio of the road surface is adjusted, thereby alleviating the problem of imbalance in the width adjustment ratio and improving the accuracy of the road surface in the subsequent electronic map.

[0050] FIG4A is a flow chart of a road surface generation method provided in an embodiment of the present application, which is executed by a computer device. Referring to FIG4A , the method includes:

[0051] 401. A computer device obtains a plurality of road lines from an electronic map, and expands the plurality of road lines to obtain a plurality of road surfaces having widths.

[0052] In standard-precision electronic maps, roads are represented by road lines without width. In high-precision electronic maps, roads are represented by road surfaces with width. To achieve a high-precision electronic map-like effect using standard-precision electronic map data in areas where high-precision electronic map data is unavailable, the road lines in the standard-precision electronic map can be expanded to create road surfaces with width.

[0053] FIG4B is a schematic diagram of a road surface generation method provided by an embodiment of the present application. Referring to FIG4B , a computer device obtains multiple road lines of an electronic map 405. At box 406, the computer device can expand the multiple road lines based on the road attribute information of the multiple road lines to obtain multiple road surfaces with widths. One example road line is road line 1. For example, after the computer device determines the initial width corresponding to the road of road line 1, i.e., W1, based on the road attribute information of road line 1, it can expand to both sides of the road line 1 with road line 1 as the center line based on the initial width to determine the two side boundaries 411, 412 and two end boundaries 413, 414 of the road surface. On this basis, the computer device uses the area enclosed by the two side boundaries 411, 412 and the two end boundaries 413, 414 as the road surface 1 after the road line 1 is expanded, with a width of W1. The road surface obtained by expanding the road line can be called the initial road surface. The initial boundary information of the initial road surface may include the coordinates of multiple points on the boundaries of the road surface, for example, multiple points 415 on the side boundaries 411, 412 and the end boundaries 413, 414 in FIG4B . In this way, the four boundaries of the road surface can be represented as four sets of point strings.

[0054] 402. When road surfaces overlap among the multiple road surfaces, the computer device determines a first set of width adjustment ratios for adjusting the widths of the multiple road surfaces.

[0055] To prevent overlap between different road surfaces due to expansion, after obtaining multiple road surfaces, a width adjustment ratio can be determined for each of the multiple road surfaces. This width adjustment ratio is used to adjust the width of the road surfaces so that no two road surfaces overlap. For example, as shown in box 407 in Figure 4B , road surface 1, obtained by expanding road line 1, may overlap with road surface 2, with an overlapping area 414. To prevent overlap between road surface 1 and road surface 2, width adjustment ratio 1 for road surface 1 and width adjustment ratio 2 for road surface 2 are determined so that after adjusting the widths of road surface 1 and road surface 2 according to width adjustment ratio 1 and width adjustment ratio 2, no overlap occurs between the two road surfaces. According to Figure 4B , width adjustment ratio 1 for road surface 1 is W1' / W1, and width adjustment ratio 2 for road surface 2 is W2' / W2. In this embodiment of the present application, it is considered that if the width adjustment ratios of different road surfaces differ significantly, the road surfaces in the rendered electronic map may be distorted. Therefore, before adjusting the width of the road surface according to the width adjustment ratio, the computer device first obtains the width adjustment ratio of the road surface and determines whether the width adjustment ratios of each road surface are significantly different. If the difference is significant, the following step 403 is executed.

[0056] 403. The computer device adjusts the width adjustment ratio of at least one road surface among the multiple road surfaces in the first set of width adjustment ratios to obtain a second set of width adjustment ratios for the multiple road surfaces, wherein the absolute value of the difference between the width adjustment ratios of any two road surfaces among the multiple road surfaces in the second set of width adjustment ratios is not greater than a ratio threshold.

[0057] If the absolute value of the difference between the width adjustment ratios of two road surfaces is greater than a ratio threshold, it is considered that the width adjustment ratios of the two road surfaces differ greatly and the width adjustment ratios of the two road surfaces are unbalanced. In other words, the imbalance of the width adjustment ratios of the two road surfaces means that the absolute value of the difference between the width adjustment ratios of the two road surfaces is greater than a ratio threshold. The ratio threshold can be preset. In order to avoid distortion of the rendered road surface caused by the imbalance of the width adjustment ratios between the road surfaces, the computer device adjusts the width adjustment ratio of at least one road surface among the multiple road surfaces so that in the second set of width adjustment ratios of the multiple road surfaces obtained after adjustment, the absolute value of the difference between the width adjustment ratios of any two road surfaces among the multiple road surfaces is not greater than the ratio threshold, thereby reducing the imbalance of the width adjustment ratios. As shown in box 408 of Figure 4B, the width adjustment ratio 1 of road surface 1 can be adjusted to width adjustment ratio 1', and the width adjustment ratio 2 of road surface 2 can be adjusted to width adjustment ratio 2'.

[0058] 404. The computer device adjusts the widths of the plurality of road surfaces based on the second set of width adjustment ratios. The computer device may also render the road surfaces of the electronic map according to the boundary information of the road surfaces after the width adjustment (as shown in 410 of FIG. 4B ).

[0059] After determining the adjusted width adjustment ratio of the road surface, the computer device multiplies the adjusted width adjustment ratio by the initial width of the road surface (the width of the expanded road surface) to obtain the adjusted width. Based on the adjusted width, the computer device calculates boundary information for the road surface. Boundary information includes the locations of the two side boundaries and two end boundaries of the road surface in the electronic map. For example, in block 409 of FIG4B , the adjusted width adjustment ratio 1′ of road surface 1 is multiplied by its initial width W1 to obtain its adjusted width W1″. After the width of the road surface is adjusted, the locations of the two side boundaries of the road surface in the electronic map may change compared to before the adjustment. Therefore, based on the locations of the corresponding road lines in the road surface and the adjusted width of the road surface, the locations of the two side boundaries of the road surface in the electronic map after the width adjustment can be determined. Because the width adjustment ratios of the road surfaces are adjusted, the width adjustment ratios of any two road surfaces after the adjustment are similar. Therefore, scale distortion will not occur during the rendering of the road surfaces, thereby improving rendering accuracy.

[0060] The method provided in the embodiment of the present application expands the road lines of the electronic map to obtain multiple road surfaces. Then, the width adjustment ratios of the multiple road surfaces are determined. If the absolute value of the difference between the width adjustment ratios of two road surfaces is greater than a ratio threshold, it is considered that the width adjustment ratios of the two road surfaces are unbalanced. Based on this, the width adjustment ratio of at least one road surface among the multiple road surfaces is adjusted so that the absolute value of the difference between the width adjustment ratios of any two road surfaces is not greater than the ratio threshold, and then the width of the road surface is adjusted based on the adjusted width adjustment ratio, and the adjusted road surface is rendered. This method can render a road surface with width based on a road line without width, and solves the problem of road surface distortion caused by an imbalance in the width adjustment ratio, which is conducive to ensuring the accuracy of the road surface.

[0061] The embodiments shown in FIG. 4A and FIG. 4B are examples of a method for generating a road surface. The detailed process of processing the road surface can be found in the embodiment shown in FIG. 5 below.

[0062] FIG5 is a flow chart of a road surface generation method provided by an embodiment of the present application. The embodiment of the present application is executed by a computer device. Referring to FIG5 , the method includes:

[0063] 501. A computer device obtains a plurality of road lines from an electronic map, and expands the plurality of road lines to obtain a plurality of road surfaces having widths.

[0064] In one possible implementation, the process of expanding road lines to obtain road surfaces is as follows: obtaining road attribute information of multiple road lines, determining initial widths of the multiple road lines based on the road attribute information, and expanding the multiple road lines according to the initial widths to obtain multiple road surfaces.

[0065] The road attribute information includes road type, road grade, and number of lanes. For example, the road type can be highway, urban road, factory road, or forest road. For example, the road grade can be expressway, main road, secondary road, or branch road. Another example is expressway, first-class highway, second-class highway, third-class highway, or fourth-class highway.

[0066] The Road Engineering Technical Specifications specify the range of lane widths for different road attributes. Therefore, the initial width of the road surface can be determined by combining the lane width ranges for each road attribute specified in the Road Engineering Technical Specifications. The electronic map defines the location of road lines. Once the initial width of the road surface is determined, the road surface can be expanded in both directions from the road line as the centerline according to this initial width to obtain the road surface.

[0067] 502. When road surfaces overlap among the multiple road surfaces, the computer device determines a first set of width adjustment ratios for adjusting the widths of the multiple road surfaces.

[0068] In one possible implementation, a computer device determines, among a plurality of road surfaces, a pair of overlapping road surfaces having overlapping areas therebetween; performs a clustering operation on the plurality of overlapping road surfaces to obtain at least one set of overlapping road surfaces; and determines a width adjustment ratio of the road surfaces in the set of overlapping road surfaces so that no overlapping area exists between any two road surfaces after the widths of the road surfaces are adjusted based on the width adjustment ratio.

[0069] The computer device obtains initial boundary information of the expanded road surface, determines a pair of overlapping road surfaces having overlapping areas therebetween based on the initial boundary information of the road surface, and then determines a width adjustment ratio of the road surfaces in the set of overlapping road surfaces.

[0070] The width adjustment ratio is a value between 0 and 1. If the width adjustment ratio is 1, it means that there is no need to adjust the width of the road surface. In some embodiments, the ratio threshold can be flexibly set according to actual conditions, for example, the ratio threshold is set to 0.05.

[0071] 503. The computer device determines, based on the first set of width adjustment ratios of the plurality of road surfaces, a plurality of pairs of unbalanced road surfaces among the plurality of road surfaces, wherein an absolute value of a difference between width adjustment ratios of two road surfaces in any one of the plurality of unbalanced road surfaces is greater than a ratio threshold.

[0072] If the absolute value of the difference between the width adjustment ratios of two road surfaces is greater than a ratio threshold, the difference in the width adjustment ratios of the two road surfaces is considered significant, and the width adjustment ratios of the two road surfaces are unbalanced. The two road surfaces are then identified as an unbalanced road pair. In other words, an unbalanced width adjustment ratio between two road surfaces means that the absolute value of the difference between the width adjustment ratios of the two road surfaces is greater than a ratio threshold.

[0073] 504. The computer device performs a clustering operation on the multiple unbalanced road surfaces to obtain at least one unbalanced road surface set.

[0074] An unbalanced road surface set includes at least two road surfaces, and the width adjustment ratio between any one road surface in the unbalanced road surface set and at least one road surface in the unbalanced road surface set is unbalanced. In other words, the absolute value of the difference between the width adjustment ratio of any one road surface in the unbalanced road surface set and the width adjustment ratio of at least one road surface in the unbalanced road surface set is greater than a ratio threshold.

[0075] 505. The computer device adjusts the width adjustment ratios of the road surfaces in at least one unbalanced road surface set in the first set of width adjustment ratios so that the absolute value of the difference between the width adjustment ratios of any two road surfaces in any unbalanced road surface set of the at least one unbalanced road surface set after adjustment is no greater than a ratio threshold, thereby obtaining a second set of width adjustment ratios.

[0076] The number of unbalanced road surface sets can be one or more. When there are multiple unbalanced road surface sets, since the same road surface only exists in one unbalanced road surface set, there is no coupling relationship between different unbalanced road surface sets. Therefore, adjusting the width adjustment ratio of each road surface, based on each unbalanced road surface set, not only solves the problem of unbalanced width adjustment ratios, but also decouples different unbalanced road surface sets through clustering. Adjusting the width adjustment ratio of one road surface in one unbalanced road surface set will not affect adjustments to other road surfaces in other unbalanced road surface sets, thereby reducing the probability of errors.

[0077] In one possible implementation, to improve processing efficiency and shorten processing time, the width adjustment ratios of road surfaces in multiple sets of unbalanced road surfaces can be adjusted in parallel. In some embodiments, a computer device invokes multiple threads to adjust the width adjustment ratios of road surfaces in multiple sets of unbalanced road surfaces in parallel. In some embodiments, multiple devices in a big data framework are invoked to adjust the width adjustment ratios of road surfaces in multiple sets of unbalanced road surfaces in parallel.

[0078] 506. The computer device adjusts the widths of the multiple road surfaces based on the second set of width adjustment ratios, and renders the multiple road surfaces according to boundary information of the multiple road surfaces after the width adjustment.

[0079] Steps 503, 504, and 505 in FIG5 may be included in step 403 in FIG4A , step 506 may be a specific definition of step 404 in FIG4A , and steps 501 and 502 may correspond to steps 401 and 402 in FIG4A . The detailed descriptions of the embodiments in FIG5 and FIG4A and FIG4B may refer to each other.

[0080] The method provided in an embodiment of the present application considers the width adjustment ratios of two road surfaces unbalanced if the absolute value of the difference between the width adjustment ratios of the two road surfaces is greater than a ratio threshold. Based on this, multiple unbalanced road surfaces can be identified from the plurality of road surfaces. Furthermore, considering that a single road surface may have an imbalance in width adjustment ratios with respect to multiple road surfaces, at least one unbalanced road surface set is clustered based on the multiple unbalanced road surfaces. The width adjustment ratios of the road surfaces in the unbalanced road surface set are then adjusted so that the absolute value of the difference between the width adjustment ratios of any two road surfaces is no greater than the ratio threshold. This solves the problem of road surface distortion caused by width adjustment ratio imbalance and helps ensure the accuracy of road surface adjustment.

[0081] FIG6 is a flow chart of a road surface generation method provided in an embodiment of the present application. The embodiment of the present application is executed by a computer device. Referring to FIG6 , the method includes:

[0082] 601. A computer device obtains a plurality of road lines from an electronic map, and expands the plurality of road lines to obtain a plurality of road surfaces having widths.

[0083] 602. When road surfaces overlap among the multiple road surfaces, the computer device determines a first set of width adjustment ratios for adjusting the widths of the multiple road surfaces.

[0084] The process of step 601 - step 602 is the same as the process of step 501 - step 502 and step 401 - step 402 above, and will not be repeated here.

[0085] 603. For each road surface among the multiple road surfaces, the computer device determines that the road surface and the adjacent road surface are an unbalanced road surface pair if the absolute value of the difference between the width adjustment ratio of the road surface and the width adjustment ratio of the adjacent road surface is greater than a ratio threshold.

[0086] The absolute value of the difference between the width adjustment ratios of the two road surfaces in any unbalanced road surface pair is greater than the ratio threshold.

[0087] In one possible implementation, determining whether two road surfaces are adjacent involves: a computer device creating a road spatial index based on a plurality of road lines. The road spatial index includes a minimum bounding rectangle (MBR) for each of the plurality of road lines. If the MBRs of two road lines overlap, the road surfaces corresponding to the two road lines are determined to be adjacent.

[0088] In some embodiments, the road spatial index is an R-tree. An R-tree is a tree-like or hierarchical data structure for storing spatial data. A computer device adds multiple road lines to the R-tree. For any road line, other road lines that overlap with the minimum circumscribed matrix of the road line are searched. These road lines are the neighboring road lines of the road line, and the road surfaces corresponding to these road lines are the neighboring road surfaces of the road surface corresponding to the road line.

[0089] In some embodiments, a road surface is used as a key and its adjacent roads as values. These are stored in memory as a map. Alternatively, the road surface and its adjacent roads are stored in external memory as a database. Both storage formats support efficient retrieval and can be serialized into JSON or binary formats for network transmission.

[0090] In an embodiment of the present application, whether the road surfaces are adjacent is determined by determining whether the minimum circumscribed matrices of the road lines overlap. Compared with directly using distance to determine whether they are adjacent, this method is more efficient and accurate, and is conducive to improving processing efficiency.

[0091] In one possible implementation, to improve processing efficiency and shorten processing time, adjacent road surfaces for each of the multiple road surfaces can be calculated in parallel. A computing device can invoke multiple threads to concurrently calculate adjacent road surfaces for each of the multiple road surfaces. Multiple devices within a big data framework can also be invoked to concurrently calculate adjacent road surfaces for each of the multiple road surfaces.

[0092] In one possible implementation, the process of a computer device determining a balanced road surface pair is as follows: the computer device traverses multiple adjacent road surfaces of a road surface, takes each of the multiple adjacent road surfaces as a currently visited adjacent road surface, and performs the following operations: when the sequence number of the road surface is less than the sequence number of the currently visited adjacent road surface, compares the width adjustment ratio of the road surface with the width adjustment ratio of the currently visited adjacent road surface; when the absolute value of the difference between the width adjustment ratio of the road surface and the width adjustment ratio of the currently visited adjacent road surface is greater than a ratio threshold, the computer device determines the road surface and the currently visited adjacent road surface as an unbalanced road surface pair.

[0093] Each road surface has a serial number. By determining whether to process the currently traversed road surface according to the size of the serial number, the problem of repeatedly generating two road surface pairs for the same two road surfaces can be avoided. For example, road surface 1 is adjacent to road surface 2, and the absolute value of the difference between the width adjustment ratio of road surface 1 and the width adjustment ratio of road surface 2 is greater than the ratio threshold. If the serial number of the road surface is not judged, an unbalanced road surface pair including road surface 1 and road surface 2, and an unbalanced road surface pair including road surface 2 and road surface 1 will be generated, resulting in the generation of two duplicate road surface pairs. By comparing the serial numbers of the two road surfaces, it can be ensured that only an unbalanced road surface pair including road surface 1 and road surface 2 is generated.

[0094] Figure 7 is a flowchart of determining an unbalanced road surface provided by an embodiment of the present application. As shown in Figure 7, the computer device first creates a road surface set resultSet, which is used to store unbalanced road surfaces and is initially empty. The computer device traverses the road surface and performs the following processing. The computer device records the currently traversed road surface as road, obtains the adjacent road surface of road, traverses the adjacent road surface of road, and records the currently traversed adjacent road surface as otherRoad. The computer device determines whether the serial number road.id of road is less than the serial number otherRoad.id of otherRoad. If not, the computer device directly traverses the next otherRoad and performs subsequent processing; if so, the computer device creates an unbalanced road surface (road, otherRoad) when the absolute value of the difference between the width adjustment ratio of road and the width adjustment ratio of otherRoad is greater than the ratio threshold, adds the unbalanced road surface to resultSet, and then traverses the next otherRoad and performs subsequent processing. After traversing multiple road surfaces, resultSet is returned to obtain multiple unbalanced road surfaces.

[0095] In one possible implementation, to improve processing efficiency and shorten processing time, the calculation of whether each of the multiple road surfaces is in an unbalanced road surface relationship with an adjacent road surface can be performed in parallel. For example, a computer device can invoke multiple threads to concurrently calculate whether each of the multiple road surfaces is in an unbalanced road surface relationship with an adjacent road surface. Alternatively, the computer device can invoke multiple devices in a big data framework to concurrently calculate whether each of the multiple road surfaces is in an unbalanced road surface relationship with an adjacent road surface.

[0096] In this embodiment of the present application, by executing step 603 above, unbalanced road surfaces are determined based on the width adjustment ratios of multiple road surfaces. Furthermore, in another embodiment, regardless of whether the two road surfaces are adjacent, any two road surfaces whose absolute difference in width adjustment ratio is greater than a ratio threshold may be determined as an unbalanced road surface pair.

[0097] Step 603 may be included in the above step 503.

[0098] 604. The computer device creates an unbalanced road surface group for each road surface in the plurality of unbalanced road surface pairs. For each unbalanced road surface pair, each road surface in the unbalanced road surface pair is added to the unbalanced road surface group of another road surface in the unbalanced road surface pair.

[0099] The computer device creates an unbalanced road surface group for each of the multiple unbalanced road surface pairs. The unbalanced road surface group stores road surfaces whose width adjustment ratios are unbalanced with respect to the road surface, that is, road surfaces whose absolute difference in width adjustment ratio with respect to the road surface is greater than a ratio threshold. The computer device traverses the multiple unbalanced road surface pairs and uses each unbalanced road surface pair as the currently traversed unbalanced road surface pair. For each of the currently traversed unbalanced road surface pairs, the computer device adds each road surface in the unbalanced road surface pair to the unbalanced road surface group of another road surface.

[0100] For example, consider a pair of unbalanced road surfaces, including road surface A and road surface B. Road surface A corresponds to unbalanced road surface group Set1, and road surface B corresponds to unbalanced road surface group Set2. The computer then adds road surface A to road surface B's unbalanced road surface group Set2, and adds road surface B to road surface A's unbalanced road surface group Set1.

[0101] FIG8 is a flow chart of determining an unbalanced road surface group provided by an embodiment of the present application. As shown in FIG8 , first, an unbalanced road surface group set is created. The unbalanced road surface group set includes an unbalanced road surface group for each road surface and is initially empty.

[0102] Obtain multiple unbalanced road surface pairs. Traverse the multiple unbalanced road surface pairs and record the two road surfaces in the currently traversed unbalanced road surface pair as road surface A and road surface B. Add road surface A to road surface B's unbalanced road surface group, and add road surface B to road surface A's unbalanced road surface group. Continue traversing the next unbalanced road surface pair and perform similar processing as described above for the currently traversed unbalanced road surface pair until all road surface pairs have been traversed. Return the unbalanced road surface group set, thus obtaining an unbalanced road surface group for each road surface.

[0103] In one possible implementation, to improve processing efficiency and shorten processing time, each of the multiple road faces can be processed in parallel. For example, a computer device can invoke multiple threads to process each of the multiple road faces in parallel. Alternatively, multiple devices in a big data framework can be invoked to process each of the multiple road faces in parallel.

[0104] 605. The computer device performs a clustering operation on the unbalanced road surface group of each road surface in the multiple unbalanced road surface pairs to obtain at least one unbalanced road surface set, and the width adjustment ratio between any road surface in any unbalanced road surface set in the at least one unbalanced road surface set and at least one road surface in the any unbalanced road surface set is unbalanced.

[0105] After obtaining the unbalanced road surface group for each road surface, the computer device performs a clustering operation based on the unbalanced road surface group for each road surface to obtain an unbalanced road surface set. An unbalanced road surface set includes at least two road surfaces, and the absolute value of the difference between the width adjustment ratio of any one road surface in the unbalanced road surface set and the width adjustment ratio of at least one road surface in the unbalanced road surface set is greater than a ratio threshold.

[0106] In one possible implementation, the process of determining the unbalanced road surface set by the computer device includes the following steps 1 to 3.

[0107] Step 1: A computer device creates a first set, where the first set is used to store clustered road surfaces among a plurality of unbalanced road surfaces. The first set is initially empty.

[0108] Step 2: The computer device traverses the road surfaces among the plurality of unbalanced road surfaces. If the first set does not include the currently traversed road surface, an unbalanced road surface set is created, and step 3 is performed. The unbalanced road surface set may be empty initially.

[0109] For a currently traversed road surface among the multiple unbalanced road surfaces, the computer device determines whether the road surface is in a first set. If the first set does not include the currently traversed road surface, indicating that the currently traversed road surface has not yet been processed, the computer device then creates an unbalanced road surface set. The unbalanced road surface set is used to store multiple road surfaces clustered using the currently traversed road surface as a cluster point. The first set is initially empty.

[0110] In addition, in step 2, if the first set includes the currently traversed road surface, it means that the currently traversed road surface has been processed, and there is no need to process the currently traversed road surface again. The next road surface can be directly used as the currently traversed road surface for subsequent processing.

[0111] Step 3. The computer device adds the currently traversed road surface to the first set and the unbalanced road surface set, and adds the road surfaces in the unbalanced road group of the currently traversed road surface to the first set and the unbalanced road surface set, returns to step 2, continues to traverse the next road surface, and performs subsequent processing.

[0112] The computer device adds the currently traversed road surface to the first set to indicate that the currently traversed road surface has been processed, thereby avoiding subsequent repeated processing of the currently traversed road surface, and adds the currently traversed road surface to the unbalanced road surface set. Then, for each road surface in the unbalanced road surface set (such as the currently traversed road surface), the other road surfaces in the unbalanced road group of the road surface are added to the first set and the unbalanced road surface set, until all road surfaces in the unbalanced road group of any road surface in the unbalanced road surface set are located in the unbalanced road surface set, and an unbalanced road surface set is successfully clustered. Then, the process returns to step 2 above, and the next road surface is used as the currently traversed road surface for subsequent processing.

[0113] Therefore, after creating the first set, the computer device can traverse the road surfaces in the multiple unbalanced road surface pairs and perform the following operations: take each road surface in the multiple unbalanced road surface pairs as the currently traversed road surface; if the currently traversed road surface is not included in the first set, create an unbalanced road surface set, add the currently traversed road surface to the first set and the unbalanced road surface set, and add the road surfaces in the unbalanced road group of the currently traversed road surface to the first set and the unbalanced road surface set.

[0114] In some embodiments, adding the currently traversed road surface to the first set and the unbalanced road surface set, and adding the road surfaces in the unbalanced road group of the currently traversed road surface to the first set and the unbalanced road surface set can also be achieved as follows. A second set is also created in the computer device, and the second set is used to store the road surfaces to be target processed. The second set is initially empty. The computer device adds the currently traversed road surface to the first set and the second set, and then performs target processing on each road surface in the second set. After the target processing, until any road surface is not included in the second set, the next road surface is continued to be traversed and subsequent processing is performed. Among them, performing target processing on the road surface in the second set means: moving the road surface from the second set to the unbalanced road surface set. For any unbalanced road surface in the unbalanced road surface group of the road surface, if the first set does not include the unbalanced road surface, the unbalanced road surface is added to the first set and the second set. If new road surfaces are added to the second set, target processing will continue on the new road surfaces until all road surfaces in the second set are moved to the unbalanced road surface set and no new road surfaces are added. In this case, an unbalanced road surface set is successfully clustered, and then the process returns to step 2 above to traverse the next road surface and perform subsequent processing.

[0115] In this embodiment, the second set is used to temporarily store road surfaces with unbalanced width adjustment ratios. When a road surface is officially moved to the unbalanced road surface set, the road surfaces in the unbalanced road surface group are first added to the second set. The above process is then repeated until all road surfaces in the second set are moved to the unbalanced road surface set. This ensures that any two mutually unbalanced road surfaces can be successfully added to the unbalanced road surface set without being processed repeatedly, ensuring the accuracy of the unbalanced road surface set obtained through clustering.

[0116] FIG9 is a flow chart of determining an unbalanced road surface set provided by an embodiment of the present application. As shown in FIG9 , the method includes the following steps:

[0117] Step 1. Create a Result set. The Result set is used to store the set of unbalanced road surfaces and is initially empty. Create a first set and a second set. The first set stores processed road surfaces, and the second set stores road surfaces awaiting target processing. Both the first and second sets are initially empty. Processed road surfaces refer to road surfaces that have been traversed (visited roads) or road surfaces that have undergone clustering.

[0118] Step 2: Traverse the road faces among the multiple unbalanced road faces and record the currently traversed road face as road. Determine whether the first set includes road. If so, traverse the next road face and perform subsequent processing. If not, add road to the first set and then to the second set to create an unbalanced road face set. When the traversal of the road faces among the multiple unbalanced road faces is complete, return a Result set, resulting in multiple unbalanced road face sets.

[0119] Step 3: Determine whether the second set is empty. If so, add the current unbalanced road surface set to the Result set and return to Step 2 to continue traversing the next road surface. If not, remove the road surface at the head of the queue in the second set and record it as currRoad. Add currRoad to the unbalanced road surface set, traverse the unbalanced road surface groups of currRoad, and record the road surface in the currently traversed unbalanced road surface group as otherRoad.

[0120] Step 4: Determine whether the first set includes otherRoad. If so, return to step 3, continue traversing the next unbalanced road surface in the unbalanced road surface group, and execute the subsequent steps. If not, add otherRoad to the first set, add otherRoad to the second set, then return to step 3, continue traversing the next unbalanced road surface in the unbalanced road surface group, and execute the subsequent steps. This process continues until the unbalanced road surface group for currRoad is traversed, then return to step 3 and execute the subsequent steps.

[0121] Since a road surface may have an imbalanced relationship in width adjustment ratio with multiple nearby road surfaces, the problem of clustering road surfaces according to the imbalanced relationship in width adjustment ratio can be abstracted as a graph theory problem. Figure 10 is a schematic diagram of an unbalanced road surface set provided by an embodiment of the present application. As shown in Figure 10, each circular node in the figure represents a road surface, and the two circular nodes connected by each line are a pair of unbalanced road surfaces. The dashed boxes 1001, 1002 and 1003 are respectively the unbalanced road surface sets obtained by clustering, and each unbalanced road surface set includes at least two road surfaces. Therefore, clustering road surfaces according to the imbalanced relationship in width adjustment ratio can be performed by calculating the connected components of the undirected graph.

[0122] In the embodiment of the present application, by executing steps 604 and 605 above, a clustering operation is performed on multiple unbalanced road surfaces to obtain at least one unbalanced road surface set. In addition, the computer device may also use other methods to cluster the unbalanced road surface set, which is not limited in the embodiment of the present application.

[0123] 606. The computer device determines a reference road surface in the unbalanced road surface set, where the reference road surface is a road surface in a pending state and has the smallest width adjustment ratio in the unbalanced road surface set, and sets the reference road surface to a processed state.

[0124] After clustering to obtain at least one unbalanced road surface set, the computer device adjusts the width adjustment ratio of the road surface in each unbalanced road surface set respectively.

[0125] Take a set of unbalanced road surfaces as an example. The initial state of all road surfaces in the set is pending. The computer device identifies the road surface in the set that is pending and has the smallest width adjustment ratio. This road surface is used as a reference road surface. Subsequently, the width adjustment ratio of this reference road surface is no longer changed. Instead, the width adjustment ratios of the other road surfaces in the set are changed based on this reference road surface's width adjustment ratio. This allows the reference road surface to be set to the processed state.

[0126] In one possible implementation, a computer device determines a reference road surface by generating an index value for each road surface in a set of unbalanced road surfaces and, based on the width adjustment ratios of the road surfaces in the set, creating a minimum index tree. The minimum index tree includes index values ​​for road surfaces to be processed, and the width adjustment ratio corresponding to the index value at the parent node in the minimum index tree is smaller than the width adjustment ratio corresponding to the index value at the child node. The computer device determines the road surface indicated by the index value at the root node of the minimum index tree as the reference road surface.

[0127] The root node is a node that has no parent node in the minimum index tree. It should be noted that whenever the state or width adjustment ratio of any road surface changes, the minimum index tree is updated to ensure that the minimum index tree only contains index values ​​for road surfaces that are pending, and that the width adjustment ratio corresponding to the index value of the parent node in the minimum index tree is smaller than the width adjustment ratio corresponding to the index value of the child node.

[0128] In this embodiment, a minimum index tree data structure is employed, ensuring that the index value of the road surface with the smallest width adjustment ratio is always located at the root node of the minimum index tree. This improves the speed of finding the road surface with the smallest width adjustment ratio and reduces time complexity. Furthermore, the minimum index tree supports efficient modification of data within the tree, thus improving processing efficiency by creating a minimum index tree.

[0129] In some embodiments, if there are a large number of road surfaces, searching for the road surface with the smallest width adjustment ratio by traversing multiple road surfaces can result in high time complexity. If there are a large number of road surfaces, the minimum index tree approach has little advantage. Therefore, the two approaches can be combined. If the number of road surfaces exceeds a threshold, the minimum index tree approach is used to search for the road surface with the smallest width adjustment ratio. If the number of road surfaces does not exceed the threshold, the multiple road surfaces are traversed to search for the road surface with the smallest width adjustment ratio.

[0130] 607. The computer device obtains adjacent road surfaces of the reference road surface in a state to be processed from the unbalanced road surface set.

[0131] The computer device determines the adjacent road surfaces of the reference road surface in the unbalanced road surface set, and obtains a road surface in a to-be-processed state from the adjacent road surfaces of the reference road surface.

[0132] 608. The computer device adjusts the width adjustment ratios of adjacent road surfaces in the first set of width adjustment ratios so that the absolute value of the difference between the width adjustment ratio of the reference road surface and the adjusted width adjustment ratio of the adjacent road surface is no greater than a ratio threshold.

[0133] After obtaining the adjacent road surface of the reference road surface, the computer device adjusts the width adjustment ratio of the adjacent road surface so that the absolute value of the difference between the width adjustment ratio of the reference road surface and the width adjustment ratio of the adjacent road surface is not greater than the ratio threshold, and then there is no longer a problem of imbalance in the width adjustment ratio between the adjacent road surface and the reference road surface.

[0134] In one possible implementation, the process of adjusting the width adjustment ratio of the adjacent road surface by the computer device is as follows: the sum of the width adjustment ratio of the reference road surface and the ratio threshold is determined as a candidate width adjustment ratio, and the target width adjustment ratio is determined as the adjusted width adjustment ratio of the adjacent road surface, the target width adjustment ratio being the minimum value between the width adjustment ratio of the adjacent road surface and the candidate width adjustment ratio. Adjusting the width adjustment ratio of the adjacent road surface can be expressed by the following formula (1): X2 = min(X1, Y + m); (1)

[0135] Wherein, X2 represents the width adjustment ratio of the adjacent road surface after adjustment, X1 represents the width adjustment ratio of the adjacent road surface before adjustment, Y represents the width adjustment ratio of the reference road surface, and m represents the ratio threshold.

[0136] In other words, when the width adjustment ratio of the adjacent road surface is smaller than the candidate width adjustment ratio, it is equivalent to not changing the width adjustment ratio of the adjacent road surface, and keeping the width adjustment ratio of the adjacent road surface unchanged.

[0137] The above step 608 is merely explained by taking the adjustment of the width adjustment ratio of an adjacent road surface as an example. In practice, the computer device executes the process of the above step 608 for each adjacent road surface obtained in the above step 607.

[0138] 609. The computer device continues to determine the next reference road surface in the unbalanced road surface set until all road surfaces in the unbalanced road surface set are in a processed state.

[0139] After the computer device completes processing of each adjacent road surface obtained in the above step 607, it continues to determine the next reference road surface in the unbalanced road surface set, and also performs the above steps 606-608 on the next reference road surface until all road surfaces in the unbalanced road surface set are in a processed state.

[0140] In this embodiment, the road surface with the smallest width adjustment ratio is used as a reference for adjusting the remaining road surfaces that are out of balance with that road surface. This method allows for gradual adjustments to be made to each road surface in the set of unbalanced road surfaces. Marking road surfaces as requiring adjustment, as either processed or unprocessed, helps avoid errors.

[0141] FIG11 is a flow chart of adjusting the width adjustment ratio provided in an embodiment of the present application. As shown in FIG11 , the method includes the following steps.

[0142] Step 1: Find a reference road surface in the unbalanced road surface set. The reference road surface is in a pending state and has the smallest width adjustment ratio in the unbalanced road surface set.

[0143] Step 2: Determine whether a reference road surface exists. If so, set the reference road surface to a processed state; if not, end the process.

[0144] Step 3: Determine the adjacent road surface of the reference road surface in the unbalanced road surface set. Traverse the obtained adjacent road surfaces and record the currently traversed adjacent road surface as otherRoad.

[0145] Step 4: Determine whether otherRoad is in a pending state. If so, adjust the width adjustment ratio of otherRoad according to formula (1) above, then return to step 3 above and continue to use the next adjacent road surface as the currently traversed adjacent road surface. If not, do not adjust the width adjustment ratio of otherRoad, and directly return to step 3 above and continue to use the next adjacent road surface as the currently traversed adjacent road surface until all adjacent road surfaces are traversed.

[0146] In this embodiment of the present application, by executing steps 606-609, the width adjustment ratios of the road surfaces in the unbalanced road surface set are adjusted so that the absolute value of the difference between the width adjustment ratios of any two road surfaces in the unbalanced road surface set after adjustment is no greater than a ratio threshold. Alternatively, the computer device may use other methods to adjust the width adjustment ratios of the road surfaces in the unbalanced road surface set.

[0147] In another embodiment, to ensure that the width adjustment ratio of the road surface is fully adjusted, steps 603 to 609 may be iteratively executed until an iteration condition is met. For example, the iteration condition may be that the number of iterations reaches a target number, or the absolute value of the difference between the width adjustment ratios of any two road surfaces among the multiple road surfaces is no greater than a ratio threshold.

[0148] 610. The computer device adjusts the widths of the plurality of road surfaces based on the second set of width adjustment ratios, and renders the road surfaces according to boundary information of the road surfaces after the width adjustments.

[0149] The process of step 610 is the same as that of step 403 above, and will not be repeated here.

[0150] According to the method provided in the embodiment of the present application, if the absolute value of the difference between the width adjustment ratios of two road surfaces is greater than a ratio threshold, it is considered that the width adjustment ratios of the two road surfaces are unbalanced. Based on this, multiple unbalanced road surfaces can be determined among multiple road surfaces. In addition, considering that one road surface may have an imbalance in the width adjustment ratio with multiple road surfaces, at least one unbalanced road surface set is clustered based on the multiple unbalanced road surfaces, and then the width adjustment ratios of the road surfaces in the unbalanced road surface set are adjusted so that the absolute value of the difference between the width adjustment ratios of any two road surfaces is not greater than the ratio threshold, thereby solving the problem of road surface distortion caused by imbalance in the width adjustment ratio, which is conducive to ensuring the accuracy of the road surface.

[0151] Furthermore, the method provided by the embodiments of this application is highly robust and, unrestricted by the initial shape of road lines, systematically adjusts the width adjustment ratio for road lines within a given range, mitigating scale distortion. This method relies on minimal auxiliary information and eliminates the need for complex computational strategies to mitigate extreme cases, resulting in improved applicability and conserving computer resources.

[0152] FIG12 is a flow chart of determining an unbalanced road surface set provided by an embodiment of the present application. As shown in FIG12 , the method includes the following steps:

[0153] 1201. Determine the unbalanced road ahead.

[0154] 1202. Determine an unbalanced road surface group for each road surface based on the unbalanced road surface pair.

[0155] 1203. Accumulate the road surfaces according to the unbalanced road surface group to obtain at least one unbalanced road surface set with an unbalanced width ratio.

[0156] FIG13 is a flow chart of a road surface generation method provided in an embodiment of the present application. As shown in FIG13 , the method includes the following steps:

[0157] Step 1: Determine the adjacent road surfaces of each road surface and set the initial value of the iteration time to 0.

[0158] Step 2: Determine whether time is equal to the maximum number of iterations. If so, terminate the process. If not, adjust the ratio based on the adjacency between road surfaces and their widths, and cluster to obtain multiple sets of unbalanced road surfaces.

[0159] Step 3: Determine whether the number of unbalanced road surface sets is zero. If so, terminate the process. If not, adjust the width adjustment ratio of each road surface in the unbalanced road surface set, increment the time value by 1, and return to step 2.

[0160] FIG14 is a schematic diagram of the structure of a road surface generation device provided in an embodiment of the present application. Referring to FIG14 , the device includes:

[0161] The data acquisition module 1401 is used to acquire multiple road lines from the electronic map, and expand the multiple road lines to obtain multiple road surfaces having widths;

[0162] a ratio determination module 1402 for determining a first set of width adjustment ratios for adjusting the widths of the plurality of road surfaces when there is overlap among the plurality of road surfaces;

[0163] a ratio adjustment module 1403 configured to adjust the width adjustment ratio of at least one road surface among the plurality of road surfaces in the first set of width adjustment ratios to obtain a second set of width adjustment ratios of the plurality of road surfaces, wherein an absolute value of a difference between the width adjustment ratios of any two road surfaces among the plurality of road surfaces in the second set of width adjustment ratios is not greater than a ratio threshold;

[0164] The road surface rendering module 1404 is configured to adjust the widths of the plurality of road surfaces based on the second set of width adjustment ratios and to render the road surfaces according to the boundary information of the road surfaces after the width adjustment.

[0165] The road surface generation device provided in an embodiment of the present application expands a road line to obtain multiple road surfaces, then determines the width adjustment ratios of the multiple road surfaces. If the absolute value of the difference between the width adjustment ratios of two road surfaces is greater than a ratio threshold, it is considered that the width adjustment ratios of the two road surfaces are unbalanced. Based on this, the width adjustment ratio of at least one of the multiple road surfaces is adjusted so that the absolute value of the difference between the width adjustment ratios of any two road surfaces is no greater than the ratio threshold. The width of the road surface is then adjusted based on the adjusted width adjustment ratio, and the adjusted road surface is rendered. This method can render a road surface with width based on a road line without width, and solves the problem of road surface distortion caused by an unbalanced width adjustment ratio, which is conducive to ensuring the accuracy of the road surface.

[0166] In some embodiments, the ratio adjustment module 1403 is configured to:

[0167] determining, based on the first set of width adjustment ratios for the plurality of road surfaces, a plurality of pairs of unbalanced road surfaces among the plurality of road surfaces, wherein an absolute value of a difference between the width adjustment ratios of two road surfaces in any one of the plurality of unbalanced road surfaces is greater than a ratio threshold;

[0168] Performing a clustering operation on the multiple unbalanced road surfaces to obtain at least one unbalanced road surface set;

[0169] Adjust the width adjustment ratios of the road surfaces in at least one unbalanced road surface set in the first set of width adjustment ratios so that the absolute value of the difference between the width adjustment ratios of any two road surfaces in any unbalanced road surface set of the at least one unbalanced road surface set after adjustment is not greater than the ratio threshold, thereby obtaining a second set of width adjustment ratios.

[0170] In some embodiments, the ratio adjustment module 1403 is configured to:

[0171] For each of the plurality of road surfaces, when the absolute value of the difference between the width adjustment ratio of the road surface and the width adjustment ratio of an adjacent road surface is greater than a ratio threshold, the road surface and the adjacent road surface are determined to be an unbalanced road surface pair.

[0172] In some embodiments, the ratio adjustment module 1403 is configured to:

[0173] Traverse multiple adjacent road surfaces and perform the following operations:

[0174] Taking each adjacent road surface among the plurality of adjacent road surfaces as the currently traversed adjacent road surface; if the sequence number of the road surface is smaller than the sequence number of the currently traversed adjacent road surface, comparing the width adjustment ratio of the road surface with the width adjustment ratio of the currently traversed adjacent road surface;

[0175] When the absolute value of the difference between the width adjustment ratio of the road surface and the width adjustment ratio of the currently traversed adjacent road surface is greater than the ratio threshold, the road surface and the currently traversed adjacent road surface are determined as an unbalanced road surface pair.

[0176] In some embodiments, referring to FIG15 , the apparatus further comprises:

[0177] An index creation module 1405 is configured to create a road space index based on the plurality of road lines, where the road space index includes a minimum circumscribed rectangle of each of the plurality of road lines;

[0178] The adjacent road surface determination module 1406 is configured to determine that the road surfaces corresponding to the two road lines are adjacent road surfaces when there is an overlapping area between the minimum circumscribed rectangles of the two road lines.

[0179] In some embodiments, the ratio adjustment module 1403 is configured to:

[0180] Creating an unbalanced road surface group for each road surface in the plurality of unbalanced road surfaces, the unbalanced road surface group being used to store road surfaces with unbalanced width adjustment ratios between the road surfaces;

[0181] For each unbalanced road surface pair, adding each road surface in the unbalanced road surface pair to the unbalanced road surface group of another road surface in the unbalanced road surface pair;

[0182] A clustering operation is performed on the unbalanced road surface group of each road surface in the multiple unbalanced road surface pairs to obtain at least one unbalanced road surface set, and the width adjustment ratio between any road surface in the unbalanced road surface set and at least one road surface in the unbalanced road surface set is unbalanced.

[0183] In some embodiments, the ratio adjustment module 1403 is configured to:

[0184] Creating a first set, where the first set is used to store clustered road surfaces among the plurality of unbalanced road surfaces;

[0185] Traverse the road faces among multiple unbalanced road faces and perform the following operations:

[0186] Taking each road surface among the plurality of unbalanced road surfaces as the currently traversed road surface;

[0187] If the currently traversed road surface is not included in the first set, an unbalanced road surface set is created, the currently traversed road surface is added to the first set and the unbalanced road surface set, and the road surfaces in the unbalanced road group of the currently traversed road surface are added to the first set and the unbalanced road surface set.

[0188] In some embodiments, the ratio adjustment module 1403 is configured to:

[0189] Add the currently traversed road surface to the first set and the second set, where the second set is used to store the road surface to be processed for creating an unbalanced road surface set;

[0190] Perform target processing on each road surface in the second set until the second set does not include any road surface, and continue traversing the next road surface;

[0191] Among them, target processing of the road surface means: moving the road surface from the second set to the unbalanced road surface set, and for any unbalanced road surface in the unbalanced road surface group of the road surface, if the first set does not include the unbalanced road surface, adding the unbalanced road surface to the first set and the second set.

[0192] In some embodiments, the ratio adjustment module 1403 is configured to:

[0193] Determining a reference road surface in the unbalanced road surface set, where the reference road surface refers to a road surface in a pending state and having the smallest width adjustment ratio in the unbalanced road surface set, and setting the reference road surface to a processed state;

[0194] Acquire adjacent road surfaces of the reference road surface in a pending state from the unbalanced road surface set;

[0195] Adjusting the width adjustment ratios of adjacent road surfaces in the first set of width adjustment ratios so that the absolute value of the difference between the width adjustment ratio of the reference road surface and the adjusted width adjustment ratio of the adjacent road surface is no greater than a ratio threshold;

[0196] Continue to determine the next reference road surface in the unbalanced road surface set until all road surfaces in the unbalanced road surface set are in a processed state.

[0197] In some embodiments, the ratio adjustment module 1403 is configured to:

[0198] Determine the sum of the width adjustment ratio of the reference road surface and the ratio threshold as the candidate width adjustment ratio;

[0199] The target width adjustment ratio is determined as the adjusted width adjustment ratio of the adjacent road surface, and the target width adjustment ratio is the minimum value between the width adjustment ratio of the adjacent road surface and the candidate width adjustment ratio.

[0200] In some embodiments, the ratio adjustment module 1403 is configured to:

[0201] Generate an index value of each road surface in the unbalanced road surface set;

[0202] Creating a minimum index tree based on the width adjustment ratios of the road surfaces in the unbalanced road surface set. The minimum index tree includes index values ​​of the road surfaces in a pending state. In the minimum index tree, the width adjustment ratio corresponding to the index value on the parent node is smaller than the width adjustment ratio corresponding to the index value on the child node.

[0203] The road surface indicated by the index value on the root node of the minimum index tree is determined as the reference road surface.

[0204] In some embodiments, the ratio determination module 1402 is configured to:

[0205] determining, among a plurality of road surfaces, a pair of overlapping road surfaces having overlapping areas;

[0206] performing a clustering operation on the multiple overlapping road surfaces to obtain at least one overlapping road surface set;

[0207] The width adjustment ratios of the road surfaces in the overlapping road surface set are determined so that no overlapping area exists between any two road surfaces after the widths of the road surfaces are adjusted based on the width adjustment ratios.

[0208] It should be noted that the road surface generation device provided in the above embodiment is merely an example of the division of the functional modules described above. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the computer device can be divided into different functional modules to complete all or part of the functions described above. Furthermore, the road surface generation device provided in the above embodiment and the road surface generation method embodiment are based on the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0209] An embodiment of the present application also provides a computer device, which includes a processor and a memory, wherein the memory stores at least one computer program, and the at least one computer program is loaded and executed by the processor to implement the operations performed in the road surface generation method of the above embodiment.

[0210] In some embodiments, the computer device is provided as a terminal. Figure 16 shows a schematic diagram of the structure of a terminal 1600 provided in an exemplary embodiment of the present application.

[0211] The terminal 1600 includes a processor 1601 and a memory 1602 .

[0212] The processor 1601 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1601 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), or PLA (Programmable Logic Array). The processor 1601 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1601 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1601 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0213] Memory 1602 may include one or more computer-readable storage media, which may be non-transitory. Memory 1602 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in memory 1602 is used to store at least one computer program, which is used by processor 1601 to implement the road surface generation method provided in the method embodiment of the present application.

[0214] In some embodiments, terminal 1600 may further include a peripheral device interface 1603 and at least one peripheral device. Processor 1601, memory 1602, and peripheral device interface 1603 may be connected via a bus or signal lines. Each peripheral device may be connected to peripheral device interface 1603 via a bus, signal lines, or circuit boards. In some embodiments, the peripheral device includes at least one of a radio frequency circuit 1604, a display screen 1605, a camera assembly 1606, an audio circuit 1607, and a power supply 1608.

[0215] The peripheral device interface 1603 can be used to connect at least one I / O (Input / Output)-related peripheral device to the processor 1601 and the memory 1602. In some embodiments, the processor 1601, the memory 1602, and the peripheral device interface 1603 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1601, the memory 1602, and the peripheral device interface 1603 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.

[0216] RF circuit 1604 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. RF circuit 1604 communicates with communication networks and other communication devices via electromagnetic signals. RF circuit 1604 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. In some embodiments, RF circuit 1604 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. RF circuit 1604 can communicate with other devices via at least one wireless communication protocol. Such wireless communication protocols include, but are not limited to, metropolitan area networks, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and / or WiFi (Wireless Fidelity) networks. In some embodiments, RF circuit 1604 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.

[0217] The display screen 1605 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1605 is a touch screen display, the display screen 1605 also has the ability to collect touch signals on the surface or above the surface of the display screen 1605. The touch signal can be input as a control signal to the processor 1601 for processing. At this time, the display screen 1605 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, there can be one display screen 1605, which is set on the front panel of the terminal 1600; in other embodiments, there can be at least two display screens 1605, which are respectively set on different surfaces of the terminal 1600 or in a folding design; in other embodiments, the display screen 1605 can be a flexible display screen, which is set on the curved surface or folding surface of the terminal 1600. Even more, the display screen 1605 can be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 1605 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).

[0218] The camera assembly 1606 is used to capture images or videos. In some embodiments, the camera assembly 1606 includes a front camera and a rear camera. The front camera is set on the front panel of the terminal 1600, and the rear camera is set on the back of the terminal 1600. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1606 may also include a flash. The flash can be a single-color temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.

[0219] The audio circuit 1607 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals that are input into the processor 1601 for processing, or input into the radio frequency circuit 1604 to achieve voice communication. For the purpose of stereo sound collection or noise reduction, there may be multiple microphones, each located in different parts of the terminal 1600. The microphone may also be an array microphone or an omnidirectional collection microphone. The speaker is used to convert electrical signals from the processor 1601 or the radio frequency circuit 1604 into sound waves. The speaker may be a traditional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert electrical signals into sound waves audible to humans, but also convert electrical signals into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 1607 may also include a headphone jack.

[0220] Power supply 1608 is used to power various components in terminal 1600. Power supply 1608 can be AC ​​power, DC power, a disposable battery, or a rechargeable battery. When power supply 1608 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.

[0221] Those skilled in the art will understand that the structure shown in FIG16 does not constitute a limitation on the terminal 1600 , and may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.

[0222] In some embodiments, the computer device is provided as a server. Figure 17 is a structural diagram of a server provided in an embodiment of the present application. The server 1700 may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) 1701 and one or more memories 1702, wherein the memory 1702 stores at least one computer program, and the at least one computer program is loaded and executed by the processor 1701 to implement the methods provided in the above-mentioned various method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output. The server may also include other components for implementing device functions, which will not be described in detail here.

[0223] An embodiment of the present application also provides a computer-readable storage medium, which stores at least one computer program. The at least one computer program is loaded and executed by a processor to implement the operations performed by the road surface generation method of the above embodiment.

[0224] The present application also provides a computer program product, including a computer program, which is loaded and executed by a processor to implement the operations performed by the road surface generation method of the above-mentioned embodiment. In some embodiments, the computer program involved in the embodiment of the present application can be deployed and executed on a single computer device, or on multiple computer devices located in a single location, or on multiple computer devices distributed in multiple locations and interconnected by a communication network. Multiple computer devices distributed in multiple locations and interconnected by a communication network can constitute a blockchain system.

[0225] Those skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or by a program to instruct the relevant hardware, and the program may be stored in a computer-readable storage medium, which may be a read-only memory, a disk, or an optical disk, etc.

Claims

1. A road surface processing method, executed by a computer device, characterized in that: The method comprises: Acquire multiple road lines from the electronic map, and expand the multiple road lines to obtain multiple road surfaces with widths; In the case where there is overlap of road surfaces among the plurality of road surfaces, determining a first set of width adjustment ratios for adjusting the widths of the plurality of road surfaces; adjusting the width adjustment ratio of at least one road surface among the plurality of road surfaces in the first set of width adjustment ratios to obtain a second set of width adjustment ratios of the plurality of road surfaces, wherein in the second set of width adjustment ratios, an absolute value of a difference between the width adjustment ratios of any two road surfaces among the plurality of road surfaces is not greater than a ratio threshold; Based on the second set of width adjustment ratios, the widths of the plurality of road surfaces are adjusted.

2. The method according to claim 1, characterized in that: The adjusting the width adjustment ratio of at least one road surface of the plurality of road surfaces in the first set of width adjustment ratios to obtain a second set of width adjustment ratios of the plurality of road surfaces includes: Determine, based on the first set of width adjustment ratios of the plurality of road surfaces, a plurality of unbalanced road surface pairs among the plurality of road surfaces, wherein an absolute value of a difference between width adjustment ratios of two road surfaces in any one of the plurality of unbalanced road surfaces is greater than the ratio threshold; Performing a clustering operation on the plurality of unbalanced road surfaces to obtain at least one unbalanced road surface set; Adjust the width adjustment ratios of the road surfaces in the at least one unbalanced road surface set in the first group of width adjustment ratios so that the absolute value of the difference between the width adjustment ratios of any two road surfaces in any unbalanced road surface set of the at least one unbalanced road surface set after adjustment is not greater than the ratio threshold, to obtain the second group of width adjustment ratios.

3. The method according to claim 2, characterized in that The determining of a plurality of unbalanced road surfaces among the plurality of road surfaces according to the first set of width adjustment ratios of the plurality of road surfaces comprises: For each of the multiple road surfaces, when the absolute value of the difference between the width adjustment ratio of the road surface and the width adjustment ratio of an adjacent road surface of the road surface is greater than the ratio threshold, the road surface and the adjacent road surface are determined as an unbalanced road surface pair.

4. The method according to claim 3, characterized in that When the absolute value of the difference between the width adjustment ratio of the road surface and the width adjustment ratio of an adjacent road surface of the road surface is greater than the ratio threshold, determining the road surface and the adjacent road surface as an unbalanced road surface, comprising: Traverse multiple adjacent road surfaces of the road surface and perform the following operations: Taking each adjacent road surface among the plurality of adjacent road surfaces as the adjacent road surface currently traversed; When the sequence number of the road surface is smaller than the sequence number of the adjacent road surface currently traversed, the width adjustment ratio of the road surface is compared with the width adjustment ratio of the adjacent road surface currently traversed; when the absolute value of the difference between the width adjustment ratio of the road surface and the width adjustment ratio of the adjacent road surface currently traversed is greater than the ratio threshold, the road surface and the adjacent road surface currently traversed are determined to be an unbalanced road surface pair.

5. The method according to claim 3 or 4, characterized in that: The method further comprises: Based on the multiple road lines, create a road space index, wherein the road space index includes a minimum circumscribed rectangle of each road line in the multiple road lines; When there is an overlapping area between the minimum circumscribed rectangles of two road lines, it is determined that the road surfaces corresponding to the two road lines are adjacent road surfaces.

6. The method according to claim 2, characterized in that The clustering operation is performed on the plurality of unbalanced road surfaces to obtain at least one unbalanced road surface set, comprising: Creating an unbalanced road surface group for each road surface in the plurality of unbalanced road surfaces, the unbalanced road surface group being used to store road surfaces with unbalanced width adjustment ratios between the road surfaces; for each unbalanced road surface, adding each road surface in the unbalanced road surface group to the unbalanced road surface group of another road surface in the unbalanced road surface group; A clustering operation is performed on the unbalanced road surface group of each road surface in the multiple unbalanced road surface pairs to obtain the at least one unbalanced road surface set, and the width adjustment ratio between any road surface in the unbalanced road surface set and at least one road surface in the unbalanced road surface set is unbalanced.

7. The method according to claim 6, characterized in that The performing a clustering operation on the unbalanced road surface group of each road surface in the plurality of unbalanced road surfaces to obtain the at least one unbalanced road surface set comprises: Creating a first set, wherein the first set is used to store the road surfaces that have been clustered among the plurality of unbalanced road surfaces; Traverse the road surfaces among the multiple unbalanced road surfaces, take each road surface among the multiple unbalanced road surfaces as the currently traversed road surface, and perform the following operations: When the currently traversed road surface is not included in the first set, an unbalanced road surface set is created, the currently traversed road surface is added to the first set and the unbalanced road surface set, and the road surfaces in the unbalanced road group of the currently traversed road surface are added to the first set and the unbalanced road surface set.

8. The method according to claim 7, characterized in that The step of adding the currently traversed road surface to the first set and the unbalanced road surface set, and adding the road surfaces in the unbalanced road group of the currently traversed road surface to the first set and the unbalanced road surface set includes: Add the currently traversed road surface to the first set and the second set, where the second set is used to store the road surfaces to be processed for creating an unbalanced road surface set; Performing target processing on each road surface in the second set until the second set does not include any road surface, and continuing to traverse the next road surface; Among them, target processing of the road surface refers to: moving the road surface from the second set to the unbalanced road surface set, and for any unbalanced road surface in the unbalanced road surface group of the road surface, if the first set does not include the unbalanced road surface, adding the unbalanced road surface to the first set and the second set.

9. The method according to claim 2, characterized in that: In the adjusting the first set of width adjustment ratios, the width adjustment ratios of the road surfaces in the at least one unbalanced road surface set are adjusted so that the absolute value of the difference between the width adjustment ratios of any two road surfaces in any unbalanced road surface set of the at least one unbalanced road surface set after adjustment is not greater than the ratio threshold, including: Determine a reference road surface in the unbalanced road surface set, wherein the reference road surface refers to a road surface in a to-be-processed state and having the smallest width adjustment ratio in the unbalanced road surface set, and set the reference road surface to a processed state; Acquire, from the unbalanced road surface set, the adjacent road surface of the reference road surface in the to-be-processed state; The width adjustment ratio of the adjacent road surface in the first set of width adjustment ratios is adjusted so that the width of the reference road surface is The absolute value of the difference between the adjusted width adjustment ratio of the adjacent road surface and the adjusted width adjustment ratio of the adjacent road surface is not greater than the ratio threshold; Continue to determine the next reference road surface in the unbalanced road surface set until all road surfaces in the unbalanced road surface set are in the processed state.

10. The method according to claim 9, characterized in that The step of adjusting the width adjustment ratio of the adjacent road surface in the first set of width adjustment ratios so that the absolute value of the difference between the width adjustment ratio of the reference road surface and the adjusted width adjustment ratio of the adjacent road surface is not greater than the ratio threshold comprises: Determine the sum of the width adjustment ratio of the reference road surface and the ratio threshold as a candidate width adjustment ratio; The target width adjustment ratio is determined as the adjusted width adjustment ratio of the adjacent road surface, and the target width adjustment ratio is the minimum value between the width adjustment ratio of the adjacent road surface and the candidate width adjustment ratio.

11. The method according to claim 9, characterized in that The determining of a reference road surface in the unbalanced road surface set comprises: Generate an index value of each road surface in the unbalanced road surface set; Creating a minimum index tree according to the width adjustment ratios of the road surfaces in the unbalanced road surface set, wherein the minimum index tree includes index values ​​of the road surfaces in the pending state, and the width adjustment ratio corresponding to the index value on the parent node in the minimum index tree is smaller than the width adjustment ratio corresponding to the index value on the child node; The road surface indicated by the index value on the root node of the minimum index tree is determined as the reference road surface.

12. A road surface generating device, characterized in that: The device comprises: A data acquisition module, used for acquiring a plurality of road lines of an electronic map, and expanding the plurality of road lines to obtain a plurality of road surfaces having widths; a ratio determination module, configured to determine a first set of width adjustment ratios for adjusting the widths of the plurality of road surfaces when there is overlap among the plurality of road surfaces; a ratio adjustment module, configured to adjust the width adjustment ratio of at least one road surface among the plurality of road surfaces in the first set of width adjustment ratios to obtain a second set of width adjustment ratios of the plurality of road surfaces, wherein in the second set of width adjustment ratios, an absolute value of a difference between the width adjustment ratios of any two road surfaces among the plurality of road surfaces is not greater than a ratio threshold; A road surface rendering module is used to adjust the widths of the multiple road surfaces based on the second set of width adjustment ratios.

13. A computer device, characterized in that: The computer device includes a processor and a memory, wherein the memory stores at least one computer program, and the at least one computer program is loaded and executed by the processor to implement the operations performed by the road surface generation method as described in any one of claims 1 to 11.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one computer program, and the at least one computer program is loaded and executed by the processor to implement the operations performed by the road surface generation method as described in any one of claims 1 to 11.

15. A computer program product comprising a computer program, characterized in that The computer program is loaded and executed by a processor to implement the operations performed by the road surface generation method according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • A map road rendering method and device

    CN109598672A

  • Intersection area determination method and device, storage medium and electronic equipment

    CN112530013A

  • Road network data processing method, device, electronic equipment and storage medium

    CN113901342A

  • Road surface generation method and device, computer equipment and storage medium

    CN116958307A

  • Map display device, map display method, and program

    JP2012063469A