Road network data elevation smoothing method, device and equipment, storage medium and vehicle
By correlating and spreading smoothing processing of road network data, the problem of uneven road network data elevation in autonomous driving is solved, achieving efficient and low-cost road network data smoothing, which is suitable for large-scale road networks and improves data accuracy.
Patent Information
- Application Number
- CN202310333869.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-30
- Publication Date
- 2024-10-01
AI Technical Summary
During the process of autonomous driving, the elevation data of road network data is not smooth due to errors in the collection process of surveying and mapping vehicles, which affects vehicle decision-making. The existing manual annotation smoothing method is inefficient and costly, making it difficult to apply to large-scale road network data.
By obtaining road network data, multiple road segments are associated respectively, and the associated data is smoothed using a preset method such as the spread smoothing algorithm, and the smoothed elevation data is merged to form accurate road network data.
It reduces the labeling cost and improves the labeling efficiency. It is suitable for elevation smoothing of large-scale urban-level road networks, avoids manual labeling errors, and improves data accuracy.
Smart Images

Figure CN118733976A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a method, device, equipment, storage medium and vehicle for smoothing elevation of road network data. Background Art
[0002] In the process of autonomous driving, road network data that meets the needs of autonomous driving is needed. The road network data contains multiple road sections, each road section contains multiple nodes, and each node contains corresponding elevation data. These elevation data are mainly collected by surveying and mapping vehicles. Due to various reasons in the collection process, the elevation data may have errors, unevenness, and other problems, which in turn cause erroneous decision information in the process of autonomous driving, affecting vehicle driving. For example, using traditional manual methods to mark and remove elevation errors in existing elevation data, this method of smoothing elevation is inefficient and costly, and cannot be applied to large-scale road network data. Therefore, how to quickly complete the work of smoothing the elevation of road network data has become an urgent problem to be solved. Summary of the invention
[0003] In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a method, device, equipment, storage medium and vehicle for smoothing the elevation of road network data to reduce the annotation cost and increase the annotation frequency.
[0004] In a first aspect, an embodiment of the present disclosure provides a method for smoothing elevation of road network data, comprising:
[0005] Acquire road network data, wherein the road network includes a plurality of road sections;
[0006] Associating the multiple road sections respectively to form association data of the multiple road sections;
[0007] For the associated data of each of the plurality of road sections, smoothing the associated data of the road section in a preset manner to obtain a smoothed elevation of the associated data of the road section;
[0008] The smoothed elevations of the associated data of the road sections are merged to form road network data with accurate elevation data.
[0009] In a second aspect, an embodiment of the present disclosure provides a road network data elevation smoothing device, comprising:
[0010] An acquisition module, used for acquiring road network data, wherein the road network includes a plurality of road sections;
[0011] An association module, used to associate the multiple road sections respectively to form association data of the multiple road sections;
[0012] A smoothing module, for smoothing the associated data of each of the plurality of road sections in a preset manner to obtain a smoothed elevation of the associated data of the road section;
[0013] The merging module is used to merge the smoothed elevations of the associated data of the road section to form road network data with accurate elevation data.
[0014] In a third aspect, an embodiment of the present disclosure provides an electronic device, including:
[0015] Memory;
[0016] Processor; and
[0017] Computer programs;
[0018] The computer program is stored in the memory and is configured to be executed by the processor to implement the method as described in the first aspect.
[0019] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program is executed by a processor to implement the method described in the first aspect.
[0020] In a fifth aspect, an embodiment of the present disclosure further provides a vehicle, comprising: a road network data elevation smoothing device as described in the second aspect; or, an electronic device as described in the third aspect; or, a computer-readable storage medium as described in the fourth aspect.
[0021] The road network data elevation smoothing method, device, equipment, storage medium and vehicle provided by the embodiments of the present disclosure obtain road network data, wherein the road network includes multiple road sections, and it is clarified that the road network is composed of multiple road sections; the multiple road sections are respectively associated to form associated data of the multiple road sections, and how the road sections are associated is determined; for the associated data of each road section in the multiple road sections, the associated data of the road section is smoothed by a preset method to obtain the smoothed elevation of the associated data of the road section, and the associated data of the road section is smoothed by a preset method; the smoothed elevations of the associated data of the road sections are merged to form road network data with accurate elevation data, thereby avoiding the prior art of removing elevation errors by annotating road network elevations according to elevation data, and being suitable for large-scale urban road network elevation smoothing, reducing annotation costs and improving annotation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0023] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0024] Figure 1 A flow chart of a method for smoothing elevation of road network data provided by an embodiment of the present disclosure;
[0025] Figure 2 A schematic diagram of an application scenario provided by an embodiment of the present disclosure;
[0026] Figure 3 A schematic diagram of an application scenario provided by an embodiment of the present disclosure;
[0027] Figure 4 A schematic diagram of the structure of a road network data elevation smoothing device provided in an embodiment of the present disclosure;
[0028] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0029] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0030] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0031] The disclosed embodiment provides a method for smoothing elevation of road network data, which is described below in conjunction with specific embodiments.
[0032] Figure 1 A flow chart of a road network data elevation smoothing method provided in an embodiment of the present disclosure. The method can be executed by a road network data elevation smoothing device, which can be implemented in software and / or hardware, and can be configured in an electronic device, such as a server or a terminal, wherein the terminal specifically includes an electric vehicle, a fuel vehicle, a hybrid vehicle, etc. In addition, the method can be applied to application scenarios of road network data elevation smoothing. It can be understood that the road network data elevation smoothing method provided in an embodiment of the present disclosure can also be applied in other scenarios.
[0033] Below Figure 1The road network data elevation smoothing method shown in the figure is introduced. The specific steps of the method are as follows:
[0034] S101. Acquire road network data, where the road network includes multiple road sections.
[0035] The road network data can be road network data among existing data, and the acquisition process can use existing methods, such as obtaining road network data from cloud data through networking. The road network data includes multiple road sections. It can be understood that the length of each road section is very short, and the elevation difference of the entire road section in the road section is within a preset range.
[0036] S102: Associate the multiple road sections respectively to form association data of the multiple road sections.
[0037] The predecessor and successor relationship between the road sections is used to associate the above-mentioned multiple road sections respectively. Specifically, each road section in the existing road network is associated with the predecessor and successor sections of the road section according to the predecessor and successor relationship to make the associated data of the road section. Specifically, the previous road section adjacent to the current road section is the predecessor section of the current road section, and the next road section adjacent to the current road section is the successor section of the current road section, such as Figure 2 As shown in , the predecessor of the B segment is the A segment, and the successor of the B segment is the C segment. It can be understood that for the starting segment or the end segment, that is, the segment without the predecessor or the successor, the associated data is formed according to the associated segments. That is, for the starting segment, the successor of the starting segment can be used as the associated data of the starting segment. Specifically, Figure 2 As shown in , when section A is the starting section, the subsequent section of section A (i.e., section B) is used as the associated data of section A; for the terminal section, the predecessor section of the terminal section may be used as the associated data of the terminal section, specifically, as shown in Figure 2 As shown in , when the C section is the terminal section, the predecessor section of the C section (ie, the B section) is used as the associated data of the C section.
[0038] Specifically, Figure 2 An application scenario provided by the embodiment of the present disclosure is as follows: Figure 2 As shown, when section A is the starting section and section C is the ending section, the associated data of section A is section B, the associated data of section B is section A and section C, and the associated data of section C is section B.
[0039] S103 . For the associated data of each road section among the multiple road sections, smooth the associated data of the road section in a preset manner to obtain a smoothed elevation of the associated data of the road section.
[0040] For the associated data of each of the multiple road sections, the associated data of the road section is smoothed in a preset manner to obtain the smoothed elevation of the associated data of the road section.
[0041] Specifically, Figure 2 For example, for the associated data of section B, namely section A and section C, section A and section C are smoothed by a preset method to obtain the smoothed elevations of section A and section C.
[0042] Optionally, the preset method may be a spreading smoothing algorithm.
[0043] Specifically, spreading refers to expanding like creeping weeds, and smoothing refers to redistributing probabilities. Even events that have not occurred will be given a probability. The purpose of the spreading smoothing algorithm is to make the elevation of the road section closer to the actual situation.
[0044] S104, merging the smoothed elevations of the associated data of the road section to form precise road network data of elevation data.
[0045] The smoothed elevations of the associated data of the above road sections are combined to form a road network with small elevation data errors, thereby obtaining road network data with more accurate elevation data.
[0046] The disclosed embodiment obtains road network data, wherein the road network includes multiple road sections, and clarifies that the road network is composed of multiple road sections; associates the multiple road sections respectively to form associated data of the multiple road sections, and determines how the road sections are associated; for the associated data of each road section in the multiple road sections, smoothes the associated data of the road section in a preset manner to obtain the smoothed elevation of the associated data of the road section, and smoothes the associated data of the road section in a preset manner; merges the smoothed elevations of the associated data of the road sections to form road network data with accurate elevation data, thereby avoiding the prior art of removing elevation errors by annotating road network elevations based on elevation data, and is suitable for smoothing elevations of large-scale road networks at the city level, which reduces annotation costs and improves annotation efficiency.
[0047] On the basis of the above embodiment, if the road segment is a core road segment, the associated data includes a predecessor road segment of the core road segment and a successor road segment of the core road segment;
[0048] Among them, associating the multiple road sections respectively to form the associated data of the multiple road sections includes: dividing the multiple road sections according to a preset ratio to obtain the divided road sections; selecting core road sections from the divided road sections, associating the core road sections, and obtaining the associated data of the core road sections.
[0049] The above-mentioned multiple road sections are divided according to the ratio n to obtain divided road sections, each road section contains multiple nodes, and each node contains corresponding elevation data. For example, if there are 100 road sections in the road network, the 100 road sections are divided according to the ratio of 5 to obtain 20 divided road sections. For each divided road section, a core road section is selected from the divided road section, and the core road section is associated to obtain the associated data of the core road section.
[0050] like Figure 3 As shown, the AE section is a divided section, each section contains multiple nodes, and each node contains corresponding elevation data. A core section is randomly selected from the AE section. For example, the core section can be section C or section B. Taking section C as the core section, the core section C is associated. The predecessor node of section C is associated with the successor node of section B, and the successor node of section C is associated with the predecessor node of section D; the predecessor node of section B is associated with the successor node of section A, and the successor node of section D is associated with the predecessor node of section E, wherein the predecessor node refers to the node adjacent to the predecessor section of the current section (the nearest node), and the successor node refers to the node adjacent to the successor section of the current section (the nearest node). Then the associated data of section C includes section A, section B, section D, and section E.
[0051] The disclosed embodiment obtains divided road sections by dividing a plurality of road sections according to a preset ratio; core road sections are selected from the divided road sections, and the core road sections are associated to obtain associated data of the core road sections, thereby clarifying how the road sections are associated, facilitating subsequent smoothing of the associated data, and improving the flexibility of the road network data elevation smoothing method.
[0052] In some embodiments, for the associated data of each of the multiple road sections, the associated data of the road section is smoothed by a preset method to obtain the smoothed elevation of the associated data of the road section, including: for the associated data of the core road section, the associated data of the core road section is smoothed by a spreading smoothing algorithm to obtain the smoothed elevation of the associated data of the core road section.
[0053] For the core road section's associated data, the core road section's associated data is smoothed using a spreading smoothing algorithm to obtain the smoothed elevation of the core road section's associated data. Figure 2 Take section B as an example, the core section is smoothed by spreading smoothing algorithm, and the smoothed elevations of sections A and C are obtained; Figure 3 Take section C as an example, the core section is smoothed by spreading smoothing algorithm to obtain the smoothed elevations of section A, section B, section D and section E.
[0054] Optionally, the associated data of the core road section is smoothed by a spreading smoothing algorithm to obtain the smoothed elevation of the associated data of the core road section, including: determining a target node and adjacent sampling points of the target node, the target node including a successor node of a predecessor section of the core road section and a predecessor node of a successor section of the core road section, the adjacent sampling points of the target node including a predecessor node of the core road section, a successor node of the core road section, and a target node after smoothing; taking the target node as the center point, selecting a preset number of sampling points on both sides of the target node to form a sampling point set; calculating a first mean elevation and a standard deviation of the elevation of the sampling points in the set, and calculating the absolute value of the difference between the elevation of each sampling point in the set and the first mean elevation; determining the elevation of the target node according to the absolute value and the standard deviation.
[0055] Determine the target node, the target node includes the successor node of the predecessor segment of the core segment and the predecessor node of the successor segment of the core segment, the adjacent sampling points of the target node include the predecessor node of the core segment, the successor node of the core segment, and the target node after smoothing, specifically, Figure 2 For example, the core section is section B. When the target node is a3, the adjacent sampling point of a3 is b1. Taking the target node a3 as the center point, a preset number of sampling points are selected on both sides of the target node a3 to form a sampling point set. Specifically, the preset number may be 3, then the sampling point set is {a2, a3, b1}. In other embodiments, the preset number may also be other values, which are not specifically limited in this embodiment. The first mean elevation and the standard deviation of the elevation of the sampling points in the set are calculated, and the absolute value of the difference between the elevation of each sampling point in the set and the first mean elevation is calculated. When a2=3, a3=4, and b1=5, the first mean elevation is (3+4+5) / 3=4, the standard deviation of the elevation is sqrt(((3-4)^2+(4-4)^2+(5-4)^2) / 3)=sqrt(2 / 3), and the absolute value is |(3-4)|=1, |(4-4)|=0, and |(5-4)|=1. The elevation of the target node is determined according to the absolute value and the standard deviation. The core section is section B. When the target node is c1, the adjacent sampling point of c1 is b3. The implementation principle of determining the elevation of c1 is consistent with the above-mentioned determination of the elevation of a3, which will not be repeated here.
[0056] When the elevation of the target node is smoothed, the smoothed target node can be used as an adjacent sampling point, and the above steps are iterated on both sides of the core road section until all sections are smoothed at least once.
[0057] Optionally, the elevation of the target node is determined based on the absolute value and the standard deviation, including: if the absolute value is greater than a preset multiple of the standard deviation, the elevations of adjacent sampling points of the target node are assigned to the elevation of the target node; if the absolute value is less than or equal to a preset multiple of the standard deviation, the elevation of the target node is kept unchanged.
[0058] If the vehicle computer determines that any of the above absolute values is greater than a preset multiple of the standard deviation, the elevation of the adjacent sampling point of the target node is assigned to the elevation of the target node, that is, the elevation of b1 is assigned to a3; wherein, the preset multiple can be set manually or automatically output through a trained model according to actual conditions.
[0059] The vehicle computer determines that if any of the above absolute values is less than or equal to a preset multiple of the standard deviation, taking the preset multiple as 2, 1<(sqrt(2 / 3))*2, 0<(sqrt(2 / 3))*2, 1<(sqrt(2 / 3))*2, then the elevation of the target node remains unchanged, that is, b1 remains the original elevation.
[0060] Optionally, for any one of the target nodes, if the target node is associated with two sampling points at the same time, a second mean of the elevations of the two associated sampling points is calculated, and the second mean of the elevations is used as the elevation of the target node.
[0061] Specifically, for any target node, if the target node is associated with two sampling points at the same time, the second mean of the elevations of the two associated sampling points is calculated, and the second mean of the elevation is used as the elevation of the target node. Figure 2 As shown, if the target node a3 is associated with two sampling points b1 and a2 at the same time, the second mean of the elevations of the two associated sampling points is calculated, and the second mean of the elevation is used as the elevation of the target node a3.
[0062] The disclosed embodiment specifically describes obtaining the elevation data of a target node by spreading the elevation of the associated data, thereby further improving the flexibility of the elevation smoothing method of the road network data, reducing the annotation cost, and improving the annotation efficiency.
[0063] Figure 4 The schematic diagram of the structure of the road network data elevation smoothing device provided in the embodiment of the present disclosure. The road network data elevation smoothing device can be the terminal as described in the above embodiment, or the road network data elevation smoothing device can be a component or assembly in the terminal. The road network data elevation smoothing device provided in the embodiment of the present disclosure can execute the processing flow provided in the road network data elevation smoothing method embodiment, such as Figure 4As shown, the road network data elevation smoothing device 40 includes: an acquisition module 41, an association module 42, a smoothing module 43, and a merging module 44; wherein the acquisition module 41 is used to acquire road network data, wherein the road network includes a plurality of road sections; the association module 42 is used to associate the plurality of road sections respectively to form associated data of the plurality of road sections; the smoothing module 43 is used to smooth the associated data of each of the plurality of road sections in a preset manner to obtain the smoothed elevation of the associated data of the road section; the merging module 44 is used to merge the smoothed elevations of the associated data of the road sections to form road network data with accurate elevation data.
[0064] Optionally, if the road section is a core road section, the associated data includes a predecessor road section of the core road section and a successor road section of the core road section;
[0065] The association module 42 is further used to divide the multiple road sections according to a preset ratio to obtain divided road sections; select core road sections from the divided road sections, associate the core road sections, and obtain association data of the core road sections.
[0066] Optionally, the preset method includes a spreading smoothing algorithm;
[0067] The smoothing module 43 is further used to smooth the associated data of the core road section by using a spreading smoothing algorithm to obtain the smoothed elevation of the associated data of the core road section.
[0068] Optionally, the smoothing module 43 is also used to determine a target node, the target node includes a successor node of a predecessor segment of a core section and a predecessor node of a successor segment of a core section, and the adjacent sampling points of the target node include a predecessor node of the core section, a successor node of the core section, and the target node after smoothing; taking the target node as the center point, selecting a preset number of sampling points on both sides of the target node to form a sampling point set; calculating a first mean elevation and a standard deviation of the elevations of the sampling points in the set, and calculating the absolute value of the difference between the elevation of each sampling point in the set and the first mean elevation; and determining the elevation of the target node according to the absolute value and the standard deviation.
[0069] Optionally, the smoothing module 43 is also used to assign the elevation of the adjacent sampling points of the target node to the elevation of the target node if the absolute value is greater than a preset multiple of the standard deviation; if the absolute value is less than or equal to the preset multiple of the standard deviation, keep the elevation of the target node unchanged.
[0070] Optionally, the smoothing module 43 is further configured to calculate, for any one of the target nodes, a second mean of the elevations of the two associated sampling points if the target node is associated with two sampling points at the same time, and use the second mean of the elevations as the elevation of the target node.
[0071] Figure 4 The road network data elevation smoothing device of the illustrated embodiment can be used to execute the technical solution of the above-mentioned road network data elevation smoothing method embodiment. Its implementation principle and technical effect are similar and will not be repeated here.
[0072] Figure 5 The electronic device provided in the embodiment of the present disclosure can execute the processing flow provided in the embodiment of the method for smoothing the elevation of road network data, such as Figure 5 As shown, the electronic device 50 includes: a memory 51, a processor 52, a computer program and a communication interface 53; wherein the computer program is stored in the memory 51 and is configured so that the processor 52 executes the road network data elevation smoothing method as described above.
[0073] In addition, an embodiment of the present disclosure further provides a computer-readable storage medium on which a computer program is stored, and the computer program is executed by a processor to implement the road network data elevation smoothing method described in the above embodiment.
[0074] In addition, an embodiment of the present disclosure also provides a vehicle, which includes the road network data elevation smoothing device as described in the above embodiment; or the electronic device as described in the above embodiment; or the computer-readable storage medium as described in the above embodiment.
[0075] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0076] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0077] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0078] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device:
[0079] Acquire road network data, wherein the road network includes a plurality of road sections;
[0080] Associating the multiple road sections respectively to form association data of the multiple road sections;
[0081] For the associated data of each of the plurality of road sections, smoothing the associated data of the road section in a preset manner to obtain a smoothed elevation of the associated data of the road section;
[0082] The smoothed elevations of the associated data of the road sections are merged to form road network data with accurate elevation data.
[0083] In addition, the electronic device can also execute other steps in the road network data elevation smoothing method as described above.
[0084] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0085] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0086] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.
[0087] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0088] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0089] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0090] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A road network data elevation smoothing method, It is characterized in that The method comprises: Acquire road network data, wherein the road network includes a plurality of road sections; Associating the multiple road sections respectively to form association data of the multiple road sections; For the associated data of each of the plurality of road sections, smoothing the associated data of the road section in a preset manner to obtain a smoothed elevation of the associated data of the road section; The smoothed elevations of the associated data of the road sections are merged to form road network data with accurate elevation data.
2. The method according to claim 1, It is characterized in that If the road section is a core road section, the associated data includes a predecessor road section of the core road section and a successor road section of the core road section; The step of associating the plurality of road sections respectively to form associated data of the plurality of road sections includes: Dividing the plurality of road sections according to a preset ratio to obtain divided road sections; A core road section is selected from the divided road sections, and the core road sections are associated to obtain associated data of the core road sections.
3. The method according to claim 2, It is characterized in that The preset method includes a spreading smoothing algorithm; The step of smoothing the associated data of each of the plurality of road sections in a preset manner to obtain the smoothed elevation of the associated data of the road section includes: The associated data of the core road section are smoothed by a spreading smoothing algorithm to obtain the smoothed elevation of the associated data of the core road section.
4. The method according to claim 3, It is characterized in that Smoothing the associated data of the core road section by a spreading smoothing algorithm to obtain the smoothed elevation of the associated data of the core road section includes: Determine a target node, wherein the target node includes a successor node of a predecessor segment of a core segment and a predecessor node of a successor segment of a core segment, and adjacent sampling points of the target node include a predecessor node of the core segment, a successor node of the core segment, and a smoothed target node; Taking the target node as the center point, a preset number of sampling points are selected on both sides of the target node to form a sampling point set; Calculating a first mean value and a standard deviation of the elevations of the sampling points in the set, and calculating an absolute value of a difference between the elevation of each sampling point in the set and the first mean value of the elevation; The elevation of the target node is determined according to the absolute value and the standard deviation.
5. The method according to claim 4, It is characterized in that Determining the elevation of the target node according to the absolute value and the standard deviation includes: If the absolute value is greater than a preset multiple of the standard deviation, the elevation of the adjacent sampling points of the target node is assigned to the elevation of the target node; If the absolute value is less than or equal to a preset multiple of the standard deviation, the elevation of the target node is kept unchanged.
6. The method according to claim 5, It is characterized in that The method further comprises: For any target node, if the target node is associated with two sampling points at the same time, the second mean of the elevations of the two associated sampling points is calculated, and the second mean of the elevations is used as the elevation of the target node.
7. A road network data elevation smoothing device, It is characterized in that The device comprises: An acquisition module, used for acquiring road network data, wherein the road network includes a plurality of road sections; An association module, used to associate the multiple road sections respectively to form association data of the multiple road sections; A smoothing module, for smoothing the associated data of each of the plurality of road sections in a preset manner to obtain a smoothed elevation of the associated data of the road section; The merging module is used to merge the smoothed elevations of the associated data of the road section to form road network data with accurate elevation data.
8. An electronic device, It is characterized in that include: Memory; processor; as well as Computer programs; The computer program is stored in the memory and is configured to be executed by the processor to implement the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
10. A vehicle, It is characterized in that include: The road network data elevation smoothing device as claimed in claim 7; Or, the electronic device as claimed in claim 8; Or, the computer readable storage medium of claim 9.
