Method, device and electronic equipment for extracting curb
By processing three-dimensional lidar point cloud data and extracting road edges, it solves the problems of long road edge extraction and low efficiency in the existing technology, and achieves high-precision map updates and rapid response to intelligent driving perception.
Patent Information
- Application Number
- CN202110871744.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-30
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-07-30
AI Technical Summary
In the existing technology, the normal vector calculation for road edge extraction is time-consuming and inefficient, and the inappropriate selection of neighborhood size affects the accuracy of the results, making it difficult to meet the needs of high-precision map update and intelligent driving perception.
The three-dimensional lidar point cloud data is obtained based on the vehicle driving trajectory, converted to the vehicle coordinate system, the roadside point cloud data set is divided, multiple fittings are performed and the target trajectory fitting results are filtered, and smooth connections are made to extract the roadside.
It reduces the calculation of normal vectors, improves the efficiency and accuracy of road edge extraction, and enhances the rate of map update and road change perception in intelligent driving.
Smart Images

Figure CN113570665B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of traffic road environment perception, and in particular to a method, device and electronic equipment for extracting curbs. Background Art
[0002] In the intelligent driving perception system, high-precision maps are an important input for intelligent driving vehicles to perceive the surrounding driving environment. The curb, as the boundary that distinguishes the drivable area from the non-drivable area, is a very important part of intelligent driving perception and prediction.
[0003] The curb is a vertical element that is perpendicular to the edge of the road surface and 10 to 30 cm above the road surface. Currently, the drawing of curbs in high-precision maps mainly relies on manual drawing, which is time-consuming and inefficient.
[0004] To address the above issues, the existing method of curb extraction mainly uses normal vector calculation. However, this method has the following problems: first, the selection of neighborhood size seriously affects the normal vector calculation result. If the neighborhood size is not selected appropriately, the curb cannot be accurately extracted; second, the normal vector calculation is very time-consuming, which seriously affects the efficiency of curb extraction. Summary of the invention
[0005] In view of this, an object of the present invention is to provide a method, device and electronic equipment for curb extraction, which can effectively improve the accuracy and efficiency of curb extraction.
[0006] In a first aspect, an embodiment of the present invention provides a method for curb extraction, wherein the method comprises: based on a driving trajectory of a vehicle, obtaining an original point cloud data set obtained by scanning a road environment of the driving trajectory by a three-dimensional laser radar; wherein the original point cloud data set includes original point cloud data in multiple three-dimensional laser radar coordinate systems; converting the original point cloud data in the original point cloud data set from the coordinate system of the three-dimensional laser radar to the vehicle coordinate system to obtain a point cloud data set; wherein the point cloud data set includes point cloud data in multiple vehicle coordinate systems; dividing the point cloud data set into multiple curb point cloud data sets based on the driving trajectory; performing multiple fitting on each curb point cloud data set to obtain multiple trajectory fitting results corresponding to each curb point cloud data set; screening out a target trajectory fitting result of the curb point cloud data set from the multiple trajectory fitting results; and smoothly connecting the target trajectory fitting results corresponding to each curb point cloud data set to obtain a curb extraction result.
[0007] In combination with the first aspect, an embodiment of the present invention provides a possible implementation of the first aspect, wherein the step of dividing the point cloud dataset into multiple curb point cloud datasets based on the driving trajectory includes: cutting the driving trajectory according to a preset cutting rule to obtain multiple cutting sub-trajectories; determining the sub-graph corresponding to each sub-trajectory; determining a curb candidate point cloud dataset from the point cloud data included in the sub-graph; for each cutting sub-trajectory, cutting the sub-trajectory according to a preset cutting distance to obtain multiple sub-sub-trajectories corresponding to the cutting sub-trajectory; and segmenting the curb candidate point cloud dataset according to the sub-sub-trajectory to obtain a curb point cloud dataset corresponding to each sub-sub-trajectory.
[0008] In combination with the first possible implementation of the first aspect, an embodiment of the present invention provides two possible implementations of the first aspect, wherein the step of determining the subgraph corresponding to each cutting sub-trajectory includes: obtaining the boundary points of the cutting sub-trajectory; constructing a minimum enclosing rectangle based on the boundary points; and determining the minimum enclosing rectangle as the subgraph.
[0009] In combination with the first possible implementation of the first aspect, an embodiment of the present invention provides three possible implementations of the first aspect, wherein the step of screening out a candidate curb point cloud data set from the point cloud data included in the sub-image comprises: using the point cloud data in the sub-image as the initial ground seed point of the sub-image to obtain the initial fitting plane of the sub-image; determining the point cloud data within a preset distance from the initial fitting plane as a ground point cloud data set; and determining a candidate curb point cloud data set based on the ground point cloud data set.
[0010] In combination with the third possible implementation of the first aspect, an embodiment of the present invention provides four possible implementations of the first aspect, wherein the step of determining a candidate curb point cloud dataset based on a ground point cloud dataset comprises: performing two-dimensional grid processing on the ground point cloud data according to a preset resolution to obtain a two-dimensional grid map; performing grid assignment on the grids in the two-dimensional grid map based on a preset curb elevation difference prior value range; wherein the grid assignment value is a first value or a second value; converting a first value that does not meet the preset curb elevation difference into a second value; and determining the point cloud data included in the grid corresponding to the first value as a candidate curb point cloud dataset.
[0011] In combination with the fourth possible implementation of the first aspect, an embodiment of the present invention provides five possible implementations of the first aspect, wherein the step of assigning grid values to grids in a two-dimensional grid map based on a preset curb elevation difference prior value includes: for each grid in the two-dimensional grid map, determining whether the grid value corresponding to the grid is within the range of a preset curb elevation difference prior value; wherein the grid value is the elevation difference of the point cloud data in the grid; if so, assigning the grid value corresponding to the grid to a first value; if not, assigning the grid value corresponding to the grid to a second value.
[0012] In combination with the first possible implementation of the first aspect, an embodiment of the present invention provides six possible implementations of the first aspect, wherein the step of filtering out a target trajectory fitting result of a curb point cloud data set from multiple trajectory fitting results includes: filtering out a filtered trajectory fitting result that is closest to and most parallel to the corresponding sub-sub-trajectory from multiple trajectory fitting results; and determining the filtered trajectory fitting result as the target trajectory fitting result.
[0013] In a second aspect, an embodiment of the present invention further provides a device for curb extraction, wherein the device comprises: an acquisition module, for acquiring, based on the driving trajectory of the vehicle, an original point cloud data set obtained by scanning the road environment of the driving trajectory of the three-dimensional laser radar; wherein the original point cloud data set includes original point cloud data in multiple three-dimensional laser radar coordinate systems; a conversion module, for converting the original point cloud data in the original point cloud data set from the coordinate system of the three-dimensional laser radar to the vehicle coordinate system to obtain a point cloud data set; wherein the point cloud data set includes point cloud data in multiple vehicle coordinate systems; a division module, for dividing the point cloud data set into multiple curb point cloud data sets based on the driving trajectory; a fitting module, for performing multiple fittings on each curb point cloud data set to obtain multiple trajectory fitting results corresponding to each curb point cloud data set; a screening module, for screening out the target trajectory fitting result of the curb point cloud data set from the multiple trajectory fitting results; a connection module, for smoothly connecting the target trajectory fitting results corresponding to each curb point cloud data set to obtain a curb extraction result.
[0014] In a third aspect, an embodiment of the present invention further provides an electronic device, which includes a processor and a memory, the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the above method.
[0015] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the above method.
[0016] The embodiments of the present invention bring the following beneficial effects:
[0017] The embodiment of the present application provides a method, device and electronic device for curb extraction, wherein, based on the driving trajectory of the vehicle, the original point cloud data obtained by scanning the road environment of the driving trajectory by a three-dimensional laser radar is obtained; the original point cloud data in the original point cloud data set is converted from the coordinate system of the three-dimensional laser radar to the vehicle coordinate system to obtain a point cloud data set; the point cloud data set is divided into multiple curb point cloud data sets based on the driving trajectory; each curb point cloud data set is fitted multiple times to obtain multiple trajectory fitting results corresponding to each curb point cloud data set; the target trajectory fitting results of the curb point cloud data set are screened out from the multiple trajectory fitting results; the target trajectory fitting results corresponding to each curb point cloud data set are smoothly connected to obtain a curb extraction result. The present application can make full use of point cloud data, maximize the physical characteristics of point cloud data in expressing the real world, reduce a large number of normal vector calculations, reduce the time for extracting curbs, and improve the efficiency of curb extraction, thereby greatly improving the update rate of high-precision maps and enhancing the rate of perceiving road changes in intelligent driving.
[0018] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description and the drawings.
[0019] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0021] Figure 1 A flowchart of a method for extracting a curb provided by an embodiment of the present invention;
[0022] Figure 2 A flowchart of another method for extracting curb provided by an embodiment of the present invention;
[0023] Figure 3 A schematic diagram of the structure of a device for extracting curb provided in an embodiment of the present invention;
[0024] Figure 4 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0026] Taking into account the problems that the existing normal vector calculation method for curb extraction has the problem of inability to accurately extract the curb due to inappropriate neighborhood size selection, and the normal vector calculation is very time-consuming, which seriously affects the efficiency of curb extraction; in order to effectively improve the accuracy and efficiency of curb extraction, a method, device and electronic device for curb extraction provided in an embodiment of the present invention can make full use of point cloud data, maximize the use of point cloud data to express the physical characteristics of the real world, reduce a large number of normal vector calculations, reduce the time for extracting curbs, and improve the efficiency of curb extraction, thereby greatly improving the update rate of high-precision maps and enhancing the rate of perceiving road changes in intelligent driving.
[0027] This embodiment provides a method for extracting road edges. Figure 1 A flowchart of a method for extracting a road edge is shown, and the method specifically comprises the following steps:
[0028] Step S102, based on the driving trajectory of the vehicle, obtaining an original point cloud data set obtained by scanning the road environment of the driving trajectory by a three-dimensional laser radar;
[0029] The original point cloud data set includes original point cloud data in multiple three-dimensional laser radar coordinate systems.
[0030] Usually, the above-mentioned three-dimensional laser radar is installed horizontally on the top of the vehicle, with the center of the laser radar as the origin o, and the x, y, and z axes pass through the origin o and are perpendicular to each other to establish a radar coordinate system for detecting the vehicle. The y axis is parallel to the ground and points to the front of the vehicle to be detected, the x axis is parallel to the ground and points to the right hand direction of the front of the vehicle, and the z axis is perpendicular to the ground and upward.
[0031] The three-dimensional laser radar emits lasers to scan the road environment along the driving trajectory to the points reflected from the surface of objects, which are used to form an original point cloud data set; the original point cloud data includes the three-dimensional coordinates, reflection intensity, scanning layer, distance and azimuth of multiple objects, and the above original point cloud data is data in the three-dimensional laser radar coordinate system.
[0032] Among them, the vehicle's driving trajectory can be obtained based on RTK (Real-time kinematic) carrier phase difference technology, which is the same as the existing implementation method of determining the vehicle's driving trajectory based on RTK posture, so it will not be elaborated here.
[0033] Step S104, converting the original point cloud data in the original point cloud data set from the coordinate system of the three-dimensional laser radar to the vehicle coordinate system to obtain the point cloud data set;
[0034] The point cloud data set includes point cloud data in multiple vehicle coordinate systems.
[0035] Since the installation of a 3D laser radar cannot guarantee absolute levelness, the scanning inclination angle will produce a certain error. Therefore, in this embodiment, it is necessary to correct it before the coordinate conversion so that the point projection angle and the scanning angle of the original point cloud data are unified. Afterwards, in order to obtain a complete description of the curb, the collected original point cloud data needs to be spliced based on the RTK posture to convert it to the vehicle coordinate system, where the vehicle coordinate system can be understood as the world coordinate system.
[0036] Step S106, dividing the point cloud data set into a plurality of roadside point cloud data sets based on the driving trajectory;
[0037] Since the point cloud data in the point cloud dataset is acquired along the driving trajectory of the vehicle, and in order to better fit the curb, in this embodiment, the point cloud dataset can be divided into multiple curb point cloud datasets based on the driving trajectory, so that each curb point cloud dataset first fits a small section of the curb, and then the fitted small section of the curb is connected to obtain the curb during the vehicle's driving trajectory.
[0038] Step S108, performing multiple fitting on each roadside point cloud data set to obtain multiple trajectory fitting results corresponding to each roadside point cloud data set;
[0039] The above fitting is a three-dimensional straight line fitting, and the fitting process is consistent with the existing data fitting process, so it will not be elaborated here.
[0040] Step S110, selecting a target trajectory fitting result of a roadside point cloud data set from a plurality of trajectory fitting results;
[0041] After multiple fittings are performed on each curb point cloud dataset, multiple trajectory fitting results of the curb point cloud dataset can be obtained. In order to make the curb extraction result more accurate, the target trajectory fitting result that best meets the screening requirements can be screened out from the multiple trajectory fitting results. Usually, the screening requirement is that the trajectory fitting result is most approximately parallel to the driving trajectory corresponding to the curb point cloud dataset and the distance is the shortest.
[0042] Step S112, smoothly connecting the target trajectory fitting results corresponding to each curb point cloud data set to obtain a curb extraction result.
[0043] The curb extraction result can be obtained by smoothly connecting the target trajectory fitting results corresponding to each of the above curb point cloud data sets; wherein, the above smooth connection method is a curve fitting method, and the smooth connection process is the same as the existing connection process, which will not be elaborated in detail here.
[0044] Usually, in order to facilitate displaying the curb extraction results to the user, the curb extraction results can be sent to the vehicle display or the user terminal (mobile phone or tablet computer, etc.) for display.
[0045] The embodiment of the present application provides a method for curb extraction, wherein, based on the driving trajectory of the vehicle, the original point cloud data obtained by scanning the road environment of the driving trajectory by a three-dimensional laser radar is obtained; the original point cloud data in the original point cloud data set is converted from the coordinate system of the three-dimensional laser radar to the vehicle coordinate system to obtain a point cloud data set; the point cloud data set is divided into multiple curb point cloud data sets based on the driving trajectory; each curb point cloud data set is fitted multiple times to obtain multiple trajectory fitting results corresponding to each curb point cloud data set; the target trajectory fitting results of the curb point cloud data set are screened out from the multiple trajectory fitting results; the target trajectory fitting results corresponding to each curb point cloud data set are smoothly connected to obtain a curb extraction result. The present application can make full use of point cloud data, maximize the physical characteristics of point cloud data in expressing the real world, reduce a large number of normal vector calculations, reduce the time for extracting curbs, and improve the efficiency of curb extraction, thereby greatly improving the update rate of high-precision maps and enhancing the rate of perceiving road changes in intelligent driving.
[0046] This embodiment provides another method for extracting roadside, which is implemented on the basis of the above embodiment; this embodiment focuses on describing the specific implementation method of dividing the roadside point cloud data set. Figure 2 The flowchart of another method for extracting a curb is shown in FIG. 1 . The method for extracting a curb in this embodiment includes the following steps:
[0047] Step S202, based on the driving trajectory of the vehicle, obtaining an original point cloud data set obtained by scanning the road environment of the driving trajectory by a three-dimensional laser radar;
[0048] Step S204, converting the original point cloud data in the original point cloud data set from the coordinate system of the three-dimensional laser radar to the vehicle coordinate system to obtain the point cloud data set;
[0049] Step S206, cutting the driving track according to a preset cutting rule to obtain a plurality of cutting sub-tracks;
[0050] The above-mentioned preset cutting rules can be set according to actual needs and are not limited here. In this embodiment, the driving trajectory can be cut according to preset cutting rules such as trajectory length, heading angle change and pitch angle change. The above-mentioned driving trajectory can be regarded as a curve, and the curve is cut into segments according to the preset cutting rules to obtain multiple cutting sub-trajectories.
[0051] Step S208, determining the subgraph corresponding to each cutting sub-trajectory;
[0052] The above step S208 can be implemented through steps A1 to A3:
[0053] Step A1, obtaining the boundary points of the cutting sub-trajectory;
[0054] Step A2, constructing a minimum enclosing rectangle based on the boundary points;
[0055] Step A3: determine the minimum enclosing rectangle as the sub-graph.
[0056] The starting point of each cutting sub-track is extended to a certain width perpendicular to the advancing direction to obtain four boundary points on the cutting sub-track. Then, a minimum bounding rectangle is constructed using the four boundary points. The minimum bounding rectangle is the sub-graph corresponding to the cutting sub-track.
[0057] Step S210, determining a candidate roadside point cloud data set from the point cloud data included in the sub-graph;
[0058] Since the sub-graph is an enclosing rectangle, a part of the point cloud data in the point cloud dataset may be distributed within the enclosing rectangle. In this embodiment, a curb candidate point cloud dataset can be determined from the point cloud data falling within the enclosing rectangle. The curb candidate point cloud dataset can be understood as a data set that is fitted into a curb.
[0059] The process of screening the candidate roadside point cloud dataset can be implemented by steps B1 to B3:
[0060] Step B1, using the point cloud data in the sub-image as the initial ground seed point of the sub-image to obtain the initial fitting plane of the sub-image;
[0061] Step B2, determining the point cloud data within a preset distance from the initial fitting plane as a ground point cloud data set;
[0062] Through the above step B1, an initial fitting plane formed by the point cloud data in the sub-image can be obtained. The initial fitting plane can be understood as a plane, and the point cloud data within a preset distance above and below the plane is determined as a ground point cloud data set; wherein, the preset distance can be set according to actual needs and is not limited here.
[0063] Step B3: determining a roadside candidate point cloud dataset based on the ground point cloud dataset.
[0064] Among them, step B3 can be implemented through steps C1 to C4:
[0065] Step C1, performing two-dimensional grid processing on the ground point cloud data according to a preset resolution to obtain a two-dimensional grid map;
[0066] The preset resolution can be set according to actual needs and is not limited here.
[0067] Step C2, assigning grid values to grids in the two-dimensional grid map based on a preset range of prior values of the roadside elevation difference; wherein the value of the grid value assignment is the first value or the second value;
[0068] In this embodiment, the above-mentioned grid assignment process is: for each grid in the two-dimensional grid map, determine whether the grid value corresponding to the grid is within the preset curb elevation difference prior value range; wherein the grid value is the elevation difference of the point cloud data in the grid; if so, assign the grid value corresponding to the grid to the first value; if not, assign the grid value corresponding to the grid to the second value.
[0069] Among them, the above-mentioned preset curb elevation difference prior value range is selected as 10 cm to 30 cm, which is the current curb height range. The above-mentioned first value is 255 and the second value is 0; it can be understood that the grid values in the above-mentioned two-dimensional grid map in the range of 10 cm to 30 cm are assigned a value of 255, and the grids that do not meet this requirement are assigned a value of 0.
[0070] Step C3, converting the first value that does not meet the preset road edge elevation difference into a second value;
[0071] Although the grid values of some grids are in the range of 10 cm to 30 cm, the point cloud data corresponding to this part does not belong to the roadside data. Therefore, the value assigned to this part of the grid can be converted from 255 to 0.
[0072] Step C4: determining the point cloud data included in the grid corresponding to the first value as the roadside candidate point cloud data set.
[0073] After the above numerical conversion, the point cloud data included in all grids with a value of 255 are determined as the roadside candidate point cloud data set.
[0074] Step S212, for each cutting sub-track, cutting the sub-track according to a preset cutting distance to obtain a plurality of sub-sub-tracks corresponding to the cutting sub-track;
[0075] In order to perform curb fitting more accurately, each cutting sub-trajectory may be further cut according to a preset cutting distance to obtain a shorter sub-sub-trajectory, wherein the preset cutting distance may be set according to actual needs and is not limited here.
[0076] Step S214, segmenting the roadside candidate point cloud dataset according to the sub-sub-trajectory to obtain a roadside point cloud dataset corresponding to each sub-sub-trajectory;
[0077] In this embodiment, the roadside candidate point cloud data included in the enclosing rectangle corresponding to each sub-sub-trajectory can be determined as the roadside point cloud data set corresponding to the sub-sub-trajectory, and the roadside point cloud data set corresponding to the sub-sub-trajectory is used for subsequent roadside fitting.
[0078] Step S216, performing multiple fitting on each roadside point cloud data set to obtain multiple trajectory fitting results corresponding to each roadside point cloud data set;
[0079] Step S218, selecting a target trajectory fitting result of the roadside point cloud data set from the multiple trajectory fitting results;
[0080] Specifically, a screening trajectory fitting result that is closest to and most parallel to the corresponding sub-sub-trajectory is screened out from the multiple trajectory fitting results, so as to determine the screening trajectory fitting result as the target trajectory fitting result.
[0081] Step S220, smoothly connecting the target trajectory fitting results corresponding to each curb point cloud data set to obtain a curb extraction result.
[0082] The method for curb extraction provided in the present application can divide the point cloud data set into multiple curb point cloud data sets based on the cutting of the driving trajectory, perform multiple fittings on each curb point cloud data set, obtain multiple trajectory fitting results corresponding to each curb point cloud data set, and select the target trajectory fitting results that are closest to and most parallel to the corresponding sub-sub-trajectory for smooth connection, so that the curb extraction results after fitting are more accurate. Furthermore, the method for extracting curbs in the present application reduces a large number of normal vector calculations, effectively reduces the time for extracting curbs, and thus improves the efficiency of curb extraction.
[0083] Corresponding to the above method embodiment, the embodiment of the present invention further provides a device for extracting curbs. Figure 3 A schematic diagram of the structure of a device for extracting road edges is shown, Figure 3 As shown, the device comprises:
[0084] The acquisition module 302 is used to acquire, based on the driving trajectory of the vehicle, an original point cloud data set obtained by scanning the road environment of the driving trajectory by a three-dimensional laser radar; wherein the original point cloud data set includes original point cloud data in multiple three-dimensional laser radar coordinate systems;
[0085] The conversion module 304 is used to convert the original point cloud data in the original point cloud data set from the coordinate system of the three-dimensional laser radar to the vehicle coordinate system to obtain a point cloud data set; wherein the point cloud data set includes point cloud data in multiple vehicle coordinate systems;
[0086] A division module 306, configured to divide the point cloud data set into a plurality of roadside point cloud data sets based on the driving trajectory;
[0087] A fitting module 308 is used to perform multiple fittings on each roadside point cloud data set to obtain multiple trajectory fitting results corresponding to each roadside point cloud data set;
[0088] A screening module 310 is used to screen out a target trajectory fitting result of a roadside point cloud data set from a plurality of trajectory fitting results;
[0089] The connection module 312 is used to smoothly connect the target trajectory fitting results corresponding to each roadside point cloud data set to obtain a roadside extraction result.
[0090] The embodiment of the present application provides a device for curb extraction, wherein, based on the driving trajectory of the vehicle, the original point cloud data obtained by scanning the road environment of the driving trajectory by a three-dimensional laser radar is obtained; the original point cloud data in the original point cloud data set is converted from the coordinate system of the three-dimensional laser radar to the vehicle coordinate system to obtain a point cloud data set; the point cloud data set is divided into multiple curb point cloud data sets based on the driving trajectory; each curb point cloud data set is fitted multiple times to obtain multiple trajectory fitting results corresponding to each curb point cloud data set; the target trajectory fitting result of the curb point cloud data set is screened out from the multiple trajectory fitting results; the target trajectory fitting results corresponding to each curb point cloud data set are smoothly connected to obtain a curb extraction result. The present application can make full use of point cloud data, maximize the physical characteristics of point cloud data in expressing the real world, reduce a large number of normal vector calculations, reduce the time for extracting curbs, and improve the efficiency of curb extraction, thereby greatly improving the update rate of high-precision maps and enhancing the rate of perceiving road changes in intelligent driving.
[0091] The device for curb extraction provided in the embodiment of the present invention has the same technical features as the method for curb extraction provided in the above embodiment, so it can also solve the same technical problems and achieve the same technical effects.
[0092] The present application also provides an electronic device, such as Figure 4 As shown, it is a schematic diagram of the structure of the electronic device, wherein the electronic device includes a processor 121 and a memory 120, the memory 120 stores computer executable instructions that can be executed by the processor 121, and the processor 121 executes the computer executable instructions to implement the above-mentioned curb extraction method.
[0093] exist Figure 4 In the illustrated embodiment, the electronic device further includes a bus 122 and a communication interface 123 , wherein the processor 121 , the communication interface 123 and the memory 120 are connected via the bus 122 .
[0094] Among them, the memory 120 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 123 (which can be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. can be used. The bus 122 can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus 122 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0095] The processor 121 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 121. The above processor 121 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to execute, or the hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor 121 reads the information in the memory and completes the steps of the method for extracting the curb in the aforementioned embodiment in combination with its hardware.
[0096] An embodiment of the present application also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the above-mentioned curb extraction method. The specific implementation can be found in the aforementioned method embodiment, which will not be repeated here.
[0097] The computer program product of the method, device and electronic device for curb extraction provided in the embodiments of the present application includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the previous method embodiments. The specific implementation can be found in the method embodiments, which will not be repeated here.
[0098] Unless otherwise specifically stated, the relative steps, numerical expressions and values of the components and steps set forth in these embodiments do not limit the scope of the present application.
[0099] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0100] In the description of the present application, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present application. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0101] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A method for extracting a curb, characterized in that: The method comprises: Based on the driving trajectory of the vehicle, an original point cloud data set is obtained by scanning the road environment of the driving trajectory by a three-dimensional laser radar; wherein the original point cloud data set includes original point cloud data in multiple three-dimensional laser radar coordinate systems; The original point cloud data in the original point cloud data set is converted from the coordinate system of the three-dimensional laser radar to the vehicle coordinate system to obtain a point cloud data set; wherein the point cloud data set includes point cloud data in multiple vehicle coordinate systems; Dividing the point cloud data set into a plurality of roadside point cloud data sets based on the driving trajectory; Performing multiple fittings on each of the roadside point cloud data sets to obtain multiple trajectory fitting results corresponding to each of the roadside point cloud data sets; Filtering out a target trajectory fitting result of the roadside point cloud data set from the plurality of trajectory fitting results; The target trajectory fitting results corresponding to each of the curb point cloud data sets are smoothly connected to obtain a curb extraction result.
2. The method according to claim 1, characterized in that The step of dividing the point cloud data set into a plurality of roadside point cloud data sets based on the driving trajectory comprises: Cutting the driving track according to a preset cutting rule to obtain a plurality of cutting sub-tracks; Determine a subgraph corresponding to each of the cutting subtrajectories; Determine a candidate roadside point cloud data set from the point cloud data included in the sub-graph; For each cutting sub-track, cutting the sub-track according to a preset cutting distance to obtain a plurality of sub-sub-tracks corresponding to the cutting sub-track; The roadside candidate point cloud dataset is segmented according to the sub-sub-trajectory to obtain a roadside point cloud dataset corresponding to each sub-sub-trajectory.
3. The method according to claim 2, characterized in that The step of determining the subgraph corresponding to each cutting sub-track comprises: Obtaining the boundary points of the cutting sub-trajectory; Constructing a minimum bounding rectangle based on the boundary points; The minimum enclosing rectangle is determined as a sub-image.
4. The method according to claim 2, characterized in that: The step of determining a candidate path edge point cloud data set from the point cloud data included in the sub-graph comprises: Using the point cloud data in the sub-image as the initial ground seed point of the sub-image to obtain the initial fitting plane of the sub-image; Determine the point cloud data within a preset distance from the initial fitting plane as a ground point cloud data set; A roadside candidate point cloud dataset is determined based on the ground point cloud dataset.
5. The method according to claim 4, characterized in that The step of determining a candidate roadside point cloud dataset based on the ground point cloud dataset comprises: Performing two-dimensional grid processing on the ground point cloud data according to a preset resolution to obtain a two-dimensional grid map; Performing grid assignment on the grids in the two-dimensional grid map based on a preset roadside elevation difference prior value range; wherein the value of the grid assignment is the first value or the second value; converting the first value that does not meet the preset road edge elevation difference into the second value; The point cloud data included in the grid corresponding to the first value is determined as a roadside candidate point cloud data set.
6. The method according to claim 5, characterized in that The step of assigning grid values to grids in the two-dimensional grid map based on a preset roadside elevation difference prior value comprises: For each grid in the two-dimensional grid map, determining whether a grid value corresponding to the grid is within the preset roadside elevation difference prior value range; wherein the grid value is the elevation difference of the point cloud data in the grid; If yes, assigning the grid value corresponding to the grid to the first value; If not, the grid value corresponding to the grid is assigned a second value.
7. The method according to claim 2, characterized in that The step of selecting a target trajectory fitting result of the roadside point cloud data set from the plurality of trajectory fitting results comprises: Screening out the screening trajectory fitting result which is closest to and most parallel to the corresponding sub-sub-trajectory from the plurality of trajectory fitting results; The screening trajectory fitting result is determined as the target trajectory fitting result.
8. A device for extracting curb, characterized in that: The device comprises: An acquisition module is used to acquire, based on the driving trajectory of the vehicle, an original point cloud data set obtained by scanning the road environment of the driving trajectory by a three-dimensional laser radar; wherein the original point cloud data set includes original point cloud data in multiple three-dimensional laser radar coordinate systems; A conversion module, used to convert the original point cloud data in the original point cloud data set from the coordinate system of the three-dimensional laser radar to the vehicle coordinate system to obtain a point cloud data set; wherein the point cloud data set includes point cloud data in multiple vehicle coordinate systems; A division module, used for dividing the point cloud data set into a plurality of roadside point cloud data sets based on the driving trajectory; A fitting module, used for performing multiple fittings on each of the roadside point cloud data sets to obtain multiple trajectory fitting results corresponding to each of the roadside point cloud data sets; A screening module, used for screening out a target trajectory fitting result of the roadside point cloud data set from the plurality of trajectory fitting results; The connection module is used to smoothly connect the target trajectory fitting results corresponding to each of the curb point cloud data sets to obtain a curb extraction result.
9. An electronic device, characterized in that: The invention comprises a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the method according to any one of claims 1 to 7.
