WO2023131203A1 - Semantic map updating method, path planning method, and related apparatuses - Google Patents

Semantic map updating method, path planning method, and related apparatuses Download PDF

Info

Publication number
WO2023131203A1
WO2023131203A1 PCT/CN2023/070501 CN2023070501W WO2023131203A1 WO 2023131203 A1 WO2023131203 A1 WO 2023131203A1 CN 2023070501 W CN2023070501 W CN 2023070501W WO 2023131203 A1 WO2023131203 A1 WO 2023131203A1
Authority
WO
WIPO (PCT)
Prior art keywords
point cloud
cloud object
semantic
updated
target
Prior art date
Application number
PCT/CN2023/070501
Other languages
French (fr)
Chinese (zh)
Inventor
何鹏
周光
蔡一奇
Original Assignee
深圳元戎启行科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN202210006061.3A external-priority patent/CN115544191A/en
Priority claimed from CN202210006048.8A external-priority patent/CN115544190A/en
Priority claimed from CN202210004626.4A external-priority patent/CN115544189A/en
Priority claimed from CN202211097600.5A external-priority patent/CN115588174A/en
Application filed by 深圳元戎启行科技有限公司 filed Critical 深圳元戎启行科技有限公司
Publication of WO2023131203A1 publication Critical patent/WO2023131203A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/05Geographic models
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/74Image or video pattern matching; Proximity measures in feature spaces
    • G06V10/75Organisation of the matching processes, e.g. simultaneous or sequential comparisons of image or video features; Coarse-fine approaches, e.g. multi-scale approaches; using context analysis; Selection of dictionaries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/77Processing image or video features in feature spaces; using data integration or data reduction, e.g. principal component analysis [PCA] or independent component analysis [ICA] or self-organising maps [SOM]; Blind source separation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/56Context or environment of the image exterior to a vehicle by using sensors mounted on the vehicle

