Positioning method and device based on point cloud map, vehicle and storage medium
By semantic enhancement and feature extraction of the measured point cloud map, combined with the feature information of the pre-constructed point cloud map, the problem of low positioning accuracy in the existing technology is solved, and higher positioning precision and accuracy are achieved.
Patent Information
- Application Number
- CN202410656241.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-08-27
AI Technical Summary
In the existing technology, the concentration of semantic points on point cloud maps makes it difficult for positioning equipment to accurately extract features, reducing positioning accuracy.
By semantically enhancing the measured point cloud map, road elements of different semantic categories are raised to different heights, and local and global feature extraction models are used to extract the feature information of the measured semantically enhanced point cloud map, combined with the features of the pre-built point cloud map. The information is matched to determine the location of the device to be located.
It improves the accurate positioning accuracy of positioning equipment, enhances the height distinction of point cloud maps, and reduces data complexity while maintaining positioning accuracy.
Smart Images

Figure CN118548904A
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle positioning technology, and specifically to a positioning method, device, vehicle and storage medium based on point cloud maps. Background Art
[0002] Autonomous driving technology needs to integrate satellite signals, image data perceived by vehicles or robots with maps to achieve the positioning of vehicles or robots. The amount of information contained in the image data is closely related to the accurate positioning of the device. The existing technology uses the point cloud map of the image data perceived by the device, and then extracts the features of the point cloud map and the features of the pre-built point cloud map. Based on these two features, the location of the device is matched on the pre-built point cloud map to locate the device. However, the positions of various semantic points on the point cloud map are concentrated together, making it difficult to accurately extract the features of the point cloud map, thereby reducing the accuracy of device positioning.
[0003] In summary, the existing technology reduces positioning accuracy.
[0004] Therefore, the prior art still needs to be improved and enhanced. Summary of the invention
[0005] The present application provides a positioning method, device, vehicle and storage medium based on a point cloud map to solve the technical problem of reducing positioning accuracy in related technologies.
[0006] To achieve the above objectives, this application adopts the following technical solutions:
[0007] The first aspect of the present application provides a positioning method based on a point cloud map, comprising the following steps:
[0008] Obtain the measured point cloud map through the device to be positioned;
[0009] Performing semantic enhancement on the measured point cloud map to obtain a measured semantically enhanced point cloud map;
[0010] Extracting measured feature information of the measured semantically enhanced point cloud map;
[0011] The location information of the device to be located is determined based on the measured feature information and the feature information of the pre-constructed point cloud map.
[0012] According to the above-mentioned technical means, the embodiment of the present application first collects the measured point cloud map through the device to be positioned, and then performs semantic enhancement on the measured point cloud map. The measured point cloud map after semantic enhancement can more accurately extract its feature information, and the features of the measured semantically enhanced point cloud map are matched with the features of the pre-built point cloud map. The exact position of the measured point cloud map on the pre-built point cloud map can be determined, thereby accurately locating the position of the device to be positioned.
[0013] Optionally, in one embodiment of the present application, the step of obtaining a measured point cloud map through the device to be located includes:
[0014] Acquire environmental image data collected by the device to be positioned, and acquire a coordinate system corresponding to the device to be positioned;
[0015] The environmental image data is projected onto the coordinate system, and point cloud processing is performed on the environmental image data projected onto the coordinate system to generate a measured point cloud map.
[0016] According to the above technical means, the embodiment of the present application projects the environmental image data located outside the device onto the coordinate system inside the device, so that the environmental image data has a certain correlation with the position, thereby facilitating the subsequent positioning of the device according to the environmental image data.
[0017] Optionally, in one embodiment of the present application, road elements of the same semantic category are located at the same height, and road elements of different semantic categories are located at different heights, and the semantic enhancement of the measured point cloud map to obtain the measured semantically enhanced point cloud map includes:
[0018] Identify each road element and its semantic category on the measured point cloud map;
[0019] Each road element is elevated to a different height according to its semantic category to obtain a measured semantically enhanced point cloud map.
[0020] According to the above-mentioned technical means, the embodiment of the present application configures different height information for road elements corresponding to different semantic categories, so that different road elements have different height information, so as to transform the measured point cloud map into a measured semantic enhanced point cloud map, and the measured point cloud map can distinguish each point thereon in terms of height, and each point with a certain degree of distinction can help to extract accurate feature information subsequently, thereby improving the accuracy of subsequent positioning equipment.
[0021] Optionally, in an embodiment of the present application, the step of lifting the road elements at the same height to different heights according to the semantic categories includes:
[0022] Obtaining the total number of semantic categories of each of the semantic categories;
[0023] When the total number of the semantic categories is less than or equal to the number threshold, the preset contour difference is read, and the target height corresponding to each semantic category is determined according to the preset contour difference, and the road elements corresponding to each semantic category are sequentially lifted to the target height corresponding to each semantic category;
[0024] Alternatively, when the total number of the semantic categories is greater than the number threshold, a preset height is read, and an arithmetic height is determined according to the preset height and the total number of the semantic categories;
[0025] According to the arithmetic heights, a target height corresponding to each semantic category is determined; and the road elements corresponding to each semantic category are sequentially lifted to the target height corresponding to each semantic category.
[0026] According to the above technical means, the embodiment of the present application raises the height of the road elements in two situations, so that different road elements can be better raised to different heights to achieve better semantic enhancement.
[0027] Optionally, in one embodiment of the present application, the extracting the measured feature information of the measured semantically enhanced point cloud map includes:
[0028] Dividing the measured semantically enhanced point cloud map into a plurality of measured point cloud sub-maps;
[0029] Applying a local feature extraction model to each of the measured point cloud submaps to extract local features of each of the measured point cloud submaps, wherein the local features are used to characterize features of points in the measured point cloud submaps;
[0030] A global feature extraction model is applied to all the measured point cloud sub-maps and the corresponding local features to extract the global features of the measured semantically enhanced point cloud map, and the global features are used as the measured feature information of the measured semantically enhanced point cloud map.
[0031] According to the above technical means, the embodiment of the present application constructs global features with local features, which can improve the accuracy of the constructed global features.
[0032] Optionally, in one embodiment of the present application, determining the location information of the device to be located based on the measured feature information and the feature information of the pre-built point cloud map includes:
[0033] Reading the global candidate features of each candidate sub-point cloud in the feature information of the pre-constructed point cloud map, all the candidate sub-point clouds constitute the pre-constructed point cloud map;
[0034] Calculating a feature matching degree between the global feature and each of the global candidate features according to the global feature and each of the global candidate features;
[0035] When there is a target matching degree greater than a set threshold among the feature matching degrees, the candidate sub-point cloud corresponding to the target matching degree is used as the target sub-point cloud;
[0036] The location information of the device to be located is determined according to the location of the target sub-point cloud on the pre-constructed point cloud map.
[0037] According to the above technical means, the embodiment of the present application locates the position of the device on the pre-built point cloud map by the feature matching degree between global features, which can achieve the first rapid positioning of the device.
[0038] Optionally, in one embodiment of the present application, determining the location information of the device to be located based on the measured feature information and the feature information of the pre-built point cloud map further includes:
[0039] When the matching degree of each of the features is less than or equal to the set threshold, determining the histogram features of the measured semantically enhanced point cloud map, and determining the histogram features of each of the candidate sub-point clouds;
[0040] Determining a histogram similarity between the measured semantically enhanced point cloud map and each of the candidate sub-point clouds according to the histogram features of the measured semantically enhanced point cloud map and the histogram features of each of the candidate sub-point clouds;
[0041] Extracting local candidate features of each point contained in each of the candidate sub-point clouds;
[0042] Determine the local similarity between the measured semantically enhanced point cloud map and each of the candidate sub-point clouds according to the local candidate features and each of the local features;
[0043] According to the local similarity, the histogram similarity and the feature matching degree, a final sub-point cloud is screened out from the plurality of candidate sub-point clouds, and the location information of the device to be located is determined according to the position of the final sub-point cloud on the pre-built point cloud map.
[0044] According to the above technical means, if the matching degree of each feature is less than or equal to the set threshold, it means that the above-mentioned first positioning has failed. Therefore, the embodiment of the present application implements secondary positioning of the device based on the three factors of histogram features, local similarity, and feature matching degree to achieve precise positioning.
[0045] Optionally, in one embodiment of the present application, determining the histogram features of the measured semantically enhanced point cloud map includes:
[0046] Determining the distribution direction of the measured semantically enhanced point cloud map;
[0047] Constructing polar coordinates with the distribution direction as the polar axis;
[0048] The histogram features corresponding to the measured semantically enhanced point cloud map located on the polar coordinates are counted.
[0049] According to the above-mentioned technical means, the embodiment of the present application constructs polar coordinates according to the distribution direction of the measured semantically enhanced point cloud map, and constructs histogram features according to the measured semantically enhanced point cloud map located on the polar coordinates. Therefore, the histogram features of the present application can well reflect the histogram features of points on the point cloud that match the distribution direction, so that the obtained histogram features can better represent the characteristics of the measured semantically enhanced point cloud map.
[0050] Optionally, in one embodiment of the present application, determining the local similarity between the measured semantically enhanced point cloud map and each of the candidate sub-point clouds based on the local candidate features and each of the local features includes:
[0051] Determining a candidate confidence level corresponding to the local candidate feature, and determining a confidence level corresponding to the local feature;
[0052] Deleting points whose candidate confidences are lower than a confidence threshold from each of the candidate sub-point clouds to obtain each pre-processed candidate sub-point cloud;
[0053] Deleting the points whose confidence level is lower than the confidence level threshold from the measured semantically enhanced point cloud map to obtain a preprocessed measured semantically enhanced point cloud map;
[0054] According to the local features of the points included in the preprocessed measured semantic enhanced point cloud map and the local candidate features of the points included in each of the preprocessed candidate sub-point clouds, a preprocessed target candidate sub-point cloud is screened out from each of the preprocessed candidate sub-point clouds;
[0055] According to the number of points included in the preprocessed target candidate sub-point cloud and the number of points included in the preprocessed measured semantically enhanced point cloud map, the local similarity between the measured semantically enhanced point cloud map and each of the candidate sub-point clouds is determined.
[0056] According to the above technical means, the confidence level of the embodiment of the present application represents the importance of points on the point cloud to positioning. Using the confidence level to remove points of lower importance can reduce data complexity without affecting positioning accuracy.
[0057] Optionally, in an embodiment of the present application, the screening out a final sub-point cloud from a plurality of the candidate sub-point clouds according to the local similarity, the histogram similarity and the feature matching degree includes:
[0058] Performing weighted calculation according to the local similarity, the histogram similarity and the feature matching degree to obtain an evaluation score for each of the candidate sub-point clouds;
[0059] A final sub-point cloud is selected from a plurality of the candidate sub-point clouds according to the evaluation score of each of the candidate sub-point clouds.
[0060] According to the above technical means, the embodiment of the present application can quantitatively screen out the final sub-point cloud according to the evaluation score, thereby improving the accuracy of the final positioning device position based on the position of the final sub-point cloud.
[0061] A second aspect of the present application provides a positioning device based on a point cloud map, including:
[0062] Point cloud generation module, used to obtain the measured point cloud map through the device to be positioned;
[0063] A semantic enhancement module, used to perform semantic enhancement on the measured point cloud map to obtain a measured semantically enhanced point cloud map;
[0064] A feature extraction module, used to extract measured feature information of the measured semantic enhanced point cloud map;
[0065] The positioning module is used to determine the position information of the device to be positioned based on the measured feature information and the feature information of the pre-built point cloud map.
[0066] Optionally, in one embodiment of the present application, the point cloud generation module includes:
[0067] A data acquisition unit, used to acquire environmental image data acquired by the device to be positioned, and to acquire a coordinate system corresponding to the device to be positioned;
[0068] The point cloud generating unit is used to project the environmental image data onto the coordinate system and perform point cloud processing on the environmental image data projected onto the coordinate system to generate a measured point cloud map.
[0069] Optionally, in one embodiment of the present application, the semantic enhancement module includes:
[0070] A parsing unit, used to identify each road element and its semantic category on the measured point cloud map;
[0071] The map semantic enhancement unit is used to elevate each road element to a different height according to the semantic category of each road element to obtain a measured semantically enhanced point cloud map.
[0072] Optionally, in one embodiment of the present application, the feature extraction module includes:
[0073] A data division unit, used for dividing the measured semantically enhanced point cloud map into a plurality of measured point cloud sub-maps;
[0074] A local feature extraction unit, used for applying a local feature extraction model to each of the measured point cloud submaps to extract local features of each of the measured point cloud submaps, wherein the local features are used to characterize features of points in the measured point cloud submaps;
[0075] A global feature generation unit is used to apply a global feature extraction model to all the measured point cloud sub-maps and the corresponding local features to extract the global features of the measured semantically enhanced point cloud map, and use the global features as the measured feature information of the measured semantically enhanced point cloud map.
[0076] Optionally, in one embodiment of the present application, the positioning module includes:
[0077] A sub-point cloud extraction unit, used to extract a plurality of candidate sub-point clouds from the pre-built point cloud map;
[0078] A global candidate feature extraction unit, used to extract global candidate features of each candidate sub-point cloud;
[0079] a matching degree calculation unit, configured to calculate a feature matching degree between the global feature and each of the global candidate features based on the global feature and each of the global candidate features;
[0080] A sub-point cloud screening unit, configured to, when there is a target matching degree greater than a set threshold among the feature matching degrees, use the candidate sub-point cloud corresponding to the target matching degree as a target sub-point cloud;
[0081] The first positioning unit is used to determine the position information of the device to be positioned according to the position of the target sub-point cloud on the pre-constructed point cloud map.
[0082] Optionally, in one embodiment of the present application, the positioning module further includes:
[0083] A histogram feature calculation unit, used to determine the histogram features of the measured semantic enhanced point cloud map and the histogram features of each of the candidate sub-point clouds when the matching degree of each of the features is less than or equal to the set threshold;
[0084] A similarity calculation unit, configured to determine a histogram similarity between the measured semantically enhanced point cloud map and each of the candidate sub-point clouds based on the histogram features of the measured semantically enhanced point cloud map and the histogram features of each of the candidate sub-point clouds;
[0085] A local candidate feature extraction unit, used to extract local candidate features of each point included in each of the candidate sub-point clouds;
[0086] A local similarity calculation unit, used to determine the local similarity between the measured semantically enhanced point cloud map and each of the candidate sub-point clouds based on the local candidate features and each of the local features;
[0087] The second positioning unit is used to screen out a final sub-point cloud from the plurality of candidate sub-point clouds according to the local similarity, the histogram similarity and the feature matching degree, and determine the position information of the device to be positioned according to the position of the final sub-point cloud on the pre-constructed point cloud map.
[0088] Optionally, in one embodiment of the present application, the histogram feature calculation unit includes:
[0089] A distribution direction calculation component, used to determine the distribution direction of the measured semantically enhanced point cloud map;
[0090] A polar coordinate construction component, used for constructing polar coordinates with the distribution direction as the polar axis;
[0091] A histogram feature statistics component is used to count the histogram features corresponding to the measured semantically enhanced point cloud map located on the polar coordinates.
[0092] Optionally, in one embodiment of the present application, the local similarity calculation unit includes:
[0093] A confidence extraction component, used to determine the candidate confidence corresponding to the local candidate feature, and determine the confidence corresponding to the local feature;
[0094] A first preprocessing component, used for deleting points whose candidate confidence is lower than a confidence threshold from each candidate sub-point cloud, so as to obtain each preprocessed candidate sub-point cloud;
[0095] A second preprocessing component is used to delete the points whose confidence is lower than the confidence threshold from the measured semantically enhanced point cloud map to obtain a preprocessed measured semantically enhanced point cloud map;
[0096] A first point cloud screening component is used to screen out a preprocessed target candidate sub-point cloud from each of the preprocessed candidate sub-point clouds based on the local features of the points included in the preprocessed measured semantic enhanced point cloud map and the local candidate features of the points included in each of the preprocessed candidate sub-point clouds;
[0097] The local similarity calculation component is used to determine the local similarity between the measured semantically enhanced point cloud map and each of the candidate sub-point clouds based on the number of points contained in the preprocessed target candidate sub-point cloud and the number of points contained in the preprocessed measured semantically enhanced point cloud map.
[0098] Optionally, in one embodiment of the present application, the second positioning unit includes:
[0099] An evaluation score calculation component, used to perform weighted calculation according to the local similarity, the histogram similarity and the feature matching degree to obtain an evaluation score for each of the candidate sub-point clouds;
[0100] The second point cloud screening component is used to screen out a final sub-point cloud from a plurality of the candidate sub-point clouds according to the evaluation score of each of the candidate sub-point clouds.
[0101] The third aspect of the present application provides a vehicle, comprising a memory, a processor, and a point cloud map-based positioning program stored in the memory and executable on the processor, wherein when the processor executes the point cloud map-based positioning program, the steps of the above-mentioned point cloud map-based positioning method are implemented.
[0102] The fourth aspect embodiment of the present application provides a computer-readable storage medium, on which a point cloud map-based positioning program is stored. When the point cloud map-based positioning program is executed by a processor, the steps of the above-mentioned point cloud map-based positioning method are implemented.
[0103] Beneficial effects of this application:
[0104] (1) The embodiment of the present application first collects a measured point cloud map through the device to be located, and then semantically enhances the measured point cloud map. The measured point cloud map after semantic enhancement can more accurately extract its feature information, and the features of the measured semantically enhanced point cloud map are matched with the features of the pre-constructed point cloud map. The exact position of the measured point cloud map on the pre-constructed point cloud map can be determined, thereby accurately locating the position of the device to be located.
[0105] (2) The embodiment of the present application configures different height information for road elements corresponding to different semantic categories, so that different road elements have different height information, so as to transform the measured point cloud map into a measured semantic enhanced point cloud map. The measured point cloud map can characterize the points thereon by distinguishing them in height. Each point with a certain degree of distinction can help to extract accurate feature information subsequently, thereby improving the accuracy of subsequent positioning equipment.
[0106] (3) The confidence level in the embodiment of the present application represents the importance of points on the point cloud to positioning. Using the confidence level to remove points of lower importance can reduce data complexity without affecting positioning accuracy.
[0107] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0108] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0109] Figure 1 This is the overall flow chart of this application;
[0110] Figure 2 This is a positioning flow chart in an embodiment of the present application;
[0111] Figure 3 This is a schematic diagram of the comparison effect before and after point cloud semantic enhancement in an embodiment of the present application;
[0112] Figure 4 Schematic diagram of the extracted sub-point cloud in the embodiment of the present application;
[0113] Figure 5 Schematic diagram of feature processing results of point cloud in an embodiment of the present application;
[0114] Figure 6 This is a schematic diagram of global feature matching in an embodiment of the present application;
[0115] Figure 7 This is a schematic diagram of the secondary processing result using the local descriptor association method in an embodiment of the present application;
[0116] Figure 8 This is a schematic diagram of the secondary processing result using the principal component method in the embodiment of the present application;
[0117] Fig. 9 This is a schematic diagram of the positioning result in the embodiment of the present application;
[0118] Fig.10A schematic diagram of the structure of a positioning device based on a point cloud map according to an embodiment of the present application;
[0119] Fig.11 A block diagram of the internal structure of a vehicle according to an embodiment of the present application. DETAILED DESCRIPTION
[0120] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0121] The following describes the positioning method, device, vehicle and storage medium based on point cloud map in the embodiments of the present application with reference to the accompanying drawings. In response to the technical problem of reducing positioning accuracy mentioned in the above background technology, the present application provides a positioning method based on point cloud map, in which a measured point cloud map is first obtained through the device to be positioned; then the measured point cloud map is semantically enhanced to obtain a measured semantically enhanced point cloud map; then the measured feature information of the measured semantically enhanced point cloud map is extracted; finally, the location information of the device to be positioned is determined based on the measured feature information and the feature information of the pre-constructed point cloud map. The present application can improve positioning accuracy.
[0122] For example, the device to be positioned is a vehicle. The image perception sensor on the vehicle perceives the image of its surrounding environment to collect environmental image data. The image perception sensor sends the environmental image data to the vehicle computer on the vehicle. The vehicle computer generates a measured point cloud map from the environmental image data. The measured point cloud map is located on one of the planes of the three-dimensional coordinate system. For example, the measured point cloud map is located in the XOY plane of the three-dimensional coordinate system. If the measured point cloud map includes road elements such as arrows, sidewalks, and stop lines on the road surface, then the arrow road element is moved up 0.5 meters in the Z direction, the sidewalk road element is moved up 1 meter in the Z direction, and the stop line is moved up 1.5 meters in the Z direction to convert the measured point cloud map into a measured semantically enhanced point cloud map. The measured feature information of the measured semantically enhanced point cloud map is extracted, and the measured feature information is used to characterize the uniqueness of the measured semantically enhanced point cloud map. Finally, the measured semantically enhanced point cloud map is compared with the features at each position on the pre-constructed point cloud map constructed in advance, so as to find the position in the pre-constructed point cloud map that matches the measured semantically enhanced point cloud map. This position is the position of the vehicle, thereby completing the positioning of the vehicle.
[0123] Specifically, Figure 1 A flowchart of a positioning method based on a point cloud map is provided in an embodiment of the present application.
[0124] like Figure 1 As shown, the positioning method based on point cloud map includes the following steps:
[0125] S100, obtaining a measured point cloud map through the device to be positioned;
[0126] S200, performing semantic enhancement on the measured point cloud map to obtain a measured semantically enhanced point cloud map;
[0127] S300, extracting measured feature information of the measured semantically enhanced point cloud map;
[0128] S400: Determine the location information of the device to be located based on the measured feature information and the feature information of the pre-constructed point cloud map.
[0129] An application scenario of this application is as follows:
[0130] The device to be positioned is a vehicle, and an image sensing sensor is arranged on the outside of the vehicle to sense the image of the vehicle's surrounding environment (the image is also environmental image data). The image sensing sensor then transmits the image to the vehicle computer, which converts the image into a measured point cloud map. At the same time, the vehicle computer also obtains the semantic information corresponding to the image. If there are traffic lights, sidewalks, and zebra crossings on the image, then the image corresponds to the three semantics of lights, sidewalks, and zebra crossings. According to these three semantics, the measured point cloud map is converted into a measured semantic enhanced point cloud map. Then, the measured feature information of the measured semantic enhanced point cloud map is extracted. Since the pre-constructed point cloud map is pre-constructed, the pre-constructed point cloud map covers all possible location information of the vehicle. Therefore, by comparing the measured feature information with the pre-constructed point cloud map, it can be determined which position on the pre-constructed point cloud map matches the measured feature information. The matched position is the current position of the vehicle, thereby realizing vehicle positioning. The vehicle positioning method of the present application can assist autonomous driving.
[0131] Another application scenario of this application is as follows:
[0132] The device to be positioned is a robot. An image perception sensor is provided on the outside of the robot to perceive the image of the robot's surrounding environment (the image is also the environmental image data). The image perception sensor then transmits the image to the processor inside the robot. The processor converts the image into a measured point cloud map. At the same time, the processor also obtains the semantic information corresponding to the image. If there are cabinets, steps, thresholds, etc. on the image, then the image corresponds to the three semantics of cabinets, steps, and thresholds. According to these three semantics, the two-dimensional measured point cloud map is converted into a measured semantic enhanced point cloud map. Then, the measured feature information of the measured semantic enhanced point cloud map is extracted. Since the pre-constructed point cloud map is pre-constructed, the pre-constructed point cloud map covers all possible position information of the robot. Therefore, by comparing the measured feature information with the pre-constructed point cloud map, it can be determined which position on the pre-constructed point cloud map matches the measured feature information. The matching position is the current position of the robot, thereby realizing the positioning of the robot.
[0133] In one embodiment, step S100 includes the following specific steps S101 and S102:
[0134] S101, obtaining environmental image data collected by the device to be positioned, and obtaining a coordinate system corresponding to the device to be positioned.
[0135] When the device to be positioned is a vehicle or a robot, the coordinate system is the world coordinate system built into the vehicle or robot.
[0136] S102, projecting the environmental image data onto the coordinate system, and performing point cloud processing on the environmental image data projected onto the coordinate system to generate a measured point cloud map.
[0137] The image data of the environment around the vehicle is perceived by the image perception sensor on the vehicle. At this time, the coordinate system referenced by the image is the coordinate system inside the image perception sensor, not the world coordinate system inside the vehicle. Therefore, it is necessary to convert the environmental image data in the coordinate system inside the image perception sensor to the world coordinate system inside the vehicle so as to locate the vehicle position based on the environmental image data in the world coordinate system.
[0138] The environmental image data is converted into a measured point cloud map, that is, each pixel point on the environmental image data is represented by points of different colors and positions on the world coordinate system, that is, the environmental image data is represented by points on the world coordinate system.
[0139] In another embodiment, instead of collecting environmental image data around the vehicle through the image perception sensor on the vehicle, the data around the vehicle is obtained through the laser radar. Since the coordinate systems of the laser radar and the inside of the vehicle are both world coordinate systems, and the laser radar obtains image data in the form of point clouds, the obtained environmental image data can be directly saved.
[0140] In one embodiment, the semantic enhancement of the measured point cloud map in step S200 to obtain the measured semantically enhanced point cloud map includes the following specific steps S201 to S205:
[0141] S201, identifying each road element and its semantic category on the measured point cloud map.
[0142] The environmental image data collected in this embodiment are marked with semantic information. For example, the marking information includes a left-turn arrow, a straight-ahead arrow, a right-turn arrow, a sidewalk for the blind, a sidewalk for non-blind people, a single white solid line, and a double white solid line (these are all road elements). If an environmental image, that is, a set of environmental image data includes a left-turn arrow, a straight-ahead arrow, a right-turn arrow, a sidewalk for the blind, a sidewalk for non-blind people, a single white solid line, and a double white solid line, the semantic categories of the left-turn arrow, the straight-ahead arrow, and the right-turn arrow are all arrows, the semantic categories of the sidewalk for the blind and the sidewalk for non-blind people are sidewalks, and the semantic categories of the single white solid line and the double white solid line are stop lines.
[0143] S202, counting the total number of semantic categories of each of the semantic categories;
[0144] S203, when the total number of the semantic categories is less than or equal to the quantity threshold, read the preset contour differences, determine the target height corresponding to each semantic category based on the preset contour differences, and sequentially lift the road elements corresponding to each semantic category to the target height corresponding to each semantic category.
[0145] S204: When the total number of semantic categories is greater than the number threshold, read a preset height, and determine an arithmetic height according to the preset height and the total number of semantic categories.
[0146] S205, determining a target height corresponding to each semantic category according to the arithmetic height difference; and sequentially lifting the road elements corresponding to each semantic category to the target height corresponding to each semantic category.
[0147] Continuing with the above example, the measured point cloud map includes three semantic categories on the road: arrows, sidewalks, and stop lines. That is, the total number of semantic categories is 3, which is less than the quantity threshold of 6. Therefore, the vehicle computer reads the preset height difference of 0.5 meters from the memory, and raises the arrows, sidewalks, and stop lines by 0.5 meters, 1 meter, and 1.5 meters respectively (all three are target heights).
[0148] If the total number of semantic categories on the measured point cloud map is greater than or equal to the quantity threshold of 6, the vehicle computer reads the preset height 3 from the memory. For example, if the total number of semantic categories is 10, the arithmetic height is 0.3 meters, and the target heights corresponding to each semantic category are 0.3 meters, 0.6 meters, 0.9 meters, 1.2 meters, 1.5 meters, 1.8 meters, 2.1 meters, 2.4 meters, 2.7 meters, and 3 meters respectively.
[0149] The arrows, stop lines and sidewalks mentioned above are all road elements on the road surface. In another embodiment, for road elements behind the road surface, such as river surface, river embankment, etc., the measured point cloud map corresponding to the semantic category of river surface is moved down by 0.5 meters, and the measured point cloud map corresponding to the semantic category of river embankment is moved down by 1 meter to obtain a measured semantically enhanced point cloud map.
[0150] In one embodiment, the extraction of measured feature information of the measured semantically enhanced point cloud map in step S300 is based on the extraction of measured feature information based on the trained local feature model Loc and the trained global description feature model Glob. Among them, the global description feature model Glob is composed of a point cloud coding backbone network, a convolutional neural network and corresponding activation functions and a point cloud processing operator. The point cloud coding backbone network in this embodiment is a flexconv network or a PointNet network or a PointCNN network or a constructed graph convolution operator, etc. The point cloud coding backbone network is used to process measured point cloud maps with relatively sparse and unstructured inputs. When the point cloud coding backbone network is a flexconv network, the point cloud coding backbone network is used when the measured point cloud submap is input. Use its internal KNN algorithm to generate the point cloud nearest neighbor matrix Where N is the number of points contained in the point cloud, k represents finding the k nearest neighbor indexes around each point, and the point cloud encoding backbone network outputs the global features of the measured semantically enhanced point cloud map The above convolutional neural network is a common 1*1 or 3*3 convolution operator, and the activation function is the ReLU function. The point cloud processing operator is sampling or interpolation or FPS (Furthest Point Sampling Algorithm) or grouping operator, etc. In the process of training the global description feature model Glob, the loss function of the global description feature model Glob can be a descriptor loss or a detection loss or an inert quadruple loss, so that the model learns appropriate global features.
[0151] The trained local feature model Loc and the global description feature model Glob have the same model structure, but the training process is different. After training, the former is used to learn the local features of the point cloud.
[0152] In this embodiment, training both the local feature model Loc and the global description feature model Glob requires establishing training samples and using the training samples to train the two models.
[0153] The specific process of establishing training samples is as follows:
[0154] Step 1, such as Figure 2 As shown, the visual sensor (visual sensor is also an image perception sensor) is calibrated, and the visual sensor includes an IMU and a camera. The images collected by the visual sensor are constructed into a priori maps using SLAM technology and image semantic segmentation technology. The map is used to record the semantic information and position of each pixel on the image.
[0155] Among them, the camera can be a monocular camera, a binocular camera, or a panoramic multi-camera, and the calibration is to calibrate the visual sensor so that the calibrated visual sensor can ensure the correctness of the point cloud structure, the satellite coordinates of the point cloud, and the semantic information of the point cloud.
[0156] Step 2: Use the external parameters of the visual sensor, that is, the coordinate system information inside the visual sensor, to reversely project the prior map obtained in step 1 and convert it into a point cloud (that is, the positions of each pixel on the prior map are converted into points in the world coordinate system of the device to be positioned) to construct a point cloud semantic map.
[0157] The point cloud semantic map is used to record the semantic information of each pixel on the image and the position of each pixel in the world coordinate system. If the prior map in step 1 is not derived from a visual sensor but from a lidar, step 2 can be skipped.
[0158] Step 3: Perform semantic enhancement on the point cloud semantic map in step 2. The specific enhancement method is as follows:
[0159] For road elements with semantic categories such as arrows, sidewalks and stop lines, they are raised by 0.5m, 1m and 1.5m in the vertical height direction (generally in the Z direction) to obtain enhanced semantic point clouds. Generally, if there is more special semantic information, that is, the number of semantic categories is greater than three, it can be increased by 0.5m, that is, the height is increased in increments of 0.5m, but not more than 3m. If it exceeds 3m, it is necessary to readjust the increments of each semantic to increase the height (that is, reduce the increment of 0.5m) to ensure the height limit.
[0160] like Figure 3 As shown in the figure, the lighter-colored point cloud blocks are arrows and sidewalks that have been lifted based on semantic information. For ease of comparison, Figure 3 The point cloud block of the original height is also drawn at the original location of the point cloud in dark gray.
[0161] Step 4: Segment the acquired enhanced semantic point cloud information to obtain sub-graphs The data is usually divided according to the xy plane to construct training sample data.
[0162] The segmentation is performed according to the image acquisition trajectory of the visual sensor. For example, when the semantic point cloud information comes from the image perception sensor on the vehicle, the semantic point cloud information is segmented according to the vehicle's driving trajectory, where the segmentation benchmark is 60m and the overlapping range between the two segmented point clouds is 50m.
[0163] Among them, the overlapping range and segmentation basis can be comprehensively selected based on computing power and accuracy. Figure 4 For subgraph Schematic diagram of Figure 4 a, b, c, d, e, and f are the six sub-graphs extracted from the map in step three.
[0164] After obtaining the training sample data through the above steps 1, 2, 3, and 4, the subgraph in the training sample data is Input to the local feature model Loc to obtain the sub-graph output by the local feature model Loc The local feature F of each point on loc : Among them, the local feature F loc It is used to calculate the matching degree between points in the subsequent calculation. D is the feature vector dimension of each point cloud. The last dimension in D represents the confidence of the point. The confidence value range is (0,1). The confidence is used to characterize the importance of the feature of the point for the positioning of the device to be positioned.
[0165] Output local features F loc Afterwards, the local feature F loc With subgraph The corresponding actual local features are compared, and the parameters of the local feature model Loc are adjusted according to the comparison results to obtain the local feature model Loc after training.
[0166] Local feature F loc like Figure 5 As shown, Figure 5 a and c are two training samples separated in step 4. The data format of these two training samples is the measured point cloud map. The two training samples are within a certain distance range of GPS and can be identified as a pair of positive samples. Figure 5 Points at different depths in b and d represent different confidence values of the local descriptor at the corresponding position of the point. Figure 5 As shown, local features give higher confidence to the endpoints of the "line" semantics or the corner positions of the "arrow" semantics, indicating that the network model has a higher response value to the "line" and "arrow" parts in the point cloud during the learning and reasoning process. These structures are also important bases for distinguishing and judging different point clouds.
[0167] After obtaining the trained local feature model Loc, the sub-graph Input to the trained local feature model Loc to obtain the local feature F output by the local feature model Loc l ' oc , the local feature F l ' oc and subgraph Input into the global description feature model Glob to obtain the global features output by the global description feature model Glob Global Features Compare with the actual global features corresponding to the point cloud in step 4, and adjust the parameters of the global description feature model Glob according to the comparison results to obtain the global description feature model Glob after training.
[0168] The trained global description feature model Glob and the local feature model Loc are obtained. Step S300 extracts the measured feature information of the point cloud measured point cloud map based on the two models. This embodiment includes the following specific steps S301, S302, and S303:
[0169] S301, dividing the measured semantically enhanced point cloud map into a plurality of measured point cloud sub-maps.
[0170] The method of dividing the measured semantic enhanced point cloud map into several measured point cloud sub-maps is the same as the division method in the above step 4.
[0171] S302, applying a local feature extraction model to each of the measured point cloud submaps to extract local features of each of the measured point cloud submaps, wherein the local features are used to characterize features F of points in the measured point cloud submaps. l ' o ' c .
[0172] Each measured point cloud submap is input into the above-mentioned trained local feature model Loc, and the local feature model Loc outputs the local features of each point contained in each measured point cloud submap.
[0173] S303, applying a global feature extraction model to all the measured point cloud sub-maps and the corresponding local features to extract the global feature F of the measured semantically enhanced point cloud map g ' lob and using the global features as the measured feature information of the measured semantically enhanced point cloud map.
[0174] The measured point cloud submaps of all groups and the local features corresponding to each group of measured point cloud submaps are input into the trained global description feature model Glob. The global description feature model Glob will output the global measured feature information of the measured semantically enhanced point cloud map. The global measured feature information is used for the uniqueness of the measured semantically enhanced point cloud map.
[0175] The positioning of the device to be positioned in step S400 includes two situations: the first successful positioning of the device to be positioned and the second successful positioning of the device to be positioned. In one embodiment, the first situation includes the following specific steps S401, S402, S403, S404:
[0176] S401, determining the global candidate features of each candidate sub-point cloud in the feature information of the pre-built point cloud map All of the candidate sub-point clouds constitute the pre-constructed point cloud map.
[0177] The pre-built point cloud map is a map that is pre-built and stored inside the device to be positioned. The pre-built point cloud map is a database D:
[0178]
[0179] Each of the It is a candidate sub-point cloud, each of which has a specific location. Subsequently, the measured semantic enhanced point cloud map formed by comparing the image data collected by the device to be positioned is used to determine which candidate sub-point cloud has a greater similarity. The location of the candidate sub-point cloud is the location of the device to be positioned, so as to complete the positioning of the device to be positioned.
[0180] The method for extracting global candidate features of the candidate sub-point cloud is the same as the method for extracting global features of the measured semantically enhanced point cloud map in step S300, that is, the global candidate features of the candidate sub-point cloud can be extracted using the extraction method in step S300.
[0181] S402, calculating a feature matching degree score between the global feature and each of the global candidate features according to the global feature and each of the global candidate features. glob :
[0182]
[0183] func can be either cosine distance or Euclidean distance.
[0184] S403: When there is a target matching degree greater than a set threshold among the feature matching degrees, the candidate sub-point cloud corresponding to the target matching degree is used as the target sub-point cloud.
[0185] There are M candidate sub-point clouds in the database D. If only one of the M candidate sub-point clouds has a feature matching degree with the measured semantic enhanced point cloud map greater than the set threshold of 0.8, then the candidate sub-point cloud is the target sub-point cloud.
[0186] by Figure 6 For example, Figure 6 a is the measured semantically enhanced point cloud map to be located. Figure 6 f is the true value point cloud that matches a in the database D, that is, f is the target sub-point cloud. If we compare the candidate sub-point clouds according to their matching degree with the measured semantic enhanced point cloud map, Figure 6 Arrange b, c, d, and e in descending order, starting from Figure 6 It can be seen that the score corresponding to b glob is 0.10, the score corresponding to c glob is 0.14, and the score corresponding to d is glob is 0.14, the score corresponding to e glob is 0.15, where b's score glob The smallest, that is, the distance is the smallest, that is, b is the most matched with the measured semantic enhanced point cloud map, so b is the target sub-point cloud of a. Since b is the same as f, it means that both methods can filter out the target sub-point cloud.
[0187] S404: Determine the location information of the device to be located according to the location of the target sub-point cloud on the pre-constructed point cloud map.
[0188] Each candidate sub-point cloud in database D Each point cloud has a specific location. Find the candidate sub-point cloud that matches the measured semantically enhanced point cloud map. The location of the point cloud is the location of the device to be positioned.
[0189] In another embodiment, the second situation of step S400, that is, the matching degree of each feature is less than or equal to the set threshold, the embodiment includes the following specific steps S406, S407, S408, S409:
[0190] S405, determining the histogram features of the measured semantically enhanced point cloud map, and determining the histogram features of each of the candidate sub-point clouds.
[0191] The specific process of measuring the histogram feature of the semantically enhanced point cloud map is as follows: determining the distribution direction of the measured semantically enhanced point cloud map;
[0192] Polar coordinates are constructed with the distribution direction as the polar axis; and histogram features corresponding to the measured semantically enhanced point cloud map located on the polar coordinates are counted.
[0193] That is, the coordinates of the center point are subtracted from the point coordinates of the measured point cloud submap divided from the measured semantic enhanced point cloud map so that the data is centered at the center, and the center point coordinates are the coordinates of the center surrounded by all the points on the measured point cloud submap. The covariance matrix of the measured point cloud submap with the center as the origin is calculated, and the distribution direction of the measured semantic enhanced point cloud map is obtained by PCA analysis or eigenvalue decomposition of the covariance matrix.
[0194] Each point in the measured point cloud submap (i.e., local point cloud) is represented as a polar coordinate relative to the center point, which consists of a polar diameter and a polar angle. The polar axis of the polar coordinate system is the main distribution direction. According to the polar diameter and polar angle of each point, each measured semantically enhanced point cloud map is divided into different regions, and the number of points in each region is counted to form the histogram feature of the measured semantically enhanced point cloud map.
[0195] The statistical method of the histogram features of the candidate sub-point cloud is the same as the statistical method of the histogram features of the measured semantically enhanced point cloud map.
[0196] S406, determining a histogram similarity score between the measured semantically enhanced point cloud map and each of the candidate sub-point clouds according to the histogram features of the measured semantically enhanced point cloud map and the histogram features of each of the candidate sub-point clouds. pca .
[0197] The histogram similarity score pca is the cosine similarity between the above two histogram features.
[0198] S407: extracting local candidate features of each point included in each of the candidate sub-point clouds.
[0199] The local candidate features are extracted in the same way as the local features of the measured semantically enhanced point cloud map.
[0200] S408: Determine the local similarity between the measured semantically enhanced point cloud map and each of the candidate sub-point clouds based on the local candidate features and each of the local features.
[0201] That is: determine the candidate confidence corresponding to the local candidate feature, and determine the confidence corresponding to the local feature; delete the points whose candidate confidence is lower than the confidence threshold from each candidate sub-point cloud to obtain each pre-processed candidate sub-point cloud; delete the points whose confidence is lower than the confidence threshold from the measured semantic enhanced point cloud map to obtain a pre-processed measured semantic enhanced point cloud map; based on the pre-processed measured semantic enhanced point cloud map The local features of the points contained Each of the preprocessed candidate sub-point clouds The local candidate features of the points contained Filter out a preprocessed target candidate sub-point cloud from each of the preprocessed candidate sub-point clouds; determine the local similarity score between the measured semantically enhanced point cloud map and each of the candidate sub-point clouds according to the number of points contained in the preprocessed target candidate sub-point cloud and the number of points contained in the preprocessed measured semantically enhanced point cloud map. localDes .
[0202] This embodiment deletes points with low confidence, which can reduce the computational complexity without affecting the positioning accuracy.
[0203] S407 and S408 are based on the local descriptor association method to obtain the local similarity score. localDes , calculate the local similarity score localDes The process is as Figure 7 As shown in a and b. and Generate matching matrix After matching, the point cloud matching relationship with the minimum matching distance loss is optimized based on the ransac algorithm and the matching transformation matrix map = R, T and the number of internal points are returned to meet Where CD is ChamferDistance. If the sub-point cloud and If the number of inliers between is less than the threshold, the local descriptor association method outputs a matching score of 0. Otherwise, all inliers are selected and the mean of the inliers’ local feature similarity scores is calculated as the local descriptor association method output score. localDes .
[0204] S409, screening out a final sub-point cloud from the plurality of candidate sub-point clouds according to the local similarity, the histogram similarity and the feature matching degree, and determining the location information of the device to be located according to the location of the final sub-point cloud on the pre-built point cloud map.
[0205] That is: a weighted calculation is performed according to the local similarity, the histogram similarity and the feature matching degree to obtain an evaluation score of each candidate sub-point cloud; and a final sub-point cloud is screened out from a number of candidate sub-point clouds according to the evaluation score of each candidate sub-point cloud.
[0206] score=α1×score glob +α2×score pca +α3×score localDes
[0207] α1, α2, and α3 are three different weights. In this embodiment, α1=0.8, α2=0.1, and α3=0.1. They can also be set to α1=0.8, α2=0, and α3=0.1, or α1=0.8, α2=0.1, and α3=0.
[0208] According to the evaluation score of each candidate sub-point cloud, the candidate sub-point cloud corresponding to the largest evaluation score is screened out, and the candidate sub-point cloud is used as the final sub-point cloud. The location of the final sub-point cloud is the location of the device to be positioned.
[0209] The above S405 and S406 are based on the principle of the main direction method. In one embodiment, only the histogram similarity score can be used. pca The final sub-point cloud is selected from each candidate sub-point cloud in the database D. Figure 8 As shown, Figure 8 a in the figure is the measured semantically enhanced point cloud map. Figure 8 b in the figure is the PCA analysis result of a, which is the distribution direction of the measured semantically enhanced point cloud map; Figure 8 The c in is the candidate sub-point cloud, Figure 8 The d in is the PCA analysis result of c, that is, the distribution direction of the candidate sub-point cloud. Based on these two distribution directions, two polar coordinates are constructed. Based on these two polar coordinates, the histogram features of the candidate sub-point clouds and the histogram features of the measured semantic enhanced point cloud map can be counted respectively. Finally, based on these two histogram features, the final sub-point cloud is selected from each candidate sub-point cloud to locate the device to be located by the position of the final sub-point cloud.
[0210] In another embodiment, the device to be located is located in the following manner:
[0211] The Loc model and the Glob model are trained by training sample data to obtain the trained Loc model and the trained Glob model. The local features F1 of the measured semantic enhanced point cloud map are extracted by the trained Loc model. loc And the local candidate features F2 of the candidate sub-point cloud loc, the global features F1 of the cloud 3D data are extracted through the trained Glob model glob And the global candidate feature F2 of the candidate sub-point cloud glob . Then according to the global feature F1 glob And the global candidate feature F2 glob , select the target sub-point cloud from each candidate sub-point cloud in the database D, and use the position of the target sub-point cloud as the position of the device to be positioned to complete the first positioning. If the first positioning is unsuccessful, the second positioning is performed. The specific process of the second positioning is as follows:
[0212] Using local feature F1 loc And local candidate features F2 loc The matching relationship between two local features is as follows (the matching relationship between two local features is as follows Fig. 9 As shown in a in the figure, a sub-point cloud matching the measured semantic enhanced point cloud map is found from several candidate sub-point clouds in the database D, and the sub-point cloud and the measured semantic enhanced point cloud map are aligned. The alignment effect is shown in Fig. 9 As shown in b in FIG, the position of the measured semantic enhanced point cloud map on the pre-built point cloud map is determined according to the position of the aligned sub-point cloud, that is, the position of the device to be located corresponding to the measured semantic enhanced point cloud map is located on the pre-built point cloud map. The position of the device to be located on the pre-built point cloud map is shown in FIG. Fig. 9 As shown in c.
[0213] In one embodiment, the positioning method of the present application can be implemented on a computer on a vehicle, the system of the computer is Ubuntu 18.04 system, and is configured with a Pytorch deep learning framework or a Tensorflow framework, the computer is configured with an Intel(R) Core(TM) i5-13600K processor, a main frequency of 4.0GHz, a memory of 128GB, and a graphics card of an NVIDIA RTX4090 with a video memory of 24GB. The steps of raw point cloud acquisition and data processing use engineering codes implemented in C++, which do not rely on the Python environment.
[0214] In summary, this application combines point cloud semantic information to convert the semantic features of the measured point cloud map into 3D spatial features to optimize the point cloud retrieval and positioning performance. At the same time, combined with a deep neural network, a two-stage post-processing method is used to match the candidate sub-point clouds corresponding to the measured point cloud map from coarse to fine, so as to improve the shortcomings of false detection or insufficient recall rate under the single-stage method. This application uses a variety of prior information to maintain good vehicle positioning performance even when the satellite signal and image quality are poor.
[0215] Next, a positioning device based on a point cloud map according to an embodiment of the present application is described with reference to the accompanying drawings.
[0216] like Fig.10 As shown, the positioning device 10 based on the point cloud map includes: a point cloud generation module 100, a semantic enhancement module 200, a feature extraction module 300 and a positioning module 400.
[0217] Specifically, the point cloud generation module 100 is used to obtain a measured point cloud map through the device to be positioned.
[0218] The semantic enhancement module 200 is used to perform semantic enhancement on the measured point cloud map to obtain a measured semantically enhanced point cloud map.
[0219] The feature extraction module 300 is used to extract the measured feature information of the measured semantically enhanced point cloud map.
[0220] The positioning module 400 is used to extract the measured feature information of the measured semantically enhanced point cloud map.
[0221] It should be noted that the aforementioned explanation of the embodiment of the positioning method based on the point cloud map is also applicable to the positioning device based on the point cloud map of this embodiment, and will not be repeated here.
[0222] Fig.11 A schematic diagram of the structure of a vehicle provided in an embodiment of the present application. The vehicle may include:
[0223] A memory 501 , a processor 502 , and a computer program stored in the memory 501 and executable on the processor 502 .
[0224] When the processor 502 executes the program, the point cloud map-based positioning method provided in the above embodiment is implemented.
[0225] Furthermore, the vehicle also includes:
[0226] The communication interface 503 is used for communication between the memory 501 and the processor 502 .
[0227] The memory 501 is used to store computer programs that can be executed on the processor 502 .
[0228] The memory 501 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0229] If the memory 501, the processor 502 and the communication interface 503 are implemented independently, the communication interface 503, the memory 501 and the processor 502 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.11 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0230] Optionally, in a specific implementation, if the memory 501, the processor 502 and the communication interface 503 are integrated on a chip, the memory 501, the processor 502 and the communication interface 503 can communicate with each other through an internal interface.
[0231] The processor 502 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
[0232] This embodiment also provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the above-mentioned positioning method based on the point cloud map is implemented.
[0233] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0234] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0235] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or N executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes additional implementations, in which the order shown or discussed may not be followed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0236] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can read instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or N wirings (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically by optically scanning the paper or other medium and then editing, interpreting or otherwise processing in a suitable manner if necessary and then storing it in a computer memory.
[0237] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. If implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0238] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0239] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0240] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A positioning method based on point cloud map, characterized in that: The following steps are involved: Obtain the measured point cloud map through the device to be positioned; Performing semantic enhancement on the measured point cloud map to obtain a measured semantically enhanced point cloud map; Extracting measured feature information of the measured semantically enhanced point cloud map; The location information of the device to be located is determined based on the measured feature information and the feature information of the pre-constructed point cloud map.
2. The positioning method based on point cloud map according to claim 1, characterized in that: The step of obtaining a measured point cloud map through the device to be positioned includes: Acquire the environmental image data collected by the device to be positioned, and the coordinate system corresponding to the device to be positioned; The environmental image data is projected onto the coordinate system, and point cloud processing is performed on the environmental image data projected onto the coordinate system to generate a measured point cloud map.
3. The positioning method based on point cloud map according to claim 1, characterized in that: In the measured semantically enhanced point cloud map, road elements of the same semantic category are located at the same height, and road elements of different semantic categories are located at different heights.
4. The positioning method based on point cloud map according to claim 1 or 3, characterized in that: The semantic enhancement of the measured point cloud map to obtain the measured semantically enhanced point cloud map includes: Identify each road element and its semantic category on the measured point cloud map; According to the semantic category of each road element, each road element is lifted to a different height to obtain a measured semantically enhanced point cloud map.
5. The positioning method based on point cloud map according to claim 4, characterized in that: The step of raising each road element to a different height according to the semantic category of each road element includes: Obtain the total number of semantic categories corresponding to the measured point cloud map; When the total number of semantic categories is less than or equal to the quantity threshold, the preset contour differences are read, and the target height corresponding to each semantic category is determined based on the preset contour differences, and the road elements corresponding to each semantic category are sequentially lifted to the target height corresponding to each semantic category.
6. The positioning method based on point cloud map according to claim 5, characterized in that: The step of raising each road element to a different height according to the semantic category of each road element further includes: When the total number of the semantic categories is greater than the number threshold, reading a preset height, and determining an arithmetic height according to the preset height and the total number of the semantic categories; According to the arithmetic heights, a target height corresponding to each semantic category is determined; and the road elements corresponding to each semantic category are sequentially lifted to the target height corresponding to each semantic category.
7. The positioning method based on point cloud map according to claim 1, characterized in that: The extracting the measured feature information of the measured semantically enhanced point cloud map includes: Dividing the measured semantically enhanced point cloud map into a plurality of measured point cloud sub-maps; A local feature extraction model is applied to each of the measured point cloud submaps to extract local features of each of the measured point cloud submaps; a global feature extraction model is applied to all the measured point cloud submaps and the corresponding local features to extract global features of the measured semantically enhanced point cloud map, and the global features are used as the measured feature information of the measured semantically enhanced point cloud map.
8. The positioning method based on point cloud map according to claim 7, characterized in that: The determining the location information of the device to be located according to the measured feature information and the feature information of the pre-built point cloud map includes: Reading the global candidate features of each candidate sub-point cloud in the feature information of the pre-constructed point cloud map, all the candidate sub-point clouds constitute the pre-constructed point cloud map; Calculating a feature matching degree between the global feature and each of the global candidate features according to the global feature and each of the global candidate features; When there is a target matching degree greater than a set threshold among the feature matching degrees, the candidate sub-point cloud corresponding to the target matching degree is used as the target sub-point cloud; The location information of the device to be located is determined according to the location of the target sub-point cloud on the pre-constructed point cloud map.
9. The positioning method based on point cloud map according to claim 8, characterized in that: The determining the location information of the device to be located according to the measured feature information and the feature information of the pre-built point cloud map also includes: When the matching degree of each of the features is less than or equal to the set threshold, determining the histogram features of the measured semantically enhanced point cloud map, and determining the histogram features of each of the candidate sub-point clouds; Determining a histogram similarity between the measured semantically enhanced point cloud map and each of the candidate sub-point clouds according to the histogram features of the measured semantically enhanced point cloud map and the histogram features of each of the candidate sub-point clouds; Extracting local candidate features of each of the candidate sub-point clouds, where the local candidate features are used to characterize features of points on the candidate sub-point clouds; Determine the local similarity between the measured semantically enhanced point cloud map and each of the candidate sub-point clouds according to the local candidate features and each of the local features; According to the local similarity, the histogram similarity and the feature matching degree, a final sub-point cloud is screened out from the plurality of candidate sub-point clouds, and the location information of the device to be located is determined according to the position of the final sub-point cloud on the pre-built point cloud map.
10. The positioning method based on point cloud map according to claim 9, characterized in that: The determining of the histogram features of the measured semantically enhanced point cloud map includes: Determining the distribution direction of the measured semantically enhanced point cloud map; Constructing polar coordinates with the distribution direction as the polar axis; The histogram features corresponding to the measured semantically enhanced point cloud map located on the polar coordinates are counted.
11. The positioning method based on point cloud map according to claim 9, characterized in that: Determining the local similarity between the measured semantically enhanced point cloud map and each of the candidate sub-point clouds based on the local candidate features and each of the local features includes: determining the candidate confidence corresponding to the local candidate features, and determining the confidence corresponding to the local features; Deleting points whose candidate confidence is lower than the confidence threshold from each of the candidate sub-point clouds to obtain each pre-processed candidate sub-point cloud; deleting points whose confidence is lower than the confidence threshold from the measured semantically enhanced point cloud map to obtain a pre-processed measured semantically enhanced point cloud map; Based on the local features of the points contained in the preprocessed measured semantically enhanced point cloud map and the local candidate features of the points contained in each of the preprocessed candidate sub-point clouds, a preprocessed target candidate sub-point cloud is screened out from each of the preprocessed candidate sub-point clouds; based on the number of points contained in the preprocessed target candidate sub-point cloud and the number of points contained in the preprocessed measured semantically enhanced point cloud map, the local similarity between the measured semantically enhanced point cloud map and each of the candidate sub-point clouds is determined.
12. The positioning method based on point cloud map according to claim 9, characterized in that: The step of selecting a final sub-point cloud from a plurality of candidate sub-point clouds according to the local similarity, the histogram similarity and the feature matching degree comprises: Obtaining an evaluation score for each of the candidate sub-point clouds according to a weighted calculation result of the local similarity, the histogram similarity, and the feature matching degree; A final sub-point cloud is selected from a plurality of the candidate sub-point clouds according to the evaluation score of each of the candidate sub-point clouds.
13. A positioning device based on a point cloud map, characterized in that: include: Point cloud generation module, used to obtain the measured point cloud map through the device to be positioned; A semantic enhancement module, used to perform semantic enhancement on the measured point cloud map to obtain a measured semantically enhanced point cloud map; A feature extraction module, used to extract measured feature information of the measured semantic enhanced point cloud map; The positioning module is used to determine the position information of the device to be positioned based on the measured feature information and the feature information of the pre-built point cloud map.
14. A vehicle, characterized in that: The vehicle includes a memory, a processor, and a point cloud map-based positioning program stored in the memory and executable on the processor. When the processor executes the point cloud map-based positioning program, the steps of the point cloud map-based positioning method as described in any one of claims 1 to 12 are implemented.
15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a positioning program based on a point cloud map. When the positioning program based on a point cloud map is executed by a processor, the steps of the positioning method based on a point cloud map as described in any one of claims 1 to 12 are implemented.
