Semantic map fusion method, device, equipment, storage medium and program product
Through the semantic map fusion method, the problem of low map integration accuracy in autonomous driving is solved, and high-accuracy map fusion suitable for outdoor scenes is achieved to meet the perception needs of intelligent driving.
Patent Information
- Application Number
- CN202410742117.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-06-11
AI Technical Summary
When the existing technology integrates maps in autonomous driving, the map based on feature points is not suitable for outdoor scenes, and the fusion accuracy caused by cumulative errors is low, which cannot meet the perception needs of intelligent driving.
Using the semantic map fusion method, the target semantic map and source semantic map to be fused are extracted and processed by sub-graphs to determine the target transformation information, and when the preset conditions are met, update and fusion processing is performed to generate a fused semantic map.
It improves the accuracy of map fusion, is suitable for outdoor scenes, meets the perception needs of intelligent driving, and reduces the difficulty of fusion caused by cumulative errors.
Smart Images

Figure CN118314587B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent driving technology, and in particular to a semantic map fusion method, device, equipment, storage medium and program product. Background Art
[0002] In recent years, autonomous driving technology has continued to develop. In the memory parking scenario of autonomous driving, a complete and comprehensive map is very important for positioning, perception and regulation. Integrating maps created by multiple users during driving is the key to obtaining a complete and comprehensive map. At present, the integration is usually based on feature point maps, which is not only not suitable for outdoor scenes, but also cannot meet the perception requirements, and the accuracy of the integration results will be reduced due to the existence of cumulative errors. Summary of the invention
[0003] In view of this, the present invention provides a semantic map fusion method, device, equipment, storage medium and program product to solve the problems of low accuracy of map integration and failure to meet perception requirements.
[0004] In a first aspect, the present invention provides a semantic map fusion method, the method comprising:
[0005] Performing sub-graph extraction processing on the first target semantic map and the first source semantic map to be fused to obtain N first sub-graph combinations; the first target semantic map and the first source semantic map include the same semantic markers, and N is an integer greater than 1;
[0006] Determining target transformation information according to the N first sub-image combinations;
[0007] Performing an updating process on the first target semantic map and the first source semantic map according to the target transformation information to obtain a corresponding second target semantic map and a second source semantic map;
[0008] If it is determined that the second target semantic map and the second source semantic map meet a preset fusion condition, the second target semantic map and the second source semantic map are fused to obtain a fused semantic map.
[0009] The semantic map fusion method provided in this embodiment performs sub-map extraction processing on the first target semantic map and the first source semantic map to be fused to obtain N first sub-map combinations; and determines the target transformation information according to the N first sub-map combinations; updates the first target semantic map and the first source semantic map according to the target transformation information to obtain the corresponding second target semantic map and the second source semantic map; and, if it is determined that the second target semantic map and the second source semantic map meet the preset fusion condition, the second target semantic map and the second source semantic map are fused to obtain a fused semantic map. Wherein, the first target semantic map and the first source semantic map include the same semantic markers, and N is an integer greater than 1. Therefore, the first target semantic map and the first source semantic map are updated according to the target transformation information, and the fusion processing is performed when the updated second target semantic map and the second source semantic map meet the preset fusion condition, which can not only reduce the fusion difficulty caused by the accumulated error and improve the fusion accuracy of the semantic map, but also can be applied to outdoor scenes to meet the perception needs of intelligent driving.
[0010] In an optional implementation, the first driving path corresponding to the first target semantic map includes a plurality of first nodes, and the second driving path corresponding to the first source semantic map includes a plurality of second nodes; the subgraph extraction process is performed on the first target semantic map and the first source semantic map to be fused to obtain N first subgraph combinations, including:
[0011] Determine, according to the current distance threshold, a target first node in the first target semantic map that meets an extraction condition, and a target second node in the first source semantic map that meets the extraction condition;
[0012] Generate a first subgraph of the first target semantic map according to the target first node, generate a second subgraph of the first source semantic map according to the target second node, and determine the first subgraph and the second subgraph as a first subgraph combination;
[0013] If it is determined that the number of the first subgraph combinations has not reached N, the current distance threshold is updated, and the updated distance threshold is determined as the current distance threshold, and the determination operation of the target first node and the target second node is performed until it is determined that the number of the first subgraph combinations has reached N.
[0014] The semantic map fusion method provided in this embodiment extracts N different first sub-image combinations based on N different distance thresholds, thereby determining target transformation information according to the N first sub-image combinations, and can ensure the accuracy of the determined target transformation information.
[0015] In an optional implementation, determining target transformation information according to the combination of the N first sub-images includes:
[0016] Determine N candidate transformation information corresponding to the N first sub-image combinations; the N first sub-image combinations correspond one-to-one to the N candidate transformation information;
[0017] According to the translation information in the N candidate change information, target transformation information in the N candidate transformation information that meets a second preset condition is determined.
[0018] The semantic map fusion method provided in this embodiment first determines N candidate transformation information corresponding to N first sub-graph combinations, and determines target transformation information based on the candidate transformation information, thereby ensuring the accuracy of the target transformation information.
[0019] In an optional implementation manner, determining, according to the translation information in the N candidate change information, the target transformation information that satisfies the second preset condition in the N candidate transformation information includes:
[0020] For each translation information in the candidate transformation information, mapping the translation information into a first coordinate point in a three-dimensional space;
[0021] For each of the first coordinate points, determining a first number of first coordinate points within a first preset range of the first coordinate point;
[0022] determining a maximum first number among the first numbers;
[0023] The candidate change information corresponding to the maximum first quantity is determined as the target change information.
[0024] The semantic map fusion method provided in this embodiment greatly improves the accuracy of the target transformation information by determining the first quantity and determining the candidate change information corresponding to the maximum first quantity as the target transformation information.
[0025] In an optional implementation, the updating of the first target semantic map and the first source semantic map according to the target transformation information to obtain a corresponding second target semantic map and a second source semantic map includes:
[0026] Determining the first source semantic map as the source semantic map to be transformed, and determining the matching relationship set corresponding to the target transformation information as the current target matching relationship set;
[0027] According to the target transformation information, the source semantic map to be transformed is transformed to obtain a first intermediate source semantic map;
[0028] Build a graph optimization model based on the current target matching relationship set;
[0029] Based on the graph optimization model, the first target semantic map and the first intermediate source semantic map are updated to obtain a corresponding second target semantic map and a second source semantic map.
[0030] The semantic map fusion method provided in this embodiment constructs a graph optimization model, and based on the graph optimization model, updates the first target semantic map and the first intermediate source semantic map, thereby improving the accuracy of the second target semantic map and the second source semantic map obtained, and providing a guarantee for accurate fusion processing.
[0031] In an optional implementation, the updating process of the first target semantic map and the first intermediate source semantic map based on the graph optimization model to obtain the corresponding second target semantic map and second source semantic map includes:
[0032] Optimizing the first target semantic map based on the graph optimization model to obtain a candidate target semantic map;
[0033] Optimizing the first intermediate source semantic map based on the graph optimization model to obtain a candidate source semantic map;
[0034] If it is determined that the candidate target semantic map and the candidate source semantic map meet the optimization end condition, the candidate target semantic map and the candidate source semantic map that meet the optimization end condition are determined as the second target semantic map and the second source semantic map, respectively.
[0035] The semantic map fusion method provided in this embodiment ensures the accuracy of the second target semantic map and the second source semantic map by iteratively updating the candidate target semantic map and the candidate source semantic map, thereby ensuring the accuracy of the fused semantic map obtained by the subsequent fusion processing.
[0036] In an optional implementation, after obtaining the corresponding second target semantic map and second source semantic map, the method further includes:
[0037] Determine the current target matching relationship set as the global matching relationship set;
[0038] Obtaining a set of local matching relationships between the second target semantic map and the second source semantic map;
[0039] According to the local matching relationship set, the global matching relationship set is updated;
[0040] According to the updated global matching relationship set, it is determined whether the second target semantic map and the second source semantic map meet a preset fusion condition.
[0041] In an optional embodiment, the method further includes:
[0042] If it is determined that the second target semantic map and the second source semantic map do not satisfy the preset fusion condition, the second source semantic map is determined as the source semantic map to be transformed, and the transformation process is performed.
[0043] The semantic map fusion method provided in this embodiment greatly reduces the cumulative error of the semantic map by maintaining a global matching relationship set and performing cyclic iterations, thereby reducing the fusion difficulty caused by the cumulative error and improving the accuracy of semantic map fusion.
[0044] In an optional implementation, the fusing the second target semantic map and the second source semantic map to obtain a fused semantic map includes:
[0045] Deleting the second semantic marker in the second source semantic map corresponding to the global matching relationship set from the second source semantic map to obtain a target second source semantic map;
[0046] For each second node in the target second source semantic map, determining whether the second target semantic map contains a candidate first node that matches the second node;
[0047] If yes, then adding the neighbor node of the second node to the neighbor node set of the candidate first node;
[0048] If not, then add the second node and the neighbor nodes of the second node in the second target semantic map, and determine the newly added neighbor nodes of the second node in the second target semantic map; and add the newly added neighbor nodes to the neighbor node set of the second node.
[0049] The semantic map fusion method provided in this embodiment ensures the accuracy of the obtained fused semantic map by determining whether the second target semantic map contains a candidate first node that matches the second node and performing corresponding additional processing based on the determination result.
[0050] In a second aspect, the present invention provides a semantic map fusion device, the device comprising:
[0051] An extraction module is used to perform sub-graph extraction processing on the first target semantic map and the first source semantic map to be fused, so as to obtain N first sub-graph combinations; the first target semantic map and the first source semantic map include the same semantic markers, and N is an integer greater than 1;
[0052] A first determination module, configured to determine target transformation information according to the N first sub-image combinations;
[0053] A first updating module, configured to update the first target semantic map and the first source semantic map according to the target transformation information to obtain corresponding second target semantic maps and second source semantic maps;
[0054] The fusion module is used to fuse the second target semantic map and the second source semantic map to obtain a fused semantic map if it is determined that the second target semantic map and the second source semantic map meet a preset fusion condition.
[0055] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the semantic map fusion method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0056] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the semantic map fusion method of the first aspect or any corresponding embodiment thereof.
[0057] In a fifth aspect, the present invention provides a computer program product, comprising computer instructions for causing a computer to execute the semantic map fusion method of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0059] Figure 1 is a flow chart of a semantic map fusion method according to an embodiment of the present invention;
[0060] Figure 2 is a flow chart of another semantic map fusion method according to an embodiment of the present invention;
[0061] Figure 3 is a flowchart of another semantic map fusion method according to an embodiment of the present invention;
[0062] Figure 4 is a flowchart of another semantic map fusion method according to an embodiment of the present invention;
[0063] Figure 5is a flowchart of another semantic map fusion method according to an embodiment of the present invention;
[0064] Figure 6 is a structural block diagram of a semantic map fusion device according to an embodiment of the present invention;
[0065] Figure 7 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0066] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0067] In the automatic parking scenario, positioning, perception and regulation are important factors for accurately driving the vehicle into the parking space. In order to achieve positioning, perception and regulation, the maps created by multiple users during driving are usually integrated to obtain a complete and comprehensive map, so as to perform automatic parking based on the complete and comprehensive map. In the related art, the map based on the feature points is usually integrated, and the automatic parking is performed based on the map based on the feature points. However, processing such a map not only requires high computing power, is not suitable for outdoor scenes, and cannot meet the perception requirements, but also reduces the accuracy of the integration result due to the existence of cumulative errors, thereby reducing the accuracy of automatic parking. Based on this, the present invention provides a semantic map fusion method, which performs sub-graph extraction processing on the first target semantic map and the first source semantic map to be fused to obtain N first sub-graph combinations; and determines the target transformation information according to the N first sub-graph combinations; updates the first target semantic map and the first source semantic map according to the target transformation information to obtain the corresponding second target semantic map and the second source semantic map; and, if it is determined that the second target semantic map and the second source semantic map meet the preset fusion conditions, the second target semantic map and the second source semantic map are fused to obtain a fused semantic map. The first target semantic map and the first source semantic map include the same semantic markers, and N is an integer greater than 1. Therefore, the first target semantic map and the first source semantic map are updated according to the target transformation information, and the updated second target semantic map and the second source semantic map are fused when they meet the preset fusion conditions, which can not only reduce the fusion difficulty caused by the accumulated error and improve the fusion accuracy of the semantic map, but also be applicable to outdoor scenes and meet the perception needs of intelligent driving.
[0068] According to an embodiment of the present invention, an embodiment of a semantic map fusion method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0069] In this embodiment, a semantic map fusion method is provided, which can be used in the above-mentioned computer devices, such as mobile phones, tablet computers, desktop computers, portable notebooks, servers, etc. Figure 1 is a flow chart of a semantic map fusion method according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0070] Step S101, performing sub-graph extraction processing on the first target semantic map and the first source semantic map to be fused to obtain N first sub-graph combinations; the first target semantic map and the first source semantic map include the same semantic markers, and N is an integer greater than 1.
[0071] In some implementations, the first target semantic map and the first source semantic map to be fused uploaded by the user may be obtained, and the first target semantic map and the first source semantic map may be subjected to sub-graph extraction processing to obtain N first sub-graph combinations. In other implementations, a fusion request sent by a requesting device may be received, and the first target semantic map and the first source semantic map to be fused may be obtained from the fusion request, and the first target semantic map and the first source semantic map may be subjected to sub-graph extraction processing to obtain N first sub-graph combinations.
[0072] Specifically, during the process of automatic driving or automatic parking, the vehicle will collect an image sequence of the surrounding environment, and each image sequence corresponds to a driving path. Each frame of the image in the image sequence may correspond to a node in the driving path, and each frame of the image includes a semantic marker corresponding to the corresponding node. Semantic markers may include parking spaces, pillars, arrows, etc. The first target semantic map and the first source semantic map may be three-dimensional semantic regions drawn according to the first image sequence and the second image sequence, respectively. The first image sequence and the second image sequence may come from different vehicles or from the same vehicle. The first driving path corresponding to the first image sequence may be different from the second driving path corresponding to the second image sequence, but there are overlapping driving paths between the two. Since the semantic markers such as parking spaces, pillars, arrows, etc. in the overlapping driving paths are fixed, the first target semantic map and the first source semantic map include the same semantic markers. In other words, the first target semantic map and the first source semantic map include different observations of the same semantic marker. For example, vehicle 1 drives past pillar 1, parking space 1, pillar 2, parking space 2, etc. in the basement, and collects the corresponding image sequence 1; vehicle 2 drives past pillar 3, parking space 3, pillar 1, parking space 1, etc. in the basement, and collects the corresponding image sequence 2; then the first target semantic map drawn based on image sequence 1 includes the first observation of parking space 1 and pillar 1 based on vehicle 1; and the first source semantic map drawn based on image sequence 2 includes the second observation of parking space 1 and pillar 1 based on vehicle 2.
[0073] For ease of distinction, the driving path corresponding to the first target semantic map is referred to as the first driving path, and the driving path corresponding to the first source semantic map is referred to as the second driving path. The first driving path includes multiple first nodes and multiple first semantic markers, and the second driving path includes multiple second nodes and multiple second semantic markers. Among them, the first semantic markers and the second semantic markers have the same semantic markers, for example, both contain parking space 1 and pillar 1. In order to improve the efficiency of image fusion, the length of the first driving path in the present invention is greater than the length of the second driving path, and the first source semantic map is fused into the first target semantic image. The drawing process of the first target semantic map and the first source semantic map can refer to the relevant technology, which will not be described in detail in the present invention.
[0074] Step S102: determining target transformation information according to the N first sub-image combinations.
[0075] Since the first target semantic map and the first source semantic map are actually the offset and accumulation of the positions and postures of nodes and semantic landmarks, the offset of the overlapping parts of the first target semantic map and the first source semantic map may be very large. In order to improve the accuracy of semantic map fusion, the present invention determines the target transformation information based on the extracted N first sub-graph combinations. Among them, the target transformation information may include rotation information and translation information.
[0076] Step S103: updating the first target semantic map and the first source semantic map according to the target transformation information to obtain a corresponding second target semantic map and a corresponding second source semantic map.
[0077] Updating the first target semantic map and the first source semantic map according to the target transformation information can improve the accuracy of the subsequently obtained fused semantic map.
[0078] Step S104: If it is determined that the second target semantic map and the second source semantic map meet the preset fusion condition, the second target semantic map and the second source semantic map are fused to obtain a fused semantic map.
[0079] The semantic map fusion method provided in this embodiment performs sub-map extraction processing on the first target semantic map and the first source semantic map to be fused to obtain N first sub-map combinations; and determines the target transformation information according to the N first sub-map combinations; updates the first target semantic map and the first source semantic map according to the target transformation information to obtain the corresponding second target semantic map and the second source semantic map; and, if it is determined that the second target semantic map and the second source semantic map meet the preset fusion condition, the second target semantic map and the second source semantic map are fused to obtain a fused semantic map. Wherein, the first target semantic map and the first source semantic map include the same semantic markers, and N is an integer greater than 1. Therefore, the first target semantic map and the first source semantic map are updated according to the target transformation information, and the fusion processing is performed when the updated second target semantic map and the second source semantic map meet the preset fusion condition, which can not only reduce the fusion difficulty caused by the accumulated error and improve the fusion accuracy of the semantic map, but also can be applied to outdoor scenes to meet the perception needs of intelligent driving.
[0080] In this embodiment, a semantic map fusion method is provided, which can be used in the above-mentioned computer devices, such as mobile phones, tablet computers, desktop computers, portable notebooks, servers, etc. Figure 2 is a flow chart of a semantic map fusion method according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0081] Step S201, performing sub-graph extraction processing on the first target semantic map and the first source semantic map to be fused to obtain N first sub-graph combinations; the first target semantic map and the first source semantic map include the same semantic markers, and N is an integer greater than 1.
[0082] In some implementations, step S201 may include the following steps S2011 to S2014:
[0083] Step S2011: determining a target first node that meets an extraction condition in the first target semantic map and a target second node that meets an extraction condition in the first source semantic map according to the current distance threshold.
[0084] In some implementations, step S2011 may include the following steps a1 and a2:
[0085] Step a1: for each first node in the first target semantic map, determine, according to the current distance threshold, whether there is a candidate second node that meets a first preset condition among multiple second nodes included in the first source semantic map;
[0086] Specifically, for each first node in the first target semantic map, according to the first three-dimensional coordinates of the first node in the first target semantic map and the second three-dimensional coordinates of each second node in the first source semantic map, determine the first distance between the first node and each second node; determine the minimum first distance among the first distances; and determine whether the minimum first distance is less than the current distance threshold; if so, determine that there is a candidate second node that meets the first preset condition, and determine the second node corresponding to the minimum first distance as the candidate second node. The first distance can be a Euclidean distance, etc.
[0087] It should be noted that when the first sub-map combination is extracted for the first time from the first target semantic map and the first source semantic map, the preset initial distance threshold can be determined as the current distance threshold. When the first sub-map combination is not extracted for the first time from the first target semantic map and the first source semantic map, the current distance threshold is the distance threshold updated in step S2014. The initial distance threshold is, for example, 5 meters.
[0088] Step a2: If yes, the first node and the neighboring nodes of the first node are determined as the target first nodes that meet the extraction condition, and the candidate second node and the neighboring nodes of the candidate second node are determined as the target second nodes that meet the extraction condition.
[0089] Specifically, if there is a candidate second node that meets the first preset condition, the neighbor nodes of the first node and the neighbor nodes of the candidate second node are determined, and the first node and the neighbor nodes of the first node are determined as the target first node that meets the extraction condition, and the candidate second node and the neighbor nodes of the candidate second node are determined as the target second node that meets the extraction condition.
[0090] In some embodiments, determining the neighbor nodes of the first node may include: defining a circular area with the first node as the center and a first preset length as the radius, and determining each first node and the first semantic marker located in the circular area except the first node corresponding to the center as the neighbor nodes of the first node corresponding to the center. The method for determining the neighbor nodes of the second node is the same as the method for determining the neighbor nodes of the first node, and the repeated parts are not repeated. The first preset length is, for example, 10 meters.
[0091] Step S2012: Generate a first subgraph of the first target semantic map according to the target first node, generate a second subgraph of the first source semantic map according to the target second node, and determine the first subgraph and the second subgraph as a first subgraph combination.
[0092] Step S2013, determining whether the number of the first sub-image combination reaches N, if so, executing step S202; if not, executing step S2014.
[0093] The specific value of N can be set according to actual needs in actual applications, for example, N is 10.
[0094] Step S2014, update the current distance threshold, and determine the updated distance threshold as the current distance threshold, and return to step S2011.
[0095] The updating method of the current distance threshold can be set as needed in actual applications, for example, increasing by 1 meter each time.
[0096] Step S202: determining target transformation information according to the N first sub-image combinations.
[0097] Step S203: updating the first target semantic map and the first source semantic map according to the target transformation information to obtain a corresponding second target semantic map and a second source semantic map.
[0098] Step S204: If it is determined that the second target semantic map and the second source semantic map meet the preset fusion condition, the second target semantic map and the second source semantic map are fused to obtain a fused semantic map.
[0099] The specific implementation of steps S202 to S204 can be found in the relevant descriptions below, and the repeated parts will not be repeated here.
[0100] The semantic map fusion method provided in this embodiment extracts N different first sub-image combinations based on N different distance thresholds, thereby determining target transformation information according to the N first sub-image combinations, and can ensure the accuracy of the determined target transformation information.
[0101] In this embodiment, a semantic map fusion method is provided, which can be used in the above-mentioned computer devices, such as mobile phones, tablet computers, desktop computers, portable notebooks, servers, etc. Figure 3 is a flow chart of a semantic map fusion method according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps:
[0102] Step S301, performing sub-graph extraction processing on the first target semantic map and the first source semantic map to be fused to obtain N first sub-graph combinations; the first target semantic map and the first source semantic map include the same semantic markers, and N is an integer greater than 1.
[0103] Step S302: determining target transformation information according to the N first sub-image combinations.
[0104] In some embodiments, step S302 may include: determining N candidate transformation information corresponding to N first sub-image combinations, where the N first sub-image combinations correspond one-to-one to the N candidate transformation information; and determining target transformation information in the N candidate transformation information that meets a second preset condition based on the translation information in the N candidate change information.
[0105] In some implementations, step S302 may specifically include the following steps S3021 to S3025:
[0106] Step S3021, for each first sub-graph combination, determining a matching relationship set corresponding to the first sub-graph combination; the matching relationship in the matching relationship set indicates that a first semantic marker in the first sub-graph included in the first sub-graph combination and a second semantic marker in the second sub-graph are the same semantic marker;
[0107] In order to distinguish each node and each semantic marker, each node has a node identifier, and each semantic marker has a marker identifier. In order to avoid the first node identifier and the first marker identifier in the first target semantic map from conflicting with the second node identifier and the second marker identifier in the first source semantic map, before step S3021, the method may also include: updating the second node identifier and the second marker identifier according to the first node identifier and the first marker identifier. Specifically, determine the maximum first node identifier in the first node identifier, and determine the maximum first marker identifier in the first marker identifier; for each second node identifier, add the second node identifier to the maximum first node identifier, and determine the addition result as the updated second node identifier; for each second marker identifier, add the second marker identifier to the maximum first marker identifier, and determine the addition result as the updated second marker identifier. Each matching relationship in the matching relationship set may include the first marker identifier of the first semantic marker and the second marker identifier of the second semantic marker, indicating that the first semantic marker is associated with the second semantic marker, and the first semantic marker and the second semantic marker are the same semantic marker.
[0108] Considering that there is often a transformation between the first sub-graph and the second sub-graph in the first sub-graph combination, the absolute position of the semantic marker has been found to change, but the relative position has the invariance of the radial transformation. Therefore, the association relationship can be obtained according to the spatial relative position. Among them, the spatial relative position is the spatial relative position between the semantic markers, and the spatial relative position may include the distance and angle between the semantic markers. For example, in the first sub-graph, the parking space p and an arrow a next to it, the distance L between the parking space p and the arrow a, and the angle d between the parking space p and the arrow a are the spatial relative positions of the parking space p and the arrow a, that is, the spatial relative position of the parking space p and the arrow a. This parking space p and the arrow a are associated with the parking space p' and the arrow a' in the second sub-graph, and the distance between the parking space p' and the arrow a' is l', and the angle is d'; then the distance l is close to the distance l', and the angle d is close to the angle d'. Based on this, in step S3021, the spatial relative position between the semantic markers can be determined for each first sub-graph combination, and the matching relationship set corresponding to the first sub-graph combination can be obtained according to the spatial relative position. In some implementations, the matching relationship set corresponding to the first subgraph combination can be obtained according to the spatial relative position based on any one of the random walk matching algorithm, clustering algorithm, etc. For the specific implementation of the random walk matching algorithm and clustering algorithm, reference can be made to the relevant technology, and the repetitive parts will not be repeated here.
[0109] Step S3022: Determine candidate transformation information corresponding to the first sub-image combination according to the matching relationship set.
[0110] Specifically, the candidate transformation information corresponding to the first sub-image combination is determined according to the third three-dimensional coordinates of the first semantic marker in each matching relationship in the matching relationship set in the first sub-image and the fourth three-dimensional coordinates of the second semantic marker in the second sub-image. In some embodiments, the candidate transformation information corresponding to the first sub-image combination can be determined according to the third three-dimensional coordinates and the fourth three-dimensional coordinates based on any one of the ICP (Iterative Closest Point) algorithm and the optimization algorithm. For the specific implementation of the ICP algorithm and the optimization algorithm, please refer to the relevant technology, which will not be described in detail in the present invention.
[0111] Step S3023, for each translation information in the candidate transformation information, mapping the translation information to a first coordinate point in the three-dimensional space;
[0112] In some embodiments, the translation information in the candidate transformation information may be a 3*1 one-dimensional vector, i.e., including 3 element values. Accordingly, in step S3023, the three element values included in the translation information may be determined as the fifth three-dimensional coordinates, and the coordinate point corresponding to the fifth three-dimensional coordinates may be determined as the first coordinate point corresponding to the translation information.
[0113] Step S3024, for each first coordinate point, determining a first number of first coordinate points within a first preset range of the first coordinate point;
[0114] In some embodiments, for each first coordinate point, a circular area is defined with the first coordinate point as the center and the second preset length as the radius, and the circular area is determined as the first preset range of the first coordinate point; and a first number of first coordinate points contained in the first preset range is determined. The second preset length is, for example, 2 meters.
[0115] Step S3025: determine the maximum first number in the first numbers, and determine the candidate change information corresponding to the maximum first number as the target change information.
[0116] Specifically, the first quantities are sorted to obtain a maximum first quantity, and the candidate change information corresponding to the maximum first quantity is determined as the target change information.
[0117] Since the overlap between the first source semantic map and the first target semantic map is relatively small relative to their overall observation, the larger the current distance threshold used when extracting the first sub-graph combination, the more associations there will be in the association relationship set. Therefore, it is not reasonable to determine the candidate transformation information corresponding to the association relationship set with many associations as the target transformation information. Based on this, in the present invention, by determining the first number and determining the candidate change information corresponding to the maximum first number as the target transformation information, the accuracy of the target transformation information is greatly improved.
[0118] Step S303: updating the first target semantic map and the first source semantic map according to the target transformation information to obtain a corresponding second target semantic map and a corresponding second source semantic map.
[0119] Step S304: If it is determined that the second target semantic map and the second source semantic map meet a preset fusion condition, the second target semantic map and the second source semantic map are fused to obtain a fused semantic map.
[0120] In the semantic map fusion method provided in this embodiment, by determining the association relationship set corresponding to each first sub-graph combination, and determining the candidate transformation information according to the association relationship set; and mapping the translation information in the candidate transformation information to the first coordinate point in the three-dimensional space, and determining the first quantity; thereby determining the candidate change information corresponding to the maximum first quantity as the target transformation information, thereby greatly ensuring the accuracy of the target transformation information.
[0121] In this embodiment, a semantic map fusion method is provided, which can be used in the above-mentioned computer devices, such as mobile phones, tablet computers, desktop computers, portable notebooks, servers, etc. Figure 4 is a flow chart of a semantic map fusion method according to an embodiment of the present invention. Figure 4 As shown, the process includes the following steps:
[0122] Step S401, performing sub-graph extraction processing on the first target semantic map and the first source semantic map to be fused to obtain N first sub-graph combinations; the first target semantic map and the first source semantic map include the same semantic markers, and N is an integer greater than 1;
[0123] Step S402, determining target transformation information according to the N first sub-image combinations;
[0124] Step S403, updating the first target semantic map and the first source semantic map according to the target transformation information to obtain a corresponding second target semantic map and a second source semantic map;
[0125] In some implementations, step S403 may include the following steps S4031 to S4034:
[0126] Step S4031: determine the first source semantic map as the source semantic map to be transformed, and determine the matching relationship set corresponding to the target transformation information as the current target matching relationship set.
[0127] Step S4032: transform the source semantic map to be transformed according to the target transformation information to obtain a first intermediate source semantic map.
[0128] Specifically, according to the rotation information and translation information in the target transformation information, the posture of the second node and the second semantic marker in the source semantic map to be transformed is transformed to obtain the first intermediate source semantic map. The transformation of the posture can be multiplying the posture with the rotation information, and adding the multiplication result with the translation information to obtain the transformed posture.
[0129] Step S4033, constructing a graph optimization model according to the current target matching relationship set.
[0130] In some embodiments, the relative posture consistency between the edge-containing node and its neighboring nodes and the posture consistency between the associated semantic markers can be used as constraints, and the posture of the node can be used as an optimization variable. According to the current target matching relationship set, an initial model is constructed, and then the initial model is optimized using any optimization algorithm such as Ceres and g2o in the graph library to obtain the final graph optimization model. It should be pointed out that the detailed construction method and optimization method of the graph optimization model can refer to the relevant technology, which will not be described in detail in this invention.
[0131] Step S4034: Based on the graph optimization model, the first target semantic map and the first intermediate source semantic map are updated to obtain the corresponding second target semantic map and second source semantic map.
[0132] In some implementations, step S4034 may include the following steps b1 to b5:
[0133] Step b1, optimizing the first target semantic map based on the graph optimization model to obtain a candidate target semantic map.
[0134] Specifically, the first target semantic map is optimized using a graph optimization model to obtain an intermediate target semantic map; the first relative posture of the first semantic marker and the first node is determined according to the first posture of the first node in the first target semantic map and the second posture of the first semantic marker in the first target semantic map; the intermediate target semantic map is updated according to the first relative posture and the third posture of the first node in the intermediate target semantic map to obtain a target semantic map; the target semantic map includes the fourth posture of the first semantic marker.
[0135] That is to say, the first pose of the first node in the first target semantic map is optimized using the graph optimization model to obtain the third pose of the first node. Since the first relative pose between the first semantic marker and the first node is unchanged before and after the optimization process, the first relative pose can be determined based on the first pose of the first node before optimization and the second pose of the first semantic marker in the first target semantic map. And based on the first relative pose and the third pose after the optimization of the first node, the second pose is optimized to obtain a candidate target semantic map with both the first pose and the second pose optimized.
[0136] Step b2: optimizing the first intermediate source semantic map based on the graph optimization model to obtain a candidate source semantic map.
[0137] Specifically, the first intermediate source semantic map is optimized using a graph optimization model to obtain a second intermediate source semantic map; the second relative posture of the second semantic marker and the second node is determined based on the fifth posture of the second node in the first intermediate source semantic map and the sixth posture of the second semantic marker in the first intermediate source semantic map; the second intermediate source semantic map is optimized based on the second relative posture and the seventh posture of the second node in the second intermediate source semantic map to obtain a candidate source semantic map; the candidate source semantic map includes the eighth posture of the second semantic marker.
[0138] That is to say, the fifth pose of the second node in the first intermediate source semantic map is optimized using the graph optimization model to obtain the seventh pose of the second node. Since the second relative pose between the second semantic marker and the second node is unchanged before and after the optimization process, the second relative pose can be determined based on the fifth pose of the second node before optimization and the sixth pose of the second semantic marker in the first intermediate source semantic map. And based on the second relative pose and the seventh pose after the optimization of the second node, the sixth pose is optimized to obtain a candidate target semantic map in which both the fifth pose and the sixth pose are optimized.
[0139] Step b3: Based on the target matching relationship set, determine whether there is a newly added matching relationship in the candidate target semantic map and the candidate source semantic map.
[0140] In some embodiments, a set of candidate matching relationships between a candidate target semantic map and a candidate source semantic map is obtained; it is determined whether the candidate matching relationship set contains a first matching relationship that is not in the target matching relationship set; if so, it is determined that a new matching relationship exists, and the first matching relationship is determined as the new matching relationship; if not, it is determined that there is no new matching relationship.
[0141] Step b4: if it exists, then add the newly added matching relationship to the target matching relationship set and determine it as the current target matching relationship set, and determine the candidate source semantic map as the source semantic map to be transformed, and return to step S4032 until it is determined that there is no newly added matching relationship.
[0142] Step b5: If it does not exist, determine the candidate target semantic map and the candidate source semantic map to meet the optimization end condition, and determine the candidate target semantic map and the candidate source semantic map when the optimization end condition is met as the second target semantic map and the second source semantic map, respectively.
[0143] Therefore, based on the graph optimization model, the first target semantic map and the first intermediate source semantic map are iteratively updated, which improves the accuracy of the second target semantic map and the second source semantic map, and provides a guarantee for accurate subsequent fusion processing.
[0144] Step S404: If it is determined that the second target semantic map and the second source semantic map meet the preset fusion condition, the second target semantic map and the second source semantic map are fused to obtain a fused semantic map.
[0145] The semantic map fusion method provided in this embodiment ensures the accuracy of the second target semantic map and the second source semantic map by iteratively updating the candidate target semantic map and the candidate source semantic map, thereby ensuring the accuracy of the fused semantic map obtained by the subsequent fusion processing.
[0146] In this embodiment, a semantic map fusion method is provided, which can be used in the above-mentioned computer devices, such as mobile phones, tablet computers, desktop computers, portable notebooks, servers, etc. Figure 5 is a flow chart of a semantic map fusion method according to an embodiment of the present invention. Figure 5 As shown, the process includes the following steps:
[0147] Step S501, performing sub-graph extraction processing on the first target semantic map and the first source semantic map to be fused to obtain N first sub-graph combinations; the first target semantic map and the first source semantic map include the same semantic markers, and N is an integer greater than 1.
[0148] Step S502: determining target transformation information according to the N first sub-image combinations.
[0149] Step S503: updating the first target semantic map and the first source semantic map according to the target transformation information to obtain a corresponding second target semantic map and a corresponding second source semantic map.
[0150] For the specific implementation of steps S501 to S503, please refer to the relevant description above, and the repeated parts will not be repeated here.
[0151] Step S504: determine the current target matching relationship set as the global matching relationship set.
[0152] The method for obtaining the target matching set can be found in the related description above, and the repeated parts will not be repeated here.
[0153] Step S505: obtaining a set of local matching relationships between the second target semantic map and the second source semantic map.
[0154] Specifically, according to a preset distance threshold, sub-graph extraction processing is performed on the second target semantic map and the second source semantic map to obtain a second sub-graph combination; a matching relationship set of the second sub-graph combination is obtained; and the matching relationship set of the second sub-graph combination is determined as a local matching relationship set of the second target semantic map and the second source semantic map. The process of obtaining the matching relationship set of the second sub-graph combination is the same as the process of obtaining the matching relationship set of the first sub-graph combination, and the relevant description in the previous text may be referred to, and the repeated parts will not be repeated here.
[0155] Step S506: update the global matching relationship set according to the local matching relationship set.
[0156] In some implementations, step S506 may include the following steps S5061 to S5064:
[0157] Step S5061, determining local transformation information corresponding to the local matching relationship set.
[0158] The method for determining the local transformation information is the same as the method for determining the aforementioned candidate transformation information, and reference may be made to the relevant description in the previous text, and the repeated parts will not be repeated here.
[0159] Step S5062: Determine the first target matching relationship to be deleted in the global matching relationship set according to the target change information and the local transformation information.
[0160] Specifically, determine the matching relationship subset that is the same as the local matching relationship set and the global matching relationship set; determine the first pose error of each matching relationship in the matching relationship subset based on the target transformation information; determine the second pose error of each matching relationship in the matching relationship subset based on the local transformation information; for each matching relationship in the matching relationship subset, determine whether the first pose error is less than the second pose error; if so, determine the matching relationship as the first target matching relationship to be deleted in the global matching relationship set; and determine the target first pose error that is less than the error threshold; determine the matching relationship corresponding to the target first pose error as the first target matching relationship to be deleted in the global matching relationship set.
[0161] Among them, determining the first pose error of each matching relationship in the matching relationship subset according to the target transformation information can include: for each matching relationship in the matching relationship subset, transforming the pose of the second semantic marker in the matching relationship in the second source semantic map according to the target transformation information to obtain a first transformed pose; calculating the first distance between the first transformed pose and the target pose of the first semantic marker in the matching relationship in the second target semantic map, and determining the first distance as the first pose error of the matching relationship.
[0162] Furthermore, determining the second pose error of each matching relationship in the matching relationship subset based on the local transformation information may include: for each matching relationship in the matching relationship subset, transforming the pose of the second semantic marker in the matching relationship in the second source semantic map according to the local transformation information to obtain a second transformed pose; calculating the second distance between the second transformed pose and the target pose of the first semantic marker in the matching relationship in the second target semantic map, and determining the second distance as the second pose error of the matching relationship.
[0163] Step S5063: determine a second target matching relationship in the local matching relationship set that meets a preset adding condition.
[0164] Specifically, a third target matching relationship and a fourth target matching relationship are obtained from matching relationships other than the first target matching relationship in the global matching relationship set; a third distance between the first reference semantic marker corresponding to the third target matching relationship and the second reference semantic marker corresponding to the fourth target matching relationship satisfies a third preset condition. For each matching relationship in the local matching relationship, it is determined whether the target semantic marker corresponding to the matching relationship, the first reference semantic marker and the second reference semantic marker meet the fourth preset condition; if so, the matching relationship corresponding to the target semantic marker is determined as the second target matching relationship that meets the preset addition condition.
[0165] Among them, obtaining the third target matching relationship and the fourth target matching relationship from the matching relationships other than the first target matching relationship in the global matching relationship set may include: determining the third distance between any two semantic markers in the semantic markers corresponding to each matching relationship other than the first target matching relationship in the global matching relationship set, and determining the maximum third distance as the third distance that satisfies the third preset condition. And, determining the association relationship between the two semantic markers corresponding to the maximum third distance as the third target matching relationship and the fourth target matching relationship, respectively.
[0166] Furthermore, the above-mentioned determination of whether the target semantic marker corresponding to the matching relationship satisfies the fourth preset condition with the first reference semantic marker and the second reference semantic marker may include: determining whether the target semantic marker satisfies the principle of approximate triangle equality with the first reference semantic marker and the second reference semantic marker; if so, determining that the fourth preset condition is satisfied; if not, determining that the fourth preset condition is not satisfied.
[0167] As an example, the third target matching relationship is (a, a') and the fourth target matching relationship is (b, b'), that is, the first reference marker is a, a', and the second reference marker is b, b'. For the matching relationship (c, c') in the local association set, if its corresponding target semantic marker c, c' is approximately equal to the triangle formed by a, a' and b, b' respectively, then the matching relationship (c, c') is determined as the second target matching relationship. Among them, a, b, c belong to the second target semantic map, and a', b', c' belong to the second source semantic map. If the following conditions one and two are met at the same time, it is determined that the principle of approximate equality of triangles is met. Condition one: The relative distance l_ac and relative angle d_ac between a and c are approximately equal to the relative distance l_a'c' and relative angle d_a'c' between a' and c'. Condition 2: The relative distance l_bc and the relative angle d_bc between b and c are approximately equal to the relative distance l_b'c' and the relative angle d_b'c' between b' and c'.
[0168] Step S5064: delete the first target matching relationship from the global matching relationship set, and add the second target matching relationship to the global matching relationship set to obtain an updated global matching relationship set.
[0169] Step S507: determining whether the second target semantic map and the second source semantic map meet a preset fusion condition according to the updated global matching relationship set.
[0170] Specifically, according to the updated global matching relationship set, determine whether there is a map conflict between the second target semantic map and the second source semantic map; if so, determine that the preset fusion condition is not satisfied; if not, determine that the preset fusion condition is satisfied. Among them, map conflicts include map trajectory conflicts and semantic landmark conflicts. For example, the driving trajectory of the second target semantic map needs to pass through the pillars in the second source semantic map, or pass through the inaccessible area of the second source semantic map, etc., which is a map trajectory conflict. For another example, the nearest neighbor of the parking space in the second target semantic map in the second source semantic map is an arrow, and the distance between the two is less than 0.5m, which is a semantic landmark conflict. The specific form of the map conflict can be set according to needs in actual applications, and is not specifically limited in the present invention.
[0171] In some embodiments, the method may further include: if it is determined that the second target semantic map and the second source semantic map do not meet the preset fusion conditions, the second source semantic map is determined as the source semantic map to be transformed, returning to step S4032, and performing transformation processing on the semantic map to be transformed until it is determined that the preset fusion conditions are met.
[0172] Therefore, by continuously transforming the second source semantic map until there is no map conflict between the second source semantic map and the second target map, a fusion process is performed to ensure the accuracy of the obtained fused semantic map.
[0173] Step S508: If the preset fusion condition is met, the second target semantic map and the second source semantic map are fused to obtain a fused semantic map.
[0174] In some implementations, step S508 may include the following steps S5081 and S5084:
[0175] Step S5081: if the preset fusion condition is met, the second semantic marker in the second source semantic map corresponding to the global matching relationship set is deleted from the second source semantic map to obtain a target second source semantic map;
[0176] Step S5082, for each second node in the target second source semantic map, determining whether the second target semantic map contains a candidate first node that matches the second node;
[0177] Specifically, for each first node in the second target semantic map, determine the second preset range of the first node; for each second node in the target second source semantic map, determine whether the second node is located within any second preset range among the second preset ranges; if so, determine that the second target semantic map contains a candidate first node that matches the second node; if not, determine that the second target semantic map does not contain a candidate first node that matches the second node.
[0178] Wherein, determining the second preset range of the first node may include: taking the first node as the center and the third preset length as the radius to circle a circular area, and determining the circled circular area as the second preset range of the first node. Accordingly, the first node corresponding to the center of the circle is determined as the candidate first node. It should be noted that the specific determination process of the second preset range is not limited to this, and it can be set as needed in actual applications.
[0179] Step S5083: If yes, then add the neighbor node of the second node to the neighbor node set of the candidate first node;
[0180] In order to facilitate the maintenance of the relationship between nodes, a neighbor node set can be established for each node. In step S5083, when it is determined that the second target semantic map contains a candidate first node that matches the second node, it is characterized that the candidate first node is the second node, or the candidate first node is a node close to the second node. Therefore, there is no need to create a new second node in the second target semantic map. In order to ensure the accuracy of the neighbor nodes of the candidate first node after fusion, the neighbor nodes of the second node are added to the neighbor node set of the candidate first node.
[0181] Step S5084, if not, then add the second node and the neighbor nodes of the second node in the second target semantic map, and determine the newly added neighbor nodes of the second node in the second target semantic map; add the newly added neighbor nodes to the neighbor node set of the second node.
[0182] Specifically, when it is determined that the second target semantic map does not contain a candidate first node that matches the second node, it indicates that there is no second node in the second target semantic map, and there is no node close to the second node. Therefore, at this time, a second node and a neighbor node of the second node are added to the second target semantic map. Considering that after the second node is added to the second target semantic map, some of the first nodes in the second target semantic map may become neighbor nodes of the second node, in order to ensure the accuracy of the neighbor node set of the second node, the newly added neighbor nodes of the second node in the second target semantic map are determined; and the newly added neighbor nodes are added to the neighbor node set of the second node.
[0183] Among them, determining the newly added neighbor nodes of the second node in the second target semantic map; adding the newly added neighbor nodes to the neighbor node set of the second node can include: taking the second node as a circle, encircling a circular area with a first preset length as a radius, and determining each second node and second semantic marker located in the circular area as the newly added neighbor nodes of the second node in the second target semantic map.
[0184] The semantic map fusion method provided in this embodiment obtains a local matching relationship set, updates the global matching relationship set according to the local matching relationship set, and performs fusion processing when it is determined that the second target semantic map and the second source semantic map meet the preset fusion condition according to the updated global matching relationship set, thereby obtaining a fused semantic map. Thus, by maintaining the global matching relationship set and performing cyclic iteration, the cumulative error of the semantic map is greatly reduced, thereby reducing the fusion difficulty caused by the cumulative error and improving the accuracy of the semantic map fusion.
[0185] In this embodiment, a semantic map fusion device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0186] This embodiment provides a semantic map fusion device, such as Figure 6 As shown, including:
[0187] An extraction module 601 is used to perform sub-graph extraction processing on the first target semantic map and the first source semantic map to be fused, so as to obtain N first sub-graph combinations; the first target semantic map and the first source semantic map include the same semantic markers, and N is an integer greater than 1;
[0188] A first determination module 602, configured to determine target transformation information according to the N first sub-image combinations;
[0189] A first updating module 603 is used to update the first target semantic map and the first source semantic map according to the target transformation information to obtain a corresponding second target semantic map and a second source semantic map;
[0190] The fusion module 604 is configured to fuse the second target semantic map and the second source semantic map to obtain a fused semantic map if it is determined that the second target semantic map and the second source semantic map meet a preset fusion condition.
[0191] In some optional implementations, the first driving path corresponding to the first target semantic map includes a plurality of first nodes, and the second driving path corresponding to the first source semantic map includes a plurality of second nodes. Accordingly, the extraction module 601 includes:
[0192] A first determining unit, configured to determine, according to a current distance threshold, a target first node in the first target semantic map that satisfies an extraction condition, and a target second node in the first source semantic map that satisfies the extraction condition;
[0193] a generating unit, configured to generate a first subgraph of the first target semantic map according to the target first node, generate a second subgraph of the first source semantic map according to the target second node, and determine the first subgraph and the second subgraph as a first subgraph combination;
[0194] The first updating unit is used to update the current distance threshold if it is determined that the number of the first subgraph combinations has not reached N, and determine the updated distance threshold as the current distance threshold, and execute the determination operation of the target first node and the target second node until it is determined that the number of the first subgraph combinations has reached N.
[0195] In some optional implementations, determining, according to the current distance threshold, a target first node in the first target semantic map that satisfies an extraction condition and a target second node in the first source semantic map that satisfies the extraction condition includes:
[0196] For each first node in the first target semantic map, determining, according to the current distance threshold, whether there is a candidate second node that meets a first preset condition among a plurality of second nodes included in the first source semantic map;
[0197] If so, the first node and the neighboring nodes of the first node are determined as the target first nodes that meet the extraction condition, and the candidate second node and the neighboring nodes of the candidate second node are determined as the target second nodes that meet the extraction condition.
[0198] In some optional implementations, the first determining unit is specifically configured to:
[0199] determining a first distance between the first node and each of the second nodes according to a first three-dimensional coordinate of the first node in the first target semantic map and a second three-dimensional coordinate of each of the second nodes in the first source semantic map;
[0200] determining a minimum first distance among the first distances;
[0201] determining whether the minimum first distance is less than the current distance threshold;
[0202] If so, it is determined that there is a candidate second node that meets the first preset condition.
[0203] In some optional implementations, the first determining module 602 includes:
[0204] A second determining unit is used to determine N candidate transformation information corresponding to the N first sub-image combinations; the N first sub-image combinations correspond to the N candidate transformation information one by one;
[0205] The third determining unit is used to determine target transformation information that meets a second preset condition among the N candidate transformation information according to the translation information among the N candidate change information.
[0206] In some optional implementations, the first subgraph combination includes a first subgraph of the first target semantic map and a second subgraph of the first source semantic map; and the second determining unit is specifically configured to:
[0207] For each of the first sub-graph combinations, determining a matching relationship set corresponding to the first sub-graph combination; a matching relationship in the matching relationship set indicates that a first semantic marker in the first sub-graph and a second semantic marker in the second sub-graph are the same semantic marker;
[0208] Determine candidate transformation information corresponding to the first sub-image combination according to the matching relationship set.
[0209] In some optional implementations, determining, according to the translation information in the N candidate change information, the target transformation information that satisfies the second preset condition in the N candidate transformation information includes:
[0210] For each translation information in the candidate transformation information, mapping the translation information into a first coordinate point in a three-dimensional space;
[0211] For each of the first coordinate points, determining a first number of first coordinate points within a first preset range of the first coordinate point;
[0212] determining a maximum first number among the first numbers;
[0213] The candidate change information corresponding to the maximum first quantity is determined as the target change information.
[0214] In some optional implementations, the first updating module 603 includes:
[0215] A fourth determining unit, configured to determine the first source semantic map as a source semantic map to be transformed, and to determine a matching relationship set corresponding to the target transformation information as a current target matching relationship set;
[0216] A transformation unit, configured to transform the source semantic map to be transformed according to the target transformation information to obtain a first intermediate source semantic map;
[0217] A construction unit, used to construct a graph optimization model according to the current target matching relationship set;
[0218] The second updating unit is used to update the first target semantic map and the first intermediate source semantic map based on the graph optimization model to obtain a corresponding second target semantic map and a second source semantic map.
[0219] In some optional implementations, the second updating unit includes:
[0220] A first optimization subunit is used to optimize the first target semantic map based on the graph optimization model to obtain a candidate target semantic map;
[0221] A second optimization subunit is used to optimize the first intermediate source semantic map based on the graph optimization model to obtain a candidate source semantic map;
[0222] A determination subunit is used to determine the candidate target semantic map and the candidate source semantic map as the second target semantic map and the second source semantic map respectively if it is determined that the candidate target semantic map and the candidate source semantic map meet the optimization end condition.
[0223] In some optional implementations, the first target semantic map includes a plurality of first nodes and a plurality of first semantic markers; and the first optimization subunit is specifically configured to:
[0224] Utilizing the graph optimization model, optimizing the first target semantic map to obtain an intermediate target semantic map;
[0225] Determining a first relative posture of the first semantic marker and the first node according to a first posture of the first node in the first target semantic map and a second posture of the first semantic marker in the first target semantic map;
[0226] According to the first relative posture and the third posture of the first node in the intermediate target semantic map, the intermediate target semantic map is updated to obtain a target semantic map; the target semantic map includes the fourth posture of the first semantic marker.
[0227] In some optional implementations, the first intermediate source semantic map includes a plurality of second nodes and a plurality of second semantic markers; and the second optimization subunit is specifically configured to:
[0228] Utilizing the graph optimization model, optimizing the first intermediate source semantic map to obtain a second intermediate source semantic map;
[0229] determining a second relative pose of the second semantic marker and the second node according to a fifth pose of the second node in the first intermediate source semantic map and a sixth pose of the second semantic marker in the first intermediate source semantic map;
[0230] According to the second relative posture and the seventh posture of the second node in the second intermediate source semantic map, the second intermediate source semantic map is optimized to obtain a candidate source semantic map; the candidate source semantic map includes the eighth posture of the second semantic marker.
[0231] In some optional embodiments, the device further comprises:
[0232] A second determination module is used to determine whether there is a new matching relationship between the candidate target semantic map and the candidate source semantic map based on the target matching relationship set after obtaining the candidate source semantic map;
[0233] A processing module is used to add the newly added matching relationship to the target matching relationship set and determine it as the current target matching relationship set if the determination result of the second determination module is existence, and to determine the candidate source semantic map as the source semantic map to be transformed, and perform the transformation processing operation until it is determined that the newly added matching relationship does not exist; if the determination result of the second determination module is non-existence, determine that the candidate target semantic map and the candidate source semantic map meet the optimization end condition.
[0234] In some optional embodiments, the device further comprises:
[0235] A third determination module is used to determine the current target matching relationship set as the global matching relationship set after obtaining the corresponding second target semantic map and the second source semantic map;
[0236] An acquisition module, used to acquire a set of local matching relationships between the second target semantic map and the second source semantic map;
[0237] A second updating module, configured to update the global matching relationship set according to the local matching relationship set;
[0238] The fourth determination module is used to determine whether the second target semantic map and the second source semantic map meet a preset fusion condition according to the updated global matching relationship set.
[0239] In some optional embodiments, the device further comprises:
[0240] The fifth determining module is used to determine the second source semantic map as the source semantic map to be transformed and perform the transformation process if it is determined that the second target semantic map and the second source semantic map do not meet the preset fusion condition.
[0241] In some optional implementations, the acquisition module is specifically used to:
[0242] According to a preset distance threshold, performing sub-graph extraction processing on the second target semantic map and the second source semantic map to obtain a second sub-graph combination;
[0243] Obtaining a matching relationship set of the second subgraph combination;
[0244] The matching relationship set of the second sub-graph combination is determined as a local matching relationship set between the second target semantic map and the second source semantic map.
[0245] In some optional implementations, the second update module includes:
[0246] A fifth determining unit, configured to determine local transformation information corresponding to the local matching relationship set;
[0247] a sixth determining unit, configured to determine a first target matching relationship to be deleted in the global matching relationship set according to the target change information and the local transformation information;
[0248] A seventh determining unit, configured to determine a second target matching relationship in the local matching relationship set that meets a preset adding condition;
[0249] The third updating unit is configured to delete the first target matching relationship from the global matching relationship set, and add the second target matching relationship to the global matching relationship set, so as to obtain an updated global matching relationship set.
[0250] In some optional implementations, the sixth determining unit is specifically configured to:
[0251] Determine a matching relationship subset that is the same as the local matching relationship set and the global matching relationship set;
[0252] Determine the first pose error of each matching relationship in the matching relationship subset according to the target transformation information;
[0253] Determine a second pose error of each matching relationship in the matching relationship subset according to the local transformation information;
[0254] For each matching relationship in the matching relationship subset, determining whether the first posture error is less than the second posture error;
[0255] If yes, determining the matching relationship as the first target matching relationship to be deleted in the global matching relationship set;
[0256] Determine the target first pose error that is less than an error threshold;
[0257] The matching relationship corresponding to the first target pose error is determined as the first target matching relationship to be deleted in the global matching relationship set.
[0258] In some optional implementations, the seventh determining unit is specifically configured to:
[0259] Obtaining a third target matching relationship and a fourth target matching relationship from matching relationships other than the first target matching relationship in the global matching relationship set; a third distance between a first reference semantic marker corresponding to the third target matching relationship and a second reference semantic marker corresponding to the fourth target matching relationship satisfies a third preset condition;
[0260] For each matching relationship in the local matching relationship, determining whether the target semantic marker corresponding to the matching relationship, the first reference semantic marker, and the second reference semantic marker satisfy a fourth preset condition;
[0261] If so, the matching relationship corresponding to the target semantic marker is determined as a second target matching relationship that meets the preset adding condition.
[0262] In some optional implementations, the fusion module 604 includes:
[0263] a deleting unit, configured to delete the second semantic marker in the second source semantic map corresponding to the global matching relationship set from the second source semantic map to obtain a target second source semantic map;
[0264] an eighth determination unit, configured to determine, for each second node in the target second source semantic map, whether the second target semantic map contains a candidate first node that matches the second node;
[0265] An adding unit is used to add the neighbor nodes of the second node to the neighbor node set of the candidate first node if the determination result of the eighth determination unit is yes; if the determination result of the eighth determination unit is no, add the second node and the neighbor nodes of the second node to the second target semantic map, and determine the newly added neighbor nodes of the second node in the second target semantic map; add the newly added neighbor nodes to the neighbor node set of the second node.
[0266] In some optional implementations, the eighth determining unit is specifically configured to:
[0267] For each first node in the second target semantic map, determining a second preset range of the first node;
[0268] For each second node in the target second source semantic map, determining whether the second node is located in any second preset range in the second preset range;
[0269] If so, determining that the second target semantic map contains a candidate first node that matches the second node;
[0270] If not, it is determined that the second target semantic map does not contain a candidate first node that matches the second node.
[0271] The semantic map fusion device provided in this embodiment performs sub-map extraction processing on the first target semantic map and the first source semantic map to be fused to obtain N first sub-map combinations; and determines the target transformation information according to the N first sub-map combinations; updates the first target semantic map and the first source semantic map according to the target transformation information to obtain the corresponding second target semantic map and the second source semantic map; and if it is determined that the second target semantic map and the second source semantic map meet the preset fusion condition, the second target semantic map and the second source semantic map are fused to obtain a fused semantic map. Wherein, the first target semantic map and the first source semantic map include the same semantic markers, and N is an integer greater than 1. Therefore, the first target semantic map and the first source semantic map are updated according to the target transformation information, and the fusion processing is performed when the updated second target semantic map and the second source semantic map meet the preset fusion condition, which can not only reduce the fusion difficulty caused by the accumulated error and improve the fusion accuracy of the semantic map, but also can be applied to outdoor scenes to meet the perception needs of intelligent driving.
[0272] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0273] The semantic map fusion device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0274] The embodiment of the present invention also provides a computer device having the above Figure 6 The semantic map fusion device shown.
[0275] See also Figure 7 , Figure 7 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 7As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 7 A processor 10 is taken as an example.
[0276] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0277] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0278] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0279] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0280] The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 7 The example of connecting through bus is taken in the following.
[0281] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device may be a touch screen.
[0282] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0283] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.
[0284] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A semantic map fusion method, It is characterized in that The method comprises: The first target semantic map and the first source semantic map to be fused are subjected to sub-graph extraction processing to obtain N first sub-graph combinations; the first target semantic map and the first source semantic map include the same semantic markers, and N is an integer greater than 1; the first driving path corresponding to the first target semantic map includes a plurality of first nodes, and the second driving path corresponding to the first source semantic map includes a plurality of second nodes; Determining target transformation information according to the N first sub-image combinations; Performing an updating process on the first target semantic map and the first source semantic map according to the target transformation information to obtain a corresponding second target semantic map and a second source semantic map; If it is determined that the second target semantic map and the second source semantic map meet a preset fusion condition, fusing the second target semantic map and the second source semantic map to obtain a fused semantic map; The sub-graph extraction process is performed on the first target semantic map and the first source semantic map to be fused to obtain N first sub-graph combinations, including: Determine, according to the current distance threshold, a target first node in the first target semantic map that meets an extraction condition, and a target second node in the first source semantic map that meets the extraction condition; Generate a first subgraph of the first target semantic map according to the target first node, generate a second subgraph of the first source semantic map according to the target second node, and determine the first subgraph and the second subgraph as a first subgraph combination; If it is determined that the number of the first subgraph combinations has not reached N, the current distance threshold is updated, and the updated distance threshold is determined as the current distance threshold, and the determination operation of the target first node and the target second node is performed until it is determined that the number of the first subgraph combinations has reached N; The step of determining target transformation information according to the combination of the N first sub-images includes: Determine N candidate transformation information corresponding to the N first sub-image combinations; the N first sub-image combinations correspond one-to-one to the N candidate transformation information; According to the translation information in the N candidate change information, target transformation information in the N candidate transformation information that meets a second preset condition is determined.
2. The method according to claim 1, It is characterized in that The step of determining, according to the current distance threshold, a target first node in the first target semantic map that satisfies an extraction condition and a target second node in the first source semantic map that satisfies the extraction condition comprises: For each first node in the first target semantic map, determining, according to the current distance threshold, whether there is a candidate second node that meets a first preset condition among a plurality of second nodes included in the first source semantic map; If so, the first node and the neighboring nodes of the first node are determined as the target first nodes that meet the extraction condition, and the candidate second node and the neighboring nodes of the candidate second node are determined as the target second nodes that meet the extraction condition.
3. The method according to claim 2, It is characterized in that The determining, according to the current distance threshold, whether there is a candidate second node that meets a first preset condition among the multiple second nodes included in the first source semantic map includes: determining a first distance between the first node and each of the second nodes according to a first three-dimensional coordinate of the first node in the first target semantic map and a second three-dimensional coordinate of each of the second nodes in the first source semantic map; determining a minimum first distance among the first distances; determining whether the minimum first distance is less than the current distance threshold; If so, it is determined that there is a candidate second node that meets the first preset condition.
4. The method according to claim 1, It is characterized in that The first sub-graph combination includes a first sub-graph of the first target semantic map and a second sub-graph of the first source semantic map; and determining N candidate transformation information corresponding to the N first sub-graph combinations includes: For each of the first sub-graph combinations, determining a matching relationship set corresponding to the first sub-graph combination; a matching relationship in the matching relationship set indicates that a first semantic marker in the first sub-graph and a second semantic marker in the second sub-graph are the same semantic marker; Determine candidate transformation information corresponding to the first sub-image combination according to the matching relationship set.
5. The method according to claim 1, It is characterized in that The determining, according to the translation information in the N candidate change information, target transformation information that satisfies a second preset condition in the N candidate transformation information includes: For each translation information in the candidate transformation information, mapping the translation information into a first coordinate point in a three-dimensional space; For each of the first coordinate points, determining a first number of first coordinate points within a first preset range of the first coordinate point; determining a maximum first number among the first numbers; The candidate change information corresponding to the maximum first quantity is determined as the target change information.
6. The method according to claim 4, It is characterized in that The updating process of the first target semantic map and the first source semantic map according to the target transformation information to obtain a corresponding second target semantic map and a second source semantic map includes: Determining the first source semantic map as the source semantic map to be transformed, and determining the matching relationship set corresponding to the target transformation information as the current target matching relationship set; According to the target transformation information, the source semantic map to be transformed is transformed to obtain a first intermediate source semantic map; Build a graph optimization model based on the current target matching relationship set; Based on the graph optimization model, the first target semantic map and the first intermediate source semantic map are updated to obtain a corresponding second target semantic map and a second source semantic map.
7. The method according to claim 6, It is characterized in that The updating process of the first target semantic map and the first intermediate source semantic map based on the graph optimization model to obtain the corresponding second target semantic map and second source semantic map includes: Optimizing the first target semantic map based on the graph optimization model to obtain a candidate target semantic map; Optimizing the first intermediate source semantic map based on the graph optimization model to obtain a candidate source semantic map; If it is determined that the candidate target semantic map and the candidate source semantic map meet the optimization end condition, the candidate target semantic map and the candidate source semantic map that meet the optimization end condition are determined as the second target semantic map and the second source semantic map, respectively.
8. The method according to claim 7, It is characterized in that The first target semantic map includes a plurality of first nodes and a plurality of first semantic markers; the first target semantic map is optimized based on the graph optimization model to obtain a candidate target semantic map, including: Utilizing the graph optimization model, optimizing the first target semantic map to obtain an intermediate target semantic map; Determining a first relative pose of the first semantic marker and the first node according to a first pose of the first node in the first target semantic map and a second pose of the first semantic marker in the first target semantic map; According to the first relative posture and the third posture of the first node in the intermediate target semantic map, the intermediate target semantic map is updated to obtain a target semantic map; the target semantic map includes the fourth posture of the first semantic marker.
9. The method according to claim 7, It is characterized in that The first intermediate source semantic map includes a plurality of second nodes and a plurality of second semantic markers; the first intermediate source semantic map is optimized based on the graph optimization model to obtain a candidate source semantic map, including: Utilizing the graph optimization model, optimizing the first intermediate source semantic map to obtain a second intermediate source semantic map; determining a second relative pose of the second semantic marker and the second node according to a fifth pose of the second node in the first intermediate source semantic map and a sixth pose of the second semantic marker in the first intermediate source semantic map; According to the second relative posture and the seventh posture of the second node in the second intermediate source semantic map, the second intermediate source semantic map is optimized to obtain a candidate source semantic map; the candidate source semantic map includes the eighth posture of the second semantic marker.
10. The method according to claim 7, It is characterized in that After obtaining the candidate source semantic map, the method further includes: Based on the target matching relationship set, determining whether there is a newly added matching relationship between the candidate target semantic map and the candidate source semantic map; If so, the newly added matching relationship is added to the target matching relationship set and determined as the current target matching relationship set, and the candidate source semantic map is determined as the source semantic map to be transformed, and the transformation processing operation is performed until it is determined that there is no newly added matching relationship; If it does not exist, the candidate target semantic map and the candidate source semantic map are determined to meet the optimization end condition.
11. The method according to claim 10, It is characterized in that After obtaining the corresponding second target semantic map and second source semantic map, the method further includes: Determine the current target matching relationship set as the global matching relationship set; Obtaining a set of local matching relationships between the second target semantic map and the second source semantic map; According to the local matching relationship set, the global matching relationship set is updated; According to the updated global matching relationship set, it is determined whether the second target semantic map and the second source semantic map meet a preset fusion condition.
12. The method according to claim 11, It is characterized in that The method further comprises: If it is determined that the second target semantic map and the second source semantic map do not satisfy the preset fusion condition, the second source semantic map is determined as the source semantic map to be transformed, and the transformation process is performed.
13. The method according to claim 11, It is characterized in that The acquiring of a set of local matching relationships between the second target semantic map and the second source semantic map includes: According to a preset distance threshold, performing sub-graph extraction processing on the second target semantic map and the second source semantic map to obtain a second sub-graph combination; Obtaining a matching relationship set of the second subgraph combination; The matching relationship set of the second sub-graph combination is determined as a local matching relationship set between the second target semantic map and the second source semantic map.
14. The method according to claim 11, It is characterized in that The updating process of the global matching relationship set according to the local matching relationship set includes: Determining local transformation information corresponding to the local matching relationship set; Determining a first target matching relationship to be deleted in the global matching relationship set according to the target transformation information and the local transformation information; Determine a second target matching relationship in the local matching relationship set that meets a preset adding condition; The first target matching relationship is deleted from the global matching relationship set, and the second target matching relationship is added to the global matching relationship set to obtain an updated global matching relationship set.
15. The method according to claim 14, It is characterized in that The determining, according to the target transformation information and the local transformation information, a first target matching relationship to be deleted in the global matching relationship set includes: Determine a matching relationship subset that is the same as the local matching relationship set and the global matching relationship set; Determine the first pose error of each matching relationship in the matching relationship subset according to the target transformation information; Determine a second pose error of each matching relationship in the matching relationship subset according to the local transformation information; For each matching relationship in the matching relationship subset, determining whether the first posture error is less than the second posture error; If so, determining the matching relationship as the first target matching relationship to be deleted in the global matching relationship set; and determining the first target pose error that is less than an error threshold; The matching relationship corresponding to the first target pose error is determined as the first target matching relationship to be deleted in the global matching relationship set.
16. The method according to claim 14, It is characterized in that The determining of a second target matching relationship in the local matching relationship set that meets a preset adding condition includes: Obtaining a third target matching relationship and a fourth target matching relationship from matching relationships other than the first target matching relationship in the global matching relationship set; a third distance between a first reference semantic marker corresponding to the third target matching relationship and a second reference semantic marker corresponding to the fourth target matching relationship satisfies a third preset condition; For each matching relationship in the local matching relationship, determining whether the target semantic marker corresponding to the matching relationship, the first reference semantic marker, and the second reference semantic marker satisfy a fourth preset condition; If so, the matching relationship corresponding to the target semantic marker is determined as a second target matching relationship that meets the preset adding condition.
17. The method according to claim 11, It is characterized in that The fusing the second target semantic map and the second source semantic map to obtain a fused semantic map includes: Deleting the second semantic marker in the second source semantic map corresponding to the global matching relationship set from the second source semantic map to obtain a target second source semantic map; For each second node in the target second source semantic map, determining whether the second target semantic map contains a candidate first node that matches the second node; If yes, then adding the neighbor node of the second node to the neighbor node set of the candidate first node; If not, then add the second node and the neighbor nodes of the second node in the second target semantic map, and determine the newly added neighbor nodes of the second node in the second target semantic map; and add the newly added neighbor nodes to the neighbor node set of the second node.
18. The method according to claim 17, It is characterized in that The determining whether the second target semantic map contains a candidate first node matching the second node includes: For each first node in the second target semantic map, determining a second preset range of the first node; For each second node in the target second source semantic map, determining whether the second node is located in any second preset range in the second preset range; If so, determining that the second target semantic map contains a candidate first node that matches the second node; If not, it is determined that the second target semantic map does not contain a candidate first node that matches the second node.
19. A semantic map fusion device, It is characterized in that The device comprises: an extraction module, configured to perform subgraph extraction processing on the first target semantic map and the first source semantic map to be fused, and obtain N first subgraph combinations; the first target semantic map and the first source semantic map include the same semantic markers, and N is an integer greater than 1; the first driving path corresponding to the first target semantic map includes a plurality of first nodes, and the second driving path corresponding to the first source semantic map includes a plurality of second nodes; A first determination module, configured to determine target transformation information according to the N first sub-image combinations; A first updating module, configured to update the first target semantic map and the first source semantic map according to the target transformation information to obtain corresponding second target semantic maps and second source semantic maps; a fusion module, configured to fuse the second target semantic map and the second source semantic map to obtain a fused semantic map if it is determined that the second target semantic map and the second source semantic map meet a preset fusion condition; The extraction module is further used for: Determine, according to the current distance threshold, a target first node in the first target semantic map that meets an extraction condition, and a target second node in the first source semantic map that meets the extraction condition; Generate a first subgraph of the first target semantic map according to the target first node, generate a second subgraph of the first source semantic map according to the target second node, and determine the first subgraph and the second subgraph as a first subgraph combination; If it is determined that the number of the first subgraph combinations has not reached N, the current distance threshold is updated, and the updated distance threshold is determined as the current distance threshold, and the determination operation of the target first node and the target second node is performed until it is determined that the number of the first subgraph combinations has reached N; The first determining module is further used for: Determine N candidate transformation information corresponding to the N first sub-image combinations; the N first sub-image combinations correspond one-to-one to the N candidate transformation information; According to the translation information in the N candidate change information, target transformation information in the N candidate transformation information that meets a second preset condition is determined.
20. A computer device, It is characterized in that include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the semantic map fusion method according to any one of claims 1 to 18 by executing the computer instructions.
21. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the semantic map fusion method according to any one of claims 1 to 18.
22. A computer program product, It is characterized in that The method comprises computer instructions for causing a computer to execute the semantic map fusion method according to any one of claims 1 to 18.