Definitions

  • the disclosed embodiments of the present application relate to the field of automatic driving map and positioning technology, and more specifically, relate to a semantic map updating method, a path planning method and related devices.
  • autonomous driving technology is the future trend (such as human travel, logistics and other fields).
  • it is the process of making the car intelligent: "perception-positioning-decision-execution”.
  • the high-precision map is the core of perception and positioning. Therefore, the collection, generation and update of maps has become one of the core technologies of autonomous driving.
  • crowdsourcing collection can be understood as the user collects road data through the sensor of the self-driving vehicle or other low-cost sensors and transmits it to the cloud for data fusion, and improves the accuracy of the data through this fusion to complete the crowdsourcing.
  • most crowdsourcing mapping solutions are based on 2D visual data to generate 3D point cloud maps and then semantically convert them into semantic maps.
  • the 3D point clouds obtained by such methods are sparse and have low precision, making it difficult to ensure the accuracy of the generated autonomous driving maps.
  • the present application proposes a semantic map updating method, a path planning method and related devices to solve the above problems.
  • the first aspect of the present application discloses a semantic map update method, the method comprising: obtaining at least one object point cloud corresponding to the current acquisition area; constructing at least one first point cloud object according to the at least one object point cloud and extracting the corresponding First semantic information, wherein the at least one first point cloud object and the corresponding first semantic information are used to construct a crowdsourced semantic map; in response to the existence of an original semantic map in the current collection area, obtain the original semantic map, and Obtain the at least one second point cloud object and corresponding second semantic information from the original semantic map; obtain the at least one first point cloud object according to the first semantic information and the second semantic information and the matching result of the at least one second point cloud object, and update the original semantic map by using the at least one first point cloud object in the crowdsourced semantic map according to the matching result.
  • the second aspect of the present application discloses a path planning method, including: obtaining a semantic map; performing path planning according to the original semantic map; wherein, the original semantic map is updated through the semantic map as described in the first aspect obtained by the method.
  • the third aspect of the present application discloses a device for updating a semantic map, the device comprising: an acquisition module, configured to acquire at least one object point cloud corresponding to the current acquisition area; a first extraction module, configured to The cloud constructs at least one first point cloud object and extracts the corresponding first semantic information, wherein the at least one first point cloud object and the corresponding first semantic information are used to construct a crowdsourced semantic map; the second acquisition module is used to Responding to the presence of an original semantic map in the current collection area, obtain the original semantic map, and obtain at least one second point cloud object and corresponding second semantic information from the original semantic map; an update module, configured to The first semantic information and the second semantic information, obtain the matching result of the at least one first point cloud object and the at least one second point cloud object, and use the crowdsourcing semantics according to the matching result
  • the at least one first point cloud object in the map updates the original semantic map.
  • the fourth aspect of the present application discloses a path planning device, including: an acquisition module, configured to acquire a semantic map, wherein the original semantic map is obtained through the method for updating the semantic map as described in the first aspect; A path planning module, configured to perform path planning according to the original semantic map.
  • the fifth aspect of the present application discloses a computer device, including a memory and a processor, the processor is used to execute the program instructions stored in the memory, so as to realize the semantic map update method described in the first aspect, or to realize The path planning method described in the second aspect.
  • the sixth aspect of the present application discloses a non-volatile computer-readable storage medium, on which program instructions are stored.
  • the program instructions are executed by a processor, the semantic map update method described in the first aspect is implemented, or in the form of Implement the path planning method described in the second aspect.
  • the beneficial effects of the present application include: acquiring at least one object point cloud corresponding to the current collection area, constructing at least one first point cloud object and extracting corresponding first semantic information according to at least one object point cloud, wherein at least one first point cloud object and the corresponding first semantic information are used to construct a crowdsourced semantic map; in response to the existence of an original semantic map in the current collection area, the original semantic map is obtained, and at least one second point cloud object and the corresponding second semantic map are obtained from the original semantic map information; according to the first semantic information and the second semantic information, obtain a matching result of at least one first point cloud object and at least one second point cloud object, and then use at least one first point in the crowdsourced semantic map according to the matching result
  • the cloud object updates the original semantic map, that is, collects new data through crowdsourcing, and performs matching update with the existing semantic map, which provides a guarantee for map matching update, thereby improving the accuracy of map update.
  • Fig. 1 is the application environment diagram of the semantic map updating method in an embodiment of the present application
  • Fig. 2 is a schematic flow chart of a method for updating a semantic map according to an embodiment of the present application
  • Fig. 3 is a schematic diagram of semantic information of a point cloud object in an embodiment of the present application.
  • Fig. 4 is a schematic diagram of partial semantic information of a point cloud object in another embodiment of the present application.
  • Fig. 5 is a schematic diagram of a point cloud object matching pair in an embodiment of the present application.
  • FIG. 6 is a schematic flowchart of bounding box collision processing according to an embodiment of the present application.
  • Fig. 7 is a schematic diagram of the effect of bounding box collision according to an embodiment of the present application.
  • Fig. 8 is a schematic diagram of the effect of point cloud object mismatching in the embodiment of the present application.
  • FIG. 9 is another schematic flowchart of bounding box collision processing according to the embodiment of the present application.
  • FIG. 10 is a schematic flow chart of lane line update in the embodiment of the present application.
  • Fig. 11 is a schematic diagram of the effect of sampling points in the embodiment of the present application.
  • FIG. 12 is a schematic diagram of the application scene of the embodiment of the present application.
  • FIG. 13 is a schematic flowchart of a path planning method according to an embodiment of the present application.
  • FIG. 14 is a schematic structural diagram of a device for updating a semantic map according to an embodiment of the present application.
  • FIG. 15 is a schematic structural diagram of a path planning device according to an embodiment of the present application.
  • FIG. 16 is a schematic structural diagram of a computer device according to an embodiment of the present application.
  • FIG. 17 is a schematic structural diagram of a non-volatile computer-readable storage medium according to an embodiment of the present application.
  • the semantic map update method provided in the embodiment of the present application can be applied in the application environment shown in FIG. 1 , which is an application environment diagram of the semantic map update method in an embodiment of the present application.
  • the collection device 102 communicates with the terminal 104 through the network.
  • the data storage system may store data that needs to be processed by the terminal 104 .
  • the data storage system can be integrated on the terminal 104, or placed on the cloud or other network servers.
  • the terminal 104 acquires the point cloud of the target object extracted from the crowdsourced map corresponding to the current collection area collected by the collection device 102; constructs the first point cloud object according to the point cloud of the target object and extracts the corresponding first semantic information; when the newly collected collection area exists In the semantic map, all the second point cloud objects in the semantic map and the corresponding second semantic information are obtained; according to the first semantic information and the second semantic information, the crowdsourcing map is matched with the semantic map to obtain the matching result; according to the matching The result updates the semantic map.
  • the terminal 104 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, Internet of Things devices, or automatic driving computing platforms.
  • the acquisition device can be lidar, millimeter-wave radar or ultrasonic radar, or it can be integrated on the terminal. It can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and can be implemented through interaction between the terminal and the server.
  • FIG. 2 is a schematic flowchart of a method for updating a semantic map according to an embodiment of the present application. The method is applied to the terminal in FIG. 1 as an example for illustration, including the following steps:
  • S202 Obtain at least one object point cloud corresponding to the current collection area.
  • Obtain at least one object point cloud corresponding to the current collection area which can be crowdsourcing collection.
  • the user collects road data through the sensor of the self-driving vehicle or other low-cost sensors and sends it to the cloud for data fusion, and through this fusion
  • Crowdsourced high-precision maps or semantic maps can be completed by improving the accuracy of data in a way; crowdsourced maps or crowdsourced maps refer to those collected by the terminal through the cloud, collected by other vehicles and uploaded to the cloud by lidar
  • point clouds in the point cloud data that are not required for building a semantic map. It is necessary to extract the collected point cloud data to obtain the point cloud of the target object.
  • Object point cloud refers to the point cloud of objects (such as traffic indication objects) required for constructing semantic maps.
  • Objects required for semantic maps include but are not limited to traffic lights, traffic signs, lane lines, sidewalks and other objects that carry necessary traffic information .
  • S204 Construct at least one first point cloud object and extract corresponding first semantic information according to at least one object point cloud, wherein the at least one first point cloud object and the corresponding first semantic information are used to construct a crowdsourced semantic map.
  • Semantic information includes point cloud object identification, point cloud center, point cloud convex hull, point cloud bounding box (Oriented Bounding Box, OBB) (can be understood as the point cloud minimum calibration box OBB), point cloud PCA (Principal Components Analysis) coordinates system direction, point cloud main direction and point cloud histogram, etc. It can be understood that the point cloud of the target object here is not limited to one, but may be multiple; there may also be one or more objects corresponding to the first point cloud.
  • the point cloud object identification of each object is different, that is, unique;
  • the minimum calibration box OBB of the point cloud can be represented by eight vertices in the world coordinate system;
  • the direction of the point cloud PCA coordinate system is decomposed by the eigenvalue of the point cloud covariance matrix,
  • the direction of the three dimensions is calculated by the eigenvector (as shown in Figure 3), and this coordinate system can be defined as the local coordinate system of the object;
  • the main direction of the point cloud is after the PCA calculation, and the eigenvector corresponding to the smallest eigenvalue is selected as The principal orientation of the point cloud object.
  • the point cloud of a traffic sign is similar to a plane. In fact, the eigenvalue corresponding to the normal direction of the plane is the smallest.
  • Figure 3 is the semantic information of the point cloud object in an embodiment of the present application Schematic diagram
  • the point cloud convex hull is the smallest convex hull that contains all points of an object
  • the point cloud histogram stores the three-dimensional histogram of x, y, and z in a one-dimensional vector.
  • Figure 4 is a schematic diagram of part of the semantic information of point cloud objects in another embodiment of the present application, which is part of the semantic information of some objects in the local three-dimensional crowdsourcing semantic map in one embodiment (including OBB and PCA coordinate systems ).
  • the first semantic information includes the point cloud object identification of the first point cloud object, the point cloud PCA (Principal Components Analysis) coordinate system direction, the point cloud main direction, the point cloud object center, and the point cloud minimum bounding box (Oriented Bounding Box, OBB) , point cloud convex hull and point cloud histogram.
  • OBB Oriented Bounding Box
  • Point cloud PCA is to decompose the eigenvalue of the point cloud covariance matrix, determine the direction of the three dimensions through the eigenvector, and define this coordinate system as the local coordinate system of the object.
  • the main direction of the point cloud is after the PCA calculation, and the eigenvector corresponding to the smallest eigenvalue is selected as the main direction of the point cloud object.
  • the point cloud approximates a plane (of course, a threshold will be given in the construction map, and if it is less than the threshold, a minimum width (width) will be given to ensure that the point cloud object is a three-dimensional object), then the normal direction of the plane The corresponding eigenvalue is the smallest, and we define the normal direction as the main direction.
  • the size of the bounding box of the minimum bounding box OBB of the point cloud is width (width), height (height), and depth (depth).
  • width ⁇ height ⁇ depth can be represented by eight vertices in the world coordinate system;
  • the convex hull of the point cloud is Contains the minimum convex hull of all points of an object;
  • the point cloud histogram stores the three-dimensional histogram of x, y, and z in a one-dimensional vector.
  • the crowdsourcing semantic map when there is a corresponding semantic map in the updated collection area, it is necessary to judge the matching of point cloud objects between the newly collected crowdsourced map and the existing corresponding semantic map, determine the objects required for constructing the semantic map, and use the crowdsourced map Extract the point cloud of the target object used to represent the traffic indication object, perform denoising and clustering processing on the point cloud of the target object, obtain the first point cloud object in the crowdsourcing map, and extract all the first point cloud objects in the crowdsourcing map The first semantic information of the first point cloud object and the corresponding first semantic information are used to construct the crowdsourcing semantic map.
  • S206 In response to an original semantic map existing in the current acquisition area, acquire the original semantic map, and acquire at least one second point cloud object and corresponding second semantic information from the original semantic map.
  • the original semantic map is acquired, wherein at least one second point cloud object exists in the semantic map, and each second point cloud object has corresponding second semantic information.
  • the original semantic map There is at least one second point cloud object; the second semantic information of the second point cloud object at least includes the semantic information including point cloud object identification, point cloud center, point cloud convex hull, point cloud bounding box (Oriented Bounding Box, OBB), point cloud PCA (Principal Components Analysis) coordinate system direction, point cloud main direction and point cloud histogram, etc.
  • the first semantic information can also be named the second semantic information
  • the second semantic information can also be named the first semantic information.
  • S208 Obtain a matching result of at least one first point cloud object and at least one second point cloud object according to the first semantic information and the second semantic information, and use at least one first point in the crowdsourced semantic map according to the matching result Cloud objects, update the original semantic map.
  • the matching result includes a point cloud object matching pair and an absence of point cloud object matching pair; for example, the first point cloud object A is in semantic If there is a matching second point cloud object B in the map, then the first point cloud object A and the second point cloud object B are a matching pair of point cloud objects; the first point cloud object A does not have a matching second point in the semantic map cloud object, there is no point cloud object matching pair.
  • the matching method adopts but is not limited to Hungarian matching, and can also be other map matching methods.
  • the matching results include two cases where there is an object matching pair in the crowdsourcing map and the semantic map and there is no object matching pair in the crowdsourcing map and the semantic map. Further, there is an object matching pair in the crowdsourcing map and the semantic map, that is, the first point cloud object in the crowdsourcing map has a matching second point cloud object in the semantic map; there is no object matching pair in the crowdsourcing map and the semantic map includes Two cases: the first case is that the first point cloud object in the crowdsourced map does not find a corresponding matching point cloud object in the semantic map, and the second case is that the second point cloud object in the semantic map is not found in the crowdsourced No corresponding matching point cloud object was found in the map.
  • the unmatched first point cloud object in the crowdsourcing map in the first case is called a new point cloud object (that is, the first point cloud object is a newly added object)
  • the second point cloud object that is not matched in the semantic map is called a disappearing point cloud object (that is, the second point cloud object does not exist in the newly collected crowdsourced map).
  • At least one first point cloud object in the crowdsourced semantic map is used to update the original semantic map, specifically, when the matching result is that the first point cloud object of the crowdsourced map has a matching second point cloud object in the semantic map object, the semantic information of the first point cloud object and the second point cloud object is weighted and averaged to obtain the semantic information of the new point cloud object; the semantic map is updated according to the semantic information of the new point cloud object;
  • the first point cloud object of the map is a new object, add the first point cloud object in the semantic map;
  • the second point cloud object does not exist in the newly collected crowdsourced map, add the original second point cloud object in the semantic map Point cloud objects are deleted to obtain an updated semantic map.
  • the semantic distance between the first point cloud object and each second point cloud object that is, according to the first semantic information and the second semantic information, determine the first The center position coordinate distance difference value, the point cloud object direction difference, the calibration frame size difference and the appearance feature difference between the point cloud object and each second point cloud object; according to the center position coordinate distance difference value, the point cloud object direction difference value , the difference value of the calibration frame size and the difference value of the appearance feature determine the semantic distance.
  • the crowdsourced map is matched with the semantic map to obtain the matching result.
  • determine the physical geometry information such as the center of the point cloud, the main direction of the point cloud, the size of the minimum calibration frame of the point cloud in the first semantic information of the first point cloud object in the crowdsourced map, and determine the second Physical geometry information such as the point cloud center, point cloud main direction, and point cloud minimum calibration frame size in the second semantic information of the point cloud object; according to the point cloud center, point cloud main Calculate the semantic distance between the first point cloud object in the crowdsourcing map and the second point cloud object in the semantic map according to the direction and the size of the minimum calibration frame of the point cloud; weight the obtained semantic distance with the preset weight, Obtain the final semantic distance; obtain the number n of the first point cloud object in the crowdsourcing map and the number m of the second point cloud object in the semantic map, and obtain an association matrix of n*m; use the semantic distance as an element of the association matrix; according to Predetermining a threshold and an association matrix to obtain the matching result of the first point cloud object in the crowdsourced map and the second point cloud object in the semantic map.
  • At least one object point cloud corresponding to the current collection area is obtained, at least one first point cloud object is constructed according to at least one object point cloud and corresponding first semantic information is extracted, wherein at least one first point cloud object and The corresponding first semantic information is used to construct a crowdsourced semantic map; in response to the existence of an original semantic map in the current collection area, the original semantic map is obtained, and at least one second point cloud object and corresponding second semantic information are obtained from the original semantic map ; Obtain a matching result of at least one first point cloud object and at least one second point cloud object according to the first semantic information and the second semantic information, and then use at least one first point cloud in the crowdsourcing semantic map according to the matching result
  • the object updates the original semantic map, that is, collects new data through crowdsourcing, and performs matching update with the existing semantic map, which provides a guarantee for map matching update, thereby improving the accuracy of map update.
  • determining the semantic distance of the point cloud object includes: determining a center position coordinate distance difference value according to the point cloud center coordinates of the first point cloud object and the point cloud center coordinates of the second point cloud object.
  • the first point cloud object is constructed according to the point cloud of the target object extracted from the newly collected crowdsourcing map, and the first semantic information is the physical and geometric information of the point cloud extracted from the first point cloud object, including point cloud Information such as object identification, point cloud center, point cloud convex hull, point cloud minimum calibration frame OBB, point cloud PCA coordinate system direction, point cloud main direction, and point cloud histogram.
  • point cloud Information such as object identification, point cloud center, point cloud convex hull, point cloud minimum calibration frame OBB, point cloud PCA coordinate system direction, point cloud main direction, and point cloud histogram.
  • the point cloud of the target object from the crowdsourcing map and construct the corresponding first point cloud object, and extract the first semantic information of the first point cloud object; determine the second point cloud object from the existing semantic map, and Second semantic information of the second point cloud object.
  • the center coordinates of the first point cloud object are (x1, y1, z1)
  • the main direction of the point cloud is a
  • the size of the calibration frame is (w1, h1, d1)
  • the shape feature is 30-dimensional vector s1
  • the number of original point clouds is n1.
  • the center coordinates of the second point cloud object in the semantic map are (x2, y2, z2), the main direction of the point cloud is b, the size of the calibration frame is (w2, h2, d2), and the shape feature is 30 dimensions (also Can be other digital dimensions) vector s2, the number of original point clouds is n2.
  • the center position coordinate distance difference value which can be expressed as :
  • determining the semantic distance of the point cloud object further includes: determining the point cloud object direction difference value according to the point cloud main direction of the first point cloud object and the point cloud main direction of the second point cloud object; The calibration frame size of the cloud object and the calibration frame size of the second point cloud object determine the difference value of the calibration frame size; according to the shape element of the point cloud histogram of the first point cloud object and the point cloud histogram of the second point cloud object Shape elements, to determine the difference value of appearance features.
  • ); the larger the angle, the greater the difference, the smaller the cos value; the smaller the angle, The smaller the difference, the larger the cos value; distance2 1-cos( ⁇ ), the smaller the difference, the smaller the direction distance.
  • the size of the calibration frame of the first point cloud object is (w1, h1, d1)
  • the size of the calibration frame of the second point cloud object is (w2, h2, d2)
  • the difference value of the calibration frame size can be expressed as:
  • the appearance feature difference value can be expressed as:
  • determining the semantic distance of the point cloud object further includes: by weighting the center position coordinate distance difference value, the point cloud object direction difference value, the calibration frame size difference value and the appearance feature difference value to obtain each first point The semantic distance between the cloud object and the second point cloud object in the semantic map.
  • the weight values w1, w2, w3, w4 corresponding to the distance difference value of the center position coordinates, the point cloud object direction difference value, the calibration frame size difference distance3 and the appearance feature difference value are obtained;
  • the weighted summation is used to obtain the semantic distance score, where the weight value ranges from 0 to 1. That is to say, by adding a weight to each difference value, and then adding it linearly, it becomes the final semantic distance; that is, the semantic distance is w1*distance1+w2*distance2+w3*distance3+w4*distance4.
  • one of w1, w2, w3, and w4 may have a weight value of 0, or two weight values may be 0, there is no limit here.
  • the collected crowdsourcing map is matched with the existing semantic map, and the crowdsourcing map is determined to be consistent with the existing semantic map.
  • the matching situation between the point cloud objects in the semantic map where the matching situation includes the first point cloud object in the crowdsourcing map has a matching second point cloud object in the semantic map, the first point cloud object in the crowdsourcing map
  • the object does not have a matching second point cloud object in the semantic map (that is, the first point cloud object is a new point cloud object) and the second point cloud object in the semantic map does not have a matching first point cloud object in the crowdsourcing map ( That is, the second point cloud object disappears), etc.
  • the crowdsourcing map is determined according to the geometric information of the object.
  • the map matching includes: obtaining at least one object point cloud corresponding to the current acquisition area, constructing at least one first point cloud object according to the at least one object point cloud and extracting the corresponding first semantic information, specifically, extracting Perform denoising and clustering on the point cloud of the object, construct at least one first point cloud object, and extract first semantic information of each first point cloud object.
  • the original semantic map is obtained, and at least one second point cloud object and corresponding second semantic information are obtained from the original semantic map, according to the first semantic information and the second semantic information , to determine the semantic distance between the first point cloud object and each second point cloud object.
  • the point cloud center coordinates of the first point cloud object and the point cloud center coordinates of the second point cloud object determine the center position coordinate distance difference value; according to the point cloud main direction of the first point cloud object and the second point cloud The main direction of the point cloud of the object, determine the difference value of the direction of the point cloud object; according to the calibration frame size of the first point cloud object and the calibration frame size of the second point cloud object, determine the difference value of the calibration frame size; according to the calibration frame size of the first point cloud object
  • the shape element of the point cloud histogram and the shape element of the point cloud histogram of the second point cloud object determine the difference value of the appearance feature; by scoring the center position coordinate distance difference, the point cloud object direction difference score, the calibration frame size difference score and The appearance feature difference score is weighted to obtain the semantic distance between each first point cloud object and the second point cloud object in the semantic map.
  • the map matching further includes: obtaining the number n of the first point cloud object and the number m of the second point cloud object, obtaining an association matrix of n*m, using the semantic distance as an element of the association matrix, according to a predetermined threshold and the correlation matrix to obtain a matching result of at least one first point cloud object and at least one second point cloud object.
  • each element in the affinity matrix represents the semantic distance between the first point cloud object in the crowdsourced map and the second point cloud object in the semantic map; for example, the first point cloud object in the crowdsourced map and the semantic
  • the number of second point cloud objects in the map is 3, forming a 3*3 association matrix
  • each element in the association matrix is the semantic distance between the first point cloud object and the second point cloud object in the semantic map.
  • the semantic distance is used as an element of the correlation matrix, and when the first element in the correlation matrix is greater than or equal to a predetermined threshold, it is determined that the first point cloud object and the second point cloud object corresponding to the first element are not matched by the point cloud object Yes; the first point cloud object and the second point cloud object corresponding to the first element are not point cloud object matching pairs include the first point cloud object is a new point cloud object or the second point cloud object is a disappearing point cloud object .
  • the bipartite graph matching is implemented by the Hungarian algorithm, and the Hungarian algorithm is used to perform the bipartite graph matching to obtain the object connection pair (object, crowd_object) with the smallest cost, as shown in Figure 5, which is an example of an object connection pair (object, crowd_object) in an embodiment of the present application.
  • Schematic diagram of a point cloud object matching pair which may be a point cloud object matching pair; in other words, the degree of association between each second point cloud object in the sub-graph and the corresponding first point cloud object (the degree of association can be understood as a matching cost value) .
  • the crowdsourcing collection map includes the first point cloud object 1, 2, 3, and the second point cloud object 4, 5, 6 in the existing semantic map, wherein, the first point cloud object 2 and the second point cloud object 4 and the semantic distance between the first point cloud object 2 and the second point cloud object 5 is greater than a predetermined value, which is an unmatched point cloud object, the first point cloud object 1 and the second point cloud object 4, and the first point cloud object If the semantic distance between the first point cloud object 1 and the second point cloud object 5 is less than the predetermined threshold, it is necessary to combine the first point cloud object 1 and the second point cloud object 4, and the semantic distance between the first point cloud object 1 and the second point cloud object 5 The distance is divided into a subgraph, and the existing Hungarian matching algorithm is used for the first point cloud object 1 and the second point cloud object 4, as well as the first point cloud object 1 and the second point cloud object 5, to obtain the matching cost value cost, The one with the smallest cost is determined as the final matching point cloud object of the first point cloud object 1.
  • a method for updating a semantic map includes: acquiring at least one object point cloud corresponding to the current collection area, constructing at least one first point cloud object according to the at least one object point cloud and extracting corresponding first semantic information, Determine whether there is an original semantic map in the current collection area,
  • the original semantic map in response to the existence of an original semantic map in the current collection area, obtain the original semantic map, and obtain at least one second point cloud object and corresponding second semantic information from the original semantic map, otherwise, use at least one first point cloud object and The first semantic information is to create a crowdsourcing semantic map, where the collection area refers to the collection area where the current collection terminal is located.
  • a method for updating a semantic map includes: obtaining a matching result of at least one first point cloud object and the at least one second point cloud object according to the first semantic information and the second semantic information, and updating the semantic map according to the matching result.
  • the center position coordinate distance difference value between the first point cloud object and each second point cloud object, point cloud object direction difference, calibration frame size difference and appearance features Difference determine the semantic distance according to the center position coordinate distance difference value, the point cloud object direction difference value, the calibration frame size difference value and the appearance feature difference value; obtain the number n of the first point cloud object in the crowdsourcing map and the second in the semantic map The number m of point cloud objects, get the correlation matrix of n*m;
  • semantic distance as an element of an association matrix; when there is a first element greater than or equal to a predetermined threshold in the association matrix, it is determined that the first point cloud object and the second point cloud object corresponding to the first element are not a point cloud object matching pair; when When at least one second element in the correlation matrix is smaller than the predetermined threshold, it is determined that the first point cloud object corresponding to the second element has at least one matching second point cloud object; the correlation matrix is segmented based on the second element to obtain several subgraphs ; Carry out bipartite graph matching on each sub-graph respectively, determine the matching cost value of the first point cloud object and each second point cloud object in the sub-graph; determine the second point cloud object corresponding to the matching cost value with the smallest value as the first point The cloud object's matching point cloud object.
  • the matching result is that the first point cloud object is a new point cloud object
  • the matching result is that the second point cloud object is a vanishing point cloud object add the first point cloud object to the semantic map
  • the second point cloud object is deleted from the semantic map
  • the matching result is that the first point cloud object has a point cloud object matching pair
  • the first point cloud object and the matching point cloud object are fused to obtain the fused point cloud object, and determine Fuse the fused semantic information of the point cloud; update the semantic map according to the fused semantic information.
  • the overall size of the map is greatly increased. Zoom out, and get more map information while extracting semantic information and compressing the data size; determine the matching result of crowdsourcing map and semantic map based on the semantic distance determined by semantic information; realize adding to semantic map according to different matching results Adding and deleting objects and averaging matching objects provide a guarantee for map matching updates, thereby improving the accuracy of map updates.
  • At least one object point cloud corresponding to the current collection area is obtained, at least one first point cloud object is constructed according to the at least one object point cloud and the corresponding first semantic information is extracted, and it is judged whether there is an original semantic map in the collection area , if, in response to the existence of the original semantic map in the current collection area, obtain the original semantic map, and obtain at least one second point cloud object and the corresponding second semantic information from the original semantic map, otherwise, when there is no semantic map in the collection area , create a semantic map according to the first semantic information, where the collection area refers to the collection area where the collection terminal is located.
  • a matching result of the at least one first point cloud object and the at least one second point cloud object is obtained.
  • the matching result is that the first point cloud object is a new point cloud object
  • the matching result is that the second point cloud object is a vanishing point cloud object
  • the object is deleted from the semantic map
  • the matching result is that there is a point cloud object matching pair for the first point cloud object
  • the matching point cloud object matching the first point cloud object is obtained from the second point cloud object
  • the first point cloud object The object and the matching point cloud object are fused to obtain the fused point cloud object, and the fused semantic information of the fused point cloud is determined, and then the semantic map is updated according to the fused semantic information.
  • a method for updating a semantic map comprising the following steps:
  • Semantic average processing is performed on the first point cloud object and the matching point cloud object that successfully matches the first point cloud object in the first point cloud object and at least one second point cloud object, that is, the first point cloud object and at least one second point cloud object.
  • the semantic information of the matched point cloud object that is successfully matched with the first point cloud object is semantically averaged, wherein the first semantic information and the second semantic information include the direction of the PCA coordinate system, the center of the point cloud, the smallest bounding box of the point cloud, and the point cloud Convex hull and histogram, the first semantic information refers to the semantic information of the newly collected first point cloud object; the second semantic information refers to the semantic information of the second point cloud object in the corresponding semantic map.
  • point cloud center in the second semantic information
  • a semantic information averaging processing method is provided. The method is applied to the terminal in FIG.
  • the direction of the PCA coordinate system is interpolated to obtain the updated direction of the PCA coordinate system; the point cloud center in the first semantic information and the point cloud center in the second semantic information are averaged to obtain the updated point cloud center.
  • the PCA coordinate system direction in the first semantic information and the PCA coordinate system direction in the second semantic information are quaternions, that is, the PCA coordinate system direction in the first semantic information is a quaternion q1, and the second The direction of the PCA coordinate system in the semantic information is the quaternion q2, and the obtained updated direction of the PCA coordinate system is the quaternion q update .
  • the updated PCA coordinate system direction obtained is quaternion q update , which is determined by quaternion slerp interpolation calculation, including the following steps:
  • the center of the point cloud (CX 1 , CY 1 , CZ 1 ) in the first semantic information in the local coordinate system of the first point cloud object, and in the second semantic information in the local coordinate system of the second point cloud object is subjected to mean value processing and coordinate transformation is performed to obtain the updated point cloud center C update in world coordinates, which can be expressed in the following way:
  • the semantic information averaging processing method further includes performing mean value processing on the minimum bounding box of the point cloud in the first semantic information and the minimum bounding box of the point cloud in the second semantic information to obtain an updated minimum bounding box of the point cloud; Based on the updated direction of the PCA coordinate system, the center of the updated point cloud is converted to the updated object coordinate system to obtain the center coordinates of the target point cloud.
  • the size of the bounding box of the smallest bounding box of the point cloud is width, height, and depth, and width ⁇ height ⁇ depth; according to the smallest bounding box of the point cloud (w1, h1, d1) in the first semantic information and the second The smallest bounding box (w2, h2, d2) of the point cloud in the semantic information is averaged, and the size of the smallest bounding box of the updated point cloud is (w update , h update , d update ).
  • w update (w1+w2)/2
  • h update (h1+h2)/2
  • d update (d1+d2)/2
  • the vertex coordinates of the updated bounding box are obtained.
  • the vertex coordinates of the updated bounding box on the x-axis are obtained according to the x-axis coordinates and width of the center of the target point cloud.
  • the vertex coordinates of the updated bounding box on the y-axis are obtained according to the y-axis coordinates and the height of the center of the target point cloud.
  • the vertex coordinates of the updated bounding box on the z-axis are obtained.
  • the vertex coordinates of the updated bounding box are obtained according to the vertex coordinates of the updated bounding box on the x-axis, the vertex coordinates on the y-axis, and the vertex coordinates on the z-axis.
  • the maximum and minimum values on the x-axis of the local coordinate system are obtained according to the x-axis coordinates and width of the target point cloud center; the maximum value on the y-axis of the local coordinate system is obtained according to the y-axis coordinates and height of the target point cloud center and the minimum value; according to the z-axis coordinates and depth of the target point cloud center, the maximum and minimum values on the z-axis of the local coordinate system are obtained; according to the maximum and minimum values on the x-axis, the maximum and minimum values on the y-axis, And the maximum and minimum values on the z-axis determine the vertex coordinates of the updated bounding box.
  • the maximum and minimum values on the x-axis, the maximum and minimum values on the y-axis, and the maximum and minimum values on the z-axis of the local coordinate system are reversed to the world coordinates, and the corresponding coordinate system is obtained.
  • the maximum and minimum values on the x-axis, the maximum and minimum values on the y-axis, and the maximum and minimum values on the z-axis are obtained to obtain the 8 vertex coordinates of the updated bounding box.
  • the point cloud convex hull in the first semantic information and the point cloud convex hull in the second semantic information are translated, rotated and coordinate transformed to obtain an updated point cloud convex hull; according to the object point cloud of the first point cloud object Perform coordinate system conversion to update the histogram in the second semantic information to obtain the updated histogram.
  • the point cloud convex hull M1 in the first semantic information and the point cloud convex hull M2 in the second semantic information are translated and rotated to C Update is the center and q update is the local coordinate of the rotation direction, and the fusion point cloud convex hull M local of the two point cloud convex hulls is obtained, and the existing point cloud convex hull calculation method is used to recalculate the fusion point cloud convex hull M local Convex hull, using the updated minimum bounding box of the point cloud (w update , h update , d update ) to filter the convex hull of the fused point cloud convex hull M local to obtain the filtered point cloud convex hull M local+update , and set The point cloud convex hull M local+update is transformed into the world coordinate system through the coordinate system, and the updated point cloud convex hull M update is obtained.
  • the histogram can be re-determined according to the object point cloud data of the newly collected crowdsourced map.
  • the object point cloud PLC of the first point cloud object 1 Convert to the PLC local in the local coordinate system of q update and C update , and obtain the PLC update by converting to the world coordinate system; use the updated minimum bounding box of the point cloud (w update , h update , d update ) to update After filtering the point cloud of the object, after filtering the points outside the minimum bounding box of the point cloud (w update , h update , d update ), recalculate the histogram to obtain the updated histogram of the same object in the crowdsourced map and the semantic map.
  • the average semantic information of the updated first point cloud object is obtained.
  • a method for updating a semantic map includes: constructing at least one first point cloud object according to at least one object point cloud and extracting corresponding first semantic information; in response to the presence of original Semantic map, obtain the original semantic map, and obtain at least one second point cloud object and the corresponding second semantic information from the original semantic map; The matched point cloud objects with successful object matching are semantically averaged to obtain semantically averaged point cloud objects; the semantically averaged point cloud objects are replaced with matching point cloud objects in the original semantic map to update the original semantic map.
  • the average semantic information includes at least any one of the updated PCA coordinate system orientation, the updated point cloud center, the updated vertex coordinates of the bounding box, the updated convex hull of the point cloud, and the updated histogram.
  • an interpolation process is performed on the direction of the PCA coordinate system in the first semantic information and the direction of the PCA coordinate system in the second semantic information to obtain an updated direction of the PCA coordinate system; according to the updated PCA Orientation of the coordinate system to obtain the average semantic information of the updated first point cloud object.
  • mean value processing is performed on the point cloud center in the first semantic information and the point cloud center in the second semantic information to obtain an updated point cloud center; According to the updated PCA coordinate system direction and the updated point cloud center, the average semantic information of the updated first point cloud object is obtained.
  • the minimum bounding box of the point cloud in the first semantic information and the minimum bounding box of the point cloud in the second semantic information Perform mean value processing and coordinate conversion processing to obtain the vertex coordinates of the updated bounding box; according to the updated PCA coordinate system direction, the updated point cloud center and the vertex coordinates of the updated bounding box, the average semantic information of the updated first point cloud object is obtained .
  • the convex hull of the point cloud in the first semantic information and the second semantic information
  • the convex hull of the point cloud is translated, rotated and coordinate transformed to obtain an updated convex hull of the point cloud; according to the updated PCA coordinate system direction, the updated point cloud center, the vertex coordinates of the updated bounding box and the updated point cloud convex hull, the updated The average semantic information of the first point cloud object of .
  • determine the updated PCA coordinate system direction update the point cloud center, update the vertex coordinates of the bounding box and update the point cloud convex hull, and also perform coordinates according to the object point cloud of the first point cloud object
  • System conversion updates the histogram in the second semantic information to obtain an updated histogram; according to the updated PCA coordinate system direction, updated point cloud center, updated vertex coordinates of the bounding box, updated point cloud convex hull and updated histogram, updated After the average semantic information of the first point cloud object.
  • a semantic map update method includes: constructing at least one first point cloud object according to at least one object point cloud and extracting the corresponding first semantic information, in response to the existence of original Semantic map, obtaining the original semantic map, and obtaining at least one second point cloud object and the corresponding second semantic information from the original semantic map, for the direction of the PCA coordinate system in the first semantic information and the PCA coordinates in the second semantic information
  • the direction of the PCA coordinate system is interpolated to obtain the updated direction of the PCA coordinate system.
  • the point cloud center in the first semantic information and the point cloud center in the second semantic information are averaged to obtain an updated point cloud center.
  • the minimum bounding box of the point cloud in the first semantic information and the second semantic information is subjected to mean value processing and coordinate conversion processing to obtain the vertex coordinates of the updated bounding box;
  • the convex hull of the point cloud in the first semantic information and the convex hull of the point cloud in the second semantic information are translated Rotation and coordinate conversion processing, to obtain the updated convex hull of the point cloud; again, according to the object point cloud of the first point cloud object, the coordinate system conversion is performed to update the histogram in the second semantic information, and the updated histogram is obtained; finally, according to the updated PCA coordinate system direction, update point cloud center, vertex coordinates, update point cloud convex hull and update histogram, get the average semantic information of the updated first point cloud object, update the semantic map according to the average semantic information, and update the semantic map based on The updated semantic map obtained after that is used for localization.
  • loop closure detection and positioning are performed according to the updated semantic map; wherein, the methods of positioning and loop closure detection can be realized through existing methods, and will not be repeated here.
  • loopback detection also known as closed-loop detection, refers to the ability of the device to identify that it has reached a certain scene and make the map closed-loop, that is, it can match the map generated at the moment with the map just generated.
  • the matching result of at least one first point cloud object and at least one second point cloud object includes the first unmatched point cloud object set in the crowdsourced semantic map and the second unmatched point in the original semantic map A collection of cloud objects.
  • the first set of unmatched point cloud objects refers to the set of point cloud objects in the crowdsourcing map that do not match the corresponding point cloud objects in the semantic map.
  • the point cloud objects in the crowdsourcing map may be newly added point clouds Objects;
  • the second set of unmatched point cloud objects refers to the set of point cloud objects in the semantic map that do not match the corresponding point cloud objects in the crowdsourced map, and the point cloud objects in the semantic map may be point cloud objects that have disappeared.
  • the matching point cloud object will not be matched during the matching process;
  • the newly added point cloud object refers to the point cloud object newly collected in the crowdsourcing map compared with the semantic map
  • the disappearing The point cloud object refers to the point cloud object that the newly collected crowdsourced map disappears compared with the semantic map.
  • the semantic distance is determined according to the semantic information of the newly collected crowdsourced map and the existing semantic map, and the semantic distance is weighted with the preset weight to obtain the final semantic distance; according to the semantic distance
  • the bipartite graph matching is performed between the crowdsourced map and the semantic map to obtain matching pairs of point cloud objects and/or no matching pairs of point cloud objects; the point cloud objects without matching pairs of point cloud objects are determined as unmatched point cloud objects.
  • the semantic distance is determined according to the newly collected crowdsourced map and the semantic information of the point cloud objects in the existing semantic map, and the obtained semantic distance is weighted with the preset weight to obtain the final semantic distance; according to Semantic distance matches the bipartite graph between the crowdsourced map and the semantic map to obtain the matching pairs of point cloud objects and/or the absence of point cloud object matching pairs, and determine the point cloud objects without point cloud object matching pairs as unmatched point clouds Objects; that is to say, the first unmatched point cloud object set that is identified as a new point cloud object in the crowdsourced map during the first matching process, and/or, the second unmatched point cloud object set that disappears in the semantic map collection of objects.
  • At least one first point cloud object is used to update the original semantic map, as shown in Figure 6, and the method is applied to the terminal in Figure 1 as an example, including the following steps:
  • Step 602 judging whether there is a bounding box collision between each first unmatched point cloud object in the first unmatched point cloud object set and the corresponding point cloud object within a preset semantic distance range in the original semantic map.
  • the preset semantic distance range is preset, and is used to determine from the semantic map and determine the corresponding first unmatched point cloud object in the first unmatched point cloud object set within the preset semantic distance range Point cloud object (can be understood as the first candidate point cloud object).
  • Bounding box collision that is, OBB collision (Oriented Bounding Box, direction bounding box)
  • OBB collision processing uses but is not limited to the separation axis theorem, which can be understood as if an axis can be found, the projections of two convex shapes on the axis do not overlap , then the two shapes do not intersect. If this axis does not exist, and those shapes are convex, you can be sure that two shapes intersect (not applicable for concave shapes, such as crescent shapes, and two crescent shapes may not intersect even if no separating axis can be found).
  • the OBB collision processing needs to test 15 separate axes to determine the intersection state of the OBB. Among them, there are 3 coordinate axes for each of the two OBBs, plus 9 axes perpendicular to each axis. The collision judgment is the same as the existing two-dimensional OBB collision, that is, if the projections of two polygons on all axes overlap, it is judged as a collision; otherwise, no collision occurs, so I won’t repeat it here.
  • each first unmatched point cloud object in the first unmatched point cloud object set acquires each first unmatched point cloud object in the first unmatched point cloud object set, and the semantic information of the corresponding point cloud object within the preset semantic distance range, calculate the semantic distance, and determine that within the preset semantic distance range
  • the first candidate point cloud object determine whether each first unmatched point cloud object in the first unmatched point cloud object set has a bounding box collision with the corresponding first candidate point cloud object, and obtain a bounding box collision result;
  • Bounding box collision results include the presence of bounding box collisions or the absence of bounding box collisions.
  • Step 604 judging whether there is a bounding box collision between each second unmatched point cloud object in the second unmatched point cloud object set and the corresponding point cloud object within the preset semantic distance range in the crowdsourcing semantic map.
  • the preset semantic distance range is preset, and is used to determine from the crowdsourced map and determine the corresponding second unmatched point cloud objects in the second unmatched point cloud object set within the preset semantic distance range Point cloud object (can be understood as the second candidate point cloud object).
  • Step 606 Update the original semantic map according to the bounding box collision result of the first unmatched point cloud object and/or the bounding box collision result of the second unmatched point cloud object.
  • the bounding box collision result of the first unmatched point cloud object there is no bounding box collision for the second unmatched point cloud object, and/or, the bounding box collision result of the second unmatched point cloud object is the first unmatched point cloud object.
  • the semantic map is updated; and according to the bounding box collision result of the first unmatched point cloud object, there is a bounding box collision for the second unmatched point cloud object, and/or, the second unmatched point cloud object has a bounding box collision
  • the bounding box collision result of the cloud object is that the first unmatched point cloud object has a bounding box collision, and the semantic map is updated.
  • the second unmatched point cloud object is deleted from the semantic map; when the second unmatched point cloud object When the bounding box collision result of the point cloud object is that there is no bounding box collision of the first unmatched point cloud object, the first unmatched point cloud object is added to the semantic map.
  • a method for updating an original semantic map based on a first unmatched point cloud object is provided, and the method is applied to the terminal in FIG. 1 as an example for illustration, including the following steps:
  • the bounding box collision result of the first unmatched point cloud object is that the first unmatched point cloud object has a bounding box collision
  • the first unmatched point cloud object set 1 of the crowdsourcing semantic map A includes the first unmatched point cloud object n and the first unmatched point cloud object m, the first unmatched point cloud object n and the preset Assume that there is a bounding box collision of point cloud object d in the original semantic map B (including point cloud object d and point cloud object f) within the distance range, and determine point cloud object d as the first colliding point cloud object.
  • the point cloud proportion is obtained.
  • the point cloud proportion refers to the percentage of the number of points in the object point cloud corresponding to the first unmatched point cloud object in the convex hull of the first collision point cloud object to the total number of points in the object point cloud; that is, the first unmatched point cloud
  • the object point cloud corresponding to the object and the object convex hull of the first collision point cloud object are projected or mapped to the same coordinate system, and the first unmatched point cloud object in the same coordinate system is determined to correspond to the object point cloud, and the first collision point cloud object
  • the number of points in the convex hull of the object, and the proportion of the point cloud is determined according to the number of points.
  • the first unmatched point cloud object corresponds to the first object point cloud, and the first point cloud object convex hull corresponding to the first collision point cloud object; determine the points in the first object point cloud in the first point cloud The number of points in the convex hull of the object, and the proportion of the point cloud is obtained according to the number of points and the total number of points in the point cloud of the first object.
  • the original semantic map is updated according to the point cloud proportion and the set threshold.
  • the point cloud proportion is greater than or equal to the set threshold, it is determined that the first unmatched point cloud object and the first collision point cloud object are the same object, and the original point cloud object in the original semantic map is retained; when the point cloud occupies When the ratio is less than the set threshold, it is determined that the first unmatched point cloud object and the first collision point cloud object are not the same object; and the first unmatched point cloud object is added to the original semantic map.
  • the first unmatched point cloud object and the corresponding first collision point cloud object are compared.
  • Cloud detection update the original semantic map according to the percentage of the number of points in the convex hull of the object point cloud corresponding to the first unmatched point cloud object in the convex hull of the first collision point cloud object to the total points of the object point cloud; Errors, or errors caused by noise interference, improve map update accuracy.
  • a method for updating the original semantic map based on the first unmatched point cloud object is provided, and the method is applied to the terminal in FIG. 1 as an example for illustration, including: when the first unmatched point cloud object When the bounding box collision result of the first unmatched point cloud object has a bounding box collision, determine the corresponding first collision point cloud object within the preset distance range from the original semantic map; determine the first unmatched point cloud object and the first Whether the collision point cloud object has a convex hull collision, if so, for the first unmatched point cloud object and the first collision point cloud object, obtain the point cloud proportion, and update the original semantic map according to the point cloud proportion and set the threshold, Otherwise, when there is no convex hull collision, it is determined that the first unmatched point cloud object and the first collided point cloud object are not the same object, and the first unmatched point cloud object is further added to the original semantic map.
  • the first unmatched point cloud object and the corresponding first collision point cloud object are convexly Package collision and point cloud detection, update the original semantic map. That is, OBB collision detection, convex hull collision detection, and point cloud judgment are performed in sequence to avoid mis-matching due to occlusion or sensor performance. For unmatched point cloud objects, matching secondary detection is performed to improve map update accuracy.
  • a method for updating an original semantic map based on a second unmatched point cloud object is provided, and the method is applied to the terminal in FIG. 1 as an example for illustration, including: when the second unmatched point cloud object When the bounding box collision result of the second unmatched point cloud object has a bounding box collision, determine the corresponding second collision point cloud object within a preset distance range from the crowdsourced semantic map.
  • the second unmatched point cloud object set of the original semantic map A includes the second unmatched point cloud object n and the second unmatched point cloud object m, the second unmatched point cloud object n and the preset distance
  • the method for updating the original semantic map based on the second unmatched point cloud object further includes: judging whether there is a convex hull collision between the second unmatched point cloud object and the second colliding point cloud object; When packets collide, determine that the second unmatched point cloud object and the second colliding point cloud object are the same object; otherwise, when there is no convex hull collision, determine that the second unmatched point cloud object and the second colliding point cloud object are not The same object, further, the second unmatched point cloud object is removed from the original semantic map.
  • a method for updating an original semantic map based on 3D point cloud crowdsourcing is provided.
  • the method is applied to the terminal in FIG. 1 as an example for illustration, including the following steps:
  • Step 902 matching the newly collected crowdsourced semantic map and the existing original semantic map in the same collection area to obtain a first set of unmatched point cloud objects and a second set of unmatched point cloud objects.
  • Step 904 judging whether the point cloud objects in the first unmatched point cloud object set and the second unmatched point cloud object set have bounding box collisions; if not, execute step 906; if yes, execute step 908.
  • Step 906 delete the second unmatched point cloud object from the original semantic map, and/or add the first unmatched point cloud object to the original semantic map.
  • Step 908 when the bounding box collision result is that the first unmatched point cloud object has a bounding box collision, perform step 910; if the bounding box collision result is that the second unmatched point cloud object has a bounding box collision, perform step 99.
  • Step 910 determine the corresponding first collision point cloud object within the preset distance range from the original semantic map.
  • Step 912 judge whether there is a convex hull collision between the first unmatched point cloud object and the first colliding point cloud object; if so, go to step 914; otherwise, go to step 918.
  • Step 914 according to the first unmatched point cloud object and the first colliding point cloud object, obtain the point cloud proportion.
  • Step 916 update the original semantic map according to the proportion of the point cloud and the set threshold.
  • Step 918 when there is no convex hull collision, determine that the first unmatched point cloud object and the first colliding point cloud object are not the same object.
  • Step 920 adding the first unmatched point cloud object to the original semantic map.
  • Step 99 determine the corresponding second collision point cloud object within the preset distance range from the crowdsourced semantic map.
  • Step 924 judging whether there is a convex hull collision between the second unmatched point cloud object and the second colliding point cloud object, if yes, go to step 930 , otherwise, go to step 926 .
  • Step 926 when there is no convex hull collision, determine that the second unmatched point cloud object and the second colliding point cloud object are not the same object.
  • Step 928 delete the second unmatched point cloud object from the original semantic map.
  • Step 930 when there is a convex hull collision, determine that the second unmatched point cloud object and the second colliding point cloud object are the same object.
  • the newly collected crowdsourced semantic map of the same collection area is matched with the existing original semantic map to obtain the first set of unmatched point cloud objects; determine the first unmatched point cloud object Whether there is a bounding box collision between each first unmatched point cloud object in the set and the corresponding point cloud object within the preset semantic distance range in the original semantic map; when the bounding box collision result of the first unmatched point cloud object is the second unmatched When there is no bounding box collision of the matching point cloud object, the second unmatched point cloud object is deleted from the original semantic map.
  • the bounding box collision result of the first unmatched point cloud object is that the first unmatched point cloud object has a bounding box collision
  • determine the corresponding first collision point cloud object within the preset distance range from the original semantic map according to the first The unmatched point cloud object and the first colliding point cloud object get the point cloud proportion; according to the point cloud proportion and the set threshold, the original semantic map is updated.
  • the bounding box collision result of the first unmatched point cloud object is that the bounding box collision of the first unmatched point cloud object exists, it is judged whether there is a convex hull collision between the first unmatched point cloud object and the first colliding point cloud object ;
  • determine the corresponding first collision point cloud object within the preset distance range from the original semantic map obtain the point cloud proportion according to the first unmatched point cloud object and the first collision point cloud object; Update the original semantic map according to the point cloud proportion and set the threshold; when there is no convex hull collision, determine that the first unmatched point cloud object and the first collision point cloud object are not the same object; convert the first unmatched point cloud Objects are added to the original semantic map.
  • the newly collected crowdsourced semantic map of the same collection area is matched with the existing original semantic map to obtain a second set of unmatched point cloud objects; judging the second unmatched point cloud object Whether there is a bounding box collision between each second unmatched point cloud object in the set and the corresponding point cloud object within the preset semantic distance range in the crowdsourced semantic map; when the bounding box collision result of the second unmatched point cloud object is the first When there is no bounding box collision of the unmatched point cloud objects, the first unmatched point cloud object is added to the original semantic map.
  • the bounding box collision result of the second unmatched point cloud object is that the second unmatched point cloud object has a bounding box collision
  • determine the corresponding second collision point cloud object within the preset distance range from the crowdsourced semantic map determine the second Whether there is a convex hull collision between the unmatched point cloud object and the second collision point cloud object; when there is no convex hull collision, it is determined that the second unmatched point cloud object and the second collision point cloud object are not the same object; the second unmatched point cloud object is not the same object;
  • the matching point cloud object is deleted from the original semantic map; when there is a convex hull collision, it is determined that the second unmatched point cloud object and the second colliding point cloud object are the same object.
  • the newly collected crowdsourced semantic map of the same collection area is matched with the existing original semantic map to obtain the first set of unmatched point cloud objects and the second set of unmatched point cloud objects ;
  • the bounding box collision result of the first unmatched point cloud object is that there is a bounding box collision for the first unmatched point cloud object
  • the convex hull collides determine the corresponding first collision point cloud object within the preset distance range from the original semantic map; get the point cloud proportion according to the first unmatched point cloud object and the first collision point cloud object; according to the point cloud Proportion and set the threshold, update the original semantic map; when there is no convex hull collision, determine that the first unmatched point cloud object and the first collision point cloud object are not the same object; add the first unmatched point cloud object to in the original semantic map.
  • the bounding box collision result of the second unmatched point cloud object is that the second unmatched point cloud object has a bounding box collision
  • determine the corresponding second collision point cloud object within the preset distance range from the crowdsourced semantic map determine the second Whether there is a convex hull collision between the unmatched point cloud object and the second collision point cloud object; when there is no convex hull collision, it is determined that the second unmatched point cloud object and the second collision point cloud object are not the same object; the second unmatched point cloud object is not the same object;
  • the matching point cloud object is deleted from the original semantic map; when there is a convex hull collision, it is determined that the second unmatched point cloud object and the second colliding point cloud object are the same object.
  • a method for processing lane markings is provided, which can be applied to a computer device.
  • the computer device can be a terminal or a server, and the terminal or server can be executed independently by the terminal or server itself, or can be executed by the terminal and the server.
  • the interaction between servers is realized. This embodiment is described by taking the method applied to computer equipment as an example, including the following steps:
  • Step 1002 acquire multiple frames of images of the target road section and pose points corresponding to each frame of images.
  • the pose point refers to a point with position information and attitude information. It can be understood as a point representing vehicle position information and orientation information. Position information can be represented by coordinates, and attitude information can be represented by angles.
  • the computer device acquires multiple frames of images collected in the target road section and the pose points corresponding to each frame of images from the vehicle-mounted system or server or the cloud.
  • Step 1004 determine the road section characteristics and road section speed of the target road section based on the pose points.
  • the road segment feature refers to the shape feature of the road segment. It can be understood as the shape of the road section.
  • the feature of the road section may be a straight road section or a curved road section, and the curved road section may be subdivided into various curved road sections with different degrees of curvature.
  • the road section speed refers to the speed at which the vehicle on which the device for collecting images is located travels on the target road section.
  • the computer device performs calculations based on the pose points corresponding to each frame of image, and determines the road section features and road section speed of the target road section according to the calculation results.
  • the computer device acquires the current pose point among the plurality of pose points corresponding to the target road section, acquires the next adjacent pose point after the current pose point as the first reference pose point, and acquires the first reference pose point The next adjacent pose point of the pose point is used as the second reference pose point, and the first slope between the current pose point and the first reference pose point is calculated, and the first reference pose point and the second reference pose point The second slope between the attitude points,
  • a (x1, y1), B (x2, y2), C (x3, y3) three pose points get point A as the current pose point, then point B is the first reference pose point, point C is the second reference pose point, the slope between point A and point B is (y2-y1)/(x2-x1), and the slope between point B and point C is (y3-y2)/(x3-x2 ), the curvature of point A is (y3-y2)/(x3-x2)-(y2-y1)/(x2-x1).
  • the computer device obtains the reference table of the corresponding relationship between the average curvature and road section features, and then adds the curvature corresponding to each current pose point to obtain the curvature of the curve, and divides the curvature of the curve by the pose The number of points is used to obtain the average curvature of the target, and the road section characteristics corresponding to the average curvature of the target are searched in the reference table to obtain the road section characteristics of the target road section.
  • the computer device performs curve fitting on multiple pose points to obtain the fitted curve, solves the curvature expression corresponding to the fitted curve according to the curvature solution formula, and brings the pose points into the curvature expression to obtain the pose point
  • Corresponding curvature calculate the difference between the curvatures corresponding to two pose points separated by a preset number of pose points, if the difference is less than the difference threshold, then the target road segment is a straight road segment, if the difference is greater than the difference threshold , then the target road segment is a curved road segment.
  • the computer device obtains the first pose point and the end pose point corresponding to the target road section, and the first moment corresponding to the first pose point and the second moment corresponding to the end pose point, and calculates the first pose point
  • the physical distance between the pose point and the end pose point, the time interval between the first moment and the second moment, and the speed of the road section is calculated based on the physical distance and the time interval.
  • the computer device obtains the moment corresponding to each pose point, calculates the physical distance between two adjacent pose points, calculates the time interval between the corresponding moments of two adjacent pose points, and physically Divide the distance by the time interval to get the speed between two adjacent pose points, add the speeds corresponding to each adjacent pose point to get the total speed, count the number of phase accelerations to get the total number, divide the total speed by the total number , to get the segment speed of the target segment.
  • step 1006 multiple frames of images are selected based on the features of the road section and the speed of the road section to obtain a target image.
  • the computer device determines the selection scheme according to the road section characteristics and the speed of the road section of the target road section, and then selects the target image from the multiple frames of images according to the selection scheme
  • the computer device obtains a matching table between road section attributes and selection schemes, road section attributes include multiple feature attributes, and a combination of multiple feature attributes corresponds to a selection scheme.
  • the multiple feature attributes corresponding to the target road section in Query the selection scheme corresponding to the target road section in the matching table.
  • the first characteristic attribute in the matching table is the road section feature, which is specifically divided into straight road sections and curved road sections with multiple degrees of curvature.
  • the second feature attribute in the matching table is the road section speed, which is specifically divided into multiple speed intervals.
  • the road section characteristics and road section speed corresponding to the road section determine the selection scheme corresponding to the target road section, and then select the target image from the multiple frames of images according to the selection scheme.
  • Step 1008 generating a target lane line of the target road segment based on the target image.
  • the lane line refers to a line segment in the road that plays a role of restraining and guaranteeing the driving of the vehicle.
  • Lane lines are important traffic signs in road traffic. Lane lines include but are not limited to white dotted lines, white solid lines, yellow dotted lines, and yellow solid lines. For example, pedestrian crossing lines that allow pedestrians to cross the lane, lane dividing lines that separate vehicles traveling in the same direction, and so on.
  • the computer device generates the target lane line of the target road section according to the target image.
  • the multi-frame images of the target road section and the pose points corresponding to each frame of the image are obtained, the road section characteristics and the road section speed of the target road section are determined according to the pose points, and according to the road section characteristics and the road section speed corresponding to the target road section, from A target image is selected from multiple frames of images, and a target lane line of the target road section is generated based on the target image.
  • the target lane line of the target road section is generated according to the target image, and the accuracy of the target lane line is improved.
  • selecting multiple frames of images based on road section features and road section speeds, and obtaining the target image includes: if the road section speed of the target road section is zero, then selecting one frame of images from the multiple frames of images as the target image; if the target road section If the road section is a straight line and the speed of the road section is not zero, the number of targets is determined based on the speed of the road section, and the number of target images is selected from the multi-frame images; if the target road section is a curved road section and the speed of the road section is not zero, the multi-frame images are used as the target image.
  • the computer device obtains that the speed of the road section corresponding to the target road section is zero, then selects a frame of image from the multi-frame images as the target image, if the target road section is a straight road section, then determines the number of targets according to the speed of the road section, and then selects an image from the multi-frame Select the target image of the target number in the image, if the target road section is a curved road section and the speed of the road section is not zero, then use all the images corresponding to the target road section as the target image.
  • the computing computing device selects the target image from the target image as a random selection, for example, if the target road section is a straight road section, then the number of targets is determined according to the speed of the road section, and then the target image of the target number is randomly selected from multiple frames of images .
  • the computer device selects the target image from the target graphics as interval sampling. For example, if the target road section is a straight line road section, the number of targets is determined according to the speed of the road section, and then the total number of multiple frames of images corresponding to the target road section is divided by the target. Quantity, get the sampling interval, and then select a target image for each sampling interval from the multi-frame images.
  • the target image is selected according to the characteristics of the road section and the speed of the road section, which reduces the number of target images participating in the generation of the target lane line, thereby reducing the error of the target lane line, and improving the accuracy of the target images participating in the generation of the target lane line. representative.
  • generating the target lane line of the target road section based on the target image includes: acquiring a set of three-dimensional sampling points corresponding to each frame of the target image; collecting and combining each three-dimensional sampling point into a fusion sampling point set; Curve fitting and sampling to obtain a target sampling point set; generate target lane lines based on the target sampling point set.
  • the set of three-dimensional sampling points refers to a set composed of multiple three-dimensional coordinate points representing lane lines in the image.
  • a three-dimensional coordinate point refers to a point with a certain meaning formed by three independent variables.
  • a three-dimensional coordinate point represents a point in space, and has different expressions in different three-dimensional coordinate systems.
  • a three-dimensional coordinate point (x, y, z) in a three-dimensional Cartesian coordinate system, x, y, and z respectively have The coordinate values of the X-axis, Y-axis, and Z-axis that have a common origin and are orthogonal to each other.
  • the computer device acquires a set of three-dimensional sampling points representing lane lines in each frame of the target image.
  • each three-dimensional sampling point into a fusion sampling point set.
  • the computer device combines multiple sets of three-dimensional sampling points into a set of fused sampling points.
  • curve fitting refers to a method of approaching discrete data with analytical expressions. It can be understood as using a continuous curve to approximately describe or compare a set of discrete points on a plane.
  • Sampling is the process of selecting individuals from a population. Sampling includes random sampling and non-random sampling. Random sampling refers to extracting individuals from the population according to the principle of randomization. Non-random sampling refers to selecting individuals from the population according to set rules. Exemplarily, the computer device performs curve fitting on the fusion sampling point set to obtain a fitting curve, and then samples the fitting curve to obtain a target sampling point set.
  • the computer device Generate the target lane line based on the set of target sampling points.
  • the computer device generates the target lane line according to the set of target sampling points.
  • the computer device connects any two adjacent target sampling points with a line segment, and the target lane line is formed by the target sampling point and the line segment between the adjacent target sampling points.
  • the computer device performs smoothing filtering on the set of target sampling points to obtain an optimized set of target sampling points, and generates the target lane line based on the optimized sequence of target sampling points.
  • a set of three-dimensional sampling points representing the lane line in each frame of the target image is acquired, multiple three-dimensional sampling point sets are combined into a fusion sampling point set, and curve fitting is performed on the fusion sampling point set to obtain a fitting curve , and then sample the fitting curve to obtain the target sampling point set, and generate the target lane line according to the target sampling point set.
  • the target sampling point set is obtained by curve fitting and sampling the fusion sampling point set.
  • the three-dimensional sampling points that deviate from the whole are filtered out, and the target sampling points with errors in the target sampling point set are reduced, and the improvement is improved.
  • the smoothness and accuracy of the target lane lines are achieved.
  • generating the target lane line of the target road segment based on the target image includes: if the speed of the road segment corresponding to the target road segment is not zero and includes a straight road segment and a curved road segment, then selecting the first target image corresponding to the straight road segment and the curved road segment respectively The corresponding second target image; the three-dimensional sampling point set corresponding to the first target image is formed into the first sampling point set, and the three-dimensional sampling point set corresponding to the second target image is formed into the second sampling point set; the first sampling point set is respectively Perform curve fitting and sampling with the second sampling point set to obtain a target sampling point set; generate a target lane line based on the target sampling point set.
  • the computer device judges that the speed of the target road segment is not zero, and the target road segment contains a straight road segment and a curved road segment, then calculates the speed of the straight road segment according to the corresponding pose points of the straight road segment, and calculates the speed of the straight road segment according to the speed of the straight road segment.
  • the number of targets is determined, and then the first target image of the target number is selected from the multi-frame images corresponding to the straight road section, and all images corresponding to the curved road section are used as the second target image.
  • the three-dimensional sampling point set corresponding to the first target image is formed into the first sampling point set
  • the three-dimensional sampling point set corresponding to the second target image is formed into the second sampling point set.
  • the computer device obtains the three-dimensional sampling point corresponding to the first target image.
  • a set of sampling points, combining the set of three-dimensional sampling points corresponding to the first target image into a first set of sampling points, then obtaining a set of three-dimensional sampling points corresponding to the second target image, and combining the set of three-dimensional sampling points corresponding to the second target image into a second set of sampling points Two sets of sampling points.
  • Curve fitting and sampling are performed on the first sampling point set and the second sampling point set respectively to obtain a target sampling point set.
  • the computer device performs curve fitting on the first sampling point set to obtain a first fitting curve, Sampling the first fitting curve to obtain the first target sampling point set, then performing curve fitting on the second sampling point set to obtain the second fitting curve, sampling the second fitting curve to obtain the second target sampling point point set, and finally the first target sampling point set and the second target sampling point set form a target sampling point set.
  • the computer device Generate the target lane line based on the set of target sampling points.
  • the computer device generates the target lane line according to the set of target sampling points.
  • curve fitting is performed on the first set of sampling points corresponding to the curved road section and the second set of sampling points corresponding to the straight road section, and the distribution characteristics of the first set of sampling points and the distribution characteristics of the second set of sampling points are retained , improving the accuracy of curve fitting, thereby improving the accuracy of the target sampling point set, generating the target lane line according to the target sampling point set, and improving the accuracy of the target lane line.
  • the lane line processing method further includes: if there is a reference lane line in the target road section, obtaining a set of reference sampling points corresponding to the reference lane line; The distance between lane lines.
  • the reference lane line refers to the lane line corresponding to the existing target road segment in the semantic map.
  • the computer device inquires whether there is a reference lane line of the target road segment in the semantic map, and if yes, obtains a set of reference sampling points corresponding to the reference lane line.
  • the degree of separation between the target lane line and the reference lane line is calculated, where the degree of separation refers to the degree of separation between objects.
  • the degree of separation can be expressed by the distance between objects, or by the average distance between objects, and so on.
  • the computer device calculates the degree of separation between the target lane line and the reference lane line according to the target sampling point set and the reference sampling point set.
  • the lane line processing method also includes: comparing the degree of separation with a threshold of separation, and if the degree of separation is smaller than the threshold of separation, performing curve fitting and sampling on the set of reference sampling points and the set of target sampling points, An updated sampling point set is obtained, and an updated lane line is generated based on the updated sampling point set; if the distance is equal to or greater than the distance threshold, an updated lane line is generated based on the target sampling point set.
  • the computer device compares the degree of separation with the degree of separation threshold, and if the degree of separation is less than the threshold of degree of separation, the set of reference sampling points and the set of target sampling points form a set of fusion sampling points, and the set of fusion sampling points Perform curve fitting and sampling to obtain an updated sampling point set, and use the updated sampling point set to generate an updated lane line; if the separation is equal to or greater than the separation threshold, use the target sampling point set to generate an updated lane line.
  • the reference sampling point set and the target sampling point set are used for curve fitting and sampling, and the updated sampling point set is used to generate an updated lane line, which can be It is understood that the target sampling point set is used to adjust the reference sampling point set to improve the accuracy of updating lane lines. If the degree of separation is greater than or equal to the separation degree threshold, it means that the error of the reference sampling point set is large, and the target sampling point is used directly.
  • the set of points generates updated lane lines and replaces reference lane lines with updated lane lines, which improves the accuracy of lane lines in semantic maps.
  • calculating the distance between the target lane line and the reference lane line includes: acquiring target sampling points in the set of target sampling points; calculating the distance between the target sampling point and the reference The interval distance between the reference sampling points in the sampling point set is based on the interval distance to determine the two comparison sampling points corresponding to the target sampling point from the reference sampling point set; calculate the vertical distance between the target sampling point and the straight line where the two comparison sampling points are located; Count each vertical distance to obtain the degree of separation between the target lane line and the reference lane line.
  • a target sampling point in the target sampling point set is acquired.
  • the computer device acquires a target sampling point from the target sampling point set.
  • the computer device calculates the target sampling point According to the separation distance between each reference sampling point in the set of reference sampling points, two control sampling points corresponding to the target sampling point are selected.
  • the computer device compares multiple separation distances corresponding to the target sampling point, and selects a reference sampling point corresponding to the shortest separation distance and a reference sampling point corresponding to the second shortest separation distance as comparison sampling points.
  • the computer equipment adds up the separation distances to obtain the sum of the distances, divides the sum of the distances by the number of separation distances to obtain the average value of the separation distances, compares each separation distance with the average value of the separation distances, and selects the average value of the separation distance.
  • the two reference interval distances with the closest values, and the reference sampling points corresponding to the two reference interval distances are used as control sampling points.
  • the computer device calculates the vertical distance from the target sampling point to the straight line where the two comparison points are located according to the calculation method of the vertical distance from the sampling point to the straight line in three-dimensional space.
  • the target sampling point A and the two control sampling points are respectively B and C, and A, B, and C are all represented by sampling coordinate points, and the target sampling point A is subtracted from the control sampling point B to obtain the vector BA, Control sampling point B minus control sampling point
  • C obtains the vector BC, cross-multiplies the vector BA and the vector BC to obtain the cross-product result, multiplies the length of the vector BA and the length of the vector BC to obtain the product result, divides the product result by the cross-product result to obtain the vector BA and vector BC
  • the sine value of the included angle ⁇ multiply the length of the vector BA by the sine value of ⁇ , and obtain the vertical distance from the target sampling point A to the straight line where the control sampling points B and C are located.
  • the computer device performs statistics on each vertical distance according to a set calculation rule to obtain the degree of separation between the set of target sampling points and the set of reference sampling points.
  • the computer device compares the respective vertical distances, and selects an intermediate value of the vertical distances as the degree of separation between the target sampling point set and the reference sampling point set.
  • the computer device adds the vertical distance corresponding to each target sampling point in the target sampling point set, and divides the result obtained by the addition by the total number of target sampling points in the target sampling point set to obtain the target sampling point The distance between the set of points and the set of reference sampling points.
  • the lane line processing method further includes:
  • each matching sampling point set is formed into a matching fusion sampling point set, and curve fitting and sampling are performed on the matching fusion sampling point set to obtain a matching target sampling point set; a matching target lane line is generated based on the matching target sampling point set .
  • the mean value of the pose error refers to the mean value of the pose point errors. It can be understood that the average value of the pose point errors corresponding to the target road segment can measure the accuracy of the pose point of the target road segment.
  • the pose point error can be a relative pose error, an absolute trajectory error, and so on.
  • the computer device obtains the target lane lines corresponding to the target road sections provided by multiple vehicles, and then obtains the set of target sampling points corresponding to each target lane line and the average value of the pose error, and combines each average pose error with If the average value of the pose error is less than the error threshold, it is determined that the set of target sampling points corresponding to the average value of the pose error is a set of matching sampling points, and each set of matching sampling points is composed of a set of matching fusion sampling points.
  • the set of sampling points is fused for curve fitting and sampling to obtain a set of matching target sampling points, and the matching lane line is generated based on the set of matching target sampling points, and then the matching lane line is used as the lane line of the target road section in the semantic map.
  • the target sampling point set with the average value of the pose error smaller than the error threshold is selected as the set of matching sampling points.
  • the average value of the pose error is small, indicating that the pose point The accuracy rate is high, and the accuracy rate of the target sampling point set corresponding to the average value of the pose error is high.
  • the target sampling point set with high accuracy rate is used as the matching sampling point set, which improves the accuracy rate of the matching target sampling point set.
  • the set of sampling points Based on the matching target The set of sampling points generates the target lane line, which improves the accuracy of matching the target lane line.
  • the following is the application scenario of the semantic map update method, as shown in Figure 12, including three parts: original data processing, crowdsourcing mapping, positioning and loop detection.
  • the 3D LiDAR point cloud data acquired by LiDAR) and the image (such as 2D camera image) collected by the image acquisition device (such as a camera) are perceived to obtain a newly collected crowdsourcing map, and the target object point is extracted from the newly collected crowdsourcing map.
  • the perception identification points of the traffic signs in the point cloud are determined through the deep learning method of the perception group, and these points marked as traffic signs can be directly taken over As a traffic sign point cloud; through the perceptual deep learning model to perceive the 2D lane marking frame in the 2D camera image, the 3D LiDAR point cloud of the lidar is projected into the 2D camera image, extract the points in the lane marking frame, and then restore the 3D , these points are regarded as the points of the lane line; it also includes the perception of other objects with traffic signs to obtain the corresponding point cloud.
  • the first point cloud object (such as the object object) according to the target object point cloud and extract the corresponding first semantic information, and perform crowdsourcing and mapping according to the constructed first point cloud object; further, determine whether the newly collected collection area has Figure (that is, whether there is a semantic map), if not, build the map according to the first point cloud object; when there is a semantic map, match the crowdsourced map with the existing semantic map through Hungarian matching, realize change detection, and detect the result Including adding objects (which can be understood as new point cloud objects in existing semantic maps), deleting objects (which can be understood as point cloud objects disappearing in existing semantic maps) and average objects (which can be understood as existing semantic maps and public Matching point cloud object pairs existing in the package map); update the semantic terrain according to the detection results.
  • the semantic map update method please refer to the limitation of the semantic map update method above, which will not be repeated here.
  • positioning and loop detection are performed according to the updated semantic map, which improves the detection ability of loop detection, reduces cumulative errors, improves positioning accuracy and speed and avoids obstacles; among them, the positioning and loop detection methods can be used in existing methods implementation, and will not be repeated here.
  • the positioning and loop detection methods can be used in existing methods implementation, and will not be repeated here.
  • loopback detection also known as closed-loop detection, refers to the ability of the device to identify that it has reached a certain scene and make the map closed-loop, that is, it can match the map generated at the moment with the map just generated.
  • the overall size of the map is greatly increased. Zoom out, and get more map information while extracting semantic information and compressing the data size; determine the matching result of crowdsourcing map and semantic map based on the semantic distance determined by semantic information; realize adding to semantic map according to different matching results Adding and deleting objects and averaging matching objects provide a guarantee for map matching updates, thereby improving the accuracy of map updates.
  • FIG. 13 is a schematic flowchart of a path planning method according to an embodiment of the present application.
  • the subject of execution of the method may be an electronic device with a computing function, for example, a microcomputer, a server, and mobile devices such as a notebook computer and a tablet computer.
  • a computing function for example, a microcomputer, a server, and mobile devices such as a notebook computer and a tablet computer.
  • the method of the present application is not limited to the flow sequence shown in FIG. 13 if substantially the same result is obtained.
  • the method may be implemented by a processor calling a computer-readable instruction stored in a memory, as shown in FIG. 13 , the method may include the following steps:
  • the crowdsourced lane line map is also a semantic map, which can be a partial crowdsourced lane line map generated during vehicle driving.
  • the crowdsourced map is a vehicle with environmental awareness, which collects the surrounding environment and road information data during the driving process. For example, traffic element information such as roads, traffic signs, lane lines, obstacles, etc., the collected information data is uploaded to the cloud, and the cloud builds a highly restored and instantly updated driving map based on the feedback data.
  • the original semantic map is constructed by receiving information collected by sensor devices.
  • the sensor devices include image sensors and radar sensors. Radar sensors can be used for autonomous driving and meet accuracy requirements, and are used to provide point cloud perception.
  • the image data may be collected by an image sensor, such as a camera.
  • Use radar sensors such as millimeter-wave radar, lidar, etc., to collect point cloud data.
  • Image sensors and radar sensors can be mounted on a mobile device, such as an autonomous vehicle.
  • Lidar can include mechanical Lidar, semi-solid Lidar, or solid-state Lidar.
  • the self-driving vehicle is driving on the road, and the image data used to describe the environment space where the vehicle equipment is located is obtained through the image sensor installed on the self-driving vehicle to obtain an initial data set; the radar sensor is used to obtain It is used to describe the point cloud data of the environment space in which the vehicle equipment is located, and obtain an initial data set.
  • Each sensor perceives and captures an initial data set used to describe the environmental space where the on-board device is located, and each initial data set corresponds to a sensor, and then at least two sensors capture at least two initial data sets, wherein the type of the initial data set Including but not limited to image data and point cloud data.
  • the original semantic map obtain traffic information such as roads, traffic signs, lane lines, obstacles, etc. in the semantic map, and adjust the steering, speed, path planning, lane change, etc. of running vehicles to achieve safe driving on the road.
  • the original semantic map is obtained through the above-mentioned updating method of the semantic map, which will not be repeated here.
  • FIG. 14 is a schematic structural diagram of an apparatus for updating a semantic map according to an embodiment of the present application.
  • the apparatus 140 for updating a semantic map includes an acquisition module 141 , a first extraction module 142 , a second extraction module 143 and an update module 144 .
  • the acquiring module 141 is configured to acquire at least one object point cloud corresponding to the current acquisition area.
  • the first extraction module 142 is configured to construct at least one first point cloud object and extract corresponding first semantic information according to at least one object point cloud, wherein at least one first point cloud object and corresponding first semantic information are used to construct a crowd Package Semantic Maps.
  • the second extraction module 143 is configured to obtain the original semantic map in response to the existence of the original semantic map in the current collection area, and obtain at least one second point cloud object and corresponding second semantic information from the original semantic map.
  • the update module 144 is configured to obtain a matching result of at least one first point cloud object and at least one second point cloud object according to the first semantic information and the second semantic information, and use at least one of the crowdsourcing semantic maps according to the matching result A first point cloud object to update the original semantic map.
  • FIG. 15 is a schematic structural diagram of a path planning device according to an embodiment of the present application.
  • the path planning device 150 includes an acquisition module 151 and a path planning module 314 .
  • the obtaining module 151 is configured to obtain an original semantic map, wherein the original semantic map is obtained through the above-mentioned semantic map update method.
  • the path planning module 314 is configured to perform path planning according to the original semantic map.
  • the writing order of each step does not mean a strict execution order and constitutes any limitation on the implementation process.
  • the specific execution order of each step should be based on its function and possible
  • the inner logic is OK.
  • FIG. 16 is a schematic structural diagram of a computer device according to an embodiment of the present application.
  • the computer device 160 includes a memory 161 and a processor 162 coupled to each other, and the processor 162 is used to execute the program instructions stored in the memory 161, so as to realize the steps of the above embodiment of the method for updating the semantic map, or to realize the implementation of the above method for path planning. example steps.
  • the computer device 160 may include but not limited to: a microcomputer and a server, which are not limited here.
  • the processor 162 is configured to control itself and the memory 161 to implement the steps of the above embodiment of the semantic map updating method, or to implement the steps of the above embodiment of the path planning method.
  • the processor 162 may also be referred to as a CPU (Central Processing Unit, central processing unit), and the processor 162 may be an integrated circuit chip having a signal processing capability.
  • the processor 162 can also be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field-programmable gate array (Field-Programmable Gate Array, FPGA) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
  • a general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
  • the processor 162 may be jointly realized by an integrated circuit chip.
  • FIG. 17 is a schematic structural diagram of a non-volatile computer-readable storage medium according to an embodiment of the present application.
  • the non-volatile computer-readable storage medium 170 is used to store a computer program 1701.
  • the computer program 1701 is executed by a processor, for example, when executed by the processor 162 in the embodiment of FIG.
  • the steps in the embodiment of the method are updated, or to implement the steps in the embodiment of the path planning method above.
  • the disclosed methods and related devices may be implemented in other ways.
  • the related device implementations described above are only illustrative.
  • the division of modules or units is only a logical function division.
  • units or components may be combined or Integrate into another system, or some features may be ignored, or not implemented.
  • the mutual coupling or direct coupling or communication disconnection shown or discussed may be through some interfaces, and the indirect coupling or communication disconnection of devices or units may be in electrical, mechanical or other forms.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
  • An integrated unit may be stored in a computer-readable storage medium if it is realized in the form of a software function unit and sold or used as an independent product.
  • the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) execute all or part of the steps of the methods in various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc., which can store program codes. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Multimedia (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Computation (AREA)
  • Remote Sensing (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Geometry (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Graphics (AREA)
  • Instructional Devices (AREA)

Abstract

Disclosed in the present application is a semantic map updating method. The method comprises: acquiring at least one object point cloud which corresponds to the current collection region; constructing at least one first point cloud object according to the at least one object point cloud, and extracting corresponding first semantic information; acquiring from an original semantic map at least one second point cloud object and corresponding second semantic information; and according to the first semantic information and the second semantic information, obtaining a matching result of the at least one first point cloud object and the at least one second point cloud object, and then, according to the matching result, updating the original semantic map by using the at least one first point cloud object in a crowdsourcing semantic map. Further disclosed in the present application are a path planning method and related apparatuses. By means of the present application, new data is collected by means of crowdsourcing, and is matched with an existing semantic map for updating, thereby providing a guarantee for map matching and updating, and thus improving the map updating precision.

Description

语义地图更新方法、路径规划方法以及相关装置Semantic map update method, path planning method, and related devices 【技术领域】【Technical field】
本申请的所公开实施例涉及自动驾驶地图与定位技术领域,且更具体而言,涉及一种语义地图更新方法、路径规划方法以及相关装置。The disclosed embodiments of the present application relate to the field of automatic driving map and positioning technology, and more specifically, relate to a semantic map updating method, a path planning method and related devices.
【背景技术】【Background technique】
随着计算机技术的发展,自动驾驶技是未来趋势(如,人类出行、物流等领域)。在自动驾驶的解决方案中,原则上都是让汽车实现智能化的过程:“感知-定位-决策-执行”。而高精地图是感知和定位的核心所在。因此,地图的采集、生成和更新,也成了自动驾驶的核心技术之一。With the development of computer technology, autonomous driving technology is the future trend (such as human travel, logistics and other fields). In the autonomous driving solution, in principle, it is the process of making the car intelligent: "perception-positioning-decision-execution". The high-precision map is the core of perception and positioning. Therefore, the collection, generation and update of maps has become one of the core technologies of autonomous driving.
建图比较常见的方案有两种,专业采集和众包采集。其中众包采集,可以理解为用户通过自动驾驶车辆自身的传感器,或者其他低成本的传感器,收集道路数据传到云端进行数据融合,并通过这种融合的方式提高数据精度,来完成众包式高精地图或者语义地图的制作。现阶段众包建图方案大部分是基于二维视觉数据生成三维点云地图再语义化,但是通过此类方法获取的三维点云稀疏且精度低,进而难以确保生成的自动驾驶地图的精度。There are two common schemes for map building, professional collection and crowdsourcing collection. Among them, crowdsourcing collection can be understood as the user collects road data through the sensor of the self-driving vehicle or other low-cost sensors and transmits it to the cloud for data fusion, and improves the accuracy of the data through this fusion to complete the crowdsourcing. Production of high-precision maps or semantic maps. At present, most crowdsourcing mapping solutions are based on 2D visual data to generate 3D point cloud maps and then semantically convert them into semantic maps. However, the 3D point clouds obtained by such methods are sparse and have low precision, making it difficult to ensure the accuracy of the generated autonomous driving maps.
【发明内容】【Content of invention】
根据本申请的实施例,本申请提出一种语义地图更新方法、路径规划方法以及相关装置,以解决上述问题。According to the embodiments of the present application, the present application proposes a semantic map updating method, a path planning method and related devices to solve the above problems.
本申请的第一方面公开了语义地图更新方法,所述方法包括:获取当前采集区域对应的至少一个物体点云;根据所述至少一个物体点云构造至少一个第一点云物体并提取对应的第一语义信息,其中所述至少一个第一点云物体及对应的第一语义信息用于构建众包语义地图;响应于所述当前采集区域存在原始语义地图,获取所述原始语义地图,并从所述原始语义地图中获取所述至少一个第二点云物体以及对应的第二语义信息;根据所述第一语义信息和所述第二语义信息,获得所述至少一个第一点云物体和所述至少一个第二点云物体的匹配结果,并根据所述匹配结果,利用所述众包语义地图中的所述至少一个第一点云物体,更新所述原始语义地图。The first aspect of the present application discloses a semantic map update method, the method comprising: obtaining at least one object point cloud corresponding to the current acquisition area; constructing at least one first point cloud object according to the at least one object point cloud and extracting the corresponding First semantic information, wherein the at least one first point cloud object and the corresponding first semantic information are used to construct a crowdsourced semantic map; in response to the existence of an original semantic map in the current collection area, obtain the original semantic map, and Obtain the at least one second point cloud object and corresponding second semantic information from the original semantic map; obtain the at least one first point cloud object according to the first semantic information and the second semantic information and the matching result of the at least one second point cloud object, and update the original semantic map by using the at least one first point cloud object in the crowdsourced semantic map according to the matching result.
本申请第二方面公开了一种路径规划方法,包括:获取语义地图;依据所述原始语义地图进行路径规划;其中,所述原始语义地图为通过如第一方面中所述的语义地图的更新方法而得到的。The second aspect of the present application discloses a path planning method, including: obtaining a semantic map; performing path planning according to the original semantic map; wherein, the original semantic map is updated through the semantic map as described in the first aspect obtained by the method.
本申请第三方面公开了一种语义地图更新装置,所述装置包括:获取模块,用于获取当前采集区域对应的至少一个物体点云;第一提取模块,用于根据所述至少一个物体点云构造至少一个第一点云物体并提取对应的第一语义信息,其中所述至少一个第一点云物体及对应的第一语义信息用于构建众包语义地图;第二获取模块,用于响应于所述当前采集区域存在原始语义地图,获取所述原始语义地图,并从所述原始语义地图中获取至少一个第二点云物体以及对应的第二语义信息;更新模块,用于根据所述第一语义信息和所述第二语义信息,获得所述至少一个第一点云物体和所述至少一个第二点云物体的匹配结果,并根据所述匹配结果,利用所述众包语义地图中的所述至少一个第一点云物体,更新所述原始语义地图。The third aspect of the present application discloses a device for updating a semantic map, the device comprising: an acquisition module, configured to acquire at least one object point cloud corresponding to the current acquisition area; a first extraction module, configured to The cloud constructs at least one first point cloud object and extracts the corresponding first semantic information, wherein the at least one first point cloud object and the corresponding first semantic information are used to construct a crowdsourced semantic map; the second acquisition module is used to Responding to the presence of an original semantic map in the current collection area, obtain the original semantic map, and obtain at least one second point cloud object and corresponding second semantic information from the original semantic map; an update module, configured to The first semantic information and the second semantic information, obtain the matching result of the at least one first point cloud object and the at least one second point cloud object, and use the crowdsourcing semantics according to the matching result The at least one first point cloud object in the map updates the original semantic map.
本申请第四方面公开了一种路径规划装置,包括:获取模块,用于获取语义地图,其中,所述原始语义地图为通过如第一方面中所述的语义地图的更新方法而得到的;路径规划模块,用于依据所述原始语义地图进行路径规划。The fourth aspect of the present application discloses a path planning device, including: an acquisition module, configured to acquire a semantic map, wherein the original semantic map is obtained through the method for updating the semantic map as described in the first aspect; A path planning module, configured to perform path planning according to the original semantic map.
本申请第五方面公开了一种计算机设备,包括存储器和处理器,所述处理器用于执行所述存储器中存储的程序指令,以实现第一方面中所述的语义地图更新方法,或以实现第二方面中所述的路径规划方法。The fifth aspect of the present application discloses a computer device, including a memory and a processor, the processor is used to execute the program instructions stored in the memory, so as to realize the semantic map update method described in the first aspect, or to realize The path planning method described in the second aspect.
本申请第六方面公开了一种非易失性计算机可读存储介质,其上存储有程序指令,所述程序指令被处理器执行时实现第一方面中所述的语义地图更新方法,或以实现第二方面中所述的路径规划方法。The sixth aspect of the present application discloses a non-volatile computer-readable storage medium, on which program instructions are stored. When the program instructions are executed by a processor, the semantic map update method described in the first aspect is implemented, or in the form of Implement the path planning method described in the second aspect.
本申请的有益效果有:获取当前采集区域对应的至少一个物体点云,根据至少一个物体点云构造至少一个第一点云物体并提取对应的第一语义信息,其中至少一个第一点云物体及对应的第一语义信息用于构建众包语义地图;响应于当前采集区域存在原始语义地图,获取原始语义地图,并从原始语义地图中获取至少一个第二点云物体以及对应的第二语义信息;根据第一语义信息和第二语义信息,获得至少一个第一点云物体和至少一个第二点云物体的匹配结果,进而根据匹配结果,利用 众包语义地图中的至少一个第一点云物体更新原始语义地图,即通过众包采集到新的数据,与已有的语义地图进行匹配更新,为地图匹配更新提供了保证,进而提高了地图更新精度。The beneficial effects of the present application include: acquiring at least one object point cloud corresponding to the current collection area, constructing at least one first point cloud object and extracting corresponding first semantic information according to at least one object point cloud, wherein at least one first point cloud object and the corresponding first semantic information are used to construct a crowdsourced semantic map; in response to the existence of an original semantic map in the current collection area, the original semantic map is obtained, and at least one second point cloud object and the corresponding second semantic map are obtained from the original semantic map information; according to the first semantic information and the second semantic information, obtain a matching result of at least one first point cloud object and at least one second point cloud object, and then use at least one first point in the crowdsourced semantic map according to the matching result The cloud object updates the original semantic map, that is, collects new data through crowdsourcing, and performs matching update with the existing semantic map, which provides a guarantee for map matching update, thereby improving the accuracy of map update.
【附图说明】【Description of drawings】
下面将结合附图及实施方式对本申请作进一步说明,附图中:The application will be further described below in conjunction with the accompanying drawings and embodiments. In the accompanying drawings:
图1是本申请一实施例中语义地图更新方法的应用环境图;Fig. 1 is the application environment diagram of the semantic map updating method in an embodiment of the present application;
图2是本申请实施例的语义地图更新方法的流程示意图;Fig. 2 is a schematic flow chart of a method for updating a semantic map according to an embodiment of the present application;
图3是本申请一实施例中点云物体的语义信息示意图;Fig. 3 is a schematic diagram of semantic information of a point cloud object in an embodiment of the present application;
图4是本申请又一实施例中点云物体的部分语义信息示意图;Fig. 4 is a schematic diagram of partial semantic information of a point cloud object in another embodiment of the present application;
图5是本申请一实施例中点云物体匹配对的示意图;Fig. 5 is a schematic diagram of a point cloud object matching pair in an embodiment of the present application;
图6是本申请一实施例的包围盒碰撞处理的流程示意图;FIG. 6 is a schematic flowchart of bounding box collision processing according to an embodiment of the present application;
图7是本申请一实施例的包围盒碰撞的效果示意图;Fig. 7 is a schematic diagram of the effect of bounding box collision according to an embodiment of the present application;
图8是本申请实施例点云物体误匹配的效果示意图;Fig. 8 is a schematic diagram of the effect of point cloud object mismatching in the embodiment of the present application;
图9是本申请实施例的包围盒碰撞处理的又一流程示意图;FIG. 9 is another schematic flowchart of bounding box collision processing according to the embodiment of the present application;
图10是本申请实施例的车道线更新的流程示意图;FIG. 10 is a schematic flow chart of lane line update in the embodiment of the present application;
图11是本申请实施例的采样点的效果示意图;Fig. 11 is a schematic diagram of the effect of sampling points in the embodiment of the present application;
图12是本申请实施例的应用的场景示意图;FIG. 12 is a schematic diagram of the application scene of the embodiment of the present application;
图13是本申请实施例的路径规划方法的流程示意图;FIG. 13 is a schematic flowchart of a path planning method according to an embodiment of the present application;
图14是本申请实施例的语义地图更新装置的结构示意图;FIG. 14 is a schematic structural diagram of a device for updating a semantic map according to an embodiment of the present application;
图15是本申请实施例的路径规划装置的结构示意图;FIG. 15 is a schematic structural diagram of a path planning device according to an embodiment of the present application;
图16是本申请实施例的计算机设备的结构示意图;FIG. 16 is a schematic structural diagram of a computer device according to an embodiment of the present application;
图17为本申请实施例的非易失性计算机可读存储介质的结构示意图。FIG. 17 is a schematic structural diagram of a non-volatile computer-readable storage medium according to an embodiment of the present application.
【具体实施方式】【Detailed ways】
在本申请中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference in this application to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The occurrences of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is understood explicitly and implicitly by those skilled in the art that the embodiments described herein can be combined with other embodiments.
为使本领域的技术人员更好地理解本申请的技术方案,下面结合附图和具体实施方式对本申请的技术方案做进一步详细描述。In order to enable those skilled in the art to better understand the technical solution of the present application, the technical solution of the present application will be further described in detail below in conjunction with the drawings and specific embodiments.
本申请实施例提供的语义地图更新方法,可以应用于如图1所示的应用环境中,图1是本申请一实施例中语义地图更新方法的应用环境图。其中,采集设备102通过网络与终端104进行通信。数据存储系统可以存储终端104需要处理的数据。数据存储系统可以集成在终端104上,也可以放在云端或其他网络服务器上。终端104获取由采集设备102采集当前采集区域对应的众包地图中提取目标物体点云;根据目标物体点云构造第一点云物体并提取对应的第一语义信息;当新采集的采集区域存在语义地图时,获取语义地图中的所有第二点云物体以及对应的第二语义信息;根据第一语义信息和第二语义信息,将众包地图与语义地图进行匹配,得到匹配结果;根据匹配结果更新语义地图。其中,终端104可以但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑、物联网设备或自动驾驶计算平台等。采集设备可以是激光雷达、毫米波雷达或超声波雷达,也可以集成在终端上。可以理解的是,该方法也可以应用于服务器,还可以应用于包括终端和服务器的系统,并通过终端和服务器的交互实现。The semantic map update method provided in the embodiment of the present application can be applied in the application environment shown in FIG. 1 , which is an application environment diagram of the semantic map update method in an embodiment of the present application. Wherein, the collection device 102 communicates with the terminal 104 through the network. The data storage system may store data that needs to be processed by the terminal 104 . The data storage system can be integrated on the terminal 104, or placed on the cloud or other network servers. The terminal 104 acquires the point cloud of the target object extracted from the crowdsourced map corresponding to the current collection area collected by the collection device 102; constructs the first point cloud object according to the point cloud of the target object and extracts the corresponding first semantic information; when the newly collected collection area exists In the semantic map, all the second point cloud objects in the semantic map and the corresponding second semantic information are obtained; according to the first semantic information and the second semantic information, the crowdsourcing map is matched with the semantic map to obtain the matching result; according to the matching The result updates the semantic map. Wherein, the terminal 104 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, Internet of Things devices, or automatic driving computing platforms. The acquisition device can be lidar, millimeter-wave radar or ultrasonic radar, or it can be integrated on the terminal. It can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and can be implemented through interaction between the terminal and the server.
在一实施例中,如图2所示,图2是本申请实施例的语义地图更新方法的流程示意图,以该方法应用于图1中的终端为例进行说明,包括以下步骤:In one embodiment, as shown in FIG. 2, FIG. 2 is a schematic flowchart of a method for updating a semantic map according to an embodiment of the present application. The method is applied to the terminal in FIG. 1 as an example for illustration, including the following steps:
S202:获取当前采集区域对应的至少一个物体点云。S202: Obtain at least one object point cloud corresponding to the current collection area.
获取当前采集区域对应的至少一个物体点云,即可以是众包采集,用户通过自动驾驶车辆自身的传感器,或者其他低成本的传感器,收集道路数据传到云端进行数据融合,并通过这种融合的方式提高数据精度,来完成众包式高精地图或者语义地图的制作;众包地图或众包式地图是指终端通过云端获取的、由其他车辆采集并上传到云端的地图激光雷达采集的点云数据中存在构建语义地图不需要的点云,需要对采集的点云数据进行提取,得到目标物体点云。Obtain at least one object point cloud corresponding to the current collection area, which can be crowdsourcing collection. The user collects road data through the sensor of the self-driving vehicle or other low-cost sensors and sends it to the cloud for data fusion, and through this fusion Crowdsourced high-precision maps or semantic maps can be completed by improving the accuracy of data in a way; crowdsourced maps or crowdsourced maps refer to those collected by the terminal through the cloud, collected by other vehicles and uploaded to the cloud by lidar There are point clouds in the point cloud data that are not required for building a semantic map. It is necessary to extract the collected point cloud data to obtain the point cloud of the target object.
物体点云是指构建语义地图所需物体(如,交通指示物体)的点云,语义地图所需的物体包括但不限于交通灯、交通牌、 车道线、人行道等携带必要的交通信息的物体。Object point cloud refers to the point cloud of objects (such as traffic indication objects) required for constructing semantic maps. Objects required for semantic maps include but are not limited to traffic lights, traffic signs, lane lines, sidewalks and other objects that carry necessary traffic information .
S204:根据至少一个物体点云构造至少一个第一点云物体并提取对应的第一语义信息,其中至少一个第一点云物体及对应的第一语义信息用于构建众包语义地图。S204: Construct at least one first point cloud object and extract corresponding first semantic information according to at least one object point cloud, wherein the at least one first point cloud object and the corresponding first semantic information are used to construct a crowdsourced semantic map.
根据至少一个物体点云构造至少一个第一点云物体并提取对应的第一语义信息,其中语义信息是预先定义好的,每个点云物体存在对应的语义信息,每个点云物体的语义信息是不同的。语义信息中包括点云物体标识、点云中心、点云凸包、点云包围盒(Oriented Bounding Box,OBB)(可以理解为点云最小标定框OBB)、点云PCA(Principal Components Analysis)坐标系方向、点云主方向和点云直方图等。可以理解的是,这里的目标物体点云不仅限于是1个,可以是多个;对应第一点云物体也可以是一个或多个。Construct at least one first point cloud object based on at least one object point cloud and extract corresponding first semantic information, wherein the semantic information is predefined, each point cloud object has corresponding semantic information, and the semantic information of each point cloud object Information is different. Semantic information includes point cloud object identification, point cloud center, point cloud convex hull, point cloud bounding box (Oriented Bounding Box, OBB) (can be understood as the point cloud minimum calibration box OBB), point cloud PCA (Principal Components Analysis) coordinates system direction, point cloud main direction and point cloud histogram, etc. It can be understood that the point cloud of the target object here is not limited to one, but may be multiple; there may also be one or more objects corresponding to the first point cloud.
每个物体的点云物体标识是不同的,即唯一的;点云最小标定框OBB在世界坐标系可以用八个顶点表示;点云PCA坐标系方向是通过点云协方差矩阵特征值分解,通过特征向量计算三个维度的方向(如图3所示),可定义此坐标系为物体的local坐标系;点云主方向是在PCA计算之后,选取最小的特征值对应的特征向量,作为点云物体的主方向。比如交通牌点云近似平面,实际上平面法线方向对应的特征值最小,我们定义法线方向为主方向,如图3所示,图3是本申请一实施例中点云物体的语义信息示意图;点云凸包是中包含一个物体所有点的最小凸包;点云直方图将x,y,z三维的直方图存在一个一维的向量中。如图4所示,图4是本申请又一实施例中点云物体的部分语义信息示意图,为一个实施例中局部三维众包语义地图中一些物体的部分语义信息(包括OBB和PCA坐标系)。The point cloud object identification of each object is different, that is, unique; the minimum calibration box OBB of the point cloud can be represented by eight vertices in the world coordinate system; the direction of the point cloud PCA coordinate system is decomposed by the eigenvalue of the point cloud covariance matrix, The direction of the three dimensions is calculated by the eigenvector (as shown in Figure 3), and this coordinate system can be defined as the local coordinate system of the object; the main direction of the point cloud is after the PCA calculation, and the eigenvector corresponding to the smallest eigenvalue is selected as The principal orientation of the point cloud object. For example, the point cloud of a traffic sign is similar to a plane. In fact, the eigenvalue corresponding to the normal direction of the plane is the smallest. We define the normal direction as the main direction, as shown in Figure 3, which is the semantic information of the point cloud object in an embodiment of the present application Schematic diagram; the point cloud convex hull is the smallest convex hull that contains all points of an object; the point cloud histogram stores the three-dimensional histogram of x, y, and z in a one-dimensional vector. As shown in Figure 4, Figure 4 is a schematic diagram of part of the semantic information of point cloud objects in another embodiment of the present application, which is part of the semantic information of some objects in the local three-dimensional crowdsourcing semantic map in one embodiment (including OBB and PCA coordinate systems ).
第一语义信息包括第一点云物体的点云物体标识、点云PCA(Principal Components Analysis)坐标系方向、点云主方向、点云物体中心、点云最小包围盒(Oriented Bounding Box,OBB)、点云凸包和点云直方图。可以理解的是,这里的第一点云物体不仅限于是1个,可以是多个;OBB的紧密性比较好,可以大大减少参与相交测试的包围盒的数目,总体性能要优于AABB。当几何物体发生旋转运动后,只要对OBB进行同样的旋转即可。The first semantic information includes the point cloud object identification of the first point cloud object, the point cloud PCA (Principal Components Analysis) coordinate system direction, the point cloud main direction, the point cloud object center, and the point cloud minimum bounding box (Oriented Bounding Box, OBB) , point cloud convex hull and point cloud histogram. It is understandable that the first point cloud object here is not limited to one, but can be multiple; the compactness of OBB is relatively good, which can greatly reduce the number of bounding boxes participating in the intersection test, and the overall performance is better than AABB. When the geometric object rotates, you only need to perform the same rotation on the OBB.
进一步地,每个物体的点云物体标识是不同的,即唯一的。点云PCA是通过点云协方差矩阵特征值分解,通过特征向量确定三个维度的方向,定义此坐标系为物体的local坐标系。点云主方向是在PCA计算之后,选取最小的特征值对应的特征向量,作为点云物体的主方向。比如常见的交通牌,其点云近似平面(当然建图中,会给一个阈值,如果小于阈值,则给一个最小的宽度(width),保证点云物体是三维物体),那么平面法线方向对应的特征值最小,我们定义该法线方向为主方向。Further, the point cloud object identification of each object is different, that is, unique. Point cloud PCA is to decompose the eigenvalue of the point cloud covariance matrix, determine the direction of the three dimensions through the eigenvector, and define this coordinate system as the local coordinate system of the object. The main direction of the point cloud is after the PCA calculation, and the eigenvector corresponding to the smallest eigenvalue is selected as the main direction of the point cloud object. For example, for common traffic signs, the point cloud approximates a plane (of course, a threshold will be given in the construction map, and if it is less than the threshold, a minimum width (width) will be given to ensure that the point cloud object is a three-dimensional object), then the normal direction of the plane The corresponding eigenvalue is the smallest, and we define the normal direction as the main direction.
点云物体中心是根据点云中点的坐标最大值和最小值确定的,即在local坐标系下确定不同轴上的最大值和最小值,根据最大值和最小值进行加权平均处理后,将得到的坐标转换至世界坐标下得到的;例如,第一点云物体的点云中点在x,y,z轴方向上的最大值和最小值分别为x min,x max,y min,y max,z min,z max,得到点云物体中心为C=(C XC YC Z) T,其中,C X=(x min+x max)/2,C Y=(y min+y max,)/2,C Z=(z min+z max)/2。 The point cloud object center is determined according to the maximum and minimum coordinates of the points in the point cloud, that is, the maximum and minimum values on different axes are determined in the local coordinate system, and after weighted average processing is performed according to the maximum and minimum values, Convert the obtained coordinates to world coordinates; for example, the maximum and minimum values of the point cloud midpoint of the first point cloud object in the directions of x, y, and z axes are x min , x max , y min , y max , z min , z max , the point cloud object center is C=(C X C Y C Z ) T , where C X =(x min +x max )/2, C Y =(y min +y max ,)/2, C Z =(z min +z max )/2.
点云最小包围盒OBB的包围盒尺寸为宽(width)、高(height)、深(depth),其中,width<height<depth,在世界坐标系可以用八个顶点表示;点云凸包是中包含一个物体所有点的最小凸包;点云直方图将x,y,z三维的直方图存在一个一维的向量中。The size of the bounding box of the minimum bounding box OBB of the point cloud is width (width), height (height), and depth (depth). Among them, width<height<depth can be represented by eight vertices in the world coordinate system; the convex hull of the point cloud is Contains the minimum convex hull of all points of an object; the point cloud histogram stores the three-dimensional histogram of x, y, and z in a one-dimensional vector.
具体地,在更新采集区域存在对应的语义地图时,需要判断新采集的众包地图和存在对应的语义地图之间的点云物体的匹配情况,确定构建语义地图所需物体,并从众包地图中提取用于表征交通指示物体的目标物体点云,对目标物体点云进行去噪聚类处理,得到众包地图中的第一点云物体,并提取众包地图中所有第一点云物体的第一语义信息,其中第一点云物体及对应的第一语义信息用于构建众包语义地图。Specifically, when there is a corresponding semantic map in the updated collection area, it is necessary to judge the matching of point cloud objects between the newly collected crowdsourced map and the existing corresponding semantic map, determine the objects required for constructing the semantic map, and use the crowdsourced map Extract the point cloud of the target object used to represent the traffic indication object, perform denoising and clustering processing on the point cloud of the target object, obtain the first point cloud object in the crowdsourcing map, and extract all the first point cloud objects in the crowdsourcing map The first semantic information of the first point cloud object and the corresponding first semantic information are used to construct the crowdsourcing semantic map.
S206:响应于当前采集区域存在原始语义地图,获取原始语义地图,并从原始语义地图中获取至少一个第二点云物体以及对应的第二语义信息。S206: In response to an original semantic map existing in the current acquisition area, acquire the original semantic map, and acquire at least one second point cloud object and corresponding second semantic information from the original semantic map.
响应于当前采集区域存在原始语义地图,获取原始语义地图,其中,语义地图中存在至少一个第二点云物体,每个第二点云物体存在对应的第二语义信息。In response to the presence of an original semantic map in the current collection area, the original semantic map is acquired, wherein at least one second point cloud object exists in the semantic map, and each second point cloud object has corresponding second semantic information.
具体地,判断采集区域是否已存在原始语义地图,当新采集的采集区域存在原始语义地图时,获取原始语义地图中的所有第二点云物体以及对应的第二语义信息;其中,原始语义地图中存在至少一个第二点云物体;第二点云物体的第二语义信息中至少包括语义信息中包括点云物体标识、点云中心、点云凸包、点云包围盒(Oriented Bounding Box,OBB)、点云PCA(Principal Components Analysis)坐标系方向、点云主方向和点云直方图等。“第一”和“第二”仅用于区分不同点云物体的语义信息,例如,第一语义信息也可以命名为第二语义信息,第二语义信息也可以命名为第一语义信息。Specifically, it is judged whether the original semantic map already exists in the collection area, and when the original semantic map exists in the newly collected collection area, all second point cloud objects and corresponding second semantic information in the original semantic map are obtained; wherein, the original semantic map There is at least one second point cloud object; the second semantic information of the second point cloud object at least includes the semantic information including point cloud object identification, point cloud center, point cloud convex hull, point cloud bounding box (Oriented Bounding Box, OBB), point cloud PCA (Principal Components Analysis) coordinate system direction, point cloud main direction and point cloud histogram, etc. "First" and "second" are only used to distinguish the semantic information of different point cloud objects. For example, the first semantic information can also be named the second semantic information, and the second semantic information can also be named the first semantic information.
S208:根据第一语义信息和第二语义信息,获得至少一个第一点云物体和至少一个第二点云物体的匹配结果,并根据匹配结果,利用众包语义地图中的至少一个第一点云物体,更新原始语义地图。S208: Obtain a matching result of at least one first point cloud object and at least one second point cloud object according to the first semantic information and the second semantic information, and use at least one first point in the crowdsourced semantic map according to the matching result Cloud objects, update the original semantic map.
获得至少一个第一点云物体和至少一个第二点云物体的匹配结果,其中,匹配结果包括是点云物体匹配对和不存在点云物体匹配对;例如,第一点云物体A在语义地图中存在匹配的第二点云物体B,则第一点云物体A和第二点云物体B为点云物体匹配对;第一点云物体A在语义地图中不存在匹配的第二点云物体,则不存在点云物体匹配对。Obtain a matching result of at least one first point cloud object and at least one second point cloud object, wherein the matching result includes a point cloud object matching pair and an absence of point cloud object matching pair; for example, the first point cloud object A is in semantic If there is a matching second point cloud object B in the map, then the first point cloud object A and the second point cloud object B are a matching pair of point cloud objects; the first point cloud object A does not have a matching second point in the semantic map cloud object, there is no point cloud object matching pair.
匹配方法采用但不仅限于匈牙利匹配,也可以是其他的地图匹配方法。匹配结果包括众包地图和语义地图中存在物体匹配对以及众包地图和语义地图中不存在物体匹配对两种情况。进一步地,众包地图和语义地图中存在物体匹配对,即众包地图第一点云物体在语义地图中存在匹配的第二点云物体;众包地图和语义地图中不存在物体匹配对包括两种情况:第一种情况是众包地图中的第一点云物体在语义地图中未找到对应的匹配点云物体,以及第二种情况是语义地图中的第二点云物体在众包地图中未找到对应的匹配点云物体。在本专利中,为便于理解,将第一种情况中的众包地图中的未匹配到的第一点云物体称为新的点云物体(即第一点云物体为新增物体),将第二种情况中语义地图中未匹配到的第二点云物体称为消失的点云物体(即第二点云物体在新采集的众包地图中不存在)。The matching method adopts but is not limited to Hungarian matching, and can also be other map matching methods. The matching results include two cases where there is an object matching pair in the crowdsourcing map and the semantic map and there is no object matching pair in the crowdsourcing map and the semantic map. Further, there is an object matching pair in the crowdsourcing map and the semantic map, that is, the first point cloud object in the crowdsourcing map has a matching second point cloud object in the semantic map; there is no object matching pair in the crowdsourcing map and the semantic map includes Two cases: the first case is that the first point cloud object in the crowdsourced map does not find a corresponding matching point cloud object in the semantic map, and the second case is that the second point cloud object in the semantic map is not found in the crowdsourced No corresponding matching point cloud object was found in the map. In this patent, for ease of understanding, the unmatched first point cloud object in the crowdsourcing map in the first case is called a new point cloud object (that is, the first point cloud object is a newly added object), In the second case, the second point cloud object that is not matched in the semantic map is called a disappearing point cloud object (that is, the second point cloud object does not exist in the newly collected crowdsourced map).
根据匹配结果,利用众包语义地图中的至少一个第一点云物体,更新原始语义地图,具体地,当匹配结果为众包地图第一点云物体在语义地图中存在匹配的第二点云物体时,对第一点云物体和第二点云物体的语义信息进行加权平均处理,得到新的点云物体的语义信息;根据新的点云物体的语义信息对语义地图进行更新;当众包地图的第一点云物体为新增物体时,在语义地图中添加第一点云物体;当第二点云物体在新采集的众包地图中不存在时,将语义地图中原有的第二点云物体进行删除,得到更新后的语义地图。According to the matching result, at least one first point cloud object in the crowdsourced semantic map is used to update the original semantic map, specifically, when the matching result is that the first point cloud object of the crowdsourced map has a matching second point cloud object in the semantic map object, the semantic information of the first point cloud object and the second point cloud object is weighted and averaged to obtain the semantic information of the new point cloud object; the semantic map is updated according to the semantic information of the new point cloud object; When the first point cloud object of the map is a new object, add the first point cloud object in the semantic map; when the second point cloud object does not exist in the newly collected crowdsourced map, add the original second point cloud object in the semantic map Point cloud objects are deleted to obtain an updated semantic map.
具体地,根据第一语义信息和第二语义信息,确定第一点云物体与各第二点云物体之间的语义距离;也就是说,根据第一语义信息和第二语义信息,确定第一点云物体与各第二点云物体之间的中心位置坐标距离差异值、点云物体方向差异、标定框尺寸差异以及外观特征差异;根据中心位置坐标距离差异值、点云物体方向差异值、标定框尺寸差异值以及外观特征差异值确定语义距离。基于语义距离,将众包地图与语义地图进行匹配,得到匹配结果。Specifically, according to the first semantic information and the second semantic information, determine the semantic distance between the first point cloud object and each second point cloud object; that is, according to the first semantic information and the second semantic information, determine the first The center position coordinate distance difference value, the point cloud object direction difference, the calibration frame size difference and the appearance feature difference between the point cloud object and each second point cloud object; according to the center position coordinate distance difference value, the point cloud object direction difference value , the difference value of the calibration frame size and the difference value of the appearance feature determine the semantic distance. Based on the semantic distance, the crowdsourced map is matched with the semantic map to obtain the matching result.
进一步地,确定众包地图中的第一点云物体的第一语义信息中的点云中心、点云主方向、点云最小标定框的尺寸等物理几何信息,以及确定和语义地图中第二点云物体的第二语义信息中的点云中心、点云主方向、点云最小标定框的尺寸等物理几何信息;根据第一语义信息和第二语义信息中的点云中心、点云主方向、点云最小标定框的尺寸计算众包地图中的第一点云物体和语义地图中第二点云物体之间的语义距离;将得到的语义距离与预先设置的权值进行加权处理,得到最终的语义距离;获取众包地图中第一点云物体的数量n和语义地图中第二点云物体的数量m,得到n*m的关联矩阵;将语义距离作为关联矩阵的元素;根据预定阈值和关联矩阵,得到众包地图中第一点云物体与语义地图中第二点云物体的匹配结果。Further, determine the physical geometry information such as the center of the point cloud, the main direction of the point cloud, the size of the minimum calibration frame of the point cloud in the first semantic information of the first point cloud object in the crowdsourced map, and determine the second Physical geometry information such as the point cloud center, point cloud main direction, and point cloud minimum calibration frame size in the second semantic information of the point cloud object; according to the point cloud center, point cloud main Calculate the semantic distance between the first point cloud object in the crowdsourcing map and the second point cloud object in the semantic map according to the direction and the size of the minimum calibration frame of the point cloud; weight the obtained semantic distance with the preset weight, Obtain the final semantic distance; obtain the number n of the first point cloud object in the crowdsourcing map and the number m of the second point cloud object in the semantic map, and obtain an association matrix of n*m; use the semantic distance as an element of the association matrix; according to Predetermining a threshold and an association matrix to obtain the matching result of the first point cloud object in the crowdsourced map and the second point cloud object in the semantic map.
在本实施例中,获取当前采集区域对应的至少一个物体点云,根据至少一个物体点云构造至少一个第一点云物体并提取对应的第一语义信息,其中至少一个第一点云物体及对应的第一语义信息用于构建众包语义地图;响应于当前采集区域存在原始语义地图,获取原始语义地图,并从原始语义地图中获取至少一个第二点云物体以及对应的第二语义信息;根据第一语义信息和第二语义信息,获得至少一个第一点云物体和至少一个第二点云物体的匹配结果,进而根据匹配结果,利用众包语义地图中的至少一个第一点云物体更新原始语义地图,即通过众包采集到新的数据,与已有的语义地图进行匹配更新,为地图匹配更新提供了保证,进而提高了地图更新精度。In this embodiment, at least one object point cloud corresponding to the current collection area is obtained, at least one first point cloud object is constructed according to at least one object point cloud and corresponding first semantic information is extracted, wherein at least one first point cloud object and The corresponding first semantic information is used to construct a crowdsourced semantic map; in response to the existence of an original semantic map in the current collection area, the original semantic map is obtained, and at least one second point cloud object and corresponding second semantic information are obtained from the original semantic map ; Obtain a matching result of at least one first point cloud object and at least one second point cloud object according to the first semantic information and the second semantic information, and then use at least one first point cloud in the crowdsourcing semantic map according to the matching result The object updates the original semantic map, that is, collects new data through crowdsourcing, and performs matching update with the existing semantic map, which provides a guarantee for map matching update, thereby improving the accuracy of map update.
在一实施例中,确定点云物体语义距离包括:根据第一点云物体的点云中心坐标和第二点云物体的点云中心坐标,确定中心位置坐标距离差异值。In an embodiment, determining the semantic distance of the point cloud object includes: determining a center position coordinate distance difference value according to the point cloud center coordinates of the first point cloud object and the point cloud center coordinates of the second point cloud object.
其中,第一点云物体是根据新采集的众包地图中提取的目标物体点云构造得到的,第一语义信息是从第一点云物体中提取的点云的物理几何信息,包括点云物体标识、点云中心、点云凸包、点云最小标定框OBB、点云PCA坐标系方向、点云主方向和点云直方图等信息。Among them, the first point cloud object is constructed according to the point cloud of the target object extracted from the newly collected crowdsourcing map, and the first semantic information is the physical and geometric information of the point cloud extracted from the first point cloud object, including point cloud Information such as object identification, point cloud center, point cloud convex hull, point cloud minimum calibration frame OBB, point cloud PCA coordinate system direction, point cloud main direction, and point cloud histogram.
具体地,从众包地图中提取目标物体点云并构造对应的第一点云物体,以及提取第一点云物体的第一语义信息;从已有的语义地图中确定第二点云物体,以及第二点云物体的第二语义信息。例如,局部地图中(众包采集),第一点云物体object中心坐标为(x1,y1,z1),点云主方向为a,标定框尺寸为(w1,h1,d1),shape feature为30维向量s1,原始点云数量为n1。另一方面,语义地图中第二点云物体object中心坐标为(x2,y2,z2),点云主方向为b,标定框尺寸为(w2,h2,d2),shape feature为30维(也可以是其他数字维数)向量s2,原始点云数量为n2。Specifically, extract the point cloud of the target object from the crowdsourcing map and construct the corresponding first point cloud object, and extract the first semantic information of the first point cloud object; determine the second point cloud object from the existing semantic map, and Second semantic information of the second point cloud object. For example, in a local map (crowdsourcing collection), the center coordinates of the first point cloud object are (x1, y1, z1), the main direction of the point cloud is a, the size of the calibration frame is (w1, h1, d1), and the shape feature is 30-dimensional vector s1, the number of original point clouds is n1. On the other hand, the center coordinates of the second point cloud object in the semantic map are (x2, y2, z2), the main direction of the point cloud is b, the size of the calibration frame is (w2, h2, d2), and the shape feature is 30 dimensions (also Can be other digital dimensions) vector s2, the number of original point clouds is n2.
其中,根据第一点云物体的点云中心坐标(x1,y1,z1)和第二点云物体的点云中心坐标(x2,y2,z2),确定中心位置坐标距离差异值,可以表示为:
Figure PCTCN2023070501-appb-000001
Among them, according to the point cloud center coordinates (x1, y1, z1) of the first point cloud object and the point cloud center coordinates (x2, y2, z2) of the second point cloud object, determine the center position coordinate distance difference value, which can be expressed as :
Figure PCTCN2023070501-appb-000001
在一实施例中,确定点云物体语义距离还包括:根据第一点云物体的点云主方向和第二点云物体的点云主方向,确定点云物体方向差异值;根据第一点云物体的标定框尺寸和第二点云物体的标定框尺寸,确定标定框尺寸差异值;根据第一点云物体的点云直方图的形状要素和第二点云物体的点云直方图的形状要素,确定外观特征差异值。In one embodiment, determining the semantic distance of the point cloud object further includes: determining the point cloud object direction difference value according to the point cloud main direction of the first point cloud object and the point cloud main direction of the second point cloud object; The calibration frame size of the cloud object and the calibration frame size of the second point cloud object determine the difference value of the calibration frame size; according to the shape element of the point cloud histogram of the first point cloud object and the point cloud histogram of the second point cloud object Shape elements, to determine the difference value of appearance features.
其中,点云物体方向差异值可以表示为:cos(θ)=a·b/(|a|·|b|);夹角越大,差异越大,cos值越小;夹角越小,差异越小,cos值越大;distance2=1-cos(θ),差异越小,方向距离越小。Among them, the point cloud object direction difference value can be expressed as: cos(θ)=a b/(|a||b|); the larger the angle, the greater the difference, the smaller the cos value; the smaller the angle, The smaller the difference, the larger the cos value; distance2=1-cos(θ), the smaller the difference, the smaller the direction distance.
其中,第一点云物体的标定框尺寸为(w1,h1,d1),第二点云物体的标定框尺寸为(w2,h2,d2);标定框尺寸差异值可以表示为:Among them, the size of the calibration frame of the first point cloud object is (w1, h1, d1), and the size of the calibration frame of the second point cloud object is (w2, h2, d2); the difference value of the calibration frame size can be expressed as:
Figure PCTCN2023070501-appb-000002
Figure PCTCN2023070501-appb-000002
其中,外观特征差异值可以表示为:Among them, the appearance feature difference value can be expressed as:
Figure PCTCN2023070501-appb-000003
Figure PCTCN2023070501-appb-000003
在一实施例中,确定点云物体语义距离还包括:通过对中心位置坐标距离差异值、点云物体方向差异值、标定框尺寸差异值和外观特征差异值进行加权处理,得到各第一点云物体与语义地图中第二点云物体之间的语义距离。In one embodiment, determining the semantic distance of the point cloud object further includes: by weighting the center position coordinate distance difference value, the point cloud object direction difference value, the calibration frame size difference value and the appearance feature difference value to obtain each first point The semantic distance between the cloud object and the second point cloud object in the semantic map.
具体地,获取中心位置坐标距离差异值、点云物体方向差异值、标定框尺寸差异值distance3和外观特征差异值对应的权重值w1,w2,w3,w4;以w1,w2,w3,w4的权重加权求和去得到语义距离评分,其中权重值范围为0~1。也就是说通过每一个差异值加一个权重,然后线性相加一下,成为最终的语义距离;即语义距为w1*distance1+w2*distance2+w3*distance3+w4*distance4。可选地,在一个实施例中,根据实际情况的区别,权重值w1,w2,w3,w4中可以存在w1,w2,w3,w4中其中一个权重值为0,也可以两个权重值为0,在这里不做限定。Specifically, the weight values w1, w2, w3, w4 corresponding to the distance difference value of the center position coordinates, the point cloud object direction difference value, the calibration frame size difference distance3 and the appearance feature difference value are obtained; The weighted summation is used to obtain the semantic distance score, where the weight value ranges from 0 to 1. That is to say, by adding a weight to each difference value, and then adding it linearly, it becomes the final semantic distance; that is, the semantic distance is w1*distance1+w2*distance2+w3*distance3+w4*distance4. Optionally, in one embodiment, according to the actual situation, among the weight values w1, w2, w3, and w4, one of w1, w2, w3, and w4 may have a weight value of 0, or two weight values may be 0, there is no limit here.
基于地图匹配算法,根据确定的各第一点云物体与语义地图中第二点云物体之间的语义距离将采集的众包地图与已有的语义地图进行匹配,确定众包地图与已有的语义地图之间点云物体之间的匹配情况,其中,匹配情况包括众包地图中的第一点云物体在语义地图有匹配的第二点云物体、众包地图中的第一点云物体在语义地图没有匹配的第二点云物体(即第一点云物体为新增点云物体)和语义地图中的第二点云物体在众包地图中没有匹配的第一点云物体(即第二点云物体消失)等。Based on the map matching algorithm, according to the determined semantic distance between each first point cloud object and the second point cloud object in the semantic map, the collected crowdsourcing map is matched with the existing semantic map, and the crowdsourcing map is determined to be consistent with the existing semantic map. The matching situation between the point cloud objects in the semantic map, where the matching situation includes the first point cloud object in the crowdsourcing map has a matching second point cloud object in the semantic map, the first point cloud object in the crowdsourcing map The object does not have a matching second point cloud object in the semantic map (that is, the first point cloud object is a new point cloud object) and the second point cloud object in the semantic map does not have a matching first point cloud object in the crowdsourcing map ( That is, the second point cloud object disappears), etc.
上述确定点云物体语义距离的方法中,通过提取中众包地图的第一点云物体的语义信息和已有的语义地图的第二点云物体的语义信息,根据物体几何信息确定众包地图中点云物体和语义地图中点云物体的语义距离,为地图匹配更新提供了保证。In the above method for determining the semantic distance of point cloud objects, by extracting the semantic information of the first point cloud object in the crowdsourcing map and the semantic information of the second point cloud object in the existing semantic map, the crowdsourcing map is determined according to the geometric information of the object The semantic distance between the point cloud object and the point cloud object in the semantic map provides a guarantee for map matching update.
在一实施例中,地图匹配包括:获取当前采集区域对应的至少一个物体点云,根据至少一个物体点云构造至少一个第一点云物体并提取对应的第一语义信息,具体地,对提取的物体点云进行去噪聚类,构造至少一个第一点云物体,并提取每个第一点云物体的第一语义信息。In an embodiment, the map matching includes: obtaining at least one object point cloud corresponding to the current acquisition area, constructing at least one first point cloud object according to the at least one object point cloud and extracting the corresponding first semantic information, specifically, extracting Perform denoising and clustering on the point cloud of the object, construct at least one first point cloud object, and extract first semantic information of each first point cloud object.
进一步地,响应于当前采集区域存在原始语义地图,获取原始语义地图,并从原始语义地图中获取至少一个第二点云物体以及对应的第二语义信息,根据第一语义信息和第二语义信息,确定第一点云物体与各第二点云物体之间的语义距离。Further, in response to the existence of an original semantic map in the current acquisition area, the original semantic map is obtained, and at least one second point cloud object and corresponding second semantic information are obtained from the original semantic map, according to the first semantic information and the second semantic information , to determine the semantic distance between the first point cloud object and each second point cloud object.
具体地,根据第一点云物体的点云中心坐标和第二点云物体的点云中心坐标,确定中心位置坐标距离差异值;根据第一点云物体的点云主方向和第二点云物体的点云主方向,确定点云物体方向差异值;根据第一点云物体的标定框尺寸和第二点云物体的标定框尺寸,确定标定框尺寸差异值;根据第一点云物体的点云直方图的形状要素和第二点云物体的点云直方图的形状要素,确定外观特征差异值;通过对中心位置坐标距离差异评分、点云物体方向差异评分、标定框尺寸差异评分和外观特征差异评分进行加权处理,得到各第一点云物体与语义地图中第二点云物体之间的语义距离。Specifically, according to the point cloud center coordinates of the first point cloud object and the point cloud center coordinates of the second point cloud object, determine the center position coordinate distance difference value; according to the point cloud main direction of the first point cloud object and the second point cloud The main direction of the point cloud of the object, determine the difference value of the direction of the point cloud object; according to the calibration frame size of the first point cloud object and the calibration frame size of the second point cloud object, determine the difference value of the calibration frame size; according to the calibration frame size of the first point cloud object The shape element of the point cloud histogram and the shape element of the point cloud histogram of the second point cloud object determine the difference value of the appearance feature; by scoring the center position coordinate distance difference, the point cloud object direction difference score, the calibration frame size difference score and The appearance feature difference score is weighted to obtain the semantic distance between each first point cloud object and the second point cloud object in the semantic map.
在一实施例中,地图匹配还包括:获取第一点云物体的数量n和第二点云物体的数量m,得到n*m的关联矩阵,将语义距离作为关联矩阵的元素,根据预定阈值和关联矩阵,得到至少一个第一点云物体与至少一个第二点云物体的匹配结果。In one embodiment, the map matching further includes: obtaining the number n of the first point cloud object and the number m of the second point cloud object, obtaining an association matrix of n*m, using the semantic distance as an element of the association matrix, according to a predetermined threshold and the correlation matrix to obtain a matching result of at least one first point cloud object and at least one second point cloud object.
可以理解的是,关联矩阵中的每个元素代表众包地图中第一点云物体与语义地图中第二点云物体之间的语义距离;例如,众包地图中第一点云物体与语义地图中第二点云物体的数量为3,构成3*3的关联矩阵,关联矩阵中的每个元素为第一点云物体与语义地图中第二点云物体之间的语义距离。其中,语义距离小于预定阈值则表明对应的第一点云物体和第二点云物体之间存在关联。It can be understood that each element in the affinity matrix represents the semantic distance between the first point cloud object in the crowdsourced map and the second point cloud object in the semantic map; for example, the first point cloud object in the crowdsourced map and the semantic The number of second point cloud objects in the map is 3, forming a 3*3 association matrix, and each element in the association matrix is the semantic distance between the first point cloud object and the second point cloud object in the semantic map. Wherein, if the semantic distance is less than a predetermined threshold, it indicates that there is a relationship between the corresponding first point cloud object and the second point cloud object.
具体地,将语义距离作为关联矩阵的元素,当关联矩阵中存在第一元素大于或等于预定阈值时,确定第一元素对应的第一点云物体和第二点云物体不为点云物体匹配对;第一元素对应的第一点云物体和第二点云物体不为点云物体匹配对包括第一点云物体为新增的点云物体或第二点云物体为消失的点云物体。Specifically, the semantic distance is used as an element of the correlation matrix, and when the first element in the correlation matrix is greater than or equal to a predetermined threshold, it is determined that the first point cloud object and the second point cloud object corresponding to the first element are not matched by the point cloud object Yes; the first point cloud object and the second point cloud object corresponding to the first element are not point cloud object matching pairs include the first point cloud object is a new point cloud object or the second point cloud object is a disappearing point cloud object .
当关联矩阵中至少存在一个第二元素小于预定阈值时,确定第二元素对应的第一点云物体存在至少一个匹配的第二点云物体;基于第二元素对关联矩阵进行分割,得到若干子图;对各子图分别进行二分图匹配,确定与第一点云物体匹配的第二点云物体;也就是说对各子图分别进行二分图匹配,确定子图中第一点云物体与各第二点云物体的匹配代价值;确定数值最小的匹配代价值对应的第二点云物体为第一点云物体的匹配点云物体。其中,二分图匹配采用的是匈牙利算法来实现的,使用匈牙利算法进行二分图匹配,得到cost最小的物体连接对(object,crowd_object),如图5所示,图5是本申请一实施例中点云物体匹配对的示意图,可能为点云物体匹配对;换言之,得到子图中的每个第二点云物体与对应第一点云物体的关联程度(关联程度可以理解为匹配代价值)。When there is at least one second element in the correlation matrix that is smaller than the predetermined threshold, it is determined that there is at least one matching second point cloud object in the first point cloud object corresponding to the second element; the correlation matrix is segmented based on the second element, and several sub-point cloud objects are obtained. Figure; carry out bipartite graph matching to each subgraph respectively, determine the second point cloud object that matches with the first point cloud object; The matching cost value of each second point cloud object; determine that the second point cloud object corresponding to the matching cost value with the smallest value is the matching point cloud object of the first point cloud object. Among them, the bipartite graph matching is implemented by the Hungarian algorithm, and the Hungarian algorithm is used to perform the bipartite graph matching to obtain the object connection pair (object, crowd_object) with the smallest cost, as shown in Figure 5, which is an example of an object connection pair (object, crowd_object) in an embodiment of the present application. Schematic diagram of a point cloud object matching pair, which may be a point cloud object matching pair; in other words, the degree of association between each second point cloud object in the sub-graph and the corresponding first point cloud object (the degree of association can be understood as a matching cost value) .
例如,众包采集地图的包括第一点云物体1、2、3,已有语义地图中有第二点云物体4、5、6,其中,第一点云物体2和第二点云物体4和第一点云物体2和第二点云物体5之间的语义距离大于预定值,为不匹配的点云物体,第一点云物体1 和第二点云物体4,以及第一点云物体1和第二点云物体5的语义距离小于预定阈值,则需要将第一点云物体1和第二点云物体4,以及第一点云物体1和第二点云物体5的语义距离分割为一个子图,对第一点云物体1和第二点云物体4,以及第一点云物体1和第二点云物体5采用现有的匈牙利匹配算法,得到匹配代价值cost,将cost最小的确定为第一点云物体1最终的匹配点云物体。For example, the crowdsourcing collection map includes the first point cloud object 1, 2, 3, and the second point cloud object 4, 5, 6 in the existing semantic map, wherein, the first point cloud object 2 and the second point cloud object 4 and the semantic distance between the first point cloud object 2 and the second point cloud object 5 is greater than a predetermined value, which is an unmatched point cloud object, the first point cloud object 1 and the second point cloud object 4, and the first point cloud object If the semantic distance between the first point cloud object 1 and the second point cloud object 5 is less than the predetermined threshold, it is necessary to combine the first point cloud object 1 and the second point cloud object 4, and the semantic distance between the first point cloud object 1 and the second point cloud object 5 The distance is divided into a subgraph, and the existing Hungarian matching algorithm is used for the first point cloud object 1 and the second point cloud object 4, as well as the first point cloud object 1 and the second point cloud object 5, to obtain the matching cost value cost, The one with the smallest cost is determined as the final matching point cloud object of the first point cloud object 1.
在一实施例中,一种语义地图更新的方法包括:获取当前采集区域对应的至少一个物体点云,根据至少一个物体点云构造至少一个第一点云物体并提取对应的第一语义信息,判断当前采集区域是否存在原始语义地图,In an embodiment, a method for updating a semantic map includes: acquiring at least one object point cloud corresponding to the current collection area, constructing at least one first point cloud object according to the at least one object point cloud and extracting corresponding first semantic information, Determine whether there is an original semantic map in the current collection area,
若是,响应于当前采集区域存在原始语义地图,获取原始语义地图,并从原始语义地图中获取至少一个第二点云物体以及对应的第二语义信息,否则,利用至少一个第一点云物体以及第一语义信息,创建众包语义地图,其中,采集区域是指当前采集终端所在的采集区域。If so, in response to the existence of an original semantic map in the current collection area, obtain the original semantic map, and obtain at least one second point cloud object and corresponding second semantic information from the original semantic map, otherwise, use at least one first point cloud object and The first semantic information is to create a crowdsourcing semantic map, where the collection area refers to the collection area where the current collection terminal is located.
一种语义地图更新的方法害包括:根据第一语义信息和第二语义信息,获得至少一个第一点云物体和所述至少一个第二点云物体的匹配结果,根据匹配结果更新语义地图。A method for updating a semantic map includes: obtaining a matching result of at least one first point cloud object and the at least one second point cloud object according to the first semantic information and the second semantic information, and updating the semantic map according to the matching result.
具体地,根据第一语义信息和第二语义信息,确定第一点云物体与各第二点云物体之间的中心位置坐标距离差异值、点云物体方向差异、标定框尺寸差异以及外观特征差异;根据中心位置坐标距离差异值、点云物体方向差异值、标定框尺寸差异值以及外观特征差异值确定语义距离;获取众包地图中第一点云物体的数量n和语义地图中第二点云物体的数量m,得到n*m的关联矩阵;Specifically, according to the first semantic information and the second semantic information, determine the center position coordinate distance difference value between the first point cloud object and each second point cloud object, point cloud object direction difference, calibration frame size difference and appearance features Difference; determine the semantic distance according to the center position coordinate distance difference value, the point cloud object direction difference value, the calibration frame size difference value and the appearance feature difference value; obtain the number n of the first point cloud object in the crowdsourcing map and the second in the semantic map The number m of point cloud objects, get the correlation matrix of n*m;
将语义距离作为关联矩阵的元素;当关联矩阵中存在第一元素大于或等于预定阈值时,确定第一元素对应的第一点云物体和第二点云物体不为点云物体匹配对;当关联矩阵中至少存在一个第二元素小于预定阈值时,确定第二元素对应的第一点云物体存在至少一个匹配的第二点云物体;基于第二元素对关联矩阵进行分割,得到若干子图;对各子图分别进行二分图匹配,确定子图中第一点云物体与各第二点云物体的匹配代价值;确定数值最小的匹配代价值对应的第二点云物体为第一点云物体的匹配点云物体。Using semantic distance as an element of an association matrix; when there is a first element greater than or equal to a predetermined threshold in the association matrix, it is determined that the first point cloud object and the second point cloud object corresponding to the first element are not a point cloud object matching pair; when When at least one second element in the correlation matrix is smaller than the predetermined threshold, it is determined that the first point cloud object corresponding to the second element has at least one matching second point cloud object; the correlation matrix is segmented based on the second element to obtain several subgraphs ; Carry out bipartite graph matching on each sub-graph respectively, determine the matching cost value of the first point cloud object and each second point cloud object in the sub-graph; determine the second point cloud object corresponding to the matching cost value with the smallest value as the first point The cloud object's matching point cloud object.
具体地,当匹配结果为第一点云物体为新增点云物体时,将第一点云物体添加至语义地图中;当匹配结果为第二点云物体为消失点云物体时,将第二点云物体从语义地图中删除;当匹配结果为第一点云物体存在点云物体匹配对时,对第一点云物体和匹配点云物体进行融合处理,得到融合点云物体,以及确定融合点云的融合语义信息;根据融合语义信息更新语义地图。Specifically, when the matching result is that the first point cloud object is a new point cloud object, add the first point cloud object to the semantic map; when the matching result is that the second point cloud object is a vanishing point cloud object, add the first point cloud object to the semantic map The second point cloud object is deleted from the semantic map; when the matching result is that the first point cloud object has a point cloud object matching pair, the first point cloud object and the matching point cloud object are fused to obtain the fused point cloud object, and determine Fuse the fused semantic information of the point cloud; update the semantic map according to the fused semantic information.
换言之,当语义地图中存在与第一点云物体匹配的匹配点云物体时,采用ICP、NDT等算法融合对第一点云物体和匹配点云物体对应的物体点云进行融合得到融合点云,并对融合点云进行去噪聚类处理,对降采样后的融合点云,重新计算提取语义信息;重新计算提取融合点云的语义信息可以是将第一点云物体和与第一点云物体匹配的第二点云物体的语义信息进行加权均值处理得到的;例如,对两者语义信息中的点云中心、点云凸包、点云最小标定框OBB、点云PCA坐标系方向、点云主方向和点云直方图进行均值处理,具体方式可以通过现有的方式实现,在此不做赘述。In other words, when there is a matching point cloud object that matches the first point cloud object in the semantic map, algorithms such as ICP and NDT are used to fuse the first point cloud object and the object point cloud corresponding to the matching point cloud object to obtain a fused point cloud , and perform denoising and clustering processing on the fused point cloud, and recalculate and extract semantic information for the fused point cloud after downsampling; recalculating and extracting the semantic information of the fused point cloud can be the sum of the first point cloud object and the first point The semantic information of the second point cloud object matched by the cloud object is obtained by weighted mean processing; for example, the point cloud center, point cloud convex hull, point cloud minimum calibration box OBB, point cloud PCA coordinate system direction in the two semantic information , the main direction of the point cloud and the point cloud histogram to perform mean value processing, the specific method can be realized by the existing method, and will not be repeated here.
上述语义地图更新步骤中,通过从新采集的众包地图中提取目标第一点云物体,以及提取第一点云物体的第一语义信息,即在保留有用信息的前提下,使得地图整体尺寸大大缩小,以及在提取语义信息,压缩数据大小的同时,得到更多的地图信息;基于语义信息确定的语义距离,确定众包地图和语义地图的匹配结果;根据不同匹配结果,对语义地图实现添加新增、删除物体和平均匹配对物体,为地图匹配更新提供了保证,进而提高了地图更新精度。In the above semantic map update step, by extracting the target first point cloud object from the newly collected crowdsourced map, and extracting the first semantic information of the first point cloud object, that is, under the premise of retaining useful information, the overall size of the map is greatly increased. Zoom out, and get more map information while extracting semantic information and compressing the data size; determine the matching result of crowdsourcing map and semantic map based on the semantic distance determined by semantic information; realize adding to semantic map according to different matching results Adding and deleting objects and averaging matching objects provide a guarantee for map matching updates, thereby improving the accuracy of map updates.
在另一实施例中,获取当前采集区域对应的至少一个物体点云,根据至少一个物体点云构造至少一个第一点云物体并提取对应的第一语义信息,判断采集区域是否存在原始语义地图,若是,响应于当前采集区域存在原始语义地图,获取原始语义地图,并从原始语义地图中获取至少一个第二点云物体以及对应的第二语义信息,否则,当采集区域不存在语义地图时,根据第一语义信息创建语义地图,其中,采集区域是指采集终端所在的采集区域。进一步地,根据第一语义信息和第二语义信息,获得所述至少一个第一点云物体和所述至少一个第二点云物体的匹配结果。当匹配结果为第一点云物体为新增点云物体时,将第一点云物体添加至语义地图中;当匹配结果为第二点云物体为消失点云物体时,将第二点云物体从语义地图中删除;当匹配结果为第一点云物体存在点云物体匹配对时,从第二点云物体中获取与第一点云物体匹配的匹配点云物体;对第一点云物体和匹配点云物体进行融合处理,得到融合点云物体,以及确定融合点云的融合语义信息,进而根据融合语义信息更新语义地图。In another embodiment, at least one object point cloud corresponding to the current collection area is obtained, at least one first point cloud object is constructed according to the at least one object point cloud and the corresponding first semantic information is extracted, and it is judged whether there is an original semantic map in the collection area , if, in response to the existence of the original semantic map in the current collection area, obtain the original semantic map, and obtain at least one second point cloud object and the corresponding second semantic information from the original semantic map, otherwise, when there is no semantic map in the collection area , create a semantic map according to the first semantic information, where the collection area refers to the collection area where the collection terminal is located. Further, according to the first semantic information and the second semantic information, a matching result of the at least one first point cloud object and the at least one second point cloud object is obtained. When the matching result is that the first point cloud object is a new point cloud object, add the first point cloud object to the semantic map; when the matching result is that the second point cloud object is a vanishing point cloud object, add the second point cloud object The object is deleted from the semantic map; when the matching result is that there is a point cloud object matching pair for the first point cloud object, the matching point cloud object matching the first point cloud object is obtained from the second point cloud object; for the first point cloud object The object and the matching point cloud object are fused to obtain the fused point cloud object, and the fused semantic information of the fused point cloud is determined, and then the semantic map is updated according to the fused semantic information.
在一实施例中,提供了一种语义地图更新方法,包括以下步骤:In one embodiment, a method for updating a semantic map is provided, comprising the following steps:
首先,对第一点云物体和至少一个第二点云物体中与第一点云物体匹配成功的匹配点云物体进行语义平均处理,得到语义平均点云物体。First, perform semantic averaging processing on the first point cloud object and at least one second point cloud object that successfully matches the first point cloud object to obtain a semantic average point cloud object.
对第一点云物体和至少一个第二点云物体中与第一点云物体匹配成功的匹配点云物体进行语义平均处理,即对第一点云物体和至少一个第二点云物体中与第一点云物体匹配成功的匹配点云物体的语义信息进行语义平均处理,其中,第一语义信息和第二语义信息分别包括PCA坐标系方向、点云中心、点云最小包围盒、点云凸包和直方图,第一语义信息是指新采集 的第一点云物体的语义信息;第二语义信息是指存在对应语义地图中的第二点云物体的语义信息。Semantic average processing is performed on the first point cloud object and the matching point cloud object that successfully matches the first point cloud object in the first point cloud object and at least one second point cloud object, that is, the first point cloud object and at least one second point cloud object The semantic information of the matched point cloud object that is successfully matched with the first point cloud object is semantically averaged, wherein the first semantic information and the second semantic information include the direction of the PCA coordinate system, the center of the point cloud, the smallest bounding box of the point cloud, and the point cloud Convex hull and histogram, the first semantic information refers to the semantic information of the newly collected first point cloud object; the second semantic information refers to the semantic information of the second point cloud object in the corresponding semantic map.
具体地,对通过对第一语义信息中的PCA坐标系方向、点云中心、点云最小包围盒、点云凸包和直方图,以及第二语义信息中的PCA坐标系方向、点云中心、点云最小包围盒、点云凸包和直方图进行语义平均处理,得到更新点云物体的平均语义信息。Specifically, through the PCA coordinate system direction, point cloud center, point cloud minimum bounding box, point cloud convex hull and histogram in the first semantic information, and the PCA coordinate system direction, point cloud center in the second semantic information , point cloud minimum bounding box, point cloud convex hull and histogram are semantically averaged, and the average semantic information of the updated point cloud object is obtained.
其次,将语义平均点云物体替换原始语义地图中匹配点云物体,以更新所述原始语义地图。Second, replace the matching point cloud objects in the original semantic map with the semantically averaged point cloud objects, so as to update the original semantic map.
在一实施例中,提供了一种语义信息平均处理方法,以该方法应用于图1中的终端为例进行说明,包括:对第一语义信息中的PCA坐标系方向和第二语义信息中的PCA坐标系方向进行插值处理,得到更新后的PCA坐标系方向;对第一语义信息中的点云中心和第二语义信息中的点云中心进行均值处理,得到更新点云中心。In one embodiment, a semantic information averaging processing method is provided. The method is applied to the terminal in FIG. The direction of the PCA coordinate system is interpolated to obtain the updated direction of the PCA coordinate system; the point cloud center in the first semantic information and the point cloud center in the second semantic information are averaged to obtain the updated point cloud center.
其中,第一语义信息中的PCA坐标系方向和第二语义信息中的PCA坐标系方向为四元数,也就是说,第一语义信息中的PCA坐标系方向为四元数q1,第二语义信息中的PCA坐标系方向为四元数q2,得到的更新后的PCA坐标系方向为四元数q updateWherein, the PCA coordinate system direction in the first semantic information and the PCA coordinate system direction in the second semantic information are quaternions, that is, the PCA coordinate system direction in the first semantic information is a quaternion q1, and the second The direction of the PCA coordinate system in the semantic information is the quaternion q2, and the obtained updated direction of the PCA coordinate system is the quaternion q update .
根据四元数q1和四元数q2,得到的更新后的PCA坐标系方向为四元数q update,是通过四元数slerp内插值计算确定的,包括以下步骤: According to quaternion q1 and quaternion q2, the updated PCA coordinate system direction obtained is quaternion q update , which is determined by quaternion slerp interpolation calculation, including the following steps:
计算q1和q2之间的相对旋转Δq,Δq=q 1 -1*q2=(Δq w Δq X Δq Y Δq Z) T;其中,Δq w,Δq X,Δq Y,Δq Z这四个是四元数的四个分量。 Calculate the relative rotation Δq between q1 and q2, Δq=q 1 -1 *q2=(Δq w Δq X Δq Y Δq Z ) T ; among them, Δq w , Δq X , Δq Y , Δq Z are four The four components of an arity.
计算第一点云物体和第二点云物体的点云中心之间的旋转角度θ,θ=2*arccos(Δq w) Calculate the rotation angle θ between the point cloud center of the first point cloud object and the second point cloud object, θ=2*arccos(Δq w )
slerp内插值为q update=(q1*sin((1-t)θ/2)+q2*sin(tθ/2))/sin(θ/2) The slerp interpolation value is q update = (q1*sin((1-t)θ/2)+q2*sin(tθ/2))/sin(θ/2)
其中,t属于(0,1)。在本实施例中t=0.5。Among them, t belongs to (0,1). In this example t=0.5.
具体地,对第一语义信息中的PCA坐标系方向和第二语义信息中的PCA坐标系方向进行插值处理,得到更新后的PCA坐标系方向,根据更新后的PCA坐标系方向更新点云主方向,使用更新更新后的PCA坐标系方向的同一个轴(如x轴,或y轴,或z轴),作为更新主方向。Specifically, perform interpolation processing on the direction of the PCA coordinate system in the first semantic information and the direction of the PCA coordinate system in the second semantic information to obtain the updated direction of the PCA coordinate system, and update the point cloud master according to the updated direction of the PCA coordinate system Direction, use the same axis (such as x-axis, or y-axis, or z-axis) of the updated PCA coordinate system direction as the update main direction.
具体地,对第一点云物体local坐标系下的第一语义信息中的点云中心(CX 1,CY 1,CZ 1),和第二点云物体local坐标系下的第二语义信息中的点云中心(CX 2,CY 2,CZ 2)进行均值处理后进行坐标转换,得到世界坐标下的更新点云中心C update,可以通过以下方式来表示: Specifically, for the point cloud center (CX 1 , CY 1 , CZ 1 ) in the first semantic information in the local coordinate system of the first point cloud object, and in the second semantic information in the local coordinate system of the second point cloud object The center of the point cloud (CX 2 , CY 2 , CZ 2 ) is subjected to mean value processing and coordinate transformation is performed to obtain the updated point cloud center C update in world coordinates, which can be expressed in the following way:
C update=[CX update CY update CZ update] T;其中,CX update=(CX 1+CX 2)/2;CY update=(CY 1+CY 2)/2;CY update=(CY 1+CY 2)/2; C update =[CX update CY update CZ update ] T ; Among them, CX update =(CX 1 +CX 2 )/2; CY update =(CY 1 +CY 2 )/2; CY update =(CY 1 +CY 2 )/2;
在一实施例中,语义信息平均处理方法还包括,对第一语义信息中的点云最小包围盒和第二语义信息中的点云最小包围盒进行均值处理,得到更新点云最小包围盒;基于更新后的PCA坐标系方向,将更新点云中心进行坐标转换,转换至更新物体坐标系下,得到目标点云中心坐标。In an embodiment, the semantic information averaging processing method further includes performing mean value processing on the minimum bounding box of the point cloud in the first semantic information and the minimum bounding box of the point cloud in the second semantic information to obtain an updated minimum bounding box of the point cloud; Based on the updated direction of the PCA coordinate system, the center of the updated point cloud is converted to the updated object coordinate system to obtain the center coordinates of the target point cloud.
其中,点云最小包围盒的包围盒尺寸为宽width、高height、深depth,width<height<depth;根据对第一语义信息中的点云最小包围盒(w1,h1,d1)和第二语义信息中的点云最小包围盒(w2,h2,d2)进行均值处理,得到更新后的点云最小包围的包围盒尺寸为(w update,h update,d update)。其中:w update=(w1+w2)/2;h update=(h1+h2)/2;d update=(d1+d2)/2 Among them, the size of the bounding box of the smallest bounding box of the point cloud is width, height, and depth, and width<height<depth; according to the smallest bounding box of the point cloud (w1, h1, d1) in the first semantic information and the second The smallest bounding box (w2, h2, d2) of the point cloud in the semantic information is averaged, and the size of the smallest bounding box of the updated point cloud is (w update , h update , d update ). Where: w update = (w1+w2)/2; h update = (h1+h2)/2; d update = (d1+d2)/2
基于更新后的PCA坐标系方向q update,将更新点云中心C update=[CX updateCY updateCZ update] T进行坐标转换,转换至PCA计算的更新物体坐标系下,得到目标点云中心坐标C local=[CX localCY localCZ local] TBased on the updated PCA coordinate system direction q update , the coordinate conversion of the updated point cloud center C update = [CX update CY update CZ update ] T is performed, and converted to the updated object coordinate system calculated by PCA to obtain the target point cloud center coordinate C local = [CX local CY local CZ local ] T .
进一步地,根据目标点云中心坐标和更新点云最小包围盒,得到更新包围框的顶点坐标。Further, according to the center coordinates of the target point cloud and the minimum bounding box of the updated point cloud, the vertex coordinates of the updated bounding box are obtained.
具体地,根据目标点云中心坐标和更新点云最小包围盒的尺寸信息来确定顶点坐标;其中,尺寸信息包括宽度、高度和深度;具体包括以下步骤:Specifically, determine the vertex coordinates according to the target point cloud center coordinates and update the size information of the minimum bounding box of the point cloud; wherein the size information includes width, height and depth; specifically include the following steps:
首先,根据目标点云中心的x轴坐标以及宽度获得更新包围框在x轴的顶点坐标。其次,根据目标点云中心的y轴坐标以及高度获得更新包围框在y轴的顶点坐标。再此,根据目标点云中心的z轴坐标以及深度获得更新包围框在z轴的顶点坐标。最后,根据更新包围框在x轴的顶点坐标、在y轴的顶点坐标,以及在z轴的顶点坐标得到更新包围框的顶点坐标。First, the vertex coordinates of the updated bounding box on the x-axis are obtained according to the x-axis coordinates and width of the center of the target point cloud. Secondly, the vertex coordinates of the updated bounding box on the y-axis are obtained according to the y-axis coordinates and the height of the center of the target point cloud. Furthermore, according to the z-axis coordinates and depth of the center of the target point cloud, the vertex coordinates of the updated bounding box on the z-axis are obtained. Finally, the vertex coordinates of the updated bounding box are obtained according to the vertex coordinates of the updated bounding box on the x-axis, the vertex coordinates on the y-axis, and the vertex coordinates on the z-axis.
也就是说,根据目标点云中心的x轴坐标以及宽度获得local坐标系x轴上的最大值和最小值;根据目标点云中心的y轴坐标以及高度获得local坐标系y轴上的最大值和最小值;根据目标点云中心的z轴坐标以及深度获得local坐标系z轴上的最大值和最小值;根据x轴上的最大值和最小值、y轴上的最大值和最小值,以及z轴上的最大值和最小值确定更新包围框的顶点坐标。That is to say, the maximum and minimum values on the x-axis of the local coordinate system are obtained according to the x-axis coordinates and width of the target point cloud center; the maximum value on the y-axis of the local coordinate system is obtained according to the y-axis coordinates and height of the target point cloud center and the minimum value; according to the z-axis coordinates and depth of the target point cloud center, the maximum and minimum values on the z-axis of the local coordinate system are obtained; according to the maximum and minimum values on the x-axis, the maximum and minimum values on the y-axis, And the maximum and minimum values on the z-axis determine the vertex coordinates of the updated bounding box.
具体地,将local坐标系x轴上的最大值和最小值、y轴上的最大值和最小值,以及z轴上的最大值和最小值反转到世界坐标下,得到对应坐标系下的x轴上的最大值和最小值、y轴上的最大值和最小值,以及z轴上的最大值和最小值,进而得到更新包围框的8个顶点坐标。即根据更新后的点云最小包围盒(w update,h update,d update)和local坐标系下的Clocal=(CX localCY localCZ local) T,确定local坐标系下x,y,z方向的最大值和最小值,如下: Specifically, the maximum and minimum values on the x-axis, the maximum and minimum values on the y-axis, and the maximum and minimum values on the z-axis of the local coordinate system are reversed to the world coordinates, and the corresponding coordinate system is obtained. The maximum and minimum values on the x-axis, the maximum and minimum values on the y-axis, and the maximum and minimum values on the z-axis are obtained to obtain the 8 vertex coordinates of the updated bounding box. That is, according to the updated minimum bounding box of the point cloud (w update , h update , d update ) and Clocal=(CX local CY local CZ local ) T in the local coordinate system, determine the x, y, z directions in the local coordinate system The maximum and minimum values are as follows:
Figure PCTCN2023070501-appb-000004
Figure PCTCN2023070501-appb-000004
Figure PCTCN2023070501-appb-000005
Figure PCTCN2023070501-appb-000005
Figure PCTCN2023070501-appb-000006
Figure PCTCN2023070501-appb-000006
将上述local坐标系下求出的最大值和最小值反转到世界坐标下,得到对应的坐标下x,y,z方向的最大值和最小值x min,x max,y min,y max,z min,z max得到更新包围框的8个顶点坐标为:1(x max,y max,z max),2(x max,y max,z min),3(x max,y min,z min),4(x max,y min,z max),5(x min,y max,z max),6(x min,y max,z min),6(x min,y min,z min),8(x min,y min,z max)。 Reverse the maximum and minimum values obtained in the above local coordinate system to the world coordinates, and obtain the maximum and minimum values in the x, y, and z directions under the corresponding coordinates x min , x max , y min , y max , z min , z max get the 8 vertex coordinates of the updated bounding box: 1(x max ,y max ,z max ), 2(x max ,y max ,z min ), 3(x max ,y min ,z min ), 4(x max ,y min ,z max ), 5(x min ,y max ,z max ), 6(x min ,y max ,z min ), 6(x min ,y min ,z min ), 8(x min ,y min ,z max ).
进一步地,对第一语义信息中的点云凸包和第二语义信息中的点云凸包进行平移旋转和坐标转换处理,得到更新点云凸包;根据第一点云物体的物体点云进行坐标系转换更新第二语义信息中的直方图,得到更新直方图。Further, the point cloud convex hull in the first semantic information and the point cloud convex hull in the second semantic information are translated, rotated and coordinate transformed to obtain an updated point cloud convex hull; according to the object point cloud of the first point cloud object Perform coordinate system conversion to update the histogram in the second semantic information to obtain the updated histogram.
具体地,根据更新后的PCA坐标系方向q update和更新点云中心C update,将第一语义信息中的点云凸包M1和第二语义信息中的点云凸包M2平移旋转到以C update为中心、q update为旋转方向的local坐标下,得到两个点云凸包的融合点云凸包M local,采用现有的点云凸包计算方式重新计算融合点云凸包M local的凸包,采用更新后的点云最小包围盒(w update,h update,d update)对融合点云凸包M local的凸包进行过滤,得到过滤后的点云凸包M local+update,将点云凸包M local+update经过坐标系转换到世界坐标系下,得到更新点云凸包M updateSpecifically, according to the updated PCA coordinate system direction q update and the updated point cloud center C update , the point cloud convex hull M1 in the first semantic information and the point cloud convex hull M2 in the second semantic information are translated and rotated to C Update is the center and q update is the local coordinate of the rotation direction, and the fusion point cloud convex hull M local of the two point cloud convex hulls is obtained, and the existing point cloud convex hull calculation method is used to recalculate the fusion point cloud convex hull M local Convex hull, using the updated minimum bounding box of the point cloud (w update , h update , d update ) to filter the convex hull of the fused point cloud convex hull M local to obtain the filtered point cloud convex hull M local+update , and set The point cloud convex hull M local+update is transformed into the world coordinate system through the coordinate system, and the updated point cloud convex hull M update is obtained.
其中,在语义地图中,不需要保存物体点云本身,可以根据新采集的众包地图的物体点云数据重新确定直方图。Among them, in the semantic map, there is no need to save the object point cloud itself, and the histogram can be re-determined according to the object point cloud data of the newly collected crowdsourced map.
具体地,根据PCA坐标系方向q update更新点云中心C update,和第一点云物体的PCA坐标系方向q1点云中心c1之间的相对关系,将第一点云物体的物体点云PLC 1转换到q update和C update的local坐标系下PLC local,在通过转换至世界坐标系下,得到PLC updat;采用更新后的点云最小包围盒(w update,h update,d update)对更新后的物体点云过滤,过滤在点云最小包围盒(w update,h update,d update)外的点后,重新计算直方图,得到众包地图和语义地图中同一物体的更新直方图。 Specifically, according to the relative relationship between the PCA coordinate system direction q update update point cloud center C update and the PCA coordinate system direction q1 point cloud center c1 of the first point cloud object, the object point cloud PLC of the first point cloud object 1 Convert to the PLC local in the local coordinate system of q update and C update , and obtain the PLC update by converting to the world coordinate system; use the updated minimum bounding box of the point cloud (w update , h update , d update ) to update After filtering the point cloud of the object, after filtering the points outside the minimum bounding box of the point cloud (w update , h update , d update ), recalculate the histogram to obtain the updated histogram of the same object in the crowdsourced map and the semantic map.
此时,根据更新后的PCA坐标系方向、更新点云中心、顶点坐标、更新点云凸包和更新直方图,得到更新后的第一点云物体的平均语义信息。At this time, according to the updated PCA coordinate system direction, updated point cloud center, vertex coordinates, updated point cloud convex hull and updated histogram, the average semantic information of the updated first point cloud object is obtained.
在另一实施例中,提供了一种语义地图更新方法,该方法包括:根据至少一个物体点云构造至少一个第一点云物体并提取对应的第一语义信息;响应于当前采集区域存在原始语义地图,获取原始语义地图,并从原始语义地图中获取至少一个第二点云物体以及对应的第二语义信息;对第一点云物体和至少一个第二点云物体中与第一点云物体匹配成功的匹配点云物体进行语义平均处理,得到语义平均点云物体;将语义平均点云物体替换原始语义地图中匹配点云物体,以更新原始语义地图。In another embodiment, a method for updating a semantic map is provided, which includes: constructing at least one first point cloud object according to at least one object point cloud and extracting corresponding first semantic information; in response to the presence of original Semantic map, obtain the original semantic map, and obtain at least one second point cloud object and the corresponding second semantic information from the original semantic map; The matched point cloud objects with successful object matching are semantically averaged to obtain semantically averaged point cloud objects; the semantically averaged point cloud objects are replaced with matching point cloud objects in the original semantic map to update the original semantic map.
其中,平均语义信息至少包括更新后的PCA坐标系方向、更新点云中心、更新包围框的顶点坐标、更新点云凸包和更新直方图中任意一种。Wherein, the average semantic information includes at least any one of the updated PCA coordinate system orientation, the updated point cloud center, the updated vertex coordinates of the bounding box, the updated convex hull of the point cloud, and the updated histogram.
具体地,根据第一语义信息和第二语义信息进行语义平均处理,更新第一点云物体的第一语义信息,得到更新后的第一点云物体更新后的PCA坐标系方向、更新点云中心、更新包围框的顶点坐标、更新点云凸包和更新直方图中任意一种平均语义信息。Specifically, perform semantic averaging processing according to the first semantic information and the second semantic information, update the first semantic information of the first point cloud object, obtain the updated PCA coordinate system direction of the first point cloud object after updating, and update the point cloud Center, update the vertex coordinates of the bounding box, update the convex hull of the point cloud, and update any average semantic information in the histogram.
可选地,在一个实施例中,对第一语义信息中的PCA坐标系方向和第二语义信息中的PCA坐标系方向进行插值处理,得到更新后的PCA坐标系方向;根据更新后的PCA坐标系方向,得到更新后的第一点云物体的平均语义信息。Optionally, in one embodiment, an interpolation process is performed on the direction of the PCA coordinate system in the first semantic information and the direction of the PCA coordinate system in the second semantic information to obtain an updated direction of the PCA coordinate system; according to the updated PCA Orientation of the coordinate system to obtain the average semantic information of the updated first point cloud object.
可选地,在一个实施例中,在确定更新后的PCA坐标系方向,对第一语义信息中的点云中心和第二语义信息中的点云中心进行均值处理,得到更新点云中心;根据更新后的PCA坐标系方向和更新点云中心,得到更新后的第一点云物体的平均语义信息。Optionally, in one embodiment, after determining the updated PCA coordinate system direction, mean value processing is performed on the point cloud center in the first semantic information and the point cloud center in the second semantic information to obtain an updated point cloud center; According to the updated PCA coordinate system direction and the updated point cloud center, the average semantic information of the updated first point cloud object is obtained.
可选地,在一个实施例中,在确定更新后的PCA坐标系方向和更新点云中心,还对第一语义信息中的点云最小包围盒和第二语义信息中的点云最小包围盒进行均值处理和坐标转换处理,得到更新包围框的顶点坐标;根据更新后的PCA坐标系方向、更新点云中心和更新包围框的顶点坐标,得到更新后的第一点云物体的平均语义信息。Optionally, in one embodiment, after determining the updated PCA coordinate system direction and updating the point cloud center, the minimum bounding box of the point cloud in the first semantic information and the minimum bounding box of the point cloud in the second semantic information Perform mean value processing and coordinate conversion processing to obtain the vertex coordinates of the updated bounding box; according to the updated PCA coordinate system direction, the updated point cloud center and the vertex coordinates of the updated bounding box, the average semantic information of the updated first point cloud object is obtained .
可选地,在一个实施例中,在确定更新后的PCA坐标系方向、更新点云中心和更新包围框的顶点坐标,还对第一语义信息中的点云凸包和第二语义信息中的点云凸包进行平移旋转和坐标转换处理,得到更新点云凸包;根据更新后的PCA坐标系方向、更新点云中心、更新包围框的顶点坐标和更新点云凸包,得到更新后的第一点云物体的平均语义信息。Optionally, in one embodiment, after determining the updated PCA coordinate system direction, updating the point cloud center and updating the vertex coordinates of the bounding box, the convex hull of the point cloud in the first semantic information and the second semantic information The convex hull of the point cloud is translated, rotated and coordinate transformed to obtain an updated convex hull of the point cloud; according to the updated PCA coordinate system direction, the updated point cloud center, the vertex coordinates of the updated bounding box and the updated point cloud convex hull, the updated The average semantic information of the first point cloud object of .
可选地,在一个实施例中,确定更新后的PCA坐标系方向、更新点云中心、更新包围框的顶点坐标和更新点云凸包,还根据第一点云物体的物体点云进行坐标系转换更新第二语义信息中的直方图,得到更新直方图;根据更新后的PCA坐标系方向、更新点云中心、更新包围框的顶点坐标、更新点云凸包和更新直方图,得到更新后的第一点云物体的平均语义信息。Optionally, in one embodiment, determine the updated PCA coordinate system direction, update the point cloud center, update the vertex coordinates of the bounding box and update the point cloud convex hull, and also perform coordinates according to the object point cloud of the first point cloud object System conversion updates the histogram in the second semantic information to obtain an updated histogram; according to the updated PCA coordinate system direction, updated point cloud center, updated vertex coordinates of the bounding box, updated point cloud convex hull and updated histogram, updated After the average semantic information of the first point cloud object.
在另一实施例中,提供了一种语义地图更新方法,该方法包括:根据至少一个物体点云构造至少一个第一点云物体并提取对应的第一语义信息,响应于当前采集区域存在原始语义地图,获取原始语义地图,并从原始语义地图中获取至少一个第二点云物体以及对应的第二语义信息,对第一语义信息中的PCA坐标系方向和第二语义信息中的PCA坐标系方向进行插值处理,得到更新后的PCA坐标系方向。进一步地,对第一语义信息中的点云中心和第二语义信息中的点云中心进行均值处理得到更新点云中心,首先,对第一语义信息中的点云最小包围盒和第二语义信息中的点云最小包围盒进行均值处理和坐标转换处理,得到更新包围框的顶点坐标;其次,对第一语义信息中的点云凸包和第二语义信息中的点云凸包进行平移旋转和坐标转换处理,得到更新点云凸包;再次,根据第一点云物体的物体点云进行坐标系转换更新第二语义信息中的直方图,得到更新直方图;最后,根据更新后的PCA坐标系方向、更新点云中心、顶点坐标、更新点云凸包和更新直方图,得到更新后的第一点云物体的平均语义信息,根据平均语义信息更新语义地图,并基于更新语义地图后得到的更新语义地图进行定位。In another embodiment, a semantic map update method is provided, the method includes: constructing at least one first point cloud object according to at least one object point cloud and extracting the corresponding first semantic information, in response to the existence of original Semantic map, obtaining the original semantic map, and obtaining at least one second point cloud object and the corresponding second semantic information from the original semantic map, for the direction of the PCA coordinate system in the first semantic information and the PCA coordinates in the second semantic information The direction of the PCA coordinate system is interpolated to obtain the updated direction of the PCA coordinate system. Further, the point cloud center in the first semantic information and the point cloud center in the second semantic information are averaged to obtain an updated point cloud center. First, the minimum bounding box of the point cloud in the first semantic information and the second semantic information The minimum bounding box of the point cloud in the information is subjected to mean value processing and coordinate conversion processing to obtain the vertex coordinates of the updated bounding box; secondly, the convex hull of the point cloud in the first semantic information and the convex hull of the point cloud in the second semantic information are translated Rotation and coordinate conversion processing, to obtain the updated convex hull of the point cloud; again, according to the object point cloud of the first point cloud object, the coordinate system conversion is performed to update the histogram in the second semantic information, and the updated histogram is obtained; finally, according to the updated PCA coordinate system direction, update point cloud center, vertex coordinates, update point cloud convex hull and update histogram, get the average semantic information of the updated first point cloud object, update the semantic map according to the average semantic information, and update the semantic map based on The updated semantic map obtained after that is used for localization.
其中,根据更新后的语义地图进行回环检测和定位;其中,定位和回环检测的方法可以通过现有方式实现,在此不做赘述。其中,回环检测又称闭环检测,是指设备识别曾到达某场景,使得地图闭环的能力,即能将此刻生成的地图与刚刚生成的地图做匹配。Wherein, the loop closure detection and positioning are performed according to the updated semantic map; wherein, the methods of positioning and loop closure detection can be realized through existing methods, and will not be repeated here. Among them, loopback detection, also known as closed-loop detection, refers to the ability of the device to identify that it has reached a certain scene and make the map closed-loop, that is, it can match the map generated at the moment with the map just generated.
在一个实施例中,至少一个第一点云物体和至少一个第二点云物体的匹配结果包括众包语义地图中的第一未匹配点云物体集合和原始语义地图中的第二未匹配点云物体集合。In one embodiment, the matching result of at least one first point cloud object and at least one second point cloud object includes the first unmatched point cloud object set in the crowdsourced semantic map and the second unmatched point in the original semantic map A collection of cloud objects.
其中,第一未匹配点云物体集合是指众包地图中的点云物体在语义地图中没有匹配到对应的点云物体的集合,众包地图中的该点云物体可能是新增点云物体;第二未匹配点云物体集合是指语义地图中点云物体在众包地图中没有匹配到对应的点云物体的集合,语义地图中的该点云物体可能是消失的点云物体。Among them, the first set of unmatched point cloud objects refers to the set of point cloud objects in the crowdsourcing map that do not match the corresponding point cloud objects in the semantic map. The point cloud objects in the crowdsourcing map may be newly added point clouds Objects; the second set of unmatched point cloud objects refers to the set of point cloud objects in the semantic map that do not match the corresponding point cloud objects in the crowdsourced map, and the point cloud objects in the semantic map may be point cloud objects that have disappeared.
可以理解的是在非理想情况下,如环境遮挡,或者传感器性能(比如只扫到物体一半),往往会误匹配认为是两种不同物体,在匹配过程中会不匹配到匹配点云物体;在第一次匹配过程中会确定为新添加的点云物体和消失点云物体;新添加的点云物体是指新采集的众包地图中相比于语义地图新加的点云物体,消失点云物体是指新采集的众包地图相比语义地图消失的点云物体。It is understandable that under non-ideal conditions, such as environmental occlusion, or sensor performance (for example, only half of the object is scanned), it is often mis-matched as two different objects, and the matching point cloud object will not be matched during the matching process; In the first matching process, it will be determined as the newly added point cloud object and the disappearing point cloud object; the newly added point cloud object refers to the point cloud object newly collected in the crowdsourcing map compared with the semantic map, and the disappearing The point cloud object refers to the point cloud object that the newly collected crowdsourced map disappears compared with the semantic map.
根据新采集的众包地图和已有的语义地图中的点云物体的语义信息确定语义距离,将得到的语义距离与预先设置的权值进行加权处理,得到最终的语义距离;根据语义距离对众包地图与语义地图进行二分图匹配,得到存在点云物体匹配对和/或不存在点云物体匹配对;将不存在点云物体匹配对的点云物体确定为未匹配点云物体。The semantic distance is determined according to the semantic information of the newly collected crowdsourced map and the existing semantic map, and the semantic distance is weighted with the preset weight to obtain the final semantic distance; according to the semantic distance The bipartite graph matching is performed between the crowdsourced map and the semantic map to obtain matching pairs of point cloud objects and/or no matching pairs of point cloud objects; the point cloud objects without matching pairs of point cloud objects are determined as unmatched point cloud objects.
具体地,根据新采集的众包地图和已有的语义地图中的点云物体的语义信息确定语义距离,将得到的语义距离与预先设置的权值进行加权处理,得到最终的语义距离;根据语义距离对众包地图与语义地图进行二分图匹配,得到存在点云物体匹配对和/或不存在点云物体匹配对,将不存在点云物体匹配对的点云物体确定为未匹配点云物体;也就是说得到第一次匹配过程中认定众包地图中新增点云物体的第一未匹配点云物体集合,和/或,语义地图中消失点云物体的第二未匹配点云物体集合。Specifically, the semantic distance is determined according to the newly collected crowdsourced map and the semantic information of the point cloud objects in the existing semantic map, and the obtained semantic distance is weighted with the preset weight to obtain the final semantic distance; according to Semantic distance matches the bipartite graph between the crowdsourced map and the semantic map to obtain the matching pairs of point cloud objects and/or the absence of point cloud object matching pairs, and determine the point cloud objects without point cloud object matching pairs as unmatched point clouds Objects; that is to say, the first unmatched point cloud object set that is identified as a new point cloud object in the crowdsourced map during the first matching process, and/or, the second unmatched point cloud object set that disappears in the semantic map collection of objects.
根据所述匹配结果,利用至少一个第一点云物体,更新原始语义地图,如图6所示,以该方法应用于图1中的终端为例进行说明,包括以下步骤:According to the matching result, at least one first point cloud object is used to update the original semantic map, as shown in Figure 6, and the method is applied to the terminal in Figure 1 as an example, including the following steps:
步骤602,判断第一未匹配点云物体集合中的各第一未匹配点云物体与原始语义地图中预设语义距离范围内对应的点云物体是否存在包围盒碰撞。 Step 602, judging whether there is a bounding box collision between each first unmatched point cloud object in the first unmatched point cloud object set and the corresponding point cloud object within a preset semantic distance range in the original semantic map.
其中,预设语义距离范围内是预先设置的,用于从语义地图中,确定与确定第一未匹配点云物体集合中的各第一未匹配点云物体在预设语义距离范围内对应的点云物体(可以理解为第一候选点云物体)。Wherein, the preset semantic distance range is preset, and is used to determine from the semantic map and determine the corresponding first unmatched point cloud object in the first unmatched point cloud object set within the preset semantic distance range Point cloud object (can be understood as the first candidate point cloud object).
包围盒碰撞,即OBB碰撞(Oriented Bounding Box,方向包围盒),OBB碰撞处理采用但不仅限于是分离轴定理,可以理解为如果能找到一个轴,两个凸形状在该轴上的投影不重叠,则这两个形状不相交。如果这个轴不存在,并且那些形状是凸形的,则可以确定两个形状相交(凹形不适用,比如月牙形状,即使找不到分离轴,两个月牙形也可能不相交)。Bounding box collision, that is, OBB collision (Oriented Bounding Box, direction bounding box), OBB collision processing uses but is not limited to the separation axis theorem, which can be understood as if an axis can be found, the projections of two convex shapes on the axis do not overlap , then the two shapes do not intersect. If this axis does not exist, and those shapes are convex, you can be sure that two shapes intersect (not applicable for concave shapes, such as crescent shapes, and two crescent shapes may not intersect even if no separating axis can be found).
也可理解为,如果能找到一条直线,令包围盒A完全在直线的一边,包围盒B完全在另一边,则两包围盒不重叠。而这条直线便成为分离线(在三维世界中被称为分离面),并且一定垂直于分离轴。在本实施例中,OBB碰撞处理需要测试15个分离轴,来确定OBB的相交状态。其中,两个OBB的坐标轴各3个,再加上垂直于每个轴的9个轴。碰撞判断和现有的二维OBB碰撞相同,即两个多边形在所有轴上的投影都发生重叠,则判定为碰撞;否则,没有发生碰撞,在此不做在赘述。It can also be understood that if a straight line can be found, so that the bounding box A is completely on one side of the line, and the bounding box B is completely on the other side, then the two bounding boxes do not overlap. And this straight line becomes the separation line (called the separation plane in the three-dimensional world), and must be perpendicular to the separation axis. In this embodiment, the OBB collision processing needs to test 15 separate axes to determine the intersection state of the OBB. Among them, there are 3 coordinate axes for each of the two OBBs, plus 9 axes perpendicular to each axis. The collision judgment is the same as the existing two-dimensional OBB collision, that is, if the projections of two polygons on all axes overlap, it is judged as a collision; otherwise, no collision occurs, so I won’t repeat it here.
具体地,获取第一未匹配点云物体集合中的各第一未匹配点云物体,以及预设语义距离范围内对应的点云物体的语义信息,计算语义距离,确定在预设语义距离范围的第一候选点云物体,判断所述第一未匹配点云物体集合中的各第一未匹配点云物体与对应的第一候选点云物体是否存在包围盒碰撞,得到包围盒碰撞结果;包围盒碰撞结果包括存在包围盒碰撞或不存在包围盒碰撞。Specifically, acquire each first unmatched point cloud object in the first unmatched point cloud object set, and the semantic information of the corresponding point cloud object within the preset semantic distance range, calculate the semantic distance, and determine that within the preset semantic distance range The first candidate point cloud object, determine whether each first unmatched point cloud object in the first unmatched point cloud object set has a bounding box collision with the corresponding first candidate point cloud object, and obtain a bounding box collision result; Bounding box collision results include the presence of bounding box collisions or the absence of bounding box collisions.
步骤604,判断第二未匹配点云物体集合中的各第二未匹配点云物体与众包语义地图中预设语义距离范围内对应的点云 物体是否存在包围盒碰撞。 Step 604, judging whether there is a bounding box collision between each second unmatched point cloud object in the second unmatched point cloud object set and the corresponding point cloud object within the preset semantic distance range in the crowdsourcing semantic map.
其中,预设语义距离范围内是预先设置的,用于从众包地图中,确定与确定第二未匹配点云物体集合中的各第二未匹配点云物体在预设语义距离范围内对应的点云物体(可以理解为第二候选点云物体)。Wherein, the preset semantic distance range is preset, and is used to determine from the crowdsourced map and determine the corresponding second unmatched point cloud objects in the second unmatched point cloud object set within the preset semantic distance range Point cloud object (can be understood as the second candidate point cloud object).
具体地,获取第二未匹配点云物体集合中的各第二未匹配点云物体,以及预设语义距离范围内对应的点云物体的语义信息,计算语义距离,确定在预设语义距离范围的第二候选点云物体,判断所述第二未匹配点云物体集合中的各第二未匹配点云物体与对应的候选点云物体是否存在包围盒碰撞,得到包围盒碰撞结果;包围盒碰撞结果包括存在包围盒碰撞或不存在包围盒碰撞。Specifically, acquire each second unmatched point cloud object in the second unmatched point cloud object set, and the semantic information of the corresponding point cloud object within the preset semantic distance range, calculate the semantic distance, and determine that within the preset semantic distance range The second candidate point cloud object, judge whether there is a bounding box collision between each second unmatched point cloud object in the second unmatched point cloud object set and the corresponding candidate point cloud object, and obtain the bounding box collision result; Collision results include the presence of bounding box collisions or the absence of bounding box collisions.
步骤606,根据第一未匹配点云物体的包围盒碰撞结果,和/或,第二未匹配点云物体的包围盒碰撞结果,更新原始语义地图。Step 606: Update the original semantic map according to the bounding box collision result of the first unmatched point cloud object and/or the bounding box collision result of the second unmatched point cloud object.
可以理解的是,对同一采集区域的新采集的众包语义地图和原始语义地图进行匹配时,得到第一未匹配点云物体集合和第二未匹配点云物体集合中至少一种;也就是说,在第一次匹配过程中认定众包语义地图中有新增点云物体,和/或,原始语义地图中有消失的点云物体。更新语义地图是包括添加新增的点云物体和/或删除消失的点云物体。It can be understood that when matching the newly collected crowdsourced semantic map and the original semantic map in the same collection area, at least one of the first unmatched point cloud object set and the second unmatched point cloud object set is obtained; that is Say, in the first matching process, it is determined that there are new point cloud objects in the crowdsourced semantic map, and/or, there are missing point cloud objects in the original semantic map. Updating the semantic map includes adding new point cloud objects and/or deleting missing point cloud objects.
具体地,根据第一未匹配点云物体的包围盒碰撞结果为第二未匹配点云物体不存在包围盒碰撞,和/或,第二未匹配点云物体的包围盒碰撞结果为第一未匹配点云物体不存在包围盒碰撞,更新语义地图;以及根据第一未匹配点云物体的包围盒碰撞结果为第二未匹配点云物体存在包围盒碰撞,和/或,第二未匹配点云物体的包围盒碰撞结果为第一未匹配点云物体存在包围盒碰撞,更新语义地图。Specifically, according to the bounding box collision result of the first unmatched point cloud object, there is no bounding box collision for the second unmatched point cloud object, and/or, the bounding box collision result of the second unmatched point cloud object is the first unmatched point cloud object. There is no bounding box collision of the matching point cloud object, and the semantic map is updated; and according to the bounding box collision result of the first unmatched point cloud object, there is a bounding box collision for the second unmatched point cloud object, and/or, the second unmatched point cloud object has a bounding box collision The bounding box collision result of the cloud object is that the first unmatched point cloud object has a bounding box collision, and the semantic map is updated.
进一步地,当第一未匹配点云物体的包围盒碰撞结果为第二未匹配点云物体不存在包围盒碰撞时,将第二未匹配点云物体从语义地图中删除;当第二未匹配点云物体的包围盒碰撞结果为第一未匹配点云物体不存在包围盒碰撞时,将第一未匹配点云物体添加至语义地图中。Further, when the bounding box collision result of the first unmatched point cloud object is that there is no bounding box collision for the second unmatched point cloud object, the second unmatched point cloud object is deleted from the semantic map; when the second unmatched point cloud object When the bounding box collision result of the point cloud object is that there is no bounding box collision of the first unmatched point cloud object, the first unmatched point cloud object is added to the semantic map.
对同一采集区域的新采集的众包地图和已有的语义地图进行匹配,对同一采集区域的新采集的众包地图和已有的语义地图进行匹配,得到第一未匹配点云物体集合和第二未匹配点云物体集合中至少一种;对第一未匹配点云物体集合中的点云物体和第二未匹配点云物体集合中的点云物体进行包围盒碰撞,对第一次匹配中不存在未匹配点云物体,进行匹配二次检测,提高地图更新精度。Match the newly collected crowdsourced map in the same collection area with the existing semantic map, and match the newly collected crowdsourced map in the same collection area with the existing semantic map to obtain the first unmatched point cloud object set and At least one of the second set of unmatched point cloud objects; performing bounding box collision on point cloud objects in the first set of unmatched point cloud objects and point cloud objects in the second set of unmatched point cloud objects, for the first time There is no unmatched point cloud object in the matching, and the matching secondary detection is performed to improve the map update accuracy.
在一实施例中,提供了一种基于第一未匹配点云物体更新原始语义地图的方法,以该方法应用于图1中的终端为例进行说明,包括以下步骤:In one embodiment, a method for updating an original semantic map based on a first unmatched point cloud object is provided, and the method is applied to the terminal in FIG. 1 as an example for illustration, including the following steps:
首先,当第一未匹配点云物体的包围盒碰撞结果为第一未匹配点云物体存在包围盒碰撞时,从原始语义地图中预设距离范围内确定对应的第一碰撞点云物体。First, when the bounding box collision result of the first unmatched point cloud object is that the first unmatched point cloud object has a bounding box collision, determine the corresponding first colliding point cloud object within a preset distance range from the original semantic map.
具体地,对同一采集区域的新采集的众包语义地图和原始语义地图进行匹配,当得到众包语义地图的第一未匹配点云物体集合时,判断第一未匹配点云物体集合中的各第一未匹配点云物体与原始语义地图中预设语义距离范围内对应的点云物体是否存在包围盒碰撞;当第一未匹配点云物体的包围盒碰撞结果为第一未匹配点云物体存在包围盒碰撞时,从原始语义地图中预设距离范围内确定对应的第一碰撞点云物体;当第一未匹配点云物体的包围盒碰撞结果为第一未匹配点云物体不存在包围盒碰撞时,将第一未匹配点云物体添加至原始语义地图中。Specifically, match the newly collected crowdsourced semantic map and the original semantic map in the same collection area, and when the first unmatched point cloud object set of the crowdsourced semantic map is obtained, judge the first unmatched point cloud object set Whether there is a bounding box collision between each first unmatched point cloud object and the corresponding point cloud object within the preset semantic distance range in the original semantic map; when the bounding box collision result of the first unmatched point cloud object is the first unmatched point cloud When the object has a bounding box collision, determine the corresponding first collision point cloud object within the preset distance range from the original semantic map; when the bounding box collision result of the first unmatched point cloud object is that the first unmatched point cloud object does not exist When the bounding box collides, the first unmatched point cloud object is added to the original semantic map.
如图7所示,众包语义地图A的第一未匹配点云物体集合1包括第一未匹配点云物体n和第一未匹配点云物体m,第一未匹配点云物体n与预设距离范围内的原始语义地图B(包括点云物体d和点云物体f)内点云物体d存在包围盒碰撞,确定点云物体d为第一碰撞点云物体。As shown in Figure 7, the first unmatched point cloud object set 1 of the crowdsourcing semantic map A includes the first unmatched point cloud object n and the first unmatched point cloud object m, the first unmatched point cloud object n and the preset Assume that there is a bounding box collision of point cloud object d in the original semantic map B (including point cloud object d and point cloud object f) within the distance range, and determine point cloud object d as the first colliding point cloud object.
其次,根据第一未匹配点云物体和第一碰撞点云物体,得到点云占比。Secondly, according to the first unmatched point cloud object and the first collision point cloud object, the point cloud proportion is obtained.
其中,点云占比是指第一未匹配点云物体对应物体点云在第一碰撞点云物体的物体凸包体内点的数量占物体点云总点数的百分比;即将第一未匹配点云物体对应物体点云和第一碰撞点云物体的物体凸包体投影或映射到相同坐标系中,确定同一坐标系下第一未匹配点云物体对应物体点云,在第一碰撞点云物体的物体凸包体中的点数量,根据点数量确定点云占比。Among them, the point cloud proportion refers to the percentage of the number of points in the object point cloud corresponding to the first unmatched point cloud object in the convex hull of the first collision point cloud object to the total number of points in the object point cloud; that is, the first unmatched point cloud The object point cloud corresponding to the object and the object convex hull of the first collision point cloud object are projected or mapped to the same coordinate system, and the first unmatched point cloud object in the same coordinate system is determined to correspond to the object point cloud, and the first collision point cloud object The number of points in the convex hull of the object, and the proportion of the point cloud is determined according to the number of points.
具体地,确定第一未匹配点云物体对应第一物体点云,以及第一碰撞点云物体对应的第一点云物体凸包体;确定第一物体点云中的点在第一点云物体凸包体的点数量,根据点数量与第一物体点云的点总数得到点云占比。Specifically, determine that the first unmatched point cloud object corresponds to the first object point cloud, and the first point cloud object convex hull corresponding to the first collision point cloud object; determine the points in the first object point cloud in the first point cloud The number of points in the convex hull of the object, and the proportion of the point cloud is obtained according to the number of points and the total number of points in the point cloud of the first object.
最后,根据点云占比和设定阈值,更新原始语义地图。Finally, the original semantic map is updated according to the point cloud proportion and the set threshold.
具体地,当点云占比大于或等于设定阈值时,确定第一未匹配点云物体和第一碰撞点云物体为同一物体,保留原始语义地图中原有的点云物体;当点云占比小于设定阈值时,确定第一未匹配点云物体和第一碰撞点云物体不为同一物体;将第一未匹配点云物体添加至原始语义地图中。Specifically, when the point cloud proportion is greater than or equal to the set threshold, it is determined that the first unmatched point cloud object and the first collision point cloud object are the same object, and the original point cloud object in the original semantic map is retained; when the point cloud occupies When the ratio is less than the set threshold, it is determined that the first unmatched point cloud object and the first collision point cloud object are not the same object; and the first unmatched point cloud object is added to the original semantic map.
上述基于第一未匹配点云物体更新原始语义地图的方法中,在第一未匹配点云物体存在包围盒碰撞时,将第一未匹配点云物体和对应的第一碰撞点云物体进行点云检测,根据第一未匹配点云物体对应物体点云在第一碰撞点云物体的物体凸包体内点的数量占物体点云总点数的百分比,更新原始语义地图;避免数据采集过程中传感器误差,或者噪声干扰产生的误差, 提高了地图更新精度。In the above method of updating the original semantic map based on the first unmatched point cloud object, when there is a bounding box collision of the first unmatched point cloud object, the first unmatched point cloud object and the corresponding first collision point cloud object are compared. Cloud detection, update the original semantic map according to the percentage of the number of points in the convex hull of the object point cloud corresponding to the first unmatched point cloud object in the convex hull of the first collision point cloud object to the total points of the object point cloud; Errors, or errors caused by noise interference, improve map update accuracy.
在另一实施例中,提供了一种基于第一未匹配点云物体更新原始语义地图方法,以该方法应用于图1中的终端为例进行说明,包括:当第一未匹配点云物体的包围盒碰撞结果为第一未匹配点云物体存在包围盒碰撞时,从原始语义地图中预设距离范围内确定对应的第一碰撞点云物体;判断第一未匹配点云物体和第一碰撞点云物体是否存在凸包碰撞,若是,对第一未匹配点云物体和第一碰撞点云物体,得到点云占比,并根据点云占比和设定阈值,更新原始语义地图,否则,当不存在凸包碰撞时,确定第一未匹配点云物体和第一碰撞点云物体不为同一物体,进一步地将第一未匹配点云物体添加至原始语义地图中。In another embodiment, a method for updating the original semantic map based on the first unmatched point cloud object is provided, and the method is applied to the terminal in FIG. 1 as an example for illustration, including: when the first unmatched point cloud object When the bounding box collision result of the first unmatched point cloud object has a bounding box collision, determine the corresponding first collision point cloud object within the preset distance range from the original semantic map; determine the first unmatched point cloud object and the first Whether the collision point cloud object has a convex hull collision, if so, for the first unmatched point cloud object and the first collision point cloud object, obtain the point cloud proportion, and update the original semantic map according to the point cloud proportion and set the threshold, Otherwise, when there is no convex hull collision, it is determined that the first unmatched point cloud object and the first collided point cloud object are not the same object, and the first unmatched point cloud object is further added to the original semantic map.
其中,凸包碰撞是指检测一个点云物体的所有凸包点是否在另一个点云物体的凸包体内;例如,比如求出点云物体的凸包每个面的方程f(x,y,z)=0,然后将判断点带入f,和凸包其他点也带入f,如果异号,说明不在内部,这里的判断点是指一个点云物体点云凸包中的每一个点,判断每个点,是否在另一个点云凸包中。Among them, the convex hull collision refers to detecting whether all the convex hull points of a point cloud object are in the convex hull of another point cloud object; for example, to find the equation f(x,y) of each surface of the convex hull of the point cloud object , z)=0, then bring the judgment point into f, and other points of the convex hull into f, if the sign is different, it means that it is not inside, the judgment point here refers to each point cloud convex hull of a point cloud object Point, judge whether each point is in another point cloud convex hull.
可以理解的是,在OBB和凸包碰撞处理存在碰撞,也不能说明两个点云物体是同一物体;在实际是数据采集过程中考虑到传感器误差,或者点云聚类构造物体时,出现较大噪声,都会出现碰撞现象;需要进一步进行点云判断。如图4所示,为匹配成功的两个点云物体;如图8所示,为两个误匹配的点云物体。It is understandable that there is a collision between the OBB and the convex hull collision processing, and it does not mean that the two point cloud objects are the same object; in the actual data collection process, when the sensor error is considered, or the point cloud clustering constructs the object, there is a relatively large Collisions will occur in large noises; further point cloud judgment is required. As shown in Figure 4, it is two point cloud objects that are successfully matched; as shown in Figure 8, it is two incorrectly matched point cloud objects.
上述基于第一未匹配点云物体更新原始语义地图的方法中,在第一未匹配点云物体存在包围盒碰撞时,将第一未匹配点云物体和对应的第一碰撞点云物体进行凸包碰撞和点云检测,更新原始语义地图。即依次进行OBB碰撞检测和凸包碰撞检测,以及点云判断,避免由于遮挡或者传感器性能等原因导致误匹配,对未匹配点云物体,进行匹配二次检测,提高地图更新精度。In the above method of updating the original semantic map based on the first unmatched point cloud object, when the first unmatched point cloud object has a bounding box collision, the first unmatched point cloud object and the corresponding first collision point cloud object are convexly Package collision and point cloud detection, update the original semantic map. That is, OBB collision detection, convex hull collision detection, and point cloud judgment are performed in sequence to avoid mis-matching due to occlusion or sensor performance. For unmatched point cloud objects, matching secondary detection is performed to improve map update accuracy.
在一实施例中,提供了一种基于第二未匹配点云物更新原始语义地图的方法,以该方法应用于图1中的终端为例进行说明,包括:当第二未匹配点云物体的包围盒碰撞结果为第二未匹配点云物体存在包围盒碰撞时,从众包语义地图中预设距离范围内确定对应的第二碰撞点云物体。In an embodiment, a method for updating an original semantic map based on a second unmatched point cloud object is provided, and the method is applied to the terminal in FIG. 1 as an example for illustration, including: when the second unmatched point cloud object When the bounding box collision result of the second unmatched point cloud object has a bounding box collision, determine the corresponding second collision point cloud object within a preset distance range from the crowdsourced semantic map.
具体地,对同一采集区域的新采集的众包语义地图和已有的原始语义地图进行匹配,当得到原始语义地图的第二未匹配点云物体集合时,判断第二未匹配点云物体集合中的各第二未匹配点云物体与原始语义地图中预设语义距离范围内对应的点云物体是否存在包围盒碰撞;当第二未匹配点云物体的包围盒碰撞结果为第二未匹配点云物体存在包围盒碰撞时,从原始语义地图中预设距离范围内确定对应的第二碰撞点云物体;当第二未匹配点云物体的包围盒碰撞结果为第二未匹配点云物体不存在包围盒碰撞时,将第二未匹配点云物体从原始语义地图中删除。Specifically, match the newly collected crowdsourced semantic map with the existing original semantic map in the same collection area, and when the second unmatched point cloud object set of the original semantic map is obtained, judge the second unmatched point cloud object set Whether there is a bounding box collision between each second unmatched point cloud object in the original semantic map and the corresponding point cloud object within the preset semantic distance range; when the bounding box collision result of the second unmatched point cloud object is the second unmatched When there is a bounding box collision of the point cloud object, determine the corresponding second collision point cloud object within the preset distance range from the original semantic map; when the bounding box collision result of the second unmatched point cloud object is the second unmatched point cloud object When there is no bounding box collision, the second unmatched point cloud object is deleted from the original semantic map.
如图7所示,原始语义地图A的第二未匹配点云物体集合包括第二未匹配点云物体n和第二未匹配点云物体m,第二未匹配点云物体n与预设距离范围内的众包语义地图B(包括点云物体d和点云物体f)内点云物体d存在包围盒碰撞,确定点云物体d为第二碰撞点云物体。As shown in Figure 7, the second unmatched point cloud object set of the original semantic map A includes the second unmatched point cloud object n and the second unmatched point cloud object m, the second unmatched point cloud object n and the preset distance There is a bounding box collision of the point cloud object d in the crowdsourced semantic map B (including point cloud object d and point cloud object f) within the range, and the point cloud object d is determined as the second colliding point cloud object.
在一实施例中,基于第二未匹配点云物更新原始语义地图的方法还包括:判断第二未匹配点云物体和第二碰撞点云物体是否存在凸包碰撞;若是,执行当存在凸包碰撞时,确定第二未匹配点云物体和第二碰撞点云物体为同一物体,否则,当不存在凸包碰撞时,确定第二未匹配点云物体和第二碰撞点云物体不为同一物体,进一步地,将第二未匹配点云物体从原始语义地图中删除。In one embodiment, the method for updating the original semantic map based on the second unmatched point cloud object further includes: judging whether there is a convex hull collision between the second unmatched point cloud object and the second colliding point cloud object; When packets collide, determine that the second unmatched point cloud object and the second colliding point cloud object are the same object; otherwise, when there is no convex hull collision, determine that the second unmatched point cloud object and the second colliding point cloud object are not The same object, further, the second unmatched point cloud object is removed from the original semantic map.
上述基于第二未匹配点云物更新原始语义地图的方法,在确定第二未匹配点云物体存在包围盒碰撞时,即第一次匹配确认的消失点云物体对应的第二碰撞点云物体进行凸包碰撞,通过确定是否存在凸包碰撞确认是消失点云物体还是同一点云物体,更新原始语义地图;避免数据采集过程中传感器误差,或者噪声干扰产生的误差,提高了地图更新精度。In the above-mentioned method of updating the original semantic map based on the second unmatched point cloud object, when it is determined that the bounding box collision of the second unmatched point cloud object exists, that is, the second colliding point cloud object corresponding to the disappearing point cloud object confirmed by the first match Carry out convex hull collision, and update the original semantic map by determining whether there is a convex hull collision to confirm whether it is a disappearing point cloud object or the same point cloud object; avoid sensor errors or errors caused by noise interference during data collection, and improve map update accuracy.
在另一实施例中,如图9所示,提供了一种基于三维点云众包式原始语义地图的更新方法,以该方法应用于图1中的终端为例进行说明,包括以下步骤:In another embodiment, as shown in FIG. 9 , a method for updating an original semantic map based on 3D point cloud crowdsourcing is provided. The method is applied to the terminal in FIG. 1 as an example for illustration, including the following steps:
步骤902,对同一采集区域的新采集的众包语义地图和已有的原始语义地图进行匹配,得到第一未匹配点云物体集合和第二未匹配点云物体集合。Step 902, matching the newly collected crowdsourced semantic map and the existing original semantic map in the same collection area to obtain a first set of unmatched point cloud objects and a second set of unmatched point cloud objects.
步骤904,判断第一未匹配点云物体集合、第二未匹配点云物体集合中的点云物体是否存在包围盒碰撞;若否,执行步骤906,若是,执行步骤908。Step 904, judging whether the point cloud objects in the first unmatched point cloud object set and the second unmatched point cloud object set have bounding box collisions; if not, execute step 906; if yes, execute step 908.
具体地,判断第一未匹配点云物体集合中的各第一未匹配点云物体与原始语义地图中预设语义距离范围内对应的点云物体是否存在包围盒碰撞;和/或,判断第二未匹配点云物体集合中的各第二未匹配点云物体与众包语义地图中预设语义距离范围内对应的点云物体是否存在包围盒碰撞;Specifically, determine whether there is a bounding box collision between each first unmatched point cloud object in the first unmatched point cloud object set and the corresponding point cloud object within the preset semantic distance range in the original semantic map; and/or, determine the first Whether there is a bounding box collision between each second unmatched point cloud object in the second unmatched point cloud object set and the corresponding point cloud object within the preset semantic distance range in the crowdsourcing semantic map;
步骤906,将第二未匹配点云物体从原始语义地图中删除,和/或,将第一未匹配点云物体添加至原始语义地图中。 Step 906, delete the second unmatched point cloud object from the original semantic map, and/or add the first unmatched point cloud object to the original semantic map.
步骤908,当包围盒碰撞结果为第一未匹配点云物体存在包围盒碰撞,执行步骤910;包围盒碰撞结果为第二未匹配点云物体存在包围盒碰撞,执行步骤99。 Step 908, when the bounding box collision result is that the first unmatched point cloud object has a bounding box collision, perform step 910; if the bounding box collision result is that the second unmatched point cloud object has a bounding box collision, perform step 99.
步骤910,从原始语义地图中预设距离范围内确定对应的第一碰撞点云物体。Step 910, determine the corresponding first collision point cloud object within the preset distance range from the original semantic map.
步骤912,判断第一未匹配点云物体和第一碰撞点云物体是否存在凸包碰撞;若是,执行步骤914,否则,执行步骤918。Step 912, judge whether there is a convex hull collision between the first unmatched point cloud object and the first colliding point cloud object; if so, go to step 914; otherwise, go to step 918.
步骤914,根据第一未匹配点云物体和第一碰撞点云物体,得到点云占比。Step 914, according to the first unmatched point cloud object and the first colliding point cloud object, obtain the point cloud proportion.
步骤916,根据点云占比和设定阈值,更新原始语义地图。Step 916, update the original semantic map according to the proportion of the point cloud and the set threshold.
步骤918,当不存在凸包碰撞时,确定第一未匹配点云物体和第一碰撞点云物体不为同一物体。Step 918, when there is no convex hull collision, determine that the first unmatched point cloud object and the first colliding point cloud object are not the same object.
步骤920,将第一未匹配点云物体添加至原始语义地图中。 Step 920, adding the first unmatched point cloud object to the original semantic map.
步骤99,从众包语义地图中预设距离范围内确定对应的第二碰撞点云物体。Step 99, determine the corresponding second collision point cloud object within the preset distance range from the crowdsourced semantic map.
步骤924,判断第二未匹配点云物体和第二碰撞点云物体是否存在凸包碰撞,若是,执行步骤930,否则,执行步骤926。Step 924 , judging whether there is a convex hull collision between the second unmatched point cloud object and the second colliding point cloud object, if yes, go to step 930 , otherwise, go to step 926 .
步骤926,当不存在凸包碰撞时,确定第二未匹配点云物体和第二碰撞点云物体不为同一物体。 Step 926, when there is no convex hull collision, determine that the second unmatched point cloud object and the second colliding point cloud object are not the same object.
步骤928,将第二未匹配点云物体从原始语义地图中删除。Step 928, delete the second unmatched point cloud object from the original semantic map.
步骤930,当存在凸包碰撞时,确定第二未匹配点云物体和第二碰撞点云物体为同一物体。 Step 930, when there is a convex hull collision, determine that the second unmatched point cloud object and the second colliding point cloud object are the same object.
可选地,在一个实施例中,对同一采集区域的新采集的众包语义地图和已有的原始语义地图进行匹配,得到第一未匹配点云物体集合;判断第一未匹配点云物体集合中的各第一未匹配点云物体与原始语义地图中预设语义距离范围内对应的点云物体是否存在包围盒碰撞;当第一未匹配点云物体的包围盒碰撞结果为第二未匹配点云物体不存在包围盒碰撞时,将第二未匹配点云物体从原始语义地图中删除。Optionally, in one embodiment, the newly collected crowdsourced semantic map of the same collection area is matched with the existing original semantic map to obtain the first set of unmatched point cloud objects; determine the first unmatched point cloud object Whether there is a bounding box collision between each first unmatched point cloud object in the set and the corresponding point cloud object within the preset semantic distance range in the original semantic map; when the bounding box collision result of the first unmatched point cloud object is the second unmatched When there is no bounding box collision of the matching point cloud object, the second unmatched point cloud object is deleted from the original semantic map.
当第一未匹配点云物体的包围盒碰撞结果为第一未匹配点云物体存在包围盒碰撞时,从原始语义地图中预设距离范围内确定对应的第一碰撞点云物体;根据第一未匹配点云物体和第一碰撞点云物体,得到点云占比;根据点云占比和设定阈值,更新原始语义地图。When the bounding box collision result of the first unmatched point cloud object is that the first unmatched point cloud object has a bounding box collision, determine the corresponding first collision point cloud object within the preset distance range from the original semantic map; according to the first The unmatched point cloud object and the first colliding point cloud object get the point cloud proportion; according to the point cloud proportion and the set threshold, the original semantic map is updated.
进一步地,当第一未匹配点云物体的包围盒碰撞结果为第一未匹配点云物体存在包围盒碰撞时,判断第一未匹配点云物体和第一碰撞点云物体是否存在凸包碰撞;当存在凸包碰撞时,从原始语义地图中预设距离范围内确定对应的第一碰撞点云物体;根据第一未匹配点云物体和第一碰撞点云物体,得到点云占比;根据点云占比和设定阈值,更新原始语义地图;当不存在凸包碰撞时,确定第一未匹配点云物体和第一碰撞点云物体不为同一物体;将第一未匹配点云物体添加至原始语义地图中。Further, when the bounding box collision result of the first unmatched point cloud object is that the bounding box collision of the first unmatched point cloud object exists, it is judged whether there is a convex hull collision between the first unmatched point cloud object and the first colliding point cloud object ; When there is a convex hull collision, determine the corresponding first collision point cloud object within the preset distance range from the original semantic map; obtain the point cloud proportion according to the first unmatched point cloud object and the first collision point cloud object; Update the original semantic map according to the point cloud proportion and set the threshold; when there is no convex hull collision, determine that the first unmatched point cloud object and the first collision point cloud object are not the same object; convert the first unmatched point cloud Objects are added to the original semantic map.
可选地,在一个实施例中,对同一采集区域的新采集的众包语义地图和已有的原始语义地图进行匹配,得到第二未匹配点云物体集合;判断第二未匹配点云物体集合中的各第二未匹配点云物体与众包语义地图中预设语义距离范围内对应的点云物体是否存在包围盒碰撞;当第二未匹配点云物体的包围盒碰撞结果为第一未匹配点云物体不存在包围盒碰撞时,将第一未匹配点云物体添加至原始语义地图中。Optionally, in one embodiment, the newly collected crowdsourced semantic map of the same collection area is matched with the existing original semantic map to obtain a second set of unmatched point cloud objects; judging the second unmatched point cloud object Whether there is a bounding box collision between each second unmatched point cloud object in the set and the corresponding point cloud object within the preset semantic distance range in the crowdsourced semantic map; when the bounding box collision result of the second unmatched point cloud object is the first When there is no bounding box collision of the unmatched point cloud objects, the first unmatched point cloud object is added to the original semantic map.
当第二未匹配点云物体的包围盒碰撞结果为第二未匹配点云物体存在包围盒碰撞时,从众包语义地图中预设距离范围内确定对应的第二碰撞点云物体;判断第二未匹配点云物体和第二碰撞点云物体是否存在凸包碰撞;当不存在凸包碰撞时,确定第二未匹配点云物体和第二碰撞点云物体不为同一物体;将第二未匹配点云物体从原始语义地图中删除;当存在凸包碰撞时,确定第二未匹配点云物体和第二碰撞点云物体为同一物体。When the bounding box collision result of the second unmatched point cloud object is that the second unmatched point cloud object has a bounding box collision, determine the corresponding second collision point cloud object within the preset distance range from the crowdsourced semantic map; determine the second Whether there is a convex hull collision between the unmatched point cloud object and the second collision point cloud object; when there is no convex hull collision, it is determined that the second unmatched point cloud object and the second collision point cloud object are not the same object; the second unmatched point cloud object is not the same object; The matching point cloud object is deleted from the original semantic map; when there is a convex hull collision, it is determined that the second unmatched point cloud object and the second colliding point cloud object are the same object.
可选地,在一个实施例中,对同一采集区域的新采集的众包语义地图和已有的原始语义地图进行匹配,得到第一未匹配点云物体集合和第二未匹配点云物体集合;Optionally, in one embodiment, the newly collected crowdsourced semantic map of the same collection area is matched with the existing original semantic map to obtain the first set of unmatched point cloud objects and the second set of unmatched point cloud objects ;
判断第一未匹配点云物体集合中的各第一未匹配点云物体与原始语义地图中预设语义距离范围内对应的点云物体是否存在包围盒碰撞;判断第二未匹配点云物体集合中的各第二未匹配点云物体与众包语义地图中预设语义距离范围内对应的点云物体是否存在包围盒碰撞;当第一未匹配点云物体的包围盒碰撞结果为第二未匹配点云物体不存在包围盒碰撞时,将第二未匹配点云物体从原始语义地图中删除;以及当第一未匹配点云物体的包围盒碰撞结果为第二未匹配点云物体不存在包围盒碰撞时,将第二未匹配点云物体从原始语义地图中删除。Judging whether there is a bounding box collision between each first unmatched point cloud object in the first unmatched point cloud object set and the corresponding point cloud object within the preset semantic distance range in the original semantic map; judging the second unmatched point cloud object set Whether there is a bounding box collision between each second unmatched point cloud object in the crowdsourcing semantic map and the corresponding point cloud object within the preset semantic distance range; when the bounding box collision result of the first unmatched point cloud object is the second unmatched When there is no bounding box collision of the matching point cloud object, delete the second unmatched point cloud object from the original semantic map; and when the bounding box collision result of the first unmatched point cloud object is that the second unmatched point cloud object does not exist When the bounding box collides, the second unmatched point cloud object is deleted from the original semantic map.
当第一未匹配点云物体的包围盒碰撞结果为第一未匹配点云物体存在包围盒碰撞时,判断第一未匹配点云物体和第一碰撞点云物体是否存在凸包碰撞;当存在凸包碰撞时,从原始语义地图中预设距离范围内确定对应的第一碰撞点云物体;根据第一未匹配点云物体和第一碰撞点云物体,得到点云占比;根据点云占比和设定阈值,更新原始语义地图;当不存在凸包碰撞时,确定第一未匹配点云物体和第一碰撞点云物体不为同一物体;将第一未匹配点云物体添加至原始语义地图中。When the bounding box collision result of the first unmatched point cloud object is that there is a bounding box collision for the first unmatched point cloud object, it is judged whether there is a convex hull collision between the first unmatched point cloud object and the first collided point cloud object; When the convex hull collides, determine the corresponding first collision point cloud object within the preset distance range from the original semantic map; get the point cloud proportion according to the first unmatched point cloud object and the first collision point cloud object; according to the point cloud Proportion and set the threshold, update the original semantic map; when there is no convex hull collision, determine that the first unmatched point cloud object and the first collision point cloud object are not the same object; add the first unmatched point cloud object to in the original semantic map.
当第二未匹配点云物体的包围盒碰撞结果为第二未匹配点云物体存在包围盒碰撞时,从众包语义地图中预设距离范围内确定对应的第二碰撞点云物体;判断第二未匹配点云物体和第二碰撞点云物体是否存在凸包碰撞;当不存在凸包碰撞时,确定第二未匹配点云物体和第二碰撞点云物体不为同一物体;将第二未匹配点云物体从原始语义地图中删除;当存在凸包碰撞时,确定第二未匹配点云物体和第二碰撞点云物体为同一物体。When the bounding box collision result of the second unmatched point cloud object is that the second unmatched point cloud object has a bounding box collision, determine the corresponding second collision point cloud object within the preset distance range from the crowdsourced semantic map; determine the second Whether there is a convex hull collision between the unmatched point cloud object and the second collision point cloud object; when there is no convex hull collision, it is determined that the second unmatched point cloud object and the second collision point cloud object are not the same object; the second unmatched point cloud object is not the same object; The matching point cloud object is deleted from the original semantic map; when there is a convex hull collision, it is determined that the second unmatched point cloud object and the second colliding point cloud object are the same object.
在一实施例中,如图10所示,提供了一种车道线处理方法,该方法可应用于计算机设备,计算机设备可以是终端或服务器,由终端或服务器自身单独执行,也可以通过终端和服务器之间的交互来实现。本实施例以该方法应用于计算机设备为例进行说明,包括以下步骤:In one embodiment, as shown in FIG. 10 , a method for processing lane markings is provided, which can be applied to a computer device. The computer device can be a terminal or a server, and the terminal or server can be executed independently by the terminal or server itself, or can be executed by the terminal and the server. The interaction between servers is realized. This embodiment is described by taking the method applied to computer equipment as an example, including the following steps:
步骤1002,获取目标路段的多帧图像以及每帧图像对应的位姿点。 Step 1002, acquire multiple frames of images of the target road section and pose points corresponding to each frame of images.
其中,位姿点是指具有位置信息和姿态信息的点。可以理解为,代表车辆位置信息和朝向信息的点。位置信息可以用坐标表示,姿态信息可以用角度表示。Among them, the pose point refers to a point with position information and attitude information. It can be understood as a point representing vehicle position information and orientation information. Position information can be represented by coordinates, and attitude information can be represented by angles.
示例性地,计算机设备从车载系统或者服务器或者云端等处,获取目标路段中采集的多帧图像,以及每帧图像对应的位姿点。Exemplarily, the computer device acquires multiple frames of images collected in the target road section and the pose points corresponding to each frame of images from the vehicle-mounted system or server or the cloud.
步骤1004,基于位姿点确定目标路段的路段特征和路段速度。 Step 1004, determine the road section characteristics and road section speed of the target road section based on the pose points.
其中,路段特征是指路段的形状特征。可以理解为路段的形状。路段特征可以为直线路段或者弯曲路段,弯曲路段可以细分为弯曲度不相同的多种弯曲路段。路段速度是指采集图像的装置所在的车辆在目标路段上行驶的速度。Wherein, the road segment feature refers to the shape feature of the road segment. It can be understood as the shape of the road section. The feature of the road section may be a straight road section or a curved road section, and the curved road section may be subdivided into various curved road sections with different degrees of curvature. The road section speed refers to the speed at which the vehicle on which the device for collecting images is located travels on the target road section.
示例性地,计算机设备基于每帧图像对应的位姿点进行计算,根据计算的结果确定目标路段的路段特征和路段速度。Exemplarily, the computer device performs calculations based on the pose points corresponding to each frame of image, and determines the road section features and road section speed of the target road section according to the calculation results.
在一个实施例中,计算机设备获取目标路段对应的多个位姿点中的当前位姿点,获取当前位姿点的后一相邻位姿点作为第一参考位姿点,获取第一参考位姿点的后一相邻位姿点作为第二参考位姿点,计算当前位姿点与第一参考位姿点之间的第一斜率,以及第一参考位姿点与第二参考位姿点之间的第二斜率,In one embodiment, the computer device acquires the current pose point among the plurality of pose points corresponding to the target road section, acquires the next adjacent pose point after the current pose point as the first reference pose point, and acquires the first reference pose point The next adjacent pose point of the pose point is used as the second reference pose point, and the first slope between the current pose point and the first reference pose point is calculated, and the first reference pose point and the second reference pose point The second slope between the attitude points,
计算第二斜率与第一斜率之间的差值,得到当前位姿点对应的弯曲度,计算两个相邻的当前位姿点对应弯曲度之间的差值,如果差值均小于差异阈值,则该目标路段为直线路段,如果差值大于差异度阈值,则该目标路段为曲线路段。例如,A(x1,y1)、B(x2,y2)、C(x3,y3)三个位姿点,获取A点作为当前位姿点,则B点为第一参考位姿点、C点为第二参考位姿点,A点与B点之间的斜率为(y2-y1)/(x2-x1),B点与C点之间的斜率为(y3-y2)/(x3-x2),A点的弯曲度位(y3-y2)/(x3-x2)-(y2-y1)/(x2-x1)。Calculate the difference between the second slope and the first slope to obtain the curvature corresponding to the current pose point, and calculate the difference between the curvature corresponding to two adjacent current pose points, if the difference is less than the difference threshold , the target road segment is a straight road segment, and if the difference is greater than the difference degree threshold, the target road segment is a curved road segment. For example, A (x1, y1), B (x2, y2), C (x3, y3) three pose points, get point A as the current pose point, then point B is the first reference pose point, point C is the second reference pose point, the slope between point A and point B is (y2-y1)/(x2-x1), and the slope between point B and point C is (y3-y2)/(x3-x2 ), the curvature of point A is (y3-y2)/(x3-x2)-(y2-y1)/(x2-x1).
在一个实施例中,计算机设备获取平均弯曲度与路段特征之间对应关系的参照表,然后将各个当前位姿点对应的弯曲度相加,得到曲线弯曲度,将曲线弯曲度除以位姿点的个数,得到目标平均弯曲度,在参照表中查找目标平均弯曲度对应的路段特征,得到目标路段的路段特征。In one embodiment, the computer device obtains the reference table of the corresponding relationship between the average curvature and road section features, and then adds the curvature corresponding to each current pose point to obtain the curvature of the curve, and divides the curvature of the curve by the pose The number of points is used to obtain the average curvature of the target, and the road section characteristics corresponding to the average curvature of the target are searched in the reference table to obtain the road section characteristics of the target road section.
在一个实施例中,计算机设备对多个位姿点进行曲线拟合得到拟合曲线,根据曲率求解公式求解拟合曲线对应的曲率表达式,将位姿点带入曲率表达式得到位姿点对应的曲率,计算间隔预设数量位姿点的两个位姿点对应的曲率之间的差值,如果差值均小于差异阈值,则该目标路段为直线路段,如果差值大于差异度阈值,则该目标路段为曲线路段。In one embodiment, the computer device performs curve fitting on multiple pose points to obtain the fitted curve, solves the curvature expression corresponding to the fitted curve according to the curvature solution formula, and brings the pose points into the curvature expression to obtain the pose point Corresponding curvature, calculate the difference between the curvatures corresponding to two pose points separated by a preset number of pose points, if the difference is less than the difference threshold, then the target road segment is a straight road segment, if the difference is greater than the difference threshold , then the target road segment is a curved road segment.
在一个实施例中,计算机设备获取目标路段对应的首个位姿点和末尾位姿点,以及首个位姿点对应的第一时刻和末尾位姿点对应的第二时刻,计算首个位姿点与末尾位姿点之间的物理距离、第一时刻与第二时刻之间的时间间隔,基于物理距离和时间间隔计算得到路段速度。In one embodiment, the computer device obtains the first pose point and the end pose point corresponding to the target road section, and the first moment corresponding to the first pose point and the second moment corresponding to the end pose point, and calculates the first pose point The physical distance between the pose point and the end pose point, the time interval between the first moment and the second moment, and the speed of the road section is calculated based on the physical distance and the time interval.
在一个实施例中,计算机设备获取每个位姿点对应的时刻,计算相邻两个位姿点之间的物理距离,计算相邻两个位姿点对应时刻之间的时间间隔,将物理距离除以时间间隔得到相邻两个位姿点之间的速度,将各个相邻位姿点对应的速度相加得到总速度,统计相加速度的数量得到总数量,将总速度除以总数量,得到目标路段的路段速度。In one embodiment, the computer device obtains the moment corresponding to each pose point, calculates the physical distance between two adjacent pose points, calculates the time interval between the corresponding moments of two adjacent pose points, and physically Divide the distance by the time interval to get the speed between two adjacent pose points, add the speeds corresponding to each adjacent pose point to get the total speed, count the number of phase accelerations to get the total number, divide the total speed by the total number , to get the segment speed of the target segment.
步骤1006,基于路段特征和路段速度对多帧图像进行选择,得到目标图像。示例性地,计算机设备根据目标路段的路段特征和路段速度确定选择方案,然后按照选择方案从多帧图像中选择出目标图像In step 1006, multiple frames of images are selected based on the features of the road section and the speed of the road section to obtain a target image. Exemplarily, the computer device determines the selection scheme according to the road section characteristics and the speed of the road section of the target road section, and then selects the target image from the multiple frames of images according to the selection scheme
在一个实施例中,计算机设备获取路段属性与选择方案之间的匹配表,路段属性中包括多个特征属性,多个特征属性的组合对应一个选择方案,根据目标路段对应的多个特征属性在匹配表中查询目标路段对应的选择方案。例如,匹配表中的第一特征属性为路段特征,具体分为直线路段和多个弯曲程度的弯曲路段,匹配表中的第二特征属性为路段速度,具体分为多个速度区间,根据目标路段对应的路段特征和路段速度确定目标路段对应的选择方案,然后根据选择方案从多帧图像中选择出目标图像。In one embodiment, the computer device obtains a matching table between road section attributes and selection schemes, road section attributes include multiple feature attributes, and a combination of multiple feature attributes corresponds to a selection scheme. According to the multiple feature attributes corresponding to the target road section in Query the selection scheme corresponding to the target road section in the matching table. For example, the first characteristic attribute in the matching table is the road section feature, which is specifically divided into straight road sections and curved road sections with multiple degrees of curvature. The second feature attribute in the matching table is the road section speed, which is specifically divided into multiple speed intervals. The road section characteristics and road section speed corresponding to the road section determine the selection scheme corresponding to the target road section, and then select the target image from the multiple frames of images according to the selection scheme.
步骤1008,基于目标图像生成目标路段的目标车道线。 Step 1008, generating a target lane line of the target road segment based on the target image.
其中,车道线是指道路中对车辆的行驶起约束保障作用的线段。车道线是道路交通中重要的交通标志。车道线包括但不限于白色虚线、白色实线、黄色虚线、黄色实线。例如,准许行人穿过车道的人行横道线、分隔同向行驶车辆的车道分界线等等。Among them, the lane line refers to a line segment in the road that plays a role of restraining and guaranteeing the driving of the vehicle. Lane lines are important traffic signs in road traffic. Lane lines include but are not limited to white dotted lines, white solid lines, yellow dotted lines, and yellow solid lines. For example, pedestrian crossing lines that allow pedestrians to cross the lane, lane dividing lines that separate vehicles traveling in the same direction, and so on.
示例性地,计算机设备根据目标图像生成目标路段的目标车道线。Exemplarily, the computer device generates the target lane line of the target road section according to the target image.
上述车道线处理方法中,获取目标路段的多帧图像以及每帧图像对应的位姿点,根据位姿点确定目标路段的路段特征和路段速度,根据目标路段对应的路段特征和路段速度,从多帧图像中选择出目标图像,基于目标图像生成目标路段的目标车道线。通过位姿点确定目标路段对应的路段特征和路段速度,根据路段特征和路段速度选择目标图像,减少了参与生成目标车道线的目标图像的数量,从而减小了目标车道线的误差,并且提高了参与生成目标车道线的目标图像的代表性,根据目标图像生成目标路段的目标车道线,提高了目标车道线的精确度。In the above lane line processing method, the multi-frame images of the target road section and the pose points corresponding to each frame of the image are obtained, the road section characteristics and the road section speed of the target road section are determined according to the pose points, and according to the road section characteristics and the road section speed corresponding to the target road section, from A target image is selected from multiple frames of images, and a target lane line of the target road section is generated based on the target image. Determine the road section characteristics and road section speed corresponding to the target road section through the pose point, select the target image according to the road section characteristics and road section speed, reduce the number of target images involved in generating the target lane line, thereby reducing the error of the target lane line, and improving In order to be representative of the target image involved in generating the target lane line, the target lane line of the target road section is generated according to the target image, and the accuracy of the target lane line is improved.
在一个实施例中,基于路段特征和路段速度对多帧图像进行选择,得到目标图像包括:若目标路段的路段速度为零,则从多帧图像中选择一帧图像作为目标图像;若目标路段为直线路段且路段速度不为零,则基于路段速度确定目标数量,从多 帧图像中选择目标数量的目标图像;若目标路段为弯曲路段且路段速度不为零,则将多帧图像作为目标图像。In one embodiment, selecting multiple frames of images based on road section features and road section speeds, and obtaining the target image includes: if the road section speed of the target road section is zero, then selecting one frame of images from the multiple frames of images as the target image; if the target road section If the road section is a straight line and the speed of the road section is not zero, the number of targets is determined based on the speed of the road section, and the number of target images is selected from the multi-frame images; if the target road section is a curved road section and the speed of the road section is not zero, the multi-frame images are used as the target image.
示例性地,计算机设备获取到目标路段对应的路段速度为零,则从多帧图像中选择一帧图像作为目标图像,如果目标路段为直线路段,则根据路段速度确定目标数量,然后从多帧图像中选择目标数量的目标图像,如果目标路段为弯曲路段且路段速度不为零,则将目标路段对应的所有图像作为目标图像。Exemplarily, the computer device obtains that the speed of the road section corresponding to the target road section is zero, then selects a frame of image from the multi-frame images as the target image, if the target road section is a straight road section, then determines the number of targets according to the speed of the road section, and then selects an image from the multi-frame Select the target image of the target number in the image, if the target road section is a curved road section and the speed of the road section is not zero, then use all the images corresponding to the target road section as the target image.
在一个实施例中,计算计算设备从目标图像中选择目标图像为随机抽选,例如,目标路段为直线路段,则根据路段速度确定目标数量,然后从多帧图像中随机选择目标数量的目标图像。In one embodiment, the computing computing device selects the target image from the target image as a random selection, for example, if the target road section is a straight road section, then the number of targets is determined according to the speed of the road section, and then the target image of the target number is randomly selected from multiple frames of images .
在一个实施例中,计算机设备从目标图形中选择目标图像为间隔抽选,例如,目标路段为直线路段,则根据路段速度确定目标数量,然后用目标路段对应多帧图像的总数量除以目标数量,得到抽取间隔,然后从多帧图像中每间隔抽检间隔选择一张目标图像。In one embodiment, the computer device selects the target image from the target graphics as interval sampling. For example, if the target road section is a straight line road section, the number of targets is determined according to the speed of the road section, and then the total number of multiple frames of images corresponding to the target road section is divided by the target. Quantity, get the sampling interval, and then select a target image for each sampling interval from the multi-frame images.
本实施例中,根据路段特征和路段速度选择目标图像,减少了参与生成目标车道线的目标图像的数量,从而减小了目标车道线的误差,并且提高了参与生成目标车道线的目标图像的代表性。In this embodiment, the target image is selected according to the characteristics of the road section and the speed of the road section, which reduces the number of target images participating in the generation of the target lane line, thereby reducing the error of the target lane line, and improving the accuracy of the target images participating in the generation of the target lane line. representative.
在一实施例中,基于目标图像生成目标路段的目标车道线包括:获取每帧目标图像对应的三维采样点集合;将各个三维采样点采集合组合为融合采样点集合;对融合采样点集合进行曲线拟合和采样,得到目标采样点集合;基于目标采样点集合生成目标车道线。In one embodiment, generating the target lane line of the target road section based on the target image includes: acquiring a set of three-dimensional sampling points corresponding to each frame of the target image; collecting and combining each three-dimensional sampling point into a fusion sampling point set; Curve fitting and sampling to obtain a target sampling point set; generate target lane lines based on the target sampling point set.
获取每帧目标图像对应的三维采样点集合。其中,三维采样点集合是指由多个代表图像中车道线的三维坐标点组成的集合。三维坐标点是指是通过相互独立的三个变量构成的具有一定意义的点。三维坐标点表示空间中的点,在不同的三维坐标系下具有不同的表达形式,例如,三维笛卡尔坐标系中的三维坐标点(x,y,z),x、y、z分别是拥有共同的原点且彼此相互正交的X轴,Y轴,Z轴的坐标值。示例性地,计算机设备获取代表每一帧目标图像中车道线的三维采样点集合。Obtain a set of three-dimensional sampling points corresponding to each frame of the target image. Wherein, the set of three-dimensional sampling points refers to a set composed of multiple three-dimensional coordinate points representing lane lines in the image. A three-dimensional coordinate point refers to a point with a certain meaning formed by three independent variables. A three-dimensional coordinate point represents a point in space, and has different expressions in different three-dimensional coordinate systems. For example, a three-dimensional coordinate point (x, y, z) in a three-dimensional Cartesian coordinate system, x, y, and z respectively have The coordinate values of the X-axis, Y-axis, and Z-axis that have a common origin and are orthogonal to each other. Exemplarily, the computer device acquires a set of three-dimensional sampling points representing lane lines in each frame of the target image.
将各个三维采样点采集合组合为融合采样点集合。示例性地,计算机设备将多个三维采样点集合组合成一个融合采样点集合。Collect and combine each three-dimensional sampling point into a fusion sampling point set. Exemplarily, the computer device combines multiple sets of three-dimensional sampling points into a set of fused sampling points.
对融合采样点集合进行曲线拟合和采样,得到目标采样点集合;其中,曲线拟合是指用解析表达式逼近离散数据的一种方法。可以理解为,用连续曲线近似地刻画或比拟平面上的离散点集合。采样是指从总体中抽取个体的过程。采样包括随机采样和非随机采样,随机采样是指遵照随机化原则从总体中抽取个体,非随机采样是指根据设定规则从总体中抽取个体。示例性地,计算机设备对融合采样点集合进行曲线拟合,得到拟合曲线,然后对拟合曲线进行采样,得到目标采样点集合。Carry out curve fitting and sampling on the fusion sampling point set to obtain the target sampling point set; among them, curve fitting refers to a method of approaching discrete data with analytical expressions. It can be understood as using a continuous curve to approximately describe or compare a set of discrete points on a plane. Sampling is the process of selecting individuals from a population. Sampling includes random sampling and non-random sampling. Random sampling refers to extracting individuals from the population according to the principle of randomization. Non-random sampling refers to selecting individuals from the population according to set rules. Exemplarily, the computer device performs curve fitting on the fusion sampling point set to obtain a fitting curve, and then samples the fitting curve to obtain a target sampling point set.
基于目标采样点集合生成目标车道线。示例性的,计算机设备根据目标采样点集合生成目标车道线。Generate the target lane line based on the set of target sampling points. Exemplarily, the computer device generates the target lane line according to the set of target sampling points.
在一个实施例中,计算机设备用线段连接任意相邻两个的目标采样点,由目标采样点以及相邻目标采样点之间的线段组成目标车道线。In one embodiment, the computer device connects any two adjacent target sampling points with a line segment, and the target lane line is formed by the target sampling point and the line segment between the adjacent target sampling points.
在一个实施例中,计算机设备对目标采样点集合进行平滑滤波,得到优化后的目标采样点集合,基于优化后的目标采样点序列生成目标车道线。In one embodiment, the computer device performs smoothing filtering on the set of target sampling points to obtain an optimized set of target sampling points, and generates the target lane line based on the optimized sequence of target sampling points.
本实施例中,获取代表每一帧目标图像中车道线的三维采样点集合,将多个三维采样点集合组合成一个融合采样点集合,对融合采样点集合进行曲线拟合,得到拟合曲线,然后对拟合曲线进行采样,得到目标采样点集合,根据目标采样点集合生成目标车道线。通过对融合采样点集合进行曲线拟合和采样得到的目标采样点集合,曲线拟合的过程中过滤掉了偏离整体的三维采样点,减少了目标采样点集合中存在误差的目标采样点,提高了目标车道线平滑度和精确度。In this embodiment, a set of three-dimensional sampling points representing the lane line in each frame of the target image is acquired, multiple three-dimensional sampling point sets are combined into a fusion sampling point set, and curve fitting is performed on the fusion sampling point set to obtain a fitting curve , and then sample the fitting curve to obtain the target sampling point set, and generate the target lane line according to the target sampling point set. The target sampling point set is obtained by curve fitting and sampling the fusion sampling point set. During the curve fitting process, the three-dimensional sampling points that deviate from the whole are filtered out, and the target sampling points with errors in the target sampling point set are reduced, and the improvement is improved. The smoothness and accuracy of the target lane lines are achieved.
在一个实施例中,基于目标图像生成目标路段的目标车道线包括:若目标路段对应的路段速度不为零且包含直线路段和弯曲路段,则分别选择直线路段对应的第一目标图像和弯曲路段对应的第二目标图像;将第一目标图像对应的三维采样点集合组成第一采样点集合,将第二目标图像对应的三维采样点集合组成第二采样点集合;分别对第一采样点集合和第二采样点集合进行曲线拟合和采样,得到目标采样点集合;基于目标采样点集合生成目标车道线。In one embodiment, generating the target lane line of the target road segment based on the target image includes: if the speed of the road segment corresponding to the target road segment is not zero and includes a straight road segment and a curved road segment, then selecting the first target image corresponding to the straight road segment and the curved road segment respectively The corresponding second target image; the three-dimensional sampling point set corresponding to the first target image is formed into the first sampling point set, and the three-dimensional sampling point set corresponding to the second target image is formed into the second sampling point set; the first sampling point set is respectively Perform curve fitting and sampling with the second sampling point set to obtain a target sampling point set; generate a target lane line based on the target sampling point set.
若目标路段对应的路段速度不为零且包含直线路段和弯曲路段,则分别选择直线路段对应的第一目标图像和弯曲路段对应的第二目标图像。示例性的,计算机设备判断目标路段的路段速度不为零,且目标路段中包含直线路段和弯曲路段,则根据直线路段的对应的位姿点计算直线路段的路段速度,根据直线路段的路段速度确定目标数量,然后从直线路段对应的多帧图像中选择目标数量的第一目标图像,将弯曲路段对应的所有图像作为第二目标图像。If the speed of the road segment corresponding to the target road segment is not zero and includes a straight road segment and a curved road segment, then respectively select the first target image corresponding to the straight road segment and the second target image corresponding to the curved road segment. Exemplarily, the computer device judges that the speed of the target road segment is not zero, and the target road segment contains a straight road segment and a curved road segment, then calculates the speed of the straight road segment according to the corresponding pose points of the straight road segment, and calculates the speed of the straight road segment according to the speed of the straight road segment. The number of targets is determined, and then the first target image of the target number is selected from the multi-frame images corresponding to the straight road section, and all images corresponding to the curved road section are used as the second target image.
将第一目标图像对应的三维采样点集合组成第一采样点集合,将第二目标图像对应的三维采样点集合组成第二采样点集合,示例性的,计算机设备获取第一目标图像对应的三维采样点集合,将第一目标图像对应的三维采样点集合组合成第一采样点集合,然后获取第二目标图像对应的三维采样点集合,将第二目标图像对应的三维采样点集合组合成第二采样点集合。The three-dimensional sampling point set corresponding to the first target image is formed into the first sampling point set, and the three-dimensional sampling point set corresponding to the second target image is formed into the second sampling point set. For example, the computer device obtains the three-dimensional sampling point corresponding to the first target image. A set of sampling points, combining the set of three-dimensional sampling points corresponding to the first target image into a first set of sampling points, then obtaining a set of three-dimensional sampling points corresponding to the second target image, and combining the set of three-dimensional sampling points corresponding to the second target image into a second set of sampling points Two sets of sampling points.
分别对第一采样点集合和第二采样点集合进行曲线拟合和采样,得到目标采样点集合,示例性的,计算机设备对第一采样点集合进行曲线拟合,得到第一拟合曲线,对第一拟合曲线进行采样,得到第一目标采样点集合,然后对第二采样点集合进行曲线拟合,得到第二拟合曲线,对第二拟合曲线进行采样,得到第二目标采样点集合,最后将第一目标采样点集合和第二目标采样点集合组成目标采样点集合。Curve fitting and sampling are performed on the first sampling point set and the second sampling point set respectively to obtain a target sampling point set. Exemplarily, the computer device performs curve fitting on the first sampling point set to obtain a first fitting curve, Sampling the first fitting curve to obtain the first target sampling point set, then performing curve fitting on the second sampling point set to obtain the second fitting curve, sampling the second fitting curve to obtain the second target sampling point point set, and finally the first target sampling point set and the second target sampling point set form a target sampling point set.
基于目标采样点集合生成目标车道线。示例性的,计算机设备根据目标采样点集合生成目标车道线。Generate the target lane line based on the set of target sampling points. Exemplarily, the computer device generates the target lane line according to the set of target sampling points.
本实施例中,分别对弯曲路段对应的第一采样点集合和直线路段对应的第二采样点集合进行曲线拟合,保留了第一采样点集合的分布特性和第二采样点集合的分布特性,提高了曲线拟合的精确度,从而提高了目标采样点集合的精确度,根据目标采样点集合生成目标车道线,提高了目标车道线的精确度。In this embodiment, curve fitting is performed on the first set of sampling points corresponding to the curved road section and the second set of sampling points corresponding to the straight road section, and the distribution characteristics of the first set of sampling points and the distribution characteristics of the second set of sampling points are retained , improving the accuracy of curve fitting, thereby improving the accuracy of the target sampling point set, generating the target lane line according to the target sampling point set, and improving the accuracy of the target lane line.
在一实施例中,车道线处理方法还包括:若目标路段存在参考车道线,则获取参考车道线对应的参考采样点集合;基于目标采样点集合与参考采样点集合,计算目标车道线与参考车道线之间的相离度。In one embodiment, the lane line processing method further includes: if there is a reference lane line in the target road section, obtaining a set of reference sampling points corresponding to the reference lane line; The distance between lane lines.
若目标路段存在参考车道线,则获取参考车道线对应的参考采样点集合,参考车道线是指语义地图中已存在的目标路段对应的车道线。示例性的,计算机设备查询语义地图中是否存在目标路段的参考车道线,如果存在,则获取参考车道线对应的参考采样点集合。If there is a reference lane line in the target road segment, a set of reference sampling points corresponding to the reference lane line is obtained. The reference lane line refers to the lane line corresponding to the existing target road segment in the semantic map. Exemplarily, the computer device inquires whether there is a reference lane line of the target road segment in the semantic map, and if yes, obtains a set of reference sampling points corresponding to the reference lane line.
基于目标采样点集合与参考采样点集合,计算目标车道线与参考车道线之间的相离度,其中,相离度是指对象与对象之间相离的程度。相离度可以用对象与对象之间的距离表示,也可以用对象与对象之间的平均距离表示等等。示例性的,计算机设备根据目标采样点集合与参考采样点集合,计算目标车道线与参考车道线之间的相离度。Based on the set of target sampling points and the set of reference sampling points, the degree of separation between the target lane line and the reference lane line is calculated, where the degree of separation refers to the degree of separation between objects. The degree of separation can be expressed by the distance between objects, or by the average distance between objects, and so on. Exemplarily, the computer device calculates the degree of separation between the target lane line and the reference lane line according to the target sampling point set and the reference sampling point set.
进一步地,车道线处理方法还包括:将相离度与相离度阈值进行比较,若相离度小于相离度阈值,则对参考采样点集合和目标采样点集合进行曲线拟合和采样,得到更新采样点集合,基于更新采样点集合生成更新车道线;若相离度等于或者大于相离度阈值,则基于目标采样点集合生成更新车道线。Further, the lane line processing method also includes: comparing the degree of separation with a threshold of separation, and if the degree of separation is smaller than the threshold of separation, performing curve fitting and sampling on the set of reference sampling points and the set of target sampling points, An updated sampling point set is obtained, and an updated lane line is generated based on the updated sampling point set; if the distance is equal to or greater than the distance threshold, an updated lane line is generated based on the target sampling point set.
示例性的,计算机设备将相离度与相离度阈值进行比较,如果相离度小于相离度阈值,则将参考采样点集合和目标采样点集合组成融合采样点集合,对融合采样点集合进行曲线拟合和采样,得到更新采样点集合,用更新采样点集合生成更新车道线;如果相离度等于或者大于相离度阈值,则用目标采样点集合生成更新车道新。Exemplarily, the computer device compares the degree of separation with the degree of separation threshold, and if the degree of separation is less than the threshold of degree of separation, the set of reference sampling points and the set of target sampling points form a set of fusion sampling points, and the set of fusion sampling points Perform curve fitting and sampling to obtain an updated sampling point set, and use the updated sampling point set to generate an updated lane line; if the separation is equal to or greater than the separation threshold, use the target sampling point set to generate an updated lane line.
本实施例中,如果语义地图中已经存在目标车道对应的参考车道线,则计算参考车道线对应的参考采样点集合与目标采样点集合之间的相离度,如果相离度小于相离度阈值,说明参考采样点集合与目标采样点集合之间偏离程度较小,则将参考采样点集合和目标采样点集合进行曲线拟合和采样,用得到的更新采样点集合生成更新车道线,可以理解为使用目标采样点集合对参考采样点集合进行调整,提高更新车道线的精确度,如果相离度大于或者等于相离度阈值,说明参考采样点集合的误差较大,则直接用目标采样点集合生成更新车道线,用更新车道线替换参考车道线,提高了语义地图中车道线的精确度。In this embodiment, if there is already a reference lane line corresponding to the target lane in the semantic map, then calculate the distance between the reference sampling point set corresponding to the reference lane line and the target sampling point set, if the distance is less than the distance Threshold, indicating that the deviation between the reference sampling point set and the target sampling point set is small, then the reference sampling point set and the target sampling point set are used for curve fitting and sampling, and the updated sampling point set is used to generate an updated lane line, which can be It is understood that the target sampling point set is used to adjust the reference sampling point set to improve the accuracy of updating lane lines. If the degree of separation is greater than or equal to the separation degree threshold, it means that the error of the reference sampling point set is large, and the target sampling point is used directly. The set of points generates updated lane lines and replaces reference lane lines with updated lane lines, which improves the accuracy of lane lines in semantic maps.
在一实施例中,基于目标采样点集合与参考采样点集合,计算目标车道线与参考车道线之间的相离度包括:获取目标采样点集合中的目标采样点;计算目标采样点与参考采样点集合中参考采样点之间的间隔距离,基于间隔距离从参考采样点集合中确定目标采样点对应的两个对照采样点;计算目标采样点到两个对照采样点所在直线的垂直距离;统计各个垂直距离,得到目标车道线与参考车道线之间的相离度。In one embodiment, based on the set of target sampling points and the set of reference sampling points, calculating the distance between the target lane line and the reference lane line includes: acquiring target sampling points in the set of target sampling points; calculating the distance between the target sampling point and the reference The interval distance between the reference sampling points in the sampling point set is based on the interval distance to determine the two comparison sampling points corresponding to the target sampling point from the reference sampling point set; calculate the vertical distance between the target sampling point and the straight line where the two comparison sampling points are located; Count each vertical distance to obtain the degree of separation between the target lane line and the reference lane line.
获取目标采样点集合中的目标采样点,示例性地,计算机设备从目标采样点集合中获取一个目标采样点。A target sampling point in the target sampling point set is acquired. Exemplarily, the computer device acquires a target sampling point from the target sampling point set.
计算目标采样点与参考采样点集合中参考采样点之间的间隔距离,基于间隔距离从参考采样点集合中确定目标采样点对应的两个对照采样点,示例性地,计算机设备计算目标采样点与参考采样点集合中每一个参考采样点之间的间隔距离,根据间隔距离选择目标采样点对应的两个对照采样点。Calculate the separation distance between the target sampling point and the reference sampling point in the reference sampling point set, and determine two control sampling points corresponding to the target sampling point from the reference sampling point set based on the separation distance. For example, the computer device calculates the target sampling point According to the separation distance between each reference sampling point in the set of reference sampling points, two control sampling points corresponding to the target sampling point are selected.
在一个实施例中,计算机设备对目标采样点对应的多个间隔距离进行比较,选择最短的间隔距离对应的参考采样点和第二短的间隔距离对应的参考采样点作为对照采样点。In one embodiment, the computer device compares multiple separation distances corresponding to the target sampling point, and selects a reference sampling point corresponding to the shortest separation distance and a reference sampling point corresponding to the second shortest separation distance as comparison sampling points.
在一个实施例中,计算机设备对间隔距离相加得到距离总和,将距离总和除以间隔距离的数量,得到间隔距离平均值,将各个间隔距离与间隔距离平均值进行比较,选择与间隔距离平均值最相近的两个参考间隔距离,将两个参考间隔距离对应的参考采样点作为对照采样点。In one embodiment, the computer equipment adds up the separation distances to obtain the sum of the distances, divides the sum of the distances by the number of separation distances to obtain the average value of the separation distances, compares each separation distance with the average value of the separation distances, and selects the average value of the separation distance. The two reference interval distances with the closest values, and the reference sampling points corresponding to the two reference interval distances are used as control sampling points.
计算目标采样点到两个对照采样点所在直线的垂直距离。示例性地,计算机设备根据三维空间中采样点到直线的垂直距离的计算方法,计算目标采样点到两个对照点所在直线的垂直距离。例如,如图28所示,目标采样点A,两个对照采样点分别为B、C,A、B、C均用采样坐标点表示,目标采样点A减去对照采样点B得到向量BA,对照采样点B减去对照采样点Calculate the vertical distance from the target sampling point to the straight line where the two control sampling points are located. Exemplarily, the computer device calculates the vertical distance from the target sampling point to the straight line where the two comparison points are located according to the calculation method of the vertical distance from the sampling point to the straight line in three-dimensional space. For example, as shown in Figure 28, the target sampling point A and the two control sampling points are respectively B and C, and A, B, and C are all represented by sampling coordinate points, and the target sampling point A is subtracted from the control sampling point B to obtain the vector BA, Control sampling point B minus control sampling point
C得到向量BC,向量BA与向量BC进行叉乘,得到叉乘结果,向量BA的长度与向量BC的长度进行相乘,得到乘积结果,用叉乘结果除以乘积结果得到向量BA与向量BC之间夹角α的正弦值,将向量BA的长度和α的正弦值相乘,得到目标采样点A点到对照采样点B和C所在直线的垂直距离。C obtains the vector BC, cross-multiplies the vector BA and the vector BC to obtain the cross-product result, multiplies the length of the vector BA and the length of the vector BC to obtain the product result, divides the product result by the cross-product result to obtain the vector BA and vector BC The sine value of the included angle α, multiply the length of the vector BA by the sine value of α, and obtain the vertical distance from the target sampling point A to the straight line where the control sampling points B and C are located.
统计各个垂直距离,得到目标车道线与参考车道线之间的相离度。示例性地,计算机设备根据设定的计算规则对各个垂直距离进行统计,得到目标采样点集合与参考采样点集合之间的相离度。Count each vertical distance to obtain the degree of separation between the target lane line and the reference lane line. Exemplarily, the computer device performs statistics on each vertical distance according to a set calculation rule to obtain the degree of separation between the set of target sampling points and the set of reference sampling points.
在一个实施例中,计算机设备对各个垂直距离进行比较,选择垂直距离的中间值作为目标采样点集合与参考采样点集合之间的相离度。In one embodiment, the computer device compares the respective vertical distances, and selects an intermediate value of the vertical distances as the degree of separation between the target sampling point set and the reference sampling point set.
在一个实施例中,计算机设备将目标采样点集合中每个目标采样点对应的垂直距离进行相加,将相加得到的结果除以目 标采样点集合中目标采样点的总数量,得到目标采样点集合与参考采样点集合之间的相离度。In one embodiment, the computer device adds the vertical distance corresponding to each target sampling point in the target sampling point set, and divides the result obtained by the addition by the total number of target sampling points in the target sampling point set to obtain the target sampling point The distance between the set of points and the set of reference sampling points.
在本实施例中,从参考采样点集合中选择出两个对照采样点,计算目标采样点到两个对照采样点所在直线的垂直距离,垂直距离可以准确的表示目标采样点到参考采样点集合之间的距离,对各个垂直距离进行统计,得到目标采样点集合与参考采样点集合之间的相离度,可以准确的表示目标采样点集合与参考采样点集合之间的相离度,提高相离度计算的准确性。在一个实施例中,车道线处理方法还包括:In this embodiment, two control sampling points are selected from the set of reference sampling points, and the vertical distance between the target sampling point and the straight line where the two control sampling points are calculated is calculated. The vertical distance can accurately represent the target sampling point to the reference sampling point set. The distance between each vertical distance is counted to obtain the degree of separation between the target sampling point set and the reference sampling point set, which can accurately represent the distance between the target sampling point set and the reference sampling point set, and improve Accuracy of distance calculation. In one embodiment, the lane line processing method further includes:
若目标路段存在多个目标车道线,则获取多个目标车道线对应的目标采样点集合和位姿误差平均值;选择位姿误差平均值小于误差阈值的目标车道线对应的目标采样点集合,作为匹配采样点集合;将各个匹配采样点集合组成匹配融合采样点集合,对匹配融合采样点集合进行曲线拟合和采样,得到匹配目标采样点集合;基于匹配目标采样点集合生成匹配目标车道线。If there are multiple target lane lines in the target road section, then obtain the target sampling point set and pose error average value corresponding to the multiple target lane lines; select the target sample point set corresponding to the target lane line whose pose error average value is less than the error threshold, As a set of matching sampling points; each matching sampling point set is formed into a matching fusion sampling point set, and curve fitting and sampling are performed on the matching fusion sampling point set to obtain a matching target sampling point set; a matching target lane line is generated based on the matching target sampling point set .
其中,位姿误差平均值是指位姿点误差的平均值。可以理解为,目标路段对应的位姿点误差的平均值,可以衡量目标路段位姿点的准确程度。位姿点误差可以为相对位姿误差和绝对轨迹误差等等。Among them, the mean value of the pose error refers to the mean value of the pose point errors. It can be understood that the average value of the pose point errors corresponding to the target road segment can measure the accuracy of the pose point of the target road segment. The pose point error can be a relative pose error, an absolute trajectory error, and so on.
示例性地,计算机设备获取到多个车辆提供的目标路段对应的目标车道线,然后获取每个目标车道线对应的目标采样点集合和位姿误差平均值,将每个位姿误差平均值与误差阈值进行比较,如果位姿误差平均值小于误差阈值,则确定该位姿误差平均值对应的目标采样点集合为匹配采样点集合,将各个匹配采样点集合组成匹配融合采样点集合,对匹配融合采样点集合进行曲线拟合和采样,得到匹配目标采样点集合,基于匹配目标采样点集合生成匹配车道线,然后将匹配车道线作为语义地图中目标路段的车道线。Exemplarily, the computer device obtains the target lane lines corresponding to the target road sections provided by multiple vehicles, and then obtains the set of target sampling points corresponding to each target lane line and the average value of the pose error, and combines each average pose error with If the average value of the pose error is less than the error threshold, it is determined that the set of target sampling points corresponding to the average value of the pose error is a set of matching sampling points, and each set of matching sampling points is composed of a set of matching fusion sampling points. The set of sampling points is fused for curve fitting and sampling to obtain a set of matching target sampling points, and the matching lane line is generated based on the set of matching target sampling points, and then the matching lane line is used as the lane line of the target road section in the semantic map.
本实施例中,通过对位姿误差平均值与误差阈值进行比较,选择位姿误差平均值小于误差阈值的目标采样点集合作为匹配采样点集合,位姿误差平均值小,说明位姿点的准确率高,与位姿误差平均值对应的目标采样点集合的准确率高,将准确率高的目标采样点集合作为匹配采样点集合,提高了匹配目标采样点集合的准确率,基于匹配目标采样点集合生成目标车道线,提高了匹配目标车道线的准确率。In this embodiment, by comparing the average value of the pose error with the error threshold, the target sampling point set with the average value of the pose error smaller than the error threshold is selected as the set of matching sampling points. The average value of the pose error is small, indicating that the pose point The accuracy rate is high, and the accuracy rate of the target sampling point set corresponding to the average value of the pose error is high. The target sampling point set with high accuracy rate is used as the matching sampling point set, which improves the accuracy rate of the matching target sampling point set. Based on the matching target The set of sampling points generates the target lane line, which improves the accuracy of matching the target lane line.
以下为语义地图更新方法的应用场景,如图12所示,包括原始数据处理,众包建图,定位与回环检测三部分,其中,原始数据处理是指对根据光学雷达(Light Detection And Ranging,LiDAR)获取的3D LiDAR点云数据和图像采集设备(如,相机)采集的图像(如,2D相机图像)进行感知,得到新采集的众包地图,从新采集的众包地图中提取目标物体点云;如通过感知深度学习模型识别2D相机图像,确定2D交通灯标定框和2D车道线标定框,激光雷达的3D LiDAR点云投影到2D相机图像中,提取出交通灯标定框内的点,然后恢复3D,这些点认为是交通灯的点,得到交通灯对应的点云;通过感知组的深度学习方法确定点云中交通牌的感知标识点,标示为交通牌的这些点可以直接拿过来作为交通牌点云;通过感知深度学习模型感知2D相机图像中的2D车道线标定框,激光雷达的3D LiDAR点云投影到2D相机图像中,提取出车道线标定框内的点,然后恢复3D,这些点认为是车道线的点;还包括对其他具有交通标识的物体进行感知,得到对应的点云。The following is the application scenario of the semantic map update method, as shown in Figure 12, including three parts: original data processing, crowdsourcing mapping, positioning and loop detection. The 3D LiDAR point cloud data acquired by LiDAR) and the image (such as 2D camera image) collected by the image acquisition device (such as a camera) are perceived to obtain a newly collected crowdsourcing map, and the target object point is extracted from the newly collected crowdsourcing map. cloud; such as recognizing 2D camera images through the perceptual deep learning model, determining the 2D traffic light calibration frame and 2D lane line calibration frame, projecting the 3D LiDAR point cloud of the lidar into the 2D camera image, and extracting the points in the traffic light calibration frame, Then restore 3D, these points are regarded as the points of traffic lights, and the point cloud corresponding to the traffic lights is obtained; the perception identification points of the traffic signs in the point cloud are determined through the deep learning method of the perception group, and these points marked as traffic signs can be directly taken over As a traffic sign point cloud; through the perceptual deep learning model to perceive the 2D lane marking frame in the 2D camera image, the 3D LiDAR point cloud of the lidar is projected into the 2D camera image, extract the points in the lane marking frame, and then restore the 3D , these points are regarded as the points of the lane line; it also includes the perception of other objects with traffic signs to obtain the corresponding point cloud.
根据目标物体点云构造第一点云物体(如物体object)并提取对应的第一语义信息,根据构造的第一点云物体进行众包建图;进一步地,判断新采集的采集区域是否有图(即是否存在语义地图),若不存在,根据第一点云物体进行建图;当存在语义地图时,通过匈牙利匹配对众包地图和已有语义地图进行匹配,实现变化检测,检测结果包括添加物体(可以理解为已有语义地图中新增的点云物体)、删除物体(可以理解为已有语义地图中消失的点云物体)和平均物体(可以理解为已有语义地图和众包地图中存在的匹配点云物体对);根据检测结果对语义地体进行更新。其中,具体的检测方法具体限定可以参见上文中对于语义地图更新方法的限定,在此不再赘述。Construct the first point cloud object (such as the object object) according to the target object point cloud and extract the corresponding first semantic information, and perform crowdsourcing and mapping according to the constructed first point cloud object; further, determine whether the newly collected collection area has Figure (that is, whether there is a semantic map), if not, build the map according to the first point cloud object; when there is a semantic map, match the crowdsourced map with the existing semantic map through Hungarian matching, realize change detection, and detect the result Including adding objects (which can be understood as new point cloud objects in existing semantic maps), deleting objects (which can be understood as point cloud objects disappearing in existing semantic maps) and average objects (which can be understood as existing semantic maps and public Matching point cloud object pairs existing in the package map); update the semantic terrain according to the detection results. Wherein, for the specific limitations of the specific detection method, please refer to the limitation of the semantic map update method above, which will not be repeated here.
进一步地,根据更新后的语义地图进行定位和回环检测,提升了回环检测的检测能力,减少累积误差,提高了定位的精度以及速度避障;其中,定位和回环检测的方法可以通过现有方式实现,在此不做赘述。例如,在得到更新的语义地图后,对语义地图进行定位和回环检测,对物体和车道线进行匹配,得到定位结果。其中,回环检测又称闭环检测,是指设备识别曾到达某场景,使得地图闭环的能力,即能将此刻生成的地图与刚刚生成的地图做匹配。Further, positioning and loop detection are performed according to the updated semantic map, which improves the detection ability of loop detection, reduces cumulative errors, improves positioning accuracy and speed and avoids obstacles; among them, the positioning and loop detection methods can be used in existing methods implementation, and will not be repeated here. For example, after obtaining the updated semantic map, perform positioning and loop detection on the semantic map, match objects and lane lines, and obtain the positioning result. Among them, loopback detection, also known as closed-loop detection, refers to the ability of the device to identify that it has reached a certain scene and make the map closed-loop, that is, it can match the map generated at the moment with the map just generated.
上述语义地图更新方法中,通过从新采集的众包地图中提取目标第一点云物体,以及提取第一点云物体的第一语义信息,即在保留有用信息的前提下,使得地图整体尺寸大大缩小,以及在提取语义信息,压缩数据大小的同时,得到更多的地图信息;基于语义信息确定的语义距离,确定众包地图和语义地图的匹配结果;根据不同匹配结果,对语义地图实现添加新增、删除物体和平均匹配对物体,为地图匹配更新提供了保证,进而提高了地图更新精度。In the above semantic map update method, by extracting the first point cloud object of the target from the newly collected crowdsourcing map, and extracting the first semantic information of the first point cloud object, that is, under the premise of retaining useful information, the overall size of the map is greatly increased. Zoom out, and get more map information while extracting semantic information and compressing the data size; determine the matching result of crowdsourcing map and semantic map based on the semantic distance determined by semantic information; realize adding to semantic map according to different matching results Adding and deleting objects and averaging matching objects provide a guarantee for map matching updates, thereby improving the accuracy of map updates.
请参阅图13,图13是本申请实施例的路径规划方法的流程示意图。该方法的执行主体可以是有计算功能的电子设备,例如,微型计算机、服务器,以及笔记本电脑、平板电脑等移动设备等。需注意的是,若有实质上相同的结果,本申请的方法并不以图13所示的流程顺序为限。在一些可能的实现方式中,该方法可以通过处理器调用存储器中存储的计算机可读指令的方式来实现,如图13所示,该方法可以包括如下步骤:Please refer to FIG. 13 . FIG. 13 is a schematic flowchart of a path planning method according to an embodiment of the present application. The subject of execution of the method may be an electronic device with a computing function, for example, a microcomputer, a server, and mobile devices such as a notebook computer and a tablet computer. It should be noted that the method of the present application is not limited to the flow sequence shown in FIG. 13 if substantially the same result is obtained. In some possible implementation manners, the method may be implemented by a processor calling a computer-readable instruction stored in a memory, as shown in FIG. 13 , the method may include the following steps:
1302:获取原始语义地图。1302: Obtain the original semantic map.
众包车道线地图也是语义地图,可以是车辆行驶中生成的众包车道线局部地图,其中,众包地图是由具有环境感知能力的车辆,在行驶过程中采集车辆周围环境与道路信息数据,例如道路、交通标志、车道线、障碍物等交通元素信息,将采集 到的信息数据上传到云端,云端根据反馈得来的数据构建还原度高的、即时更新的行车地图。The crowdsourced lane line map is also a semantic map, which can be a partial crowdsourced lane line map generated during vehicle driving. The crowdsourced map is a vehicle with environmental awareness, which collects the surrounding environment and road information data during the driving process. For example, traffic element information such as roads, traffic signs, lane lines, obstacles, etc., the collected information data is uploaded to the cloud, and the cloud builds a highly restored and instantly updated driving map based on the feedback data.
原始语义地图通过接收传感器设备采集的信息构建而成,其中,传感器设备包括图像传感器和雷达传感器,雷达传感器可以是用于自动驾驶且满足精度要求的,用于提供点云感知的雷达设备。可以利用图像传感器,例如相机等,对图像数据进行采集。利用雷达传感器,例如毫米波雷达、激光雷达等,对点云数据进行采集。图像传感器和雷达传感器可以安装于一可移动的设备上,例如,自动驾驶车辆等。激光雷达可以包括机械式激光雷达、半固态激光雷达或者固态激光雷达等。The original semantic map is constructed by receiving information collected by sensor devices. The sensor devices include image sensors and radar sensors. Radar sensors can be used for autonomous driving and meet accuracy requirements, and are used to provide point cloud perception. The image data may be collected by an image sensor, such as a camera. Use radar sensors, such as millimeter-wave radar, lidar, etc., to collect point cloud data. Image sensors and radar sensors can be mounted on a mobile device, such as an autonomous vehicle. Lidar can include mechanical Lidar, semi-solid Lidar, or solid-state Lidar.
在一应用场景中,自动驾驶车辆在道路上行驶,通过设置于该自动驾驶车辆上的图像传感器获取用于描述车载设备所处的环境空间的图像数据,得到一个初始数据集;利用雷达传感器获取用于描述车载设备所处的环境空间的点云数据,得到一个初始数据集。每个传感器感知捕获用于描述车载设备所处的环境空间的初始数据集,每个初始数据集对应一个传感器,进而至少两个传感器捕获得到至少两个初始数据集,其中,初始数据集的类型包括但不限于图像数据和点云数据。In an application scenario, the self-driving vehicle is driving on the road, and the image data used to describe the environment space where the vehicle equipment is located is obtained through the image sensor installed on the self-driving vehicle to obtain an initial data set; the radar sensor is used to obtain It is used to describe the point cloud data of the environment space in which the vehicle equipment is located, and obtain an initial data set. Each sensor perceives and captures an initial data set used to describe the environmental space where the on-board device is located, and each initial data set corresponds to a sensor, and then at least two sensors capture at least two initial data sets, wherein the type of the initial data set Including but not limited to image data and point cloud data.
S1304:依据原始语义地图进行路径规划。S1304: Perform path planning according to the original semantic map.
依据原始语义地图,获取语义地图中的道路、交通标志、车道线、障碍物等交通信息,对于运行车辆的转向、速度、路径规划、变道等等进行调整,以实现在道路上安全行驶,其中,原始语义地图为通过如上述的语义地图的更新方法而得到的,在此不再赘述。According to the original semantic map, obtain traffic information such as roads, traffic signs, lane lines, obstacles, etc. in the semantic map, and adjust the steering, speed, path planning, lane change, etc. of running vehicles to achieve safe driving on the road. Wherein, the original semantic map is obtained through the above-mentioned updating method of the semantic map, which will not be repeated here.
请参阅图14,图14是本申请实施例的语义地图更新装置的结构示意图,语义地图更新装置140包括获取模块141、第一提取模块142、第二提取模块143和更新模块144。获取模块141,用于获取当前采集区域对应的至少一个物体点云。Please refer to FIG. 14 . FIG. 14 is a schematic structural diagram of an apparatus for updating a semantic map according to an embodiment of the present application. The apparatus 140 for updating a semantic map includes an acquisition module 141 , a first extraction module 142 , a second extraction module 143 and an update module 144 . The acquiring module 141 is configured to acquire at least one object point cloud corresponding to the current acquisition area.
第一提取模块142,用于根据至少一个物体点云构造至少一个第一点云物体并提取对应的第一语义信息,其中至少一个第一点云物体及对应的第一语义信息用于构建众包语义地图。第二提取模块143,用于响应于当前采集区域存在原始语义地图,获取原始语义地图,并从原始语义地图中获取至少一个第二点云物体以及对应的第二语义信息。更新模块144,用于根据第一语义信息和第二语义信息,获得至少一个第一点云物体和至少一个第二点云物体的匹配结果,并根据匹配结果,利用众包语义地图中的至少一个第一点云物体,更新原始语义地图。The first extraction module 142 is configured to construct at least one first point cloud object and extract corresponding first semantic information according to at least one object point cloud, wherein at least one first point cloud object and corresponding first semantic information are used to construct a crowd Package Semantic Maps. The second extraction module 143 is configured to obtain the original semantic map in response to the existence of the original semantic map in the current collection area, and obtain at least one second point cloud object and corresponding second semantic information from the original semantic map. The update module 144 is configured to obtain a matching result of at least one first point cloud object and at least one second point cloud object according to the first semantic information and the second semantic information, and use at least one of the crowdsourcing semantic maps according to the matching result A first point cloud object to update the original semantic map.
请参阅图15,图15是本申请实施例的路径规划装置的结构示意图,路径规划装置150包括获取模块151和路径规划模块314。获取模块151,用于获取原始语义地图,其中,原始语义地图为通过如上述的语义地图的更新方法而得到的。Please refer to FIG. 15 . FIG. 15 is a schematic structural diagram of a path planning device according to an embodiment of the present application. The path planning device 150 includes an acquisition module 151 and a path planning module 314 . The obtaining module 151 is configured to obtain an original semantic map, wherein the original semantic map is obtained through the above-mentioned semantic map update method.
路径规划模块314,用于依据原始语义地图进行路径规划。本领域技术人员可以理解,在具体实施方式的上述方法中,各步骤的撰写顺序并不意味着严格的执行顺序而对实施过程构成任何限定,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。The path planning module 314 is configured to perform path planning according to the original semantic map. Those skilled in the art can understand that in the above method of specific implementation, the writing order of each step does not mean a strict execution order and constitutes any limitation on the implementation process. The specific execution order of each step should be based on its function and possible The inner logic is OK.
请参阅图16,图16是本申请实施例的计算机设备的结构示意图。计算机设备160包括相互耦接的存储器161和处理器162,处理器162用于执行存储器161中存储的程序指令,以实现上述的语义地图更新方法实施例的步骤,或者以实现上述路径规划方法实施例的步骤。在一个具体的实施场景中,计算机设备160可以包括但不限于:微型计算机、服务器,在此不做限定。Please refer to FIG. 16 . FIG. 16 is a schematic structural diagram of a computer device according to an embodiment of the present application. The computer device 160 includes a memory 161 and a processor 162 coupled to each other, and the processor 162 is used to execute the program instructions stored in the memory 161, so as to realize the steps of the above embodiment of the method for updating the semantic map, or to realize the implementation of the above method for path planning. example steps. In a specific implementation scenario, the computer device 160 may include but not limited to: a microcomputer and a server, which are not limited here.
具体而言,处理器162用于控制其自身以及存储器161以实现上述语义地图更新方法实施例的步骤,或者以实现上述路径规划方法实施例的步骤。处理器162还可以称为CPU(Central Processing Unit,中央处理单元),处理器162可能是一种集成电路芯片,具有信号的处理能力。处理器162还可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。另外,处理器162可以由集成电路芯片共同实现。Specifically, the processor 162 is configured to control itself and the memory 161 to implement the steps of the above embodiment of the semantic map updating method, or to implement the steps of the above embodiment of the path planning method. The processor 162 may also be referred to as a CPU (Central Processing Unit, central processing unit), and the processor 162 may be an integrated circuit chip having a signal processing capability. The processor 162 can also be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field-programmable gate array (Field-Programmable Gate Array, FPGA) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like. In addition, the processor 162 may be jointly realized by an integrated circuit chip.
请参阅图17,图17为本申请实施例的非易失性计算机可读存储介质的结构示意图。非易失性计算机可读存储介质170用于存储计算机程序1701,计算机程序1701在被处理器执行时,例如被上述图16实施例中的处理器162执行时,用于实现上述用于语义地图更新方法实施例的步骤,或者以实现上述路径规划方法实施例的步骤。Please refer to FIG. 17 . FIG. 17 is a schematic structural diagram of a non-volatile computer-readable storage medium according to an embodiment of the present application. The non-volatile computer-readable storage medium 170 is used to store a computer program 1701. When the computer program 1701 is executed by a processor, for example, when executed by the processor 162 in the embodiment of FIG. The steps in the embodiment of the method are updated, or to implement the steps in the embodiment of the path planning method above.
上文对各个实施例的描述倾向于强调各个实施例之间的不同之处,其相同或相似之处可以互相参考,为了简洁,本文不再赘述。The above descriptions of the various embodiments tend to emphasize the differences between the various embodiments, the same or similar points can be referred to each other, and for the sake of brevity, details are not repeated herein.
在本申请所提供的几个实施例中,应该理解到,所揭露的方法和相关设备,可以通过其它的方式实现。例如,以上所描述的相关设备实施方式仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信断开连接可以是通过一些接口,装置或单元的间接耦合或通信断开连接,可以是电性、机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed methods and related devices may be implemented in other ways. For example, the related device implementations described above are only illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, units or components may be combined or Integrate into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication disconnection shown or discussed may be through some interfaces, and the indirect coupling or communication disconnection of devices or units may be in electrical, mechanical or other forms.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质 中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施方式方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。An integrated unit may be stored in a computer-readable storage medium if it is realized in the form of a software function unit and sold or used as an independent product. Based on this understanding, the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) execute all or part of the steps of the methods in various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc., which can store program codes. .
所属领域的技术人员易知,可在保持本申请的教示内容的同时对装置及方法作出诸多修改及变动。因此,以上公开内容应被视为仅受随附权利要求书的范围的限制。Those skilled in the art can easily understand that many modifications and changes can be made to the devices and methods while maintaining the teaching content of the present application. Accordingly, the above disclosure should be seen as limited only by the scope of the appended claims.

