Lane guide line smoothing method and device, electronic equipment and storage medium
By performing multiple iterations and curvature adjustments on the points on the lane guidance line, the problem of efficiency and accuracy of lane guidance line smoothing in high-precision maps with the B-spline algorithm is solved, and more efficient lane guidance line smoothing is achieved.
Patent Information
- Application Number
- CN202410638699.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-22
- Publication Date
- 2024-09-06
AI Technical Summary
When using the B-spline algorithm to process lane guidance lines in high-precision maps, the low-order algorithm does not work well and the high-order algorithm results in excessive accuracy loss. The algorithm needs to be improved to improve the smoothing efficiency and effect of the lane guidance lines.
By performing multiple iterations on the points on the lane guidance line, we obtain equally spaced coordinate points, use preset functions and length coefficients to perform iterative calculations, adjust the curvature and deviation thresholds, and gradually obtain a smoothed lane guidance line.
The smoothing efficiency and effect of lane guidance lines are improved, accuracy loss is reduced, and better smoothing effects are obtained.
Smart Images

Figure CN118609072A
Abstract
Description
Technical Field
[0001] The present application relates to the field of autonomous driving technology, and in particular to a lane guide line smoothing method, device, electronic device and storage medium. Background Art
[0002] B-spline is a mathematical tool for curve and surface modeling, commonly used in computer graphics, computer-aided design (CAD), computer animation and other fields. The B-spline algorithm defines smooth curves or surfaces through control points and node vectors, has good local controllability and flexibility, and the degree of the B-spline algorithm equation can be specified in specific use.
[0003] When using the B-spline algorithm to process lane guide lines in high-precision maps, since the lane guide lines have tortuous trajectories, the effect of using low-order B-spline algorithm equations to smooth the lane guide lines is not good. Using high-order B-spline algorithm equations to smooth the lane guide lines will cause excessive loss of lane guide line accuracy. Therefore, it is necessary to improve the B-spline algorithm equation to obtain a new lane guide line smoothing method. Summary of the invention
[0004] In order to solve or partially solve the problems existing in the related art, the present application provides a lane guide line smoothing method, which can iterate the points on the lane guide line multiple times through an algorithm to obtain equally spaced coordinate points, and then smooth the lane guide line, thereby improving the smoothing efficiency and effect of the lane guide line.
[0005] A first aspect of the present application provides a lane guide line smoothing method, comprising acquiring lane guide line data of a first lane guide line;
[0006] According to the lane guide line data, acquiring a plurality of first coordinate points and a first length coefficient on a first lane guide line;
[0007] Based on the plurality of first coordinate points and the first length coefficient, a plurality of second coordinate points are acquired, and the plurality of second coordinate points are connected to obtain a second lane guide line.
[0008] Further, the acquiring a plurality of second coordinate points based on the plurality of first coordinate points and the first length coefficient includes:
[0009] Based on the intervals between the plurality of first coordinate points, acquiring the first length coefficient;
[0010] According to the first length coefficient and a preset function, the plurality of first coordinate points are iteratively calculated to obtain the plurality of second coordinate points.
[0011] Further, according to the first length coefficient and a preset function, iterative calculation processing is performed on the multiple first coordinate points to obtain multiple second coordinate points, including:
[0012] Obtaining a preset curvature and a preset deviation threshold of the first lane guide line;
[0013] According to the first length coefficient and the preset function, iteratively calculate the multiple first coordinate points to obtain a first curvature, a first deviation threshold, and multiple first coordinate points after iteration;
[0014] When the first curvature is greater than the preset curvature and the first deviation threshold is greater than the preset deviation threshold, the plurality of first coordinate points after iteration are used as the second coordinate points.
[0015] Further, if the first curvature is smaller than the preset curvature and the first deviation threshold is smaller than the preset deviation threshold, a second length coefficient is obtained;
[0016] Iteratively calculating the iterated first coordinate point according to the second length coefficient and the preset function to obtain a third coordinate point;
[0017] Obtaining a second curvature and a second deviation threshold according to the second length coefficient, the preset function, and the third coordinate point;
[0018] When the second curvature is greater than the preset curvature and the second deviation threshold is greater than the preset deviation threshold, the iterative calculation of the third coordinate point is stopped, and the third coordinate point is used as the second coordinate point.
[0019] Furthermore, obtaining a preset curvature and a preset deviation threshold of the first lane guide line includes:
[0020] According to the type of the first lane guide line, a preset curvature and a preset deviation threshold of the first lane guide line are acquired.
[0021] Further, if the first curvature is smaller than the preset curvature and the first deviation threshold is smaller than the preset deviation threshold, obtaining the second coordinate point and the second length coefficient includes:
[0022] The first length coefficient is processed by a dichotomy method to obtain the second length coefficient.
[0023] A second aspect of the present application provides a lane line smoothing device, including a first acquisition module, which acquires lane guide line data of a first lane guide line;
[0024] A second acquisition module, acquiring a plurality of first coordinate points and a first length coefficient on a first lane guide line according to the lane guide line data;
[0025] The processing module acquires a plurality of second coordinate points based on the plurality of first coordinate points and the first length coefficient, and connects the plurality of second coordinate points to obtain a second lane guide line.
[0026] Furthermore, the processing module further includes obtaining the first length coefficient based on the intervals between the plurality of first coordinate points;
[0027] According to the first length coefficient and a preset function, the first coordinate point is iteratively calculated to obtain the plurality of second coordinate points.
[0028] A third aspect of the present application provides an electronic device, including:
[0029] Processor; and
[0030] The memory stores executable codes thereon, and when the executable codes are executed by the processor, the processor is caused to execute the method as described above.
[0031] A fourth aspect of the present application provides a computer-readable storage medium having executable code stored thereon. When the executable code is executed by a processor of an electronic device, the processor is caused to execute the method as described above.
[0032] The technical solution provided by this application may have the following beneficial effects:
[0033] A lane guide line smoothing method of the present application includes obtaining lane guide line data of a first lane guide line; obtaining a plurality of first coordinate points and a first length coefficient on the first lane guide line according to the lane guide line data; obtaining a plurality of second coordinate points based on the plurality of first coordinate points and the first length coefficient, and connecting the plurality of second coordinate points to obtain a second lane guide line, and being able to perform multiple iterations on the points on the lane guide line to obtain equally spaced coordinate points, and then smoothing the lane guide line, thereby improving the smoothing efficiency and effect of the lane guide line.
[0034] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The above and other objects, features and advantages of the present application will become more apparent by describing in more detail the exemplary embodiments of the present application in conjunction with the accompanying drawings, wherein the same reference numerals generally represent the same components in the exemplary embodiments of the present application.
[0036] Figure 1 is a flow chart of a lane guide line smoothing method shown in an embodiment of the present application;
[0037] Figure 2 is another flow chart of the lane guide line smoothing method shown in an embodiment of the present application;
[0038] Figure 3 is a schematic structural diagram of a lane guide line smoothing device shown in an embodiment of the present application;
[0039] Figure 4 is a schematic diagram of the structure of an electronic device shown in an embodiment of the present application;
[0040] Figure 5 It is a schematic diagram of coordinate points on a lane guide line output after iterative processing using a non-equidistant B-spline algorithm shown in an embodiment of the present application;
[0041] Figure 6 It is a schematic diagram of coordinate points on equally spaced lane guide lines obtained by using the lane guide line smoothing method of the present application, shown in an embodiment of the present application. DETAILED DESCRIPTION
[0042] The embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present application more thorough and complete, and to fully convey the scope of the present application to those skilled in the art.
[0043] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0044] It should be understood that although the terms "first", "second", "third", etc. may be used in this application to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0045] When using the B-spline algorithm to process lane guide lines in high-precision maps, since the lane guide lines have tortuous trajectories, the effect of using low-order B-spline algorithm equations to smooth the lane guide lines is not good. Using high-order B-spline algorithm equations to smooth the lane guide lines will cause excessive loss of lane line accuracy. Therefore, it is necessary to improve the B-spline algorithm equation to obtain a new lane guide line smoothing method.
[0046] In response to the above problems, an embodiment of the present application provides a lane guide line smoothing method, which can iterate the points on the lane guide line multiple times through an algorithm to obtain equally spaced coordinate points, and then smooth the lane guide line, thereby improving the smoothing efficiency and effect of the lane guide line.
[0047] The B-spline algorithm is an important tool in mathematics and numerical analysis, especially in computer-aided design and graphics, for the generation and representation of curves and surfaces. B-splines are composed of piecewise combinations of polynomial functions that are smoothly connected at certain nodes. B-spline curves can be defined by a set of control points and have good local control properties, so that adjusting the control points can change the shape of the curve without affecting other parts. This representation method allows the generation of complex and flexible shapes while maintaining mathematical simplicity and computational efficiency. B-spline curves have been widely used in computer graphics, computer-aided design (CAD), and computer animation.
[0048] The B-spline algorithm is based on B-spline basis functions, which are a set of polynomial functions defined on an interval, and their shapes can be adjusted by a set of control points. B-spline curves are constructed by multiplying these basis functions with the weights of the control points and then adding the results. It mainly includes control points, basis functions, degrees, and knot vectors. Control points are a set of points that define the shape of the B-spline curve. By changing the positions of these points, the shape of the curve can be adjusted; B-spline basis functions are a special set of polynomial functions that have local support, that is, each basis function has non-zero values only in a small interval of the domain of definition. This means that local modifications to the curve will only affect the nearby area, not the entire curve; the degree of the B-spline curve determines the highest degree of the basis function, and also affects the smoothness and adjustability of the curve. The higher the degree, the smoother the curve, but the calculation is also more complicated; the knot vector is a set of parameters that define the B-spline basis function, which determines the distribution and weight of the basis function. The choice of the knot vector has an important impact on the shape and properties of the curve.
[0049] The technical solution of the embodiments of the present application is described in detail below with reference to the accompanying drawings.
[0050] Figure 1 It is a flow chart of the lane guide line smoothing method shown in an embodiment of the present application.
[0051] See also Figure 1 , a lane guide line smoothing method, comprising:
[0052] S110: Acquire lane guide line data of a first lane guide line.
[0053] In one embodiment, lane guide line data of a lane guide line may be obtained on a high-precision map, and a lane guide line that needs to be smoothed may be used as a first lane guide line. The first lane guide line may be a tortuous lane guide line, such as a lane guide line at a bend.
[0054] S120: Acquire a plurality of first coordinate points and a first length coefficient on a first lane guide line according to the lane guide line data.
[0055] In one embodiment, on a high-precision map, a first lane guide line may be formed by connecting multiple points. By acquiring lane guide line data of the first lane guide line, the coordinates of each point on the first lane guide line may be acquired to obtain a first coordinate point, and a first length coefficient may be acquired. The first length coefficient may be acquired based on multiple first coordinate points on the first lane guide line. The value of the first length coefficient may be preset based on the spacing between the multiple first coordinate points. For example, the spacing between the multiple first coordinate points is 5-10 meters, and the value of u may be 0.3. The first length coefficient may be the length coefficient in the B-spline algorithm.
[0056] S130: Based on the plurality of first coordinate points and the first length coefficient, a plurality of second coordinate points are acquired, and the plurality of second coordinate points are connected to obtain a second lane guide line.
[0057] In one embodiment, the first coordinate point and the first length coefficient on the first lane guide line can be input into a B-spline algorithm, which can be a third-order B-spline algorithm, to obtain the calculated second coordinate points, each of which can be equidistant, and the second lane guide line can be obtained by connecting all the second coordinate points.
[0058] A lane guide line smoothing method of the present application includes obtaining lane guide line data of a first lane guide line; obtaining a plurality of first coordinate points and a first length coefficient on the first lane guide line according to the lane guide line data; obtaining a plurality of second coordinate points based on the plurality of first coordinate points and the first length coefficient, and connecting the plurality of second coordinate points to obtain a second lane guide line, and being able to perform multiple iterations on the points on the lane guide line to obtain equally spaced coordinate points, and then smoothing the lane guide line, thereby improving the smoothing efficiency and effect of the lane guide line.
[0059] Figure 2 It is another flowchart diagram of the lane guide line smoothing method shown in an embodiment of the present application.
[0060] See also Figure 2 , a lane guide line smoothing method, comprising:
[0061] In S210 , lane guide line data of a first lane guide line is acquired.
[0062] In one embodiment, lane guide line data on a high-precision map may be obtained from a database, a lane guide line that needs to be smoothed may be used as a first lane guide line, and lane guide line data of the first lane guide line may be obtained.
[0063] In S220, a plurality of first coordinate points, a first length coefficient, a preset curvature, and a preset deviation threshold on the first lane guide line are acquired according to the lane guide line data.
[0064] In one embodiment, the coordinates of each point on the lane guide line can be obtained based on the data on the lane guide line, and the coordinates are used as the first coordinate points, and the first length coefficient, the preset curvature of the lane guide line and the preset deviation threshold are obtained. The deviation threshold can be the maximum distance between the smoothed lane guide line and the original lane guide line, which can be used to control the maximum acceptable accuracy loss. The curvature can be the curvature of the smoothed lane guide line. The larger the value of the first length coefficient, the larger the interval between the first coordinate points after iteration. In one implementation, the preset curvature and the preset deviation threshold can be obtained according to conventional experiments.
[0065] In one embodiment, the types of lane guide lines generally include guide lines, variable guide lanes, guide lane lines, left-turn waiting area lines, intersection guide lines, special lane lines, yellow dotted lines, and yellow solid lines. Guide lines are usually set at intersections, ramps of grade-separated intersections, or other special locations, and are marked with white V-shaped lines or diagonal lines to indicate that vehicles must follow the specified route and must not drive on or over the line; variable guide lanes are set at intersections, and the driving direction of the lane can be flexibly adjusted according to the characteristics of vehicle flow at different times to relieve traffic pressure. The direction after entering the lane must be determined according to the instructions of the corresponding lane; guide lane lines are used to guide cars to drive in a specified direction, such as going straight, turning left or right, and are usually set close to intersections to help drivers prepare in advance; left-turn waiting areas Zone lines are set at some intersections with heavy traffic flow, allowing vehicles to enter the waiting area to wait for left turns when the green light for straight driving turns on, so as to increase the throughput; intersection guide lines are set near intersections to guide vehicles to drive in the correct direction; dedicated lane lines stipulate that only certain vehicles are allowed to drive or are only used for certain purposes, and other vehicles and pedestrians are not allowed to enter, such as bus lanes and non-motorized vehicle lanes; yellow dotted lines are used to distinguish lanes in different directions, and crossing the line and overtaking are allowed under the condition of ensuring safety; yellow solid lines strictly prohibit vehicles from crossing or pressing the line, and are usually used to separate lanes driving in opposite directions. Different types of lane guide lines play the role of guiding and regulating vehicle driving on the road. According to different types of lane guide lines, the preset curvature and preset deviation threshold of the first lane guide line can be obtained.
[0066] In S230, an iterative calculation process is performed on the plurality of first coordinate points according to the first length coefficient and the preset function to obtain a first curvature, a first deviation threshold, and a plurality of first coordinate points after iteration.
[0067] In one embodiment, the first coordinate point and the first length coefficient can be substituted into a B-spline algorithm, and the first coordinate point is iteratively calculated to obtain the iterative first coordinate point, the first curvature, and the first deviation threshold.
[0068] In one embodiment, the preset function may be a third-order B-spline algorithm function, wherein the third-order B-spline algorithm formula is:
[0069]
[0070] Among them, N i,p (u) is the p-order B-spline basis function, u is the length coefficient, and the value range of u is 0-1. i is the coordinate point on the lane line.
[0071] Among them, N i,p The recursive definition of (u) can be:
[0072]
[0073]
[0074] Among them, N i,p The quadratic expression of (u) can be:
[0075]
[0076] Substituting the first coordinate point and the first pre-length coefficient into the preset function, the iterated second coordinate point, the first curvature and the first deviation threshold can be obtained. In one embodiment, by substituting the first coordinate point into the preset function, the number of nodes can be obtained, and the number of nodes = the number of first coordinate points + 3. For example, when there are 9 first coordinate points on the first lane guide line, the number of nodes is 11, and the values of the 11 nodes can be (0, 0, 0, 0.1111111111111111, 0.222222222222222221, 0.333 33333333333331,0.44444444444444442,0.55555555555555558,0.6666666666666666 3,0.7777777777777768,0.88888888888888884,1,1,1), when u=0.1111111111111111, u i+1 is 0.22222222222222221, u i+2 is 0.333333333333333331, so as to obtain the 9 first coordinate points after iteration.
[0077] In S240, when the first curvature is greater than the preset curvature and the first deviation threshold is greater than the preset deviation threshold, the iterated multiple first coordinate points are used as second coordinate points, and the multiple second coordinate points are connected to obtain a second lane guide line.
[0078] In one embodiment, the first coordinate point is substituted into a preset function to obtain the first coordinate point after iteration, the first curvature and the first deviation threshold value. When the first curvature is greater than the preset curvature and the first deviation threshold value is greater than the preset deviation threshold value, the intervals between the first coordinate points after iteration are equal. The first coordinate point after iteration can be used as the second coordinate point, and the second coordinate point is an equally spaced coordinate point. The second coordinate points are connected sequentially, so that a second lane guide line with a better smoothing effect can be obtained, reducing the loss of precision.
[0079] In one embodiment, when the first curvature is less than a preset curvature and the first deviation threshold is less than a preset deviation threshold, the iterative calculation of the first coordinate point after iteration is continued by adjusting the value of the length coefficient to obtain a third coordinate point, a second curvature and a second deviation threshold. When the second curvature is greater than the preset curvature and the second deviation threshold is greater than the preset deviation threshold, the iterative calculation of the third coordinate point is stopped, and the third coordinate point is used as the second coordinate point, and the second coordinate point is an equally spaced coordinate point. If the second curvature is less than the preset curvature and the second deviation threshold is less than the preset deviation threshold, the iterative calculation of the third coordinate point is continued, and the value of the length coefficient is adjusted so that evenly spaced coordinate points can be obtained in the end.
[0080] In one embodiment, a preset number of iterations can be set, and the preset number of iterations can be set to 6 times. After multiple iterations of the first coordinate point and multiple adjustments of the first length coefficient, equally spaced second coordinate points can be obtained by iterating the first coordinate point for the preset number of iterations.
[0081] In one embodiment, the first length coefficient may be adjusted by binary division to obtain the second length coefficient so that the intervals of the coordinate points obtained by the preset function are equal. The binary division method can better obtain the required second length coefficient by continuously dividing the search interval into two and gradually narrowing the search range until the target element is found or it is determined that the element does not exist in the array.
[0082] A lane guide line smoothing method of the present application includes obtaining lane guide line data of a first lane guide line; obtaining a plurality of first coordinate points and a first length coefficient on the first lane guide line according to the lane guide line data; obtaining a plurality of second coordinate points based on the plurality of first coordinate points and the first length coefficient, and connecting the plurality of second coordinate points to obtain a second lane guide line, and being able to perform multiple iterations on the points on the lane guide line to obtain equally spaced coordinate points, and then smoothing the lane guide line, thereby improving the smoothing efficiency and effect of the lane guide line.
[0083] Corresponding to the aforementioned application function implementation method embodiment, the present application also provides a lane guide line smoothing device, an electronic device and corresponding embodiments.
[0084] Figure 3 It is a structural schematic diagram of a lane guide line smoothing device shown in an embodiment of the present application.
[0085] See also Figure 3 , a lane guide line smoothing device 30, comprising:
[0086] The first acquisition module 310 acquires lane guide line data of a first lane guide line.
[0087] Specifically, lane guide line data of the lane line can be obtained on the high-precision map, and the lane that needs to be smoothed is used as the first lane guide line. The first lane guide line can be a tortuous lane line, such as a lane line at a turn.
[0088] The second acquisition module 320 acquires a plurality of first coordinate points and a first length coefficient on the first lane guide line according to the lane guide line data.
[0089] Specifically, on the high-precision map, the first lane guide line can be connected by multiple points. By obtaining the lane guide line data of the first lane guide line, the coordinates of each point on the first lane guide line can be obtained to obtain the first coordinate point, and the first length coefficient can be obtained. The first length coefficient can be the length coefficient in the B-spline algorithm.
[0090] The processing module 330 acquires a plurality of second coordinate points based on the plurality of first coordinate points and the first length coefficient, and connects the plurality of second coordinate points to obtain a second lane guide line.
[0091] Specifically, the first coordinate point and the first length coefficient on the first lane guide line can be input into a B-spline algorithm, which can be a third-order B-spline algorithm, to obtain the calculated second coordinate points, each of which can be equidistant, and the second lane guide line can be obtained by connecting all the second coordinate points.
[0092] In one embodiment, the processing module is further used to obtain the first length coefficient based on the interval between the first coordinate points; and to perform iterative calculation processing on the first coordinate points according to the first length coefficient and a preset function to obtain a second coordinate point.
[0093] In one embodiment, the processing module is also used to obtain a preset curvature and a preset deviation threshold of the first lane guide line; according to the first length coefficient and the preset function, the first coordinate point is iteratively calculated to obtain the first curvature, the first deviation threshold and the first coordinate point after iteration; when the first curvature is greater than the preset curvature and the first deviation threshold is greater than the preset deviation threshold, the first coordinate point after iteration is used as the second coordinate point.
[0094] In one embodiment, the processing module is also used to obtain a second length coefficient if the first curvature is less than the preset curvature and the first deviation threshold is less than the preset deviation threshold; iteratively calculate the iterated first coordinate point according to the second length coefficient and the preset function to obtain a third coordinate point; obtain the second curvature and the second deviation threshold according to the second length coefficient, the preset function, and the third coordinate point; when the second curvature is greater than the preset curvature and the second deviation threshold is greater than the preset deviation threshold, stop iteratively calculating the third coordinate point and use the third coordinate point as the second coordinate point.
[0095] In one embodiment, the processing module is further configured to obtain a preset curvature and a preset deviation threshold of the first lane guide line according to the type of the first lane guide line.
[0096] A lane guide line smoothing device of the present application includes obtaining lane guide line data of a first lane guide line; obtaining a plurality of first coordinate points and a first length coefficient on the first lane guide line according to the lane guide line data; obtaining a plurality of second coordinate points based on the plurality of first coordinate points and the first length coefficient, and connecting the plurality of second coordinate points to obtain a second lane guide line, and being able to perform multiple iterations on the points on the lane guide line to obtain equally spaced coordinate points, and then smoothing the lane guide line, thereby improving the smoothing efficiency and effect of the lane line.
[0097] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated again here.
[0098] See also Figure 5 , Figure 5 It is a schematic diagram of the coordinate points on the lane guide line output after iterative processing using the non-equidistant B-spline algorithm.
[0099] See also Figure 6 , Figure 6 It is a schematic diagram of coordinate points on equally spaced lane guide lines obtained by using the lane guide line smoothing method of the present application.
[0100] Figure 4 It is a schematic diagram of the structure of an electronic device shown in an embodiment of the present application.
[0101] See also Figure 4 , the electronic device 400 includes a memory 410 and a processor 420.
[0102] The processor 420 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0103] The memory 410 may include various types of storage units, such as system memory, read-only memory (ROM), and permanent storage. Among them, ROM can store static data or instructions required by the processor 420 or other modules of the computer. The permanent storage device may be a readable and writable storage device. The permanent storage device may be a non-volatile storage device that does not lose the stored instructions and data even after the computer is powered off. In some embodiments, the permanent storage device uses a large-capacity storage device (such as a magnetic or optical disk, flash memory) as a permanent storage device. In some other embodiments, the permanent storage device may be a removable storage device (such as a floppy disk, optical drive). The system memory may be a readable and writable storage device or a volatile readable and writable storage device, such as a dynamic random access memory. The system memory may store some or all instructions and data required by the processor at run time. In addition, the memory 410 may include any combination of computer-readable storage media, including various types of semiconductor storage chips (such as DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and disks and / or optical disks may also be used. In some embodiments, the memory 410 may include a readable and / or writable removable storage device, such as a laser disc (CD), a read-only digital versatile disc (such as a DVD-ROM, a double-layer DVD-ROM), a read-only Blu-ray disc, an ultra-density optical disc, a flash memory card (such as an SD card, a mini SD card, a Micro-SD card, etc.), a magnetic floppy disk, etc. The computer-readable storage medium does not include carrier waves and transient electronic signals transmitted wirelessly or wired.
[0104] The memory 410 stores executable codes, and when the executable codes are processed by the processor 420 , the processor 420 can execute part or all of the methods described above.
[0105] In addition, the method according to the present application may also be implemented as a computer program or a computer program product, which includes computer program code instructions for executing some or all of the steps in the above method of the present application.
[0106] Alternatively, the present application can also be implemented as a computer-readable storage medium (or non-transitory machine-readable storage medium or machine-readable storage medium) on which executable code (or computer program or computer instruction code) is stored. When the executable code (or computer program or computer instruction code) is executed by a processor of an electronic device (or server, etc.), the processor executes part or all of the steps of the above-mentioned method according to the present application.
[0107] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A lane guide line smoothing method, It is characterized in that include: Acquire lane guide line data of a first lane guide line; According to the lane guide line data, acquiring a plurality of first coordinate points and a first length coefficient on a first lane guide line; Based on the plurality of first coordinate points and the first length coefficient, a plurality of second coordinate points are acquired, and the plurality of second coordinate points are connected to obtain a second lane guide line.
2. The method according to claim 1, It is characterized in that The acquiring a plurality of second coordinate points based on the plurality of first coordinate points and the first length coefficient comprises: Based on the intervals between the plurality of first coordinate points, acquiring the first length coefficient; According to the first length coefficient and a preset function, the plurality of first coordinate points are iteratively calculated to obtain the plurality of second coordinate points.
3. The method according to claim 2, It is characterized in that According to the first length coefficient and the preset function, iterative calculation processing is performed on the multiple first coordinate points to obtain multiple second coordinate points, including: Obtaining a preset curvature and a preset deviation threshold of the first lane guide line; According to the first length coefficient and the preset function, iteratively calculate the multiple first coordinate points to obtain a first curvature, a first deviation threshold, and multiple first coordinate points after iteration; When the first curvature is greater than the preset curvature and the first deviation threshold is greater than the preset deviation threshold, the plurality of first coordinate points after iteration are used as the second coordinate points.
4. The method according to claim 3, It is characterized in that include: If the first curvature is smaller than the preset curvature and the first deviation threshold is smaller than the preset deviation threshold, obtaining a second length coefficient; Iteratively calculating the iterated first coordinate point according to the second length coefficient and the preset function to obtain a third coordinate point; Obtaining a second curvature and a second deviation threshold according to the second length coefficient, the preset function, and the third coordinate point; When the second curvature is greater than the preset curvature and the second deviation threshold is greater than the preset deviation threshold, the iterative calculation of the third coordinate point is stopped, and the third coordinate point is used as the second coordinate point.
5. The method according to claim 3, It is characterized in that Acquiring a preset curvature and a preset deviation threshold of the first lane guide line includes: According to the type of the first lane guide line, a preset curvature and a preset deviation threshold of the first lane guide line are acquired.
6. The method according to claim 4, It is characterized in that If the first curvature is smaller than the preset curvature and the first deviation threshold is smaller than the preset deviation threshold, obtaining the second coordinate point and the second length coefficient includes: The first length coefficient is processed by a dichotomy method to obtain the second length coefficient.
7. A lane guide line smoothing device, It is characterized in that include: A first acquisition module acquires lane guide line data of a first lane guide line; A second acquisition module, acquiring a plurality of first coordinate points and a first length coefficient on a first lane guide line according to the lane guide line data; The processing module acquires a plurality of second coordinate points based on the plurality of first coordinate points and the first length coefficient, and connects the plurality of second coordinate points to obtain a second lane guide line.
8. The device according to claim 7, It is characterized in that include: The processing module further comprises obtaining the first length coefficient based on the intervals between the plurality of first coordinate points; According to the first length coefficient and a preset function, the first coordinate point is iteratively calculated to obtain the plurality of second coordinate points.
9. An electronic device, It is characterized in that include: processor; as well as A memory having executable codes stored thereon, which, when executed by the processor, causes the processor to execute the method according to any one of claims 1 to 6.
10. A computer-readable storage medium, Features: An executable code is stored thereon, and when the executable code is executed by a processor of an electronic device, the processor is caused to execute the method as claimed in any one of claims 1 to 6.
Citation Information
Patent Citations
Lane line generation method and device, computer equipment and storage medium
CN115376087A
Lane line fitting method and device and computer readable storage medium
CN116258793A
High-precision map lane line smoothing processing method and device and electronic equipment
CN116468634A
Transverse path optimization method and device in automatic driving, storage medium and vehicle
CN117873097A
Method and apparatus for trajectory smoothing in autonomous vehicle control
US20230174099A1
