Vehicle positioning method and system
By combining high-precision maps and visual lane lines, and using laser optimization algorithms and ICP matching algorithms to determine vehicle position and attitude, the stability problem of visual matching positioning in complex scenes is solved, and accurate and stable vehicle positioning is achieved.
Patent Information
- Application Number
- CN202410610083.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-16
- Publication Date
- 2024-08-30
AI Technical Summary
In the existing technology, visual matching positioning has poor stability in traffic jams and curves, which affects vehicle driving safety.
Through real-time collection of high-precision map lane lines and visual lane lines, combined with laser optimization algorithms, the vehicle position and attitude are determined, and the visual lane lines are corrected in real time. The ICP matching algorithm is used to calculate the lateral distance between the vehicle and the left and right edge lines of the road to ensure positioning. Precise and stable.
It achieves accurate and stable visual positioning matching, solves the problem of poor visual matching and positioning stability, and improves the driving safety of vehicles in complex scenes.
Smart Images

Figure CN118565494A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of vehicle positioning, and in particular to a vehicle positioning method and system. Background Art
[0002] During the process of autonomous driving, accurate and stable positioning is crucial for the vehicle, which helps the vehicle to make subsequent planning, control and other operations more correctly and drive safely on the road.
[0003] Currently, the mainstream map matching technologies are divided into laser matching positioning and visual matching positioning. Among them, laser matching positioning is highly mature and its accuracy can be maintained at the centimeter level, but it needs to match all point clouds in the area, so it has high requirements on computing power; while visual matching positioning is greatly affected by the environment and has low stability, especially in some traffic jams and curves. It is very easy to lose its matching effect, which has a great impact on the driving safety of the vehicle.
[0004] Therefore, it is urgent to provide a vehicle positioning method to solve the problem of poor stability of visual matching positioning. Summary of the invention
[0005] The present application provides a vehicle positioning method and system, which can solve the technical problem of poor stability of visual matching positioning in the prior art.
[0006] In a first aspect, an embodiment of the present application provides a vehicle positioning method, which includes: real-time collection of high-precision map lane lines, visual lane lines and lane widths; when the high-precision map lane lines and the visual lane lines match, discretizing the high-precision map lane lines and the visual lane lines into points respectively, and calculating the lateral distance between the vehicle and the left and right edge lines of the road; based on the lateral distance and the lane width, combined with a laser optimization algorithm, determining the vehicle position and posture, and performing real-time correction on the visual lane lines according to the lane where the vehicle is located.
[0007] In combination with the first aspect, in one embodiment, the collection of high-precision map lane lines and lane widths includes: collecting longitude, latitude and elevation through a combined navigation device; inputting the longitude and latitude in the high-precision map to obtain the number of lanes of the target section corresponding to the longitude and latitude, and determining the lane width based on the number of lanes; inputting the longitude and latitude and the elevation in the high-precision map to obtain the high-precision map lane lines of the target section corresponding to the longitude and latitude and the elevation.
[0008] In combination with the first aspect, in one implementation, collecting the visual lane line includes: collecting a front view image of the vehicle through an image acquisition device, and determining the visual lane line according to the front view image of the vehicle.
[0009] In combination with the first aspect, in one implementation, the step of determining whether the high-precision map lane line and the visual lane line match includes: determining whether the shapes and line types of the high-precision map lane line and the visual lane line are the same; if the shapes and line types are the same, the high-precision map lane line and the visual lane line match; otherwise, the high-precision map lane line and the visual lane line do not match.
[0010] In combination with the first aspect, in one embodiment, when the high-precision map lane lines and the visual lane lines do not match, it also includes: using a sliding window algorithm to backtrack a preset number of frames of historical vehicle front view images; generating historical visual lane lines based on a preset number of frames of historical vehicle front view images, and re-determining whether the historical visual lane lines match the high-precision map lane lines.
[0011] In combination with the first aspect, in one implementation, when it is determined that the historical visual lane line still does not match the high-precision map lane line, it also includes: using the visual lane line that was successfully matched last time until a visual lane line that is successfully matched for a preset number of consecutive times appears.
[0012] In combination with the first aspect, in one implementation, the method for calculating the lateral distance between the vehicle and the left and right edge lines of the road is an ICP matching algorithm.
[0013] In combination with the first aspect, in one embodiment, the step of determining the vehicle position and posture based on the lateral distance and the lane width in combination with a laser optimization algorithm includes: based on the lateral distance, using a nearest neighbor search algorithm to calculate the point cloud coordinates of the left and right positions of the vehicle; using the three-point method to calculate the two point cloud coordinates to obtain two three-dimensional planes; determining the vehicle position based on the two three-dimensional planes and the lane width in combination with a laser optimization algorithm; based on the lateral distance, determining the longitude and latitude of each edge line corresponding to the vehicle position; and determining the vehicle's heading angle based on the longitude and latitude as the vehicle posture.
[0014] In combination with the first aspect, in one embodiment, the laser optimization algorithm step includes: based on the lateral distance and the lane width, using a sliding window algorithm to backtrack a preset number of historical vehicle front view images and the corresponding lane width, and using a nonlinear optimization algorithm to calculate the vehicle position.
[0015] In the second aspect, an embodiment of the present application provides a vehicle positioning system, which includes: a data acquisition module for real-time acquisition of high-precision map lane lines, visual lane lines and lane widths; a calculation module for discretizing the high-precision map lane lines and visual lane lines into points when the high-precision map lane lines and the visual lane lines match each other, and calculating the lateral distance between the vehicle and the left and right edge lines of the road; and also for determining the vehicle position and posture based on the lateral distance and the lane width, combined with a laser optimization algorithm, and performing real-time correction of the visual lane lines according to the lane in which the vehicle is located.
[0016] The beneficial effects brought by the technical solution provided by the embodiments of the present application include:
[0017] With the help of data acquisition equipment, vehicles can collect high-precision map lane lines, visual lane lines and lane widths in real time. In order to verify whether the visual lane lines are true and reliable, it is necessary to match the high-precision map lane lines with the visual lane lines, that is, to verify whether the high-precision map lane lines and the visual lane lines are completely consistent. If the high-precision map lane lines and the visual lane lines match, it can be determined that the visual lane lines are true and reliable. At this time, the continuous high-precision map lane lines and visual lane lines are discretized to generate discrete points. At the same time, the discrete points of the left and right edge lines of the road where the vehicle is located are selected, and the discrete points with the shortest lateral distance from the vehicle among the discrete points of the left and right edge lines are further determined. The lateral distance of the vehicle from the left and right edge lines of the road is calculated. Since the lateral distance of the vehicle from the left and right edge lines of the road and the lane width are known, the laser optimization algorithm is used to further determine the vehicle position and posture, and the visual lane lines are simultaneously corrected in real time according to the lane where the vehicle is located, so that the visual positioning matching can achieve accurate and stable positioning. The technical problem of poor stability of visual matching positioning in related technologies is solved. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 A schematic diagram of a vehicle positioning method according to an embodiment of the present application;
[0019] Figure 2 For the embodiment of this application Figure 1 A schematic diagram of a process for determining a vehicle position in step S70;
[0020] Figure 3 For the embodiment of this application Figure 1 A schematic diagram of a process for determining the vehicle posture in step S70;
[0021] Figure 4 Schematic diagram of a vehicle positioning system according to an embodiment of the present application. DETAILED DESCRIPTION
[0022] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0023] First, some technical terms in the present application are explained to facilitate those skilled in the art to understand the present application.
[0024] High-precision map lane lines, lane lines provided by high-precision maps, where high-precision maps contain not only road information such as road type, curvature, and lane line position, but also environmental object information such as roadside infrastructure, obstacles, and traffic signs, as well as real-time dynamic information such as traffic flow and traffic light status information. This information is collected, processed, and integrated into the map through various sensors and algorithms.
[0025] Visual lane lines are lane lines provided by image acquisition devices (such as front cameras).
[0026] Combined navigation equipment refers to a combination of various navigation devices, controlled by monitors and computers, used to provide more navigation parameters and can also provide vehicle full posture information parameters.
[0027] KD-tree (short for k-dimensional tree) is a tree data structure that stores instance points in k-dimensional space for fast retrieval. It is mainly used for searching key data in multidimensional space (such as range search and nearest neighbor search). KD tree is a special case of binary space partition tree.
[0028] ICP (Iterative closest point) is a point cloud registration algorithm used to match and align corresponding points between two or more point clouds. Its principle is to optimize the matching error between two point clouds through iteration until the error is minimized.
[0029] The basic principle of the sliding window algorithm is to maintain a fixed-size window and solve the problem by moving the window boundary. Specifically, two pointers, such as left and right, can be used to represent the left and right boundaries of the sliding window, respectively. Then, the window can be expanded by continuously moving the right pointer, and the window can be reduced by adjusting the left pointer according to the requirements of the problem. When the right pointer scans to the end of the string or array, the execution of the algorithm is completed. In the process of expanding or reducing the window, some intermediate results, such as the maximum value, minimum value, substring length, etc., can be recorded to obtain the final answer to the problem.
[0030] Nearest neighbor search (NNS), also known as “closest point search”, is an optimization problem of finding the closest point in scale space.
[0031] Three-point method, a method of determining a plane by three points in three-dimensional space.
[0032] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0033] In a first aspect, an embodiment of the present application provides a vehicle positioning method.
[0034] In one embodiment, referring to Figure 1 , Figure 1 FIG. 1 is a flow chart of a vehicle positioning method according to an embodiment of the present application. Figure 1 As shown, the vehicle positioning method includes:
[0035] Step S10: collect high-precision map lane lines, visual lane lines and lane widths in real time.
[0036] In this embodiment, when a vehicle enters a high-precision map section, the high-precision map data corresponding to the high-precision map section is collected in real time, and the high-precision map lane lines and lane widths are further determined based on the high-precision map data. In addition, it is also necessary to collect the vehicle's front view image in real time, and generate visual lane lines based on the real-time collected vehicle front view image. In this embodiment, the collected high-precision map lane lines, visual lane lines, and lane widths are all used to accurately determine the vehicle's position.
[0037] Furthermore, in one embodiment, collecting lane lines and lane widths of high-precision maps includes:
[0038] The latitude, longitude and elevation are collected through the combined navigation equipment; the longitude and latitude are input into the high-precision map to obtain the number of lanes of the target section corresponding to the longitude and latitude, and the lane width is determined based on the number of lanes.
[0039] Enter the longitude, latitude and elevation in the high-precision map to obtain the high-precision map lane lines of the target road section corresponding to the longitude, latitude and elevation.
[0040] In this embodiment, the combined navigation device refers to a combination of various navigation devices, which are controlled by a monitor and a computer, and are used to provide more navigation parameters and can also provide full posture information parameters. Generally speaking, each combined navigation device provides its own navigation parameters, but since the combined navigation device is installed on the vehicle, it can also be regarded as the navigation parameters of the vehicle. The staff installed a combined navigation device on the vehicle in advance, and collected the latitude, longitude and elevation of the vehicle through the combined navigation device. The collected longitude and latitude are first input into the high-precision map, and the number of lanes of the target section corresponding to the longitude and latitude can be generated in the high-precision map, that is, the number of lanes of the road where the vehicle is located. Then, the lane width is determined according to the number of lanes. For example, taking the main road as an example, when the number of lanes is 3, the lane width is 3.75m. Among them, when generating the number of lanes of the target section corresponding to the longitude and latitude, the high-precision map will first identify the location and range of the target section. Then, by parsing the road feature information in the map data, including the lane line position, road width, etc., the number of lanes of the section can be determined. In addition, high-precision maps will dynamically adjust and optimize the number of lanes based on real-time dynamic information, such as traffic flow, etc. This is crucial for the decision-making and control of the autonomous driving system, and can help vehicles identify road conditions more accurately, thereby driving more safely and efficiently.
[0041] In this embodiment, the high-precision map usually contains detailed spatial information of the road network, including the geometry of the road, the location of lane lines, traffic signs, etc. These data are collected and processed by various sensors (such as lidar, camera, GPS, etc.) and can be accurate to the centimeter level. The collected longitude, latitude and elevation are input into the high-precision map, and the high-precision map lane line of the target road section corresponding to the longitude, latitude and elevation data is further accurately located in the high-precision map.
[0042] Further, in one embodiment, collecting visual lane lines includes:
[0043] The front view image of the vehicle is collected by an image acquisition device, and the visual lane line is determined based on the front view image of the vehicle.
[0044] In this embodiment, an image acquisition device is installed on the vehicle, for example, a front camera is installed at the center above the windshield of the vehicle or at the center of the front of the vehicle. During driving, the image acquisition device collects the front view of the vehicle in real time, and uses image processing and computer vision technology to complete the following:
[0045] 1. Image preprocessing: First, the vehicle front view image is preprocessed to remove noise and enhance the feature information of the lane line. This usually includes operations such as grayscale, filtering, and edge detection. Grayscale is to convert a color image into a grayscale image to reduce the amount of calculation. Filtering operations, such as Gaussian filtering, are used to remove noise from the image.
[0046] 2. Lane feature extraction: In the preprocessed image, a specific algorithm is used to extract the feature information of the lane. This can be achieved by identifying features such as the color, shape, and texture of the lane. For example, if the lane is white or yellow and has a specific shape and width, they can be identified by these features.
[0047] 3. Lane tracking and fitting: After the lane features are extracted, a tracking algorithm is used to track the position of these features in consecutive image frames. This can be achieved by comparing the position and shape of the lanes between adjacent frames. Then, a fitting algorithm (such as polynomial fitting) is used to fit the extracted lane points into a continuous line.
[0048] 4. Distortion correction (if necessary): If the vehicle's front-view camera uses a spherical lens or a wide-angle camera, the image it captures may be distorted. In this case, a distortion correction algorithm is needed to correct the image in order to more accurately detect lane lines. The distortion correction algorithm can reversely measure the shape of the distorted curve and correct it to a straight line.
[0049] 5. Subsequent processing: After obtaining the visual lane line, subsequent processing can be performed, such as calculating the curvature of the lane line, the position of the vehicle relative to the lane line, etc., in order to provide useful information for the autonomous driving or assisted driving system.
[0050] It should be noted that the above steps of generating visual lane lines based on the vehicle's front view image may vary depending on the specific application scenario and requirements. For example, in complex road environments, more complex algorithms may be required to identify and process lane lines. In addition, deep learning technology can also be used for lane line detection tasks, by training neural networks to automatically learn the characteristics of lane lines and achieve more accurate and robust lane line detection.
[0051] Step S20, detect whether the high-precision map lane line and the visual lane line match; if so, it means that the high-precision map lane line and the visual lane line match, then enter step S60; if not, it means that the high-precision map lane line and the visual lane line do not match, then enter step S30.
[0052] In this embodiment, in the above step S20, since the process of determining the visual lane line is easily affected by the environment and has low stability, especially in some traffic jams and curves, it is very easy to lose its matching effect. Therefore, it is necessary to compare the visual lane line with the high-precision map lane line to detect whether the high-precision map lane line and the visual lane line match. For example, it is possible to observe whether the shape (i.e., straight line or turning line) and line type (i.e., dotted line or solid line) of the high-precision map lane line and the visual lane line are consistent. If the two match, it means that the visual lane line is correct; if they do not match, it means that the visual lane line is wrong.
[0053] Furthermore, in one embodiment, the step of determining whether the lane line on the high-precision map matches the lane line on the visual map includes:
[0054] Determine whether the shapes and line types of the high-precision map lane lines and the visual lane lines are the same; if the shapes and line types are the same, the high-precision map lane lines and the visual lane lines match; otherwise, the high-precision map lane lines and the visual lane lines do not match.
[0055] In this embodiment, the judgment of whether the high-precision map lane line and the visual lane line match can be based on the shape and line type of the lane line. If the two are the same, it means that the high-precision map lane line and the visual lane line match; if they are different, it means that the high-precision map lane line and the visual lane line do not match.
[0056] In addition to judging the shape and line type, the width and color of the lane line can also be judged at the same time.
[0057] Furthermore, in one embodiment, in step S30, a sliding window algorithm is used to backtrack a preset number of frames of historical vehicle front view images; and historical visual lane lines are generated based on the preset number of frames of historical vehicle front view images.
[0058] Furthermore, in one embodiment, step S40 determines whether the historical visual lane line matches the high-precision map lane line; if the historical visual lane line matches the high-precision map lane line, then proceeds to step S60; if the historical visual lane line still does not match the high-precision map lane line, then proceeds to step S50.
[0059] In this embodiment, since the image acquisition device will acquire vehicle front-view images in real time and store the acquired vehicle front-view images as video frames, when the visual lane lines do not match the lane lines of the high-precision map, a sliding window algorithm can be used to trace back the historical vehicle front-view images of a preset number of frames (for example, 20 frames), and generate historical visual lane lines based on the historical vehicle front-view images of the preset number of frames, and re-judge whether the historical visual lane lines match the high-precision map. Among them, the processing method of using the sliding window algorithm to trace back the historical vehicle front-view images of the preset number of frames not only reduces the amount of image processing data, but also reduces the interference of the surrounding environment, so that the historical vehicle front-view images have the characteristics of strong robustness.
[0060] Furthermore, in one embodiment, in step S50, the visual lane line that was successfully matched last time is used until a preset number of visual lane lines are successfully matched consecutively, and then the process proceeds to step S60.
[0061] In this embodiment, if the historical visual lane lines and the high-precision map lane lines still do not match, the visual lane lines that were successfully matched last time can be temporarily used to avoid vehicle positioning problems. This is not until the number of successful real-time matches between the visual lane lines and the high-precision map lane lines reaches a preset number. Only then can it be determined that the visual lane lines and the high-precision map lane lines are truly matched, avoiding errors caused by mismatching.
[0062] Step S60: discretize the high-precision map lane lines and the visual lane lines into points respectively, and calculate the lateral distance between the vehicle and the left and right edge lines of the road.
[0063] In this embodiment, the HD map lane lines and visual lane lines are discretized into points at certain intervals (such as every meter, every half meter, etc.), and for each lane line (whether HD map or visual), the point closest to the vehicle (or the point obtained by interpolation) is found. Then, an algorithm (such as ICP matching algorithm) is used to calculate the lateral distance between the vehicle position and the left and right edge lines of the road, that is, the distance perpendicular to the direction of the lane line.
[0064] It should be noted that for the left and right edge lines of the road, it is necessary to calculate and take the minimum value separately to ensure that the distance from the vehicle to the nearest edge is obtained.
[0065] Furthermore, in one embodiment, the method for calculating the lateral distance between the vehicle and the left and right edge lines of the road is an ICP matching algorithm.
[0066] In this embodiment, the ICP matching algorithm is used to continuously optimize the matching error between two points in an iterative manner until the error is minimized, and finally the lateral distance between the vehicle position and the left and right edge lines of the road is calculated.
[0067] Step S70, based on the lateral distance and lane width, combined with the laser optimization algorithm, the vehicle position and posture are determined, and the visual lane line is corrected in real time according to the lane where the vehicle is located.
[0068] In this embodiment, first, based on the lateral distance between the vehicle position and the left and right edge lines of the road and the lane width, the nearest neighbor search algorithm is used to perform optimization calculations in the kd-tree stored in the laser point cloud to determine the vehicle position and posture. After obtaining the vehicle position, the lane where the vehicle is located can be obtained. When the vehicle moves or deviates from the lane, the visual lane line can be corrected in real time to reflect the current lane position of the vehicle. In this way, the problem of wrong lane determination caused by visual perception and other problems in visual matching positioning can be solved.
[0069] Further, in one embodiment, referring to Figure 2 , Figure 2 For the embodiment of this application Figure 1 FIG. 1 is a flow chart showing a process of determining the vehicle position in step S70. Figure 2 As shown, step S70 includes:
[0070] Step S701, based on the lateral distance, the point cloud coordinates of the left and right positions of the vehicle are calculated using a nearest neighbor search algorithm.
[0071] In this embodiment, the nearest neighbor search (NNS) is also called "closest point search", which is an optimization problem of finding the closest point in the scale space. According to the lateral distance between the vehicle and the left and right edge lines of the road, the nearest neighbor algorithm is used to find the point cloud closest to the vehicle from the point cloud set of the left and right edge lines of the road, and the point cloud coordinates of the left and right positions of the vehicle are calculated.
[0072] Step S702: Calculate the two point cloud coordinates using the three-point method to obtain two three-dimensional planes.
[0073] In this embodiment, the point cloud is a collection of points in three-dimensional space, consisting of N D-dimensional points. For example, when D=3, each point can be represented as a three-dimensional coordinate point (x, y, z). When the point cloud coordinates (three-dimensional coordinate points) of the left and right positions of the vehicle are known, two three-dimensional planes can be calculated by the three-point method, namely, the three-dimensional plane of the left position of the vehicle and the three-dimensional plane of the right position of the vehicle.
[0074] Step S703, determining the vehicle position according to the two three-dimensional planes and the vehicle width in combination with a laser optimization algorithm.
[0075] In this embodiment, first, the two planes are calculated by point cloud data obtained by the vehicle-mounted laser radar or other sensors. These planes can represent the positions of the left and right edge lines of the lane. In addition, the lane width is also a known parameter, which indicates the standard width of the road or the width of the lane where the vehicle is currently located. Therefore, based on these two three-dimensional planes and the lane width, a preliminary estimate of the vehicle's position can be made. For example, if it is known that the vehicle is located between two parallel planes (i.e., the left and right edge lines of the lane) and the width of the lane is known, the approximate position of the vehicle can be estimated. At the same time, the laser radar on the vehicle will continue to scan the vehicle's surroundings and generate point cloud data. The laser optimization algorithm will match these point cloud data with the known three-dimensional planes and lane widths. By comparing the difference between the laser radar scanning data and the actual road features, the actual position of the vehicle relative to the road features is calculated.
[0076] In addition, the laser optimization algorithm will use the matching results, combined with the vehicle's motion model, sensor noise model and other information, to obtain the optimal position estimate of the vehicle through optimization calculation. This process will also involve optimization methods such as least squares method, Kalman filter, particle filter, etc.
[0077] Reference Figure 3 , Figure 3 For the embodiment of this application Figure 1 FIG. 1 is a flow chart of determining the vehicle posture in step S70. Figure 3 As shown, step S70 also includes:
[0078] Step S704: determining the longitude and latitude of the corresponding position of each edge line and the vehicle based on the lateral distance.
[0079] Step S705, determining the heading angle of the vehicle according to the longitude and latitude as the vehicle posture.
[0080] In this embodiment, according to the lateral distance between the vehicle position and the left and right edge lines of the road, the longitude and latitude of each edge line at the corresponding position of the vehicle can be determined by geometric calculation. Since the heading angle refers to the angle between the vehicle's driving direction and the north direction, it is usually expressed in degrees. The north direction is 0 degrees, and the clockwise rotation direction is the positive direction, ranging from 0 degrees to 360 degrees. Therefore, the heading angle can be estimated based on the direction angle between the longitude and latitude. In addition, this can be achieved through some geographic coordinate calculation formulas (such as the Haversine formula or its approximate formula). Using the heading angle as the vehicle posture is conducive to determining the vehicle's driving direction, thereby performing more accurate path planning and navigation.
[0081] Furthermore, in one embodiment, the laser optimization algorithm step includes using a sliding window algorithm to backtrack a preset number of historical vehicle front view images and corresponding lane widths based on the lateral distance and the lane width, and using a nonlinear optimization algorithm to calculate the vehicle position.
[0082] In this embodiment, since the high-precision map can provide lane width information, that is, the lane width is known, in theory, the lane width is equal to the sum of the lateral distance between the vehicle and the left edge line of the road and the lateral distance between the vehicle and the right edge line of the road, but due to errors in actual measurement. At this time, the sliding window algorithm is used to trace back the historical vehicle front view images of a preset number of frames, combined with the corresponding lane width, to construct a nonlinear optimization problem, and the optimal solution of the problem is continuously approached through iteration, thereby obtaining the vehicle position. The vehicle position obtained in this way is more accurate and reliable.
[0083] In this embodiment, the vehicle can collect high-precision map lane lines, visual lane lines and lane width in real time with the help of data acquisition equipment. In order to verify whether the visual lane lines are true and reliable, it is necessary to match the high-precision map lane lines with the visual lane lines, that is, to verify whether the high-precision map lane lines and the visual lane lines are completely consistent. For example, the lane lines can be judged from the shape and line type of the lane lines; if the high-precision map lane lines and the visual lane lines match, it can be determined that the visual lane lines are true and reliable. At this time, the continuous high-precision map lane lines and visual lane lines are discretized to generate discrete points, and the discrete points of the left and right edge lines of the road where the vehicle is located are selected at the same time, and the discrete points with the shortest lateral distance from the vehicle among the discrete points of the left and right edge lines are further determined, and the lateral distance of the vehicle from the left and right edge lines of the road is obtained by calculation. Since the lateral distance of the vehicle from the left and right edge lines of the road and the lane width are known, the laser optimization algorithm is used to further determine the vehicle position and posture, and the visual lane lines are simultaneously corrected in real time according to the lane where the vehicle is located. Through this embodiment, the visual positioning matching can achieve the effect of accurate and stable positioning. The technical problem of poor stability of visual matching positioning in the related art is solved.
[0084] In a second aspect, an embodiment of the present application also provides a system for the vehicle positioning method of the above method.
[0085] In one embodiment, referring to Figure 4 , Figure 4 Schematic diagram of the vehicle positioning system of the present application embodiment. Figure 4 As shown, the system includes:
[0086] The data acquisition module is used to collect high-precision map lane lines, visual lane lines and lane widths in real time.
[0087] The calculation module is used to discretize the high-precision map lane lines and the visual lane lines into points respectively when the high-precision map lane lines and the visual lane lines match, and calculate the lateral distance between the vehicle and the left and right edge lines of the road; it is also used to determine the vehicle position and posture based on the lateral distance and the lane width in combination with the laser optimization algorithm, and to make real-time corrections to the visual lane lines according to the lane where the vehicle is located.
[0088] In this embodiment, the data acquisition module collects high-precision map lane lines, visual lane lines and lane width in real time, and inputs the collected high-precision map lane lines and visual lane lines into the calculation module. The detection unit in the calculation module can compare the high-precision map lane lines and the visual lane lines, and detect whether the two match. If they match, the calculation module discretizes the high-precision map lane lines and the visual lane lines into points, and calculates the lateral distance of the vehicle from the left and right edge lines of the road through some conventional algorithms, such as the ICP matching algorithm. It is also used to determine the vehicle position and posture based on the lateral distance and lane width, combined with a laser optimization algorithm, such as a nonlinear optimization algorithm, and to perform real-time optimization on the visual lane lines according to the lane where the vehicle is located. It can make the visual matching positioning more stable and reduce the computing power required for vehicle positioning.
[0089] Furthermore, in one embodiment, the data acquisition module is specifically used for:
[0090] The latitude, longitude and elevation are collected through the combined navigation equipment.
[0091] The longitude and latitude are input into the high-precision map to obtain the number of lanes of the target road section corresponding to the longitude and latitude, and the lane width is determined according to the number of lanes.
[0092] The longitude and latitude and the elevation are input into a high-precision map to obtain a high-precision map lane line of the target road section corresponding to the longitude and latitude and the elevation.
[0093] Furthermore, in one embodiment, the data acquisition module is specifically used for:
[0094] The front view image of the vehicle is collected by an image collection device, and the visual lane line is determined according to the front view image of the vehicle.
[0095] Furthermore, in one embodiment, the calculation module is specifically used for:
[0096] Determine whether the shape and line type of the HD map lane lines and the visual lane lines are the same.
[0097] If the shape and the line type are the same, the high-precision map lane line and the visual lane line match.
[0098] Otherwise, the HD map lane lines and the visual lane lines do not match.
[0099] Furthermore, in one embodiment, the calculation module is further configured to:
[0100] A sliding window algorithm is used to trace back the historical vehicle front view images for a preset number of frames.
[0101] Generate historical visual lane lines based on historical vehicle front view images of a preset number of frames, and re-determine whether the historical visual lane lines match the high-precision map lane lines.
[0102] Furthermore, in one embodiment, the calculation module is further configured to:
[0103] The last successfully matched visual lane line is used until a preset number of consecutive successfully matched visual lane lines appear.
[0104] Furthermore, in one embodiment, the method for calculating the lateral distance between the vehicle and the left and right edge lines of the road is an ICP matching algorithm.
[0105] Furthermore, in one embodiment, the calculation module is further configured to:
[0106] Based on the lateral distance, a nearest neighbor search algorithm is used to calculate the point cloud coordinates of the left and right positions of the vehicle.
[0107] The coordinates of the two point clouds are calculated using the three-point method to obtain two three-dimensional planes.
[0108] The vehicle position is determined based on the two three-dimensional planes and the vehicle width in combination with a laser optimization algorithm.
[0109] Based on the lateral distance, the longitude and latitude of the corresponding position of each edge line and the vehicle are determined.
[0110] The heading angle of the vehicle is determined according to the longitude and latitude as the vehicle posture.
[0111] Furthermore, in one embodiment, based on the lateral distance and the lane width, a sliding window algorithm is used to backtrack a preset number of historical vehicle front view images and corresponding lane widths, and a nonlinear optimization algorithm is used to calculate the vehicle position.
[0112] Among them, the functional implementation of each module in the above-mentioned vehicle positioning device corresponds to each step in the above-mentioned vehicle positioning method embodiment, and its functions and implementation processes are no longer repeated here.
[0113] It should be noted that the serial numbers of the above-mentioned embodiments of the present application are only for description and do not represent the advantages or disadvantages of the embodiments.
[0114] The terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices. The terms "first", "second" and "third" are used to distinguish different objects, etc., and do not represent a sequence, nor do they limit "first", "second" and "third" to different types.
[0115] In the description of the embodiments of the present application, "exemplary", "for example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary", "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary", "for example" or "for example" is intended to present related concepts in a specific way.
[0116] In the description of the embodiments of the present application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; the “and / or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, “multiple” refers to two or more than two.
[0117] In some processes described in the embodiments of the present application, multiple operations or steps that appear in a specific order are included, but it should be understood that these operations or steps may not be executed in the order in which they appear in the embodiments of the present application or in parallel, and the sequence number of the operation is only used to distinguish the different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed in sequence or in parallel, and these operations or steps may be combined.
[0118] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD) as described above, and includes a number of instructions for a terminal device to execute the methods described in each embodiment of the present application.
[0119] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A vehicle positioning method, It is characterized in that The vehicle positioning method comprises: Real-time collection of high-precision map lane lines, visual lane lines and lane widths; When the high-precision map lane line and the visual lane line match, the high-precision map lane line and the visual lane line are discretized into points respectively, and the lateral distance between the vehicle and the left and right edge lines of the road are calculated; Based on the lateral distance and the lane width, combined with a laser optimization algorithm, the vehicle position and posture are determined, and the visual lane line is corrected in real time according to the lane where the vehicle is located.
2. The vehicle positioning method according to claim 1, It is characterized in that The acquisition of lane lines and lane widths of high-precision maps includes: Collect latitude, longitude and elevation through integrated navigation equipment; Input the longitude and latitude in the high-precision map, obtain the number of lanes of the target road section corresponding to the longitude and latitude, and determine the lane width according to the number of lanes; The longitude and latitude and the elevation are input into a high-precision map to obtain a high-precision map lane line of the target road section corresponding to the longitude and latitude and the elevation.
3. The vehicle positioning method according to claim 1, It is characterized in that The collecting of visual lane lines comprises: The front view image of the vehicle is collected by an image collection device, and the visual lane line is determined according to the front view image of the vehicle.
4. The vehicle positioning method according to claim 1, It is characterized in that The step of determining whether the lane line on the high-precision map matches the lane line on the visual map includes: Determine whether the shape and line type of the HD map lane lines and the visual lane lines are the same; If the shape and the line type are the same, the HD map lane line and the visual lane line match; Otherwise, the HD map lane lines and the visual lane lines do not match.
5. The vehicle positioning method according to claim 4, It is characterized in that When the HD map lane lines and visual lane lines do not match, it also includes: Use sliding window algorithm to trace back the historical vehicle front view images of preset frames; Generate historical visual lane lines based on historical vehicle front view images of a preset number of frames, and re-determine whether the historical visual lane lines match the high-precision map lane lines.
6. The vehicle positioning method according to claim 5, It is characterized in that When it is determined that the historical visual lane line still does not match the high-precision map lane line, the method further includes: The last successfully matched visual lane line is used until a preset number of consecutive successfully matched visual lane lines appear.
7. The vehicle positioning method according to claim 1, It is characterized in that The method for calculating the lateral distance between the vehicle and the left and right edge lines of the road is an ICP matching algorithm.
8. The vehicle positioning method according to claim 7, It is characterized in that The step of determining the vehicle position and posture based on the lateral distance and the lane width in combination with a laser optimization algorithm comprises: Based on the lateral distance, the point cloud coordinates of the left and right positions of the vehicle are calculated using a nearest neighbor search algorithm; The coordinates of the two point clouds are calculated using the three-point method to obtain two three-dimensional planes; Determine the vehicle position according to the two three-dimensional planes and the lane width in combination with a laser optimization algorithm; Based on the lateral distance, determining the longitude and latitude of the corresponding position of each edge line and the vehicle; The heading angle of the vehicle is determined according to the longitude and latitude as the vehicle posture.
9. The vehicle positioning method according to claim 8, It is characterized in that The laser optimization algorithm steps include: Based on the lateral distance and the lane width, a sliding window algorithm is used to backtrack a preset number of historical vehicle front view images and the corresponding lane width, and a nonlinear optimization algorithm is used to calculate the vehicle position.
10. A vehicle positioning system according to any one of the methods of claims 1 to 9, It is characterized in that The system comprises: Data acquisition module, used to collect high-precision map lane lines, visual lane lines and lane widths in real time; The calculation module is used to discretize the high-precision map lane lines and the visual lane lines into points respectively when the high-precision map lane lines and the visual lane lines match, and calculate the lateral distance between the vehicle and the left and right edge lines of the road; it is also used to determine the vehicle position and posture based on the lateral distance and the lane width in combination with the laser optimization algorithm, and to make real-time corrections to the visual lane lines according to the lane where the vehicle is located.
Citation Information
Cited By
Lane line matching pose determination method and device, equipment and medium
CN119223316A
Vehicle positioning method, device, equipment, storage medium and product
CN119665995A