Claims (40)

  1. 一种语义地图更新方法,其特征在于,所述方法包括:A method for updating a semantic map, characterized in that the method comprises:
    从当前采集区域对应的众包地图中提取目标物体点云;Extract the point cloud of the target object from the crowdsourced map corresponding to the current collection area;
    根据所述目标物体点云构造第一点云物体并提取对应的第一语义信息;Constructing a first point cloud object according to the target object point cloud and extracting corresponding first semantic information;
    当所述当前采集区域存在对应的语义地图时,获取所述语义地图中的所有第二点云物体以及对应的第二语义信息;When there is a corresponding semantic map in the current acquisition area, acquire all second point cloud objects and corresponding second semantic information in the semantic map;
    根据所述第一语义信息和所述第二语义信息,将所述众包地图与所述语义地图进行匹配,得到匹配结果;Matching the crowdsourced map with the semantic map according to the first semantic information and the second semantic information to obtain a matching result;
    根据所述匹配结果更新所述语义地图。The semantic map is updated according to the matching result.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, further comprising:
    响应于所述当前采集区域不存在所述原始语义地图,利用所述至少一个第一点云物体以及所述第一语义信息,创建所述众包语义地图。In response to the fact that the original semantic map does not exist in the current collection area, the crowdsourced semantic map is created by using the at least one first point cloud object and the first semantic information.
  3. 根据权利要求1述的方法,其特征在于,所述根据所述第一语义信息和所述第二语义信息,获得所述至少一个第一点云物体和所述至少一个第二点云物体的匹配结果,包括:The method according to claim 1, wherein the at least one first point cloud object and the at least one second point cloud object are obtained according to the first semantic information and the second semantic information. Matching results, including:
    根据所述第一语义信息和所述第二语义信息,确定所述第一点云物体与所述第二点云物体之间的语义距离;determining a semantic distance between the first point cloud object and the second point cloud object according to the first semantic information and the second semantic information;
    基于所述语义距离,获得所述第一点云物体和所述第二点云物体的匹配结果。Based on the semantic distance, a matching result of the first point cloud object and the second point cloud object is obtained.
  4. 根据权利要求3述的方法,其特征在于,所述根据所述第一语义信息和所述第二语义信息,确定所述第一点云物体与所述第二点云物体之间的语义距离,包括:The method according to claim 3, wherein the semantic distance between the first point cloud object and the second point cloud object is determined according to the first semantic information and the second semantic information ,include:
    确定所述第一语义信息和所述第二语义信息,计算所述第一点云物体与所述第二点云物体之间的中心位置坐标距离差异值、点云物体方向差异、标定框尺寸差异以及外观特征差异;Determine the first semantic information and the second semantic information, calculate the center position coordinate distance difference between the first point cloud object and the second point cloud object, point cloud object direction difference, and calibration frame size differences and differences in appearance characteristics;
    对所述中心位置坐标距离差异值、点云物体方向差异值、标定框尺寸差异值和所述外观特征差异值进行加权处理,得到所述第一点云物体与所述第二点云物体之间的语义距离。Perform weighting processing on the center position coordinate distance difference value, the point cloud object direction difference value, the calibration frame size difference value and the appearance feature difference value to obtain the difference between the first point cloud object and the second point cloud object semantic distance between them.
  5. 根据权利要求4所述的方法,其特征在于,所述第一语义信息和所述第二语义信息中均包括点云中心坐标、点云标定框尺寸、点云主方向和点云直方图;The method according to claim 4, wherein the first semantic information and the second semantic information both include point cloud center coordinates, point cloud calibration frame size, point cloud main direction and point cloud histogram;
    所述根据所述第一语义信息和所述第二语义信息,确定所述第一点云物体与各所述第二点云物体之间的中心位置坐标距离差异值、点云物体方向差异值、标定框尺寸差异值以及所述外观特征差异值,包括:According to the first semantic information and the second semantic information, determine the center position coordinate distance difference value and the point cloud object direction difference value between the first point cloud object and each of the second point cloud objects , the difference value of the calibration frame size and the difference value of the appearance feature, including:
    根据所述第一点云物体的点云中心坐标和所述第二点云物体的点云中心坐标,确定所述中心位置坐标距离差异值;Determine the center position coordinate distance difference value according to the point cloud center coordinates of the first point cloud object and the point cloud center coordinates of the second point cloud object;
    根据所述第一点云物体的点云主方向和所述第二点云物体的点云主方向,确定所述点云物体方向差异值;Determine the direction difference value of the point cloud object according to the point cloud main direction of the first point cloud object and the point cloud main direction of the second point cloud object;
    根据所述第一点云物体的标定框尺寸和所述第二点云物体的标定框尺寸,确定所述标定框尺寸差异值;Determine the difference value of the calibration frame size according to the calibration frame size of the first point cloud object and the calibration frame size of the second point cloud object;
    根据所述第一点云物体的点云直方图的形状要素和所述第二点云物体的点云直方图的形状要素,确定所述外观特征差异值。The appearance feature difference value is determined according to the shape element of the point cloud histogram of the first point cloud object and the shape element of the point cloud histogram of the second point cloud object.
  6. 根据权利要求1所述的方法,其特征在于,所述根据所述第一语义信息和所述第二语义信息,获得所述至少一个第一点云物体和所述至少一个第二点云物体的匹配结果,包括:The method according to claim 1, wherein the at least one first point cloud object and the at least one second point cloud object are obtained according to the first semantic information and the second semantic information Matching results for , including:
    获取所述至少一个第一点云物体的数量n和所述至少一个第二点云物体的数量m,得到n*m的关联矩阵;Acquiring the number n of the at least one first point cloud object and the number m of the at least one second point cloud object to obtain an association matrix of n*m;
    将所述第一点云物体与所述第二点云物体之间的语义距离作为所述关联矩阵的元素;Using the semantic distance between the first point cloud object and the second point cloud object as an element of the affinity matrix;
    根据预定阈值和所述关联矩阵,得到所述至少一个第一点云物体与所述至少一个第二点云物体的匹配结果。According to a predetermined threshold and the correlation matrix, a matching result of the at least one first point cloud object and the at least one second point cloud object is obtained.
  7. 根据权利要求6所述的方法,其特征在于,所述根据预定阈值和所述关联矩阵,得到所述至少一个第一点云物体与所述至少一个第二点云物体的匹配结果,包括:The method according to claim 6, wherein said obtaining the matching result of said at least one first point cloud object and said at least one second point cloud object according to a predetermined threshold and said correlation matrix comprises:
    当所述关联矩阵中存在第一元素大于或等于所述预定阈值时,确定所述第一元素对应的第一点云物体和第二点云物体不匹配。When there is a first element in the correlation matrix that is greater than or equal to the predetermined threshold, it is determined that the first point cloud object corresponding to the first element does not match the second point cloud object.
  8. 根据权利要求6所述的方法,其特征在于,所述根据预定阈值和所述关联矩阵,得到所述至少一个第一点云物体与所述至少一个第二点云物体的匹配结果,包括:The method according to claim 6, wherein said obtaining the matching result of said at least one first point cloud object and said at least one second point cloud object according to a predetermined threshold and said correlation matrix comprises:
    当所述关联矩阵中至少存在一个第二元素小于所述预定阈值时,确定所述第二元素对应的第一点云物体存在至少一个匹配的第二点云物体;When at least one second element in the correlation matrix is smaller than the predetermined threshold, it is determined that there is at least one matching second point cloud object in the first point cloud object corresponding to the second element;
    基于所述第二元素对所述关联矩阵进行分割,得到若干子图;Segmenting the incidence matrix based on the second element to obtain several subgraphs;
    对各所述子图分别进行二分图匹配,确定与所述第一点云物体匹配的第二点云物体。Perform bipartite graph matching on each of the subgraphs to determine a second point cloud object that matches the first point cloud object.
  9. 根据权利要求8所述的方法,其特征在于,所述对各所述子图分别进行二分图匹配,确定与所述第一点云物体匹配的第二点云物体,包括:The method according to claim 8, wherein said performing bipartite graph matching on each of said subgraphs to determine a second point cloud object matched with said first point cloud object comprises:
    对各所述子图分别进行二分图匹配,确定所述子图中第一点云物体与各所述第二点云物体的匹配代价值;Perform bipartite graph matching on each of the sub-graphs, and determine the matching cost value of the first point cloud object in the sub-graph and each of the second point cloud objects;
    确定数值最小的匹配代价值对应的第二点云物体为所述第一点云物体的匹配点云物体。It is determined that the second point cloud object corresponding to the matching cost value with the smallest value is the matching point cloud object of the first point cloud object.
  10. 根据权利要求1所述的方法,其特征在于,所述根据所述匹配结果,利用所述众包语义地图中的所述至少一个第一点云物体,更新所述原始语义地图,包括:The method according to claim 1, wherein the updating of the original semantic map by using the at least one first point cloud object in the crowdsourced semantic map according to the matching result comprises:
    当所述众包语义地图中的第一点云物体与所述原始语义地图中所述第二点云物体的匹配结果为所述第一点云物体为新增点云物体时,将所述第一点云物体添加至所述原始语义地图中;When the matching result of the first point cloud object in the crowdsourcing semantic map and the second point cloud object in the original semantic map is that the first point cloud object is a newly added point cloud object, the adding a first point cloud object to said raw semantic map;
    当所述匹配结果为所述第二点云物体为消失点云物体时,将所述第二点云物体从所述原始语义地图中删除。When the matching result is that the second point cloud object is a vanishing point cloud object, the second point cloud object is deleted from the original semantic map.
  11. 根据权利要求1所述的方法,其特征在于,所述根据所述匹配结果,利用所述众包语义地图中的所述至少一个第一点云物体,更新所述原始语义地图,包括:The method according to claim 1, wherein the updating of the original semantic map by using the at least one first point cloud object in the crowdsourced semantic map according to the matching result comprises:
    对所述第一点云物体和所述至少一个第二点云物体中与所述第一点云物体匹配成功的匹配点云物体进行语义平均处理,得到语义平均点云物体;Perform semantic averaging processing on the matching point cloud objects that successfully match the first point cloud object among the first point cloud object and the at least one second point cloud object to obtain a semantic average point cloud object;
    将所述语义平均点云物体替换所述原始语义地图中所述匹配点云物体,以更新所述原始语义地图。replacing the matching point cloud object in the original semantic map with the semantic average point cloud object, so as to update the original semantic map.
  12. 根据权利要求11所述的方法,其特征在于,所述对所述第一点云物体和所述至少一个第二点云物体中与所述第一 点云物体匹配成功的匹配点云物体进行语义平均处理,得到语义平均点云物体,包括:The method according to claim 11, wherein the matching point cloud object of the first point cloud object and the at least one second point cloud object that is successfully matched with the first point cloud object is performed Semantic average processing to obtain semantic average point cloud objects, including:
    获取所述匹配点云物体及其第二语义信息;Obtain the matching point cloud object and its second semantic information;
    通过对所述第一点云物体的第一语义信息和所述匹配点云物体的第二语义信息进行语义平均处理,得到更新点云物体的平均语义信息,从而得到所述语义平均点云物体。By performing semantic averaging processing on the first semantic information of the first point cloud object and the second semantic information of the matching point cloud object, the average semantic information of the updated point cloud object is obtained, thereby obtaining the semantic average point cloud object .
  13. 根据权利要求12所述的方法,其特征在于,所述通过对所述第一点云物体的第一语义信息和所述匹配点云物体的第二语义信息进行语义平均处理,得到更新点云物体的平均语义信息,包括:The method according to claim 12, wherein the updated point cloud is obtained by performing semantic averaging processing on the first semantic information of the first point cloud object and the second semantic information of the matching point cloud object The average semantic information of the object, including:
    根据所述第一语义信息和所述第二语义信息进行语义平均处理,更新所述第一点云物体的第一语义信息,得到更新后的所述第一点云物体的平均语义信息;所述平均语义信息至少包括更新后的PCA坐标系方向、更新点云中心、更新包围框的顶点坐标、更新点云凸包和更新直方图中任意一种。Perform semantic averaging processing according to the first semantic information and the second semantic information, update the first semantic information of the first point cloud object, and obtain the updated average semantic information of the first point cloud object; The average semantic information includes at least any one of the updated PCA coordinate system direction, the updated point cloud center, the updated vertex coordinates of the bounding box, the updated convex hull of the point cloud, and the updated histogram.
  14. 根据权利要求13所述的方法,其特征在于,所述根据所述第一语义信息和所述第二语义信息进行语义平均处理,更新所述第一点云物体的第一语义信息,得到更新后的所述第一点云物体的平均语义信息,包括:The method according to claim 13, wherein the semantic averaging process is performed according to the first semantic information and the second semantic information, and the first semantic information of the first point cloud object is updated to obtain an updated After the average semantic information of the first point cloud object, including:
    对所述第一语义信息中的PCA坐标系方向和所述第二语义信息中的PCA坐标系方向进行插值处理,得到所述更新后的PCA坐标系方向;Interpolating the direction of the PCA coordinate system in the first semantic information and the direction of the PCA coordinate system in the second semantic information to obtain the updated direction of the PCA coordinate system;
    对所述第一语义信息中的点云中心和所述第二语义信息中的点云中心进行均值处理,得到所述更新点云中心;performing mean value processing on the point cloud center in the first semantic information and the point cloud center in the second semantic information to obtain the updated point cloud center;
    根据所述更新后的PCA坐标系方向和所述更新点云中心,得到更新后的所述第一点云物体的平均语义信息。The updated average semantic information of the first point cloud object is obtained according to the updated PCA coordinate system direction and the updated point cloud center.
  15. 根据权利要求13所述的方法,其特征在于,所述根据所述第一语义信息和所述第二语义信息进行语义平均处理,更新所述第一点云物体的第一语义信息,得到更新后的所述第一点云物体的平均语义信息,包括:The method according to claim 13, wherein the semantic averaging process is performed according to the first semantic information and the second semantic information, and the first semantic information of the first point cloud object is updated to obtain an updated After the average semantic information of the first point cloud object, including:
    对所述第一语义信息中的点云最小包围盒和所述第二语义信息中的点云最小包围盒进行均值处理和坐标转换处理,得到所述更新包围框的顶点坐标;Perform mean value processing and coordinate conversion processing on the minimum bounding box of the point cloud in the first semantic information and the minimum bounding box of the point cloud in the second semantic information to obtain the vertex coordinates of the updated bounding box;
    根据所述更新后的PCA坐标系方向、所述更新点云中心和所述更新包围框的顶点坐标,得到更新后的所述第一点云物体的平均语义信息。The updated average semantic information of the first point cloud object is obtained according to the updated PCA coordinate system direction, the updated point cloud center, and the vertex coordinates of the updated bounding box.
  16. 根据权利要求15所述的方法,其特征在于,所述对所述第一语义信息中的点云最小包围盒和所述第二语义信息中的点云最小包围盒进行均值处理和坐标转换处理,得到更新包围框的顶点坐标,包括:The method according to claim 15, wherein the mean value processing and coordinate conversion processing are performed on the point cloud minimum bounding box in the first semantic information and the point cloud minimum bounding box in the second semantic information , get the vertex coordinates of the updated bounding box, including:
    对所述第一语义信息中的点云最小包围盒和所述第二语义信息中的点云最小包围盒进行均值处理,得到所述更新点云最小包围盒;Perform mean value processing on the point cloud minimum bounding box in the first semantic information and the point cloud minimum bounding box in the second semantic information to obtain the updated point cloud minimum bounding box;
    基于所述更新后的PCA坐标系方向,将所述更新点云中心进行坐标转换,转换至更新物体坐标系下,得到目标点云中心坐标;Based on the updated PCA coordinate system direction, coordinate conversion is performed on the updated point cloud center, and converted to the updated object coordinate system to obtain the center coordinates of the target point cloud;
    根据所述目标点云中心坐标和所述更新点云最小包围盒,得到更新包围框的顶点坐标。According to the center coordinates of the target point cloud and the minimum bounding box of the updated point cloud, the vertex coordinates of the updated bounding box are obtained.
  17. 根据权利要求16所述的方法,其特征在于,所述根据所述目标点云中心坐标和所述更新点云最小包围盒,得到更新包围框的顶点坐标,包括:The method according to claim 16, wherein the obtaining the vertex coordinates of the updated bounding box according to the center coordinates of the target point cloud and the minimum bounding box of the updated point cloud includes:
    根据所述目标点云中心坐标和所述更新点云最小包围盒的尺寸信息来确定所述顶点坐标;所述尺寸信息包括宽度、高度和深度;Determine the vertex coordinates according to the center coordinates of the target point cloud and the size information of the minimum bounding box of the updated point cloud; the size information includes width, height and depth;
    其中,根据所述目标点云中心的x轴坐标以及所述宽度获得所述更新包围框在x轴的顶点坐标;Wherein, the vertex coordinates of the updated bounding box on the x-axis are obtained according to the x-axis coordinates of the center of the target point cloud and the width;
    根据所述目标点云中心的y轴坐标以及所述高度获得所述更新包围框在y轴的顶点坐标;以及Obtaining the vertex coordinates of the updated bounding box on the y-axis according to the y-axis coordinates of the center of the target point cloud and the height; and
    根据所述目标点云中心的z轴坐标以及所述深度获得所述更新包围框在z轴的顶点坐标。Obtain the vertex coordinates of the updated bounding box on the z-axis according to the z-axis coordinates of the center of the target point cloud and the depth.
  18. 根据权利要求13所述的方法,其特征在于,所述根据所述第一语义信息和所述第二语义信息进行语义平均处理,更新所述第一点云物体的第一语义信息,得到更新后的所述第一点云物体的平均语义信息,包括:The method according to claim 13, wherein the semantic averaging process is performed according to the first semantic information and the second semantic information, and the first semantic information of the first point cloud object is updated to obtain an updated After the average semantic information of the first point cloud object, including:
    对所述第一语义信息中的点云凸包和所述第二语义信息中的点云凸包进行平移旋转和坐标转换处理,得到所述更新点云凸包;Perform translation, rotation and coordinate transformation processing on the point cloud convex hull in the first semantic information and the point cloud convex hull in the second semantic information to obtain the updated point cloud convex hull;
    根据所述更新后的PCA坐标系方向、所述更新点云中心、所述更新包围框的顶点坐标和所述更新点云凸包,得到更新后的所述第一点云物体的平均语义信息。According to the updated PCA coordinate system direction, the updated point cloud center, the vertex coordinates of the updated bounding box and the updated point cloud convex hull, obtain the updated average semantic information of the first point cloud object .
  19. 根据权利要求13所述的方法,其特征在于,所述根据所述第一语义信息和所述第二语义信息进行语义平均处理,更新所述第一点云物体的第一语义信息,得到更新后的所述第一点云物体的平均语义信息,包括:The method according to claim 13, wherein the semantic averaging process is performed according to the first semantic information and the second semantic information, and the first semantic information of the first point cloud object is updated to obtain an updated After the average semantic information of the first point cloud object, including:
    根据所述第一点云物体的物体点云进行坐标系转换更新所述第二语义信息中的直方图,得到所述更新直方图;performing coordinate system transformation according to the object point cloud of the first point cloud object to update the histogram in the second semantic information to obtain the updated histogram;
    根据所述更新后的PCA坐标系方向、更新点云中心、更新包围框的顶点坐标、更新点云凸包和更新直方图,得到更新后的所述第一点云物体的平均语义信息。According to the updated PCA coordinate system direction, updated point cloud center, updated bounding box vertex coordinates, updated point cloud convex hull and updated histogram, the updated average semantic information of the first point cloud object is obtained.
  20. 根据权利要求1所述的方法,其特征在于,所述至少一个第一点云物体和所述至少一个第二点云物体的匹配结果包括所述众包语义地图中的第一未匹配点云物体集合和所述原始语义地图中的第二未匹配点云物体集合;The method according to claim 1, wherein the matching result of the at least one first point cloud object and the at least one second point cloud object comprises the first unmatched point cloud in the crowdsourcing semantic map an object set and the second unmatched point cloud object set in the original semantic map;
    所述根据所述匹配结果,利用所述至少一个第一点云物体,更新所述原始语义地图,包括:The updating of the original semantic map by using the at least one first point cloud object according to the matching result includes:
    判断所述第一未匹配点云物体集合中的各第一未匹配点云物体与所述原始语义地图中预设语义距离范围内对应的点云物体是否存在包围盒碰撞;Judging whether there is a bounding box collision between each first unmatched point cloud object in the first unmatched point cloud object set and a corresponding point cloud object within a preset semantic distance range in the original semantic map;
    判断所述第二未匹配点云物体集合中的各第二未匹配点云物体与所述众包语义地图中预设语义距离范围内对应的点云物体是否存在包围盒碰撞;Judging whether there is a bounding box collision between each second unmatched point cloud object in the second unmatched point cloud object set and the corresponding point cloud object within the preset semantic distance range in the crowdsourcing semantic map;
    根据所述第一未匹配点云物体的包围盒碰撞结果,和/或,所述第二未匹配点云物体的包围盒碰撞结果,更新所述原始语义地图。The original semantic map is updated according to the bounding box collision result of the first unmatched point cloud object and/or the bounding box collision result of the second unmatched point cloud object.
  21. 根据权利要求20所述的方法,其特征在于,根据所述第二未匹配点云物体的包围盒碰撞结果,更新所述原始语义地图,包括:The method according to claim 20, wherein, according to the bounding box collision result of the second unmatched point cloud object, updating the original semantic map includes:
    当所述第二未匹配点云物体的包围盒碰撞结果为所述第二未匹配点云物体不存在包围盒碰撞时,将所述第二未匹配点云物体从所述原始语义地图中删除。When the bounding box collision result of the second unmatched point cloud object is that there is no bounding box collision for the second unmatched point cloud object, delete the second unmatched point cloud object from the original semantic map .
  22. 根据权利要求20所述的方法,其特征在于,根据所述第一未匹配点云物体的包围盒碰撞结果,更新所述原始语义地图,包括:The method according to claim 20, wherein, according to the bounding box collision result of the first unmatched point cloud object, updating the original semantic map includes:
    当所述第一未匹配点云物体的包围盒碰撞结果为所述第一未匹配点云物体不存在包围盒碰撞时,将所述第一未匹配点云 物体添加至所述原始语义地图中。When the bounding box collision result of the first unmatched point cloud object is that there is no bounding box collision for the first unmatched point cloud object, adding the first unmatched point cloud object to the original semantic map .
  23. 根据权利要求20所述的方法,其特征在于,根据所述第一未匹配点云物体的包围盒碰撞结果和所述第二未匹配点云物体的包围盒碰撞结果,包括:The method according to claim 20, wherein, according to the bounding box collision result of the first unmatched point cloud object and the bounding box collision result of the second unmatched point cloud object, comprising:
    当所述第一未匹配点云物体的包围盒碰撞结果为所述第一未匹配点云物体不存在包围盒碰撞时,将所述第一未匹配点云物体添加至所述原始语义地图中;以及When the bounding box collision result of the first unmatched point cloud object is that there is no bounding box collision for the first unmatched point cloud object, adding the first unmatched point cloud object to the original semantic map ;as well as
    当所述第二未匹配点云物体的包围盒碰撞结果为所述第二未匹配点云物体不存在包围盒碰撞时,将所述第二未匹配点云物体从所述原始语义地图中删除。When the bounding box collision result of the second unmatched point cloud object is that there is no bounding box collision for the second unmatched point cloud object, delete the second unmatched point cloud object from the original semantic map .
  24. 根据权利要求20所述的方法,其特征在于,根据所述第一未匹配点云物体的包围盒碰撞结果,更新所述原始语义地图,包括:The method according to claim 20, wherein, according to the bounding box collision result of the first unmatched point cloud object, updating the original semantic map includes:
    当所述第一未匹配点云物体的包围盒碰撞结果为所述第一未匹配点云物体存在包围盒碰撞时,从所述原始语义地图中预设距离范围内确定对应的第一碰撞点云物体;When the bounding box collision result of the first unmatched point cloud object is a bounding box collision of the first unmatched point cloud object, determine the corresponding first collision point within a preset distance range from the original semantic map cloud objects;
    根据所述第一未匹配点云物体和所述第一碰撞点云物体,得到点云占比;According to the first unmatched point cloud object and the first collision point cloud object, the point cloud proportion is obtained;
    利用所述点云占与设定阈值,更新所述原始语义地图。Using the point cloud occupancy and setting a threshold, the original semantic map is updated.
  25. 根据权利要求24所述的方法,其特征在于,所述利用所述点云占与设定阈值,更新所述原始语义地图,包括:The method according to claim 24, wherein said updating said original semantic map using said point cloud occupancy and setting a threshold comprises:
    响应于所述点云占比大于或等于所述设定阈值,确定所述第一未匹配点云物体和所述第一碰撞点云物体为同一物体;In response to the point cloud proportion being greater than or equal to the set threshold, it is determined that the first unmatched point cloud object and the first collision point cloud object are the same object;
    响应于所述点云占比小于所述设定阈值,确定所述第一未匹配点云物体和所述第一碰撞点云物体不为同一物体,进而将所述第一未匹配点云物体添加至所述原始语义地图中。In response to the point cloud proportion being less than the set threshold, it is determined that the first unmatched point cloud object and the first collision point cloud object are not the same object, and then the first unmatched point cloud object is added to the original semantic map.
  26. 根据权利要求24所述的方法,其特征在于,所述根据所述第一未匹配点云物体和所述第一碰撞点云物体,得到点云占比,包括:The method according to claim 24, wherein said obtaining the point cloud proportion according to said first unmatched point cloud object and said first collision point cloud object comprises:
    确定所述第一未匹配点云物体对应第一物体点云,以及所述第一碰撞点云物体对应的第一点云物体凸包体;Determining that the first unmatched point cloud object corresponds to the first object point cloud, and the first point cloud object convex hull corresponding to the first collision point cloud object;
    确定所述第一物体点云中的点在所述第一点云物体凸包体的点数量,得到点云占比。Determining the number of points in the point cloud of the first object in the convex hull of the first point cloud object to obtain the proportion of the point cloud.
  27. 根据权利要求24所述的方法,其特征在于,在所述对所述第一未匹配点云物体和所述第一碰撞点云物体,得到点云占比之前,所述方法还包括:The method according to claim 24, wherein, before obtaining the point cloud ratio for the first unmatched point cloud object and the first collision point cloud object, the method further comprises:
    判断所述第一未匹配点云物体和所述第一碰撞点云物体是否存在凸包碰撞;judging whether there is a convex hull collision between the first unmatched point cloud object and the first colliding point cloud object;
    当存在凸包碰撞时,执行所述根据所述第一未匹配点云物体和所述第一碰撞点云物体,得到点云占比步骤;When there is a convex hull collision, perform the step of obtaining the point cloud proportion according to the first unmatched point cloud object and the first collided point cloud object;
    当不存在凸包碰撞时,确定所述第一未匹配点云物体和所述第一碰撞点云物体不为同一物体,以将所述第一未匹配点云物体添加至所述原始语义地图中。When there is no convex hull collision, determine that the first unmatched point cloud object and the first collision point cloud object are not the same object, so as to add the first unmatched point cloud object to the original semantic map middle.
  28. 根据权利要求20所述的方法,其特征在于,根据所述第二未匹配点云物体的包围盒碰撞结果,更新所述原始语义地图,包括:The method according to claim 20, wherein, according to the bounding box collision result of the second unmatched point cloud object, updating the original semantic map includes:
    当所述第二未匹配点云物体的包围盒碰撞结果为所述第二未匹配点云物体存在包围盒碰撞时,从所述众包语义地图中预设距离范围内确定对应的第二碰撞点云物体;When the bounding box collision result of the second unmatched point cloud object is that there is a bounding box collision for the second unmatched point cloud object, determine the corresponding second collision within a preset distance range from the crowdsourcing semantic map point cloud object;
    判断所述第二未匹配点云物体和所述第二碰撞点云物体是否存在凸包碰撞;judging whether there is a convex hull collision between the second unmatched point cloud object and the second colliding point cloud object;
    当不存在凸包碰撞时,确定所述第二未匹配点云物体和所述第二碰撞点云物体不为同一物体,以将所述第二未匹配点云物体从所述原始语义地图中删除;When there is no convex hull collision, it is determined that the second unmatched point cloud object and the second collision point cloud object are not the same object, so as to remove the second unmatched point cloud object from the original semantic map delete;
    当存在凸包碰撞时,确定所述第二未匹配点云物体和所述第二碰撞点云物体为同一物体。When there is a convex hull collision, it is determined that the second unmatched point cloud object and the second colliding point cloud object are the same object.
  29. 根据权利要求1所述的方法,其特征在于,所述当前采集区域包括目标路段;The method according to claim 1, wherein the current collection area includes a target road section;
    所述更新所述原始语义地图,还包括:Said updating said original semantic map also includes:
    获取所述目标路段的多帧图像以及每帧所述图像对应的位姿点;基于所述位姿点确定所述目标路段的路段特征和路段速度;Obtaining multiple frames of images of the target road section and the pose points corresponding to each frame of the image; determining the road section characteristics and road section speed of the target road section based on the pose points;
    基于所述路段特征和所述路段速度对所述多帧图像进行选择,得到目标图像,进而基于所述目标图像生成所述目标路段的目标车道线。The multi-frame images are selected based on the road section features and the road section speed to obtain a target image, and then a target lane line of the target road section is generated based on the target image.
  30. 根据权利要求29所述的方法,其特征在于,所述基于所述路段特征和所述路段速度对所述多帧图像进行选择,得到目标图像包括:The method according to claim 29, wherein said selecting said multi-frame images based on said road section features and said road section speed, and obtaining a target image comprises:
    若所述目标路段的路段速度为零,则从所述多帧图像中选择一帧图像作为目标图像;If the road section speed of the target road section is zero, then select a frame image from the multiple frame images as the target image;
    若所述目标路段为直线路段且路段速度不为零,则基于所述路段速度确定目标数量,从所述多帧图像中选择所述目标数量的目标图像;If the target road section is a straight line road section and the speed of the road section is not zero, the number of targets is determined based on the speed of the road section, and the number of target images is selected from the multiple frames of images;
    若所述目标路段为弯曲路段且路段速度不为零,则将所述多帧图像作为目标图像。If the target road section is a curved road section and the speed of the road section is not zero, the multi-frame images are used as the target image.
  31. 根据权利要求29所述的方法,其特征在于,所述基于所述目标图像生成所述目标路段的目标车道线包括:The method according to claim 29, wherein said generating the target lane line of the target section based on the target image comprises:
    获取每帧所述目标图像对应的三维采样点集合;Obtain a set of three-dimensional sampling points corresponding to the target image in each frame;
    将各个所述三维采样点采集合组合为融合采样点集合;Collecting and combining each of the three-dimensional sampling points into a fusion sampling point set;
    对所述融合采样点集合进行曲线拟合和采样,得到目标采样点集合,以生成目标车道线。Curve fitting and sampling are performed on the fused sampling point set to obtain a target sampling point set to generate a target lane line.
  32. 根据权利要求26所述的方法,其特征在于,所述基于所述目标图像生成所述目标路段的目标车道线包括:The method according to claim 26, wherein said generating the target lane line of the target section based on the target image comprises:
    若所述目标路段对应的路段速度不为零且包含直线路段和弯曲路段,则分别选择所述直线路段对应的第一目标图像和所述弯曲路段对应的第二目标图像;If the speed of the road section corresponding to the target road section is not zero and includes a straight road section and a curved road section, then select the first target image corresponding to the straight road section and the second target image corresponding to the curved road section;
    将所述第一目标图像对应的三维采样点集合组成第一采样点集合,将所述第二目标图像对应的三维采样点集合组成第二采样点集合;Composing the three-dimensional sampling point set corresponding to the first target image into a first sampling point set, and combining the three-dimensional sampling point set corresponding to the second target image into a second sampling point set;
    分别对所述第一采样点集合和所述第二采样点集合进行曲线拟合和采样,得到目标采样点集合,以生成目标车道线。Curve fitting and sampling are respectively performed on the first sampling point set and the second sampling point set to obtain a target sampling point set to generate a target lane line.
  33. 根据权利要求26所述的方法,其特征在于,所述方法还包括:The method according to claim 26, further comprising:
    若所述目标路段存在参考车道线,则获取参考车道线对应的参考采样点集合;If there is a reference lane line in the target road section, then obtain a set of reference sampling points corresponding to the reference lane line;
    基于所述目标采样点集合与所述参考采样点集合,计算所述目标车道线与所述参考车道线之间的相离度;calculating the distance between the target lane line and the reference lane line based on the target sampling point set and the reference sampling point set;
    将所述相离度与相离度阈值进行比较,若所述相离度小于所述相离度阈值,则对所述参考采样点集合和目标采样点集合进行曲线拟合和采样,得到更新采样点集合,基于所述更新采样点集合生成更新车道线;若所述相离度等于或者大于所述相 离度阈值,则基于所述目标采样点集合生成更新车道线,以更新所述参考车道线。Comparing the degree of separation with a degree of separation threshold, if the degree of separation is less than the threshold of degree of separation, performing curve fitting and sampling on the set of reference sampling points and the set of target sampling points to obtain an updated A set of sampling points, generating an updated lane line based on the set of updated sampling points; if the degree of separation is equal to or greater than the threshold of the degree of separation, generating an updated lane line based on the set of target sampling points to update the reference lane line.
  34. 根据权利要求33所述的方法,其特征在于,所述基于所述目标采样点集合与所述参考采样点集合,计算所述目标车道线与所述参考车道线之间的相离度包括:The method according to claim 33, wherein the calculating the distance between the target lane line and the reference lane line based on the set of target sampling points and the set of reference sampling points comprises:
    获取所述目标采样点集合中的目标采样点;Acquiring target sampling points in the set of target sampling points;
    计算所述目标采样点与所述参考采样点集合中参考采样点之间的间隔距离,基于所述间隔距离从所述参考采样点集合中确定所述目标采样点对应的两个对照采样点;calculating the separation distance between the target sampling point and the reference sampling point in the reference sampling point set, and determining two control sampling points corresponding to the target sampling point from the reference sampling point set based on the separation distance;
    计算所述目标采样点到所述两个对照采样点所在直线的垂直距离;Calculate the vertical distance from the target sampling point to the straight line where the two comparison sampling points are located;
    统计各个所述垂直距离,得到所述目标车道线与所述参考车道线之间的相离度。The respective vertical distances are counted to obtain the degree of separation between the target lane line and the reference lane line.
  35. 根据权利要求26所述的方法,其特征在于,所述方法还包括:The method according to claim 26, further comprising:
    若所述目标路段存在多个目标车道线,则获取多个所述目标车道线对应的目标采样点集合和位姿误差平均值;If there are multiple target lane lines in the target road section, then obtain a plurality of target sampling point sets and pose error averages corresponding to the target lane lines;
    选择所述位姿误差平均值小于误差阈值的目标车道线对应的目标采样点集合,作为匹配采样点集合;Selecting the set of target sampling points corresponding to the target lane line whose mean value of the pose error is less than the error threshold is used as a set of matching sampling points;
    将各个所述匹配采样点集合组成匹配融合采样点集合,对所述匹配融合采样点集合进行曲线拟合和采样,得到匹配目标采样点集合;基于所述匹配目标采样点集合生成匹配目标车道线。Composing each set of matching sampling points into a set of matching and fusion sampling points, performing curve fitting and sampling on the set of matching and fusion sampling points to obtain a set of matching target sampling points; generating a matching target lane line based on the set of matching target sampling points .
  36. 一种路径规划方法,其特征在于,包括:A path planning method, characterized in that, comprising:
    获取原始语义地图;Get the original semantic map;
    依据所述原始语义地图进行路径规划;Carry out path planning according to the original semantic map;
    其中,所述原始语义地图为通过如权利要求1-35中任一项所述的语义地图的更新方法而得到的。Wherein, the original semantic map is obtained through the method for updating the semantic map according to any one of claims 1-35.
  37. 一种语义地图更新装置,其特征在于,所述装置包括:A device for updating a semantic map, characterized in that the device comprises:
    获取模块,用于获取当前采集区域对应的至少一个物体点云;An acquisition module, configured to acquire at least one object point cloud corresponding to the current acquisition area;
    第一提取模块,用于根据所述至少一个物体点云构造至少一个第一点云物体并提取对应的第一语义信息,其中所述至少一个第一点云物体及对应的第一语义信息用于构建众包语义地图;The first extraction module is configured to construct at least one first point cloud object and extract corresponding first semantic information according to the at least one object point cloud, wherein the at least one first point cloud object and the corresponding first semantic information are used for building crowdsourced semantic maps;
    第二提取模块,用于响应于所述当前采集区域存在原始语义地图,获取所述原始语义地图,并从所述原始语义地图中获取至少一个第二点云物体以及对应的第二语义信息;The second extraction module is configured to acquire the original semantic map in response to the existence of the original semantic map in the current acquisition area, and acquire at least one second point cloud object and corresponding second semantic information from the original semantic map;
    更新模块,用于根据所述第一语义信息和所述第二语义信息,获得所述至少一个第一点云物体和所述至少一个第二点云物体的匹配结果,并根据所述匹配结果,利用所述众包语义地图中的所述至少一个第一点云物体,更新所述原始语义地图。An update module, configured to obtain a matching result of the at least one first point cloud object and the at least one second point cloud object according to the first semantic information and the second semantic information, and obtain a matching result according to the matching result , using the at least one first point cloud object in the crowdsourced semantic map to update the original semantic map.
  38. 一种路径规划装置,其特征在于,包括:A path planning device, characterized in that it comprises:
    获取模块,用于获取原始语义地图,其中,所述原始语义地图为通过如权利要求1-35中任一项所述的语义地图的更新方法而得到的;An acquisition module, configured to acquire an original semantic map, wherein the original semantic map is obtained through the method for updating a semantic map according to any one of claims 1-35;
    路径规划模块,用于依据所述原始语义地图进行路径规划。A path planning module, configured to perform path planning according to the original semantic map.
  39. 一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至36中任一项所述的方法的步骤。A computer device, comprising a memory and a processor, the memory stores a computer program, wherein the processor implements the steps of the method according to any one of claims 1 to 36 when executing the computer program.
  40. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至36中任一项所述的方法的步骤。A computer-readable storage medium, on which a computer program is stored, wherein, when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 36 are realized.
PCT/CN2023/070501 2022-01-04 2023-01-04 Semantic map updating method, path planning method, and related apparatuses WO2023131203A1 (en)

Applications Claiming Priority (8)

Application Number Priority Date Filing Date Title
CN202210006061.3A CN115544191A (en) 2022-01-04 2022-01-04 Three-dimensional point cloud crowdsourcing type semantic map updating method and device
CN202210006048.8 2022-01-04
CN202210006048.8A CN115544190A (en) 2022-01-04 2022-01-04 Semantic map updating method and device, computer equipment and storage medium
CN202210004626.4A CN115544189A (en) 2022-01-04 2022-01-04 Semantic map updating method, device and computer storage medium
CN202210006061.3 2022-01-04
CN202210004626.4 2022-01-04
CN202211097600.5 2022-09-08
CN202211097600.5A CN115588174A (en) 2022-09-08 2022-09-08 Lane line processing method, lane line processing device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2023131203A1 true WO2023131203A1 (en) 2023-07-13

Family

ID=87073178

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/070501 WO2023131203A1 (en) 2022-01-04 2023-01-04 Semantic map updating method, path planning method, and related apparatuses

Country Status (1)

Country Link
WO (1) WO2023131203A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117288207A (en) * 2023-11-24 2023-12-26 天津云圣智能科技有限责任公司 Route planning method and device for three-dimensional modeling, electronic equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110287276A (en) * 2019-05-27 2019-09-27 百度在线网络技术(北京)有限公司 High-precision map updating method, device and storage medium
US20190355173A1 (en) * 2018-05-16 2019-11-21 Samsung Electronics Co., Ltd. Leveraging crowdsourced data for localization and mapping within an environment
CN111260779A (en) * 2018-11-30 2020-06-09 华为技术有限公司 Map construction method, device and system and storage medium
CN111797187A (en) * 2020-06-22 2020-10-20 北京百度网讯科技有限公司 Map data updating method and device, electronic equipment and storage medium
CN111815687A (en) * 2020-06-19 2020-10-23 浙江大华技术股份有限公司 Point cloud matching method, positioning method, device and storage medium
CN112784873A (en) * 2020-12-25 2021-05-11 华为技术有限公司 Semantic map construction method and equipment
CN115544191A (en) * 2022-01-04 2022-12-30 深圳元戎启行科技有限公司 Three-dimensional point cloud crowdsourcing type semantic map updating method and device
CN115544189A (en) * 2022-01-04 2022-12-30 深圳元戎启行科技有限公司 Semantic map updating method, device and computer storage medium
CN115544190A (en) * 2022-01-04 2022-12-30 深圳元戎启行科技有限公司 Semantic map updating method and device, computer equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190355173A1 (en) * 2018-05-16 2019-11-21 Samsung Electronics Co., Ltd. Leveraging crowdsourced data for localization and mapping within an environment
CN111260779A (en) * 2018-11-30 2020-06-09 华为技术有限公司 Map construction method, device and system and storage medium
US20210287350A1 (en) * 2018-11-30 2021-09-16 Huawei Technologies Co., Ltd. Map building method, apparatus, and system, and storage medium
CN110287276A (en) * 2019-05-27 2019-09-27 百度在线网络技术(北京)有限公司 High-precision map updating method, device and storage medium
CN111815687A (en) * 2020-06-19 2020-10-23 浙江大华技术股份有限公司 Point cloud matching method, positioning method, device and storage medium
CN111797187A (en) * 2020-06-22 2020-10-20 北京百度网讯科技有限公司 Map data updating method and device, electronic equipment and storage medium
CN112784873A (en) * 2020-12-25 2021-05-11 华为技术有限公司 Semantic map construction method and equipment
CN115544191A (en) * 2022-01-04 2022-12-30 深圳元戎启行科技有限公司 Three-dimensional point cloud crowdsourcing type semantic map updating method and device
CN115544189A (en) * 2022-01-04 2022-12-30 深圳元戎启行科技有限公司 Semantic map updating method, device and computer storage medium
CN115544190A (en) * 2022-01-04 2022-12-30 深圳元戎启行科技有限公司 Semantic map updating method and device, computer equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"Master's Thesis", 1 April 2019, UNIVERSITY OF ELECTRONIC SCIENCE AND TECHNOLOGY, CN, article WANG, YANG: "Research on Multi-level Cognitive Map Representation and Generation Method for Intelligent Vehicles", pages: 1 - 84, XP009547470 *
"Master's Thesis", 1 March 2020, WUHAN UNIVERSITY OF TECHNOLOGY, CN, article WANG, SIXIN: "Research on Vehicle Tracking and Driving Behavior Based on 3D LiDAR and Vision Fusion", pages: 1 - 86, XP009547472, DOI: 10.27381/d.cnki.gwlgu.2020.000889 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117288207A (en) * 2023-11-24 2023-12-26 天津云圣智能科技有限责任公司 Route planning method and device for three-dimensional modeling, electronic equipment and storage medium
CN117288207B (en) * 2023-11-24 2024-02-20 天津云圣智能科技有限责任公司 Route planning method and device for three-dimensional modeling, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
KR102267562B1 (en) Device and method for recognition of obstacles and parking slots for unmanned autonomous parking
CN112396650B (en) Target ranging system and method based on fusion of image and laser radar
US9443309B2 (en) System and method for image based mapping, localization, and pose correction of a vehicle with landmark transform estimation
CN109243289B (en) Method and system for extracting parking spaces of underground garage in high-precision map manufacturing
US11299151B2 (en) Enhanced vehicle tracking
CN110226186B (en) Method and device for representing map elements and method and device for positioning
Shinzato et al. Road terrain detection: Avoiding common obstacle detection assumptions using sensor fusion
WO2022188663A1 (en) Target detection method and apparatus
CN107818598B (en) Three-dimensional point cloud map fusion method based on visual correction
CN113192091B (en) Long-distance target sensing method based on laser radar and camera fusion
CN112097732A (en) Binocular camera-based three-dimensional distance measurement method, system, equipment and readable storage medium
CN113240734B (en) Vehicle cross-position judging method, device, equipment and medium based on aerial view
CN116229408A (en) Target identification method for fusing image information and laser radar point cloud information
WO2023065342A1 (en) Vehicle, vehicle positioning method and apparatus, device, and computer-readable storage medium
Shinzato et al. Road estimation with sparse 3D points from stereo data
Wang et al. Map-enhanced ego-lane detection in the missing feature scenarios
WO2023131203A1 (en) Semantic map updating method, path planning method, and related apparatuses
CN113408324A (en) Target detection method, device and system and advanced driving assistance system
CN114325634A (en) Method for extracting passable area in high-robustness field environment based on laser radar
CN109961461B (en) Multi-moving-object tracking method based on three-dimensional layered graph model
Song et al. Automatic detection and classification of road, car, and pedestrian using binocular cameras in traffic scenes with a common framework
Vatavu et al. Real-time dynamic environment perception in driving scenarios using difference fronts
Barth et al. Vehicle tracking at urban intersections using dense stereo
CN115937449A (en) High-precision map generation method and device, electronic equipment and storage medium
CN114882458A (en) Target tracking method, system, medium and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23737066

Country of ref document: EP

Kind code of ref document: A1