Lane line processing method and device, storage medium and electronic equipment
By reconstructing and polygon matching the lane lines in the road frame sequence, the efficiency of lane line tracking and multi-frame fusion is improved, and the problem of low lane line tracking efficiency in the existing technology is solved.
Patent Information
- Application Number
- CN202410850183.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-09-27
AI Technical Summary
In the existing technology, the tracking efficiency of lane lines in the road frame sequence is low, resulting in low efficiency of multi-frame fusion of lane lines.
Lane line reconstruction is performed by obtaining each road frame in the road frame sequence, converting the lane line curve into a polygon, and matching the polygons of adjacent frames to track the lane line of the target road, improving tracking efficiency.
It improves the efficiency of lane line multi-frame fusion and solves the problem of low lane line tracking efficiency.
Smart Images

Figure CN118710833A
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the technical field of lane line reconstruction, and in particular, to a lane line processing method and device, a storage medium, and an electronic device. Background Art
[0002] Lane lines are one of the key road elements in high-precision maps. In the process of building high-precision maps, the reconstruction quality of lane lines determines the performance of high-precision map applications; the reconstruction of lane lines usually includes three processes: hidden point estimation, single-frame reconstruction, and multi-frame fusion.
[0003] In the multi-frame fusion process of lane lines, it is necessary to track the lane lines of the target road in the road frame sequence to determine a group of target road frames containing the lane lines of the target road, and reconstruct the lane lines of the target road based on the group of target road frames; in the related art, it is impossible to accurately track the lane lines of the target road in the road frame sequence, thereby reducing the multi-frame fusion efficiency of the lane lines.
[0004] It can be seen that the lane line processing method in the related art has a technical problem of low efficiency in multi-frame fusion of lane lines due to low efficiency in tracking the lane lines of the target road in the road frame sequence. Summary of the invention
[0005] Embodiments of the present invention provide a lane line processing method and device, a storage medium and an electronic device to at least solve the technical problem of low efficiency of lane line multi-frame fusion due to low efficiency in tracking the lane lines of the target road in the road frame sequence in the lane line processing method in the related art.
[0006] According to one embodiment of the present invention, a lane line processing method is provided, comprising: obtaining a lane line reconstruction result of each road frame by performing lane line reconstruction on each road frame in a road frame sequence, wherein the lane line reconstruction result of each road frame includes a lane line curve corresponding to each road frame; converting the lane line curve corresponding to each road frame into a polygon corresponding to each road frame according to a first lane line width, wherein the polygon corresponding to each road frame is used to represent the lane line in each road frame; tracking the lane line of a target road by matching the polygons corresponding to adjacent road frames in the road frame sequence, thereby obtaining a lane line tracking result of the target road, wherein the target road is a road corresponding to the road frame sequence.
[0007] According to another embodiment of the present invention, a lane line processing device is provided, comprising: an acquisition unit, configured to acquire a lane line reconstruction result of each road frame by performing lane line reconstruction on each road frame in a road frame sequence, wherein the lane line reconstruction result of each road frame includes a lane line curve corresponding to each road frame; a first conversion unit, configured to convert the lane line curve corresponding to each road frame into a polygon corresponding to each road frame according to a first lane line width, wherein the polygon corresponding to each road frame is used to represent the lane line in each road frame; and a first execution unit, configured to track the lane line of a target road by matching the polygons corresponding to adjacent road frames in the road frame sequence, thereby obtaining a tracking result of the lane line of the target road, wherein the target road is a road corresponding to the road frame sequence.
[0008] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any one of the above method embodiments when run.
[0009] According to another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0010] Through the present invention, a lane line reconstruction result of each road frame is obtained by reconstructing the lane line of each road frame in a road frame sequence, wherein the lane line reconstruction result of each road frame includes a lane line curve corresponding to each road frame; the lane line curve corresponding to each road frame is converted into a polygon corresponding to each road frame according to a first lane line width, wherein the polygon corresponding to each road frame is used to represent the lane line in each road frame; the lane line of the target road is tracked by matching the polygons corresponding to the adjacent road frames in the road frame sequence, thereby obtaining a tracking result of the lane line of the target road, wherein the target road is the lane line corresponding to the road frame sequence. For a road, since the polygon corresponding to each road frame can represent the width of the lane line curve corresponding to the road frame, it will be matched with the polygon corresponding to the adjacent road frame in the road frame sequence. Based on the similarity between the adjacent polygons, it can be judged whether the corresponding lane lines are the same lane lines, thereby improving the tracking efficiency of the lane lines of the target road in the road frame sequence, and improving the efficiency of multi-frame fusion of lane lines. Therefore, the technical problem of low multi-frame fusion efficiency of lane lines caused by low tracking efficiency of lane lines of the target road in the road frame sequence in the lane line processing method in the related art can be solved, thereby achieving the effect of improving the efficiency of multi-frame fusion of lane lines. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 is a schematic diagram of a hardware environment of an optional lane line processing method according to an embodiment of the present invention;
[0012] Figure 2 is a flow chart of an optional lane line processing method according to an embodiment of the present invention;
[0013] Figure 3 is a schematic diagram of an optional lane line processing method according to an embodiment of the present invention;
[0014] Figure 4 is a schematic diagram of another optional lane line processing method according to an embodiment of the present invention;
[0015] Figure 5 is a schematic diagram of another optional lane line processing method according to an embodiment of the present invention;
[0016] Figure 6 is a schematic diagram of another optional lane line processing method according to an embodiment of the present invention;
[0017] Figure 7 is a structural block diagram of an optional lane line processing device according to an embodiment of the present invention;
[0018] Figure 8 It is a structural block diagram of a computer system of an optional electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0019] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in combination with the embodiments.
[0020] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0021] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a mobile terminal of a lane line processing method according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0022] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the lane line processing method in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0023] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0024] Optionally, the lane line processing method in this embodiment can be executed by a mobile terminal. Here, the mobile terminal refers to the entire mobile terminal, including the relevant components in the mobile terminal that need to execute the lane line processing method and the processor 102, etc. The mobile terminal can be a vehicle computer; the text data processing method in this embodiment can also be executed by a cloud server that is connected to the mobile terminal. In some examples of this embodiment, the text data processing method is described by taking the execution of the mobile terminal as an example.
[0025] The lane line processing method in this embodiment can be applied to the scene of reconstructing lane lines. High-precision map is a special form of map applied in the field of unmanned driving. The traditional way of building high-precision map relies on expensive on-board sensors and requires a large number of professional personnel to post-process the data collected by the vehicle on the spot, resulting in high production cost and long update cycle of high-precision map. The update cycle of high-precision map cannot meet the requirements of full-scene autonomous driving. With the development of autonomous driving, the demand for maps shows a trend of being simplified in elements, maintaining relative accuracy in geometry, and being lightweight in size. Such maps are called lightweight semantic maps. Equipment for building lightweight semantic maps includes post-installed ADAS (Advanced Driver Assistance System) equipment, pre-installed L2 (level standard of autonomous driving) and L2++, and even L4 autonomous driving can constitute lightweight semantic map sources. Lane lines are one of the key road elements in high-precision maps, and the quality of their reconstruction determines the performance of high-precision map applications.
[0026] The reconstruction of lane lines usually includes three processes: vanishing point estimation, single-frame reconstruction, and multi-frame fusion. In the multi-frame fusion process of lane lines, it is necessary to track the lane lines of the target road in the road frame sequence to determine a group of target road frames containing the lane lines of the target road, and reconstruct the lane lines of the target road based on the group of target road frames; in the related art, it is impossible to accurately track the lane lines of the target road in the road frame sequence, thereby reducing the efficiency of multi-frame fusion of lane lines.
[0027] In this embodiment, a lane line processing method is provided. Figure 2 is a flow chart of an optional lane line processing method according to an embodiment of the present invention, such as Figure 2 As shown, the process includes the following steps:
[0028] Step S202 , obtaining a lane line reconstruction result of each road frame by performing lane line reconstruction on each road frame in the road frame sequence, wherein the lane line reconstruction result of each road frame includes a lane line curve corresponding to each road frame.
[0029] A road frame sequence refers to a set of road frames that contain an order, where the order may be the time order in which each frame in the road frame sequence is acquired; a road frame sequence may be a set of road frames acquired based on a vehicle's ADAS equipment, body sensors, vehicle-mounted cameras, or vehicle-mounted laser radars.
[0030] Reconstructing lane lines on a road frame sequence can obtain a lane line reconstruction result for each road frame, and the lane line reconstruction result for each road frame includes a lane line curve corresponding to each road frame; the step of reconstructing lane lines on a road frame sequence can include estimating the hidden points of the road frame sequence and reconstructing each road frame in the road frame sequence as a single frame, and the step of reconstructing lane lines on a road frame sequence can also include thinning processing on each road frame in the road frame sequence. Here, the specific steps of lane line reconstruction are not limited.
[0031] It should be noted that each road frame may include multiple lane line curves, that is, the lane line curves corresponding to each road frame may be multiple lane line curves, and each lane line curve is represented by a group of lane line points.
[0032] Step S204: converting the lane line curve corresponding to each road frame into a polygon corresponding to each road frame according to the first lane line width, wherein the polygon corresponding to each road frame is used to represent the lane line in each road frame.
[0033] The first lane line width is a preset width. Here, the lane line curve corresponding to each road frame is converted into a polygon corresponding to each road frame according to the first lane line width. The polygon may be constructed with the lane line curve corresponding to each road frame as the center line, and the width of the polygon is the first lane line width. Exemplarily, when the lane line curve contains 2 points and the lane line curve is a straight line, the corresponding polygon is a quadrilateral (rectangle), the length of the quadrilateral is the length of the lane line curve, and the length and width of the quadrilateral are the first lane line width. The lane line curve divides the quadrilateral into two quadrilaterals that are symmetrical up and down. Similarly, when the lane line curve contains multiple points, the lane line curve can be divided into multiple straight lines for conversion, and finally a polygon corresponding to the lane line curve is obtained.
[0034] It should be noted that each road frame may include a plurality of lane line curves. Correspondingly, the number of polygons corresponding to each road frame converted from the lane line curves corresponding to each road frame is also a plurality.
[0035] Step S206 , tracking the lane line of the target road by matching polygons corresponding to adjacent road frames in the road frame sequence, thereby obtaining a tracking result of the lane line of the target road, wherein the target road is a road corresponding to the road frame sequence.
[0036] The target road is a road corresponding to the road frame sequence. The target road may include multiple lane lines. Tracking the lane lines of the target road may be tracking the target lane lines in the target road to obtain tracking results of the target lane lines of the target road. Therefore, by matching polygons corresponding to adjacent road frames in the road frame sequence, the deformations corresponding to the target lane lines in adjacent road frames should also be matched to track the target lane lines of the target road.
[0037] In this embodiment, the lane line of the target road is tracked by performing similarity matching on two polygons corresponding to adjacent road frames. When the similarity of the two polygons exceeds a set threshold, it can be determined that they represent the same lane line, indicating that it is being tracked. Otherwise, they represent different lane lines, indicating that it is not being tracked.
[0038] Optionally, the tracking process in this embodiment can be performed sequentially starting from the initial frame of the road frame sequence. For example, the polygons corresponding to the first frame and the second frame of the road frame sequence are matched. If they are tracked, the polygons corresponding to the second frame and the third frame of the road frame sequence are matched. If they are tracked, ... (all tracked), the polygons corresponding to the 100th frame and the 101st frame of the road frame sequence are matched. If they are not tracked, the tracking is stopped. The lane line curves corresponding to the 1st frame to the 100th frame can represent the tracked lane lines and serve as input for the subsequent step of extracting lane lines.
[0039] Through the above steps, the lane line reconstruction of each road frame in the road frame sequence is performed to obtain the lane line reconstruction result of each road frame, wherein the lane line reconstruction result of each road frame includes the lane line curve corresponding to each road frame; the lane line curve corresponding to each road frame is converted into a polygon corresponding to each road frame according to the first lane line width, wherein the polygon corresponding to each road frame is used to represent the lane line in each road frame; the lane line of the target road is tracked by matching the polygons corresponding to the adjacent road frames in the road frame sequence, and the tracking result of the lane line of the target road is obtained, wherein the target road is the road corresponding to the road frame sequence, and the lane line processing method in the related art is solved. The technical problem of low efficiency of multi-frame fusion of lane lines due to low tracking efficiency of the lane lines of the target road in the road frame sequence is caused, and the multi-frame fusion efficiency of lane lines is improved.
[0040] The execution entity of the above steps may be a mobile terminal, a cloud server, etc., but is not limited thereto.
[0041] As an optional solution, converting the lane line curve corresponding to each road frame into a polygon corresponding to each road frame according to the first lane line width includes:
[0042] S11, performing the following processing operations on each road frame as a current road frame to obtain a polygon corresponding to each road frame, wherein the lane line curve corresponding to the current road frame is the current lane line curve:
[0043] Based on the positional relationship between lane line points on the current lane line curve, the lane line points on the current lane line curve are thinned out to obtain a thinned current lane line curve;
[0044] A polygon is constructed with a line connecting adjacent lane line points on the thinned current lane line curve as a center line and a first lane line width as a width to obtain a polygon corresponding to the current road frame.
[0045] In this embodiment, the thinning processing method may be to thin out the current lane line curve by sampling at equal intervals, for example, by taking lane line points in the current lane line curve at equal intervals as the thinned current lane line curve; the thinning processing method may also be maximum distance sampling, for example, selecting the lane line point in the current lane line curve with the largest distance from other lane line points for processing, so as to reduce outliers and noise in the current lane line curve; here, the thinning processing method is not limited.
[0046] A polygon is constructed by taking the line connecting the adjacent lane line points on the thinned current lane line curve as the center line and taking the width of the first lane line as the width to obtain a polygon corresponding to the current road frame; Figure 3 is a schematic diagram of an optional lane line processing method according to an embodiment of the present invention. Figure 3 Take the above steps as an example to illustrate Figure 3 As shown, the thinned current lane line curve is o1-o2-o3, polygon A1-A3-A5-A6-A4-A2 is the constructed polygon corresponding to the current road frame, the distance between the straight line A1-A3 and the straight line A2-A4 is the first lane line width, and o1-o2 is the center line of the quadrilateral A1-A3-A4-A2; similarly, for the case where there are more lane line points in the thinned front lane line curve, the polygon corresponding to the current road frame can also be obtained by the above method.
[0047] The following is an example to illustrate the polygon construction process.
[0048] See also Figure 3 , the thinned current lane line curve is o1-o2-o3, and the polygon A1-A3-A5-A6-A4-A2 is the constructed polygon corresponding to the current road frame. The calculation process is shown below by taking the quadrilateral A1-A3-A4-A2 generated based on o1-o2 as an example. The coordinates of o1 are (x1, y1), and the coordinates of o2 are (x2, y2):
[0049] Step 1: Calculate the length h of the line segment o1-o2 through o1(x1, y1) and o2(x2, y2):
[0050] h=sqrt(pow(x2-x1,2)+pow(y2-y1,2)) / 2
[0051] width = const_set_value / / set length value;
[0052] Wherein, width indicates the width of the first lane line.
[0053] Step 2: Calculate the angle of o1-o2: theta = atan((y2-y1) / (x2-x1))
[0054] Calculate the rotation matrix: Rotation_matrix = [cos(theta), -sin(theta); sin(theta), cos(theta)]
[0055] Step 3: Take the center point: center_point = ((x2-x1) / 2+x1, (y2-y1) / 2+y1)
[0056] Step 4: Take A1_origin(-width / 2,-h / 2), A2_origin(width / 2,-h / 2),
[0057] A3_origin(-width / 2,h / 2),A4_origin(width / 2,h / 2)
[0058] Step 5: Calculate the coordinates of A1, A2, A3, and A4: Ax = rotation_matrix*Ax_origin+center_point, where x is 1, 2, 3, and 4 respectively.
[0059] Through the above steps, the coordinates of A1, A2, A3, and A4 can be calculated based on the coordinates of o1-o2.
[0060] Through the embodiments provided in the present application, by thinning out the lane line points on the current lane line curve, the amount of data can be effectively reduced, the computational complexity can be reduced, and the efficiency of data processing and storage can be improved.
[0061] As an optional solution, based on the positional relationship between lane line points on the current lane line curve, the lane line points on the current lane line curve are thinned out to obtain a thinned current lane line curve, including:
[0062] S21, adding the current lane line curve as a curve to be thinned out to a queue of curves to be thinned out, and sequentially extracting a curve to be thinned out from the queue of curves to be thinned out as the current curve to be thinned out to perform the following processing operations until the queue of curves to be thinned out is empty:
[0063] Calculate the distances from the lane line points in the current thinning curve to the current reference straight line, where the current reference straight line is the straight line where the first lane line point on the current thinning curve and the last lane line point on the current thinning curve are located;
[0064] If there is a lane line point in the current curve to be thinned whose distance to the current reference line is greater than or equal to the preset distance threshold, the lane line point in the current curve to be thinned whose distance to the current reference line is the largest is used as the segmentation point to segment the current curve to be thinned, and the two curve segments obtained by segmentation are added as the curves to be thinned to the queue of curves to be thinned;
[0065] When the distances from the lane line points in the current curve to be thinned to the current reference straight line are all less than a preset distance threshold, the other lane line points on the current curve to be thinned except the first lane line point of the current curve to be thinned and the last lane line point of the current curve to be thinned are removed to obtain the thinned current lane line curve.
[0066] For example, Figure 4 is a schematic diagram of another optional lane line processing method according to an embodiment of the present invention, and the following is combined with Figure 4 The steps are explained below. Suppose the current thinning curve (corresponding to Figure 4 The first lane line point on the curve to be thinned out is A, and the last lane line point on the current curve to be thinned out is B. The straight line AB obtained by connecting A and B is the current reference straight line. The distance from the lane line point in the current curve to be thinned out to the straight line AB is calculated respectively, that is, a perpendicular line is made from the lane line point to the straight line AB, and the distance between the lane line point and the foot of the perpendicular is the distance from the lane line point to the straight line AB.
[0067] Among the lane line points in the current thinning curve, there are points whose distance to the straight line AB is greater than or equal to (or greater than) the preset distance threshold (corresponding to Figure 4In the case of a lane line point with the maximum distance D in the current curve to be thinned, the lane line point C with the largest distance to the straight line AB in the current curve to be thinned is taken as the segmentation point, and the current curve to be thinned is segmented to obtain two segmented curves, namely curve AC and curve CB, and the segmented curves AC and curve CB are added as the curves to be thinned to the queue of curves to be thinned, and the above thinning steps are re-executed for curves AC and curve CB. If the distances from the lane line points in curve AC to the straight line AC are all less than the preset distance threshold, and the distances from the lane line points in curve CB to the straight line CB are all less than the preset distance threshold, then the broken line ACB is the current lane line curve to be thinned.
[0068] When the distances from the lane line points in the current curve to be thinned to the straight line AB are all less than the preset distance threshold, the lane line points other than points A and B on the current curve to be thinned are removed, and the straight line AB is the thinned current lane line curve.
[0069] Through the embodiments provided in the present application, the amount of data can be effectively reduced, the computational complexity can be reduced, and the core data of the curve to be thinned can be retained, thereby improving the efficiency of data processing and storage.
[0070] As an optional solution, after converting the lane line curve corresponding to each road frame into a polygon corresponding to each road frame according to the first lane line width, the method further includes:
[0071] S31, taking the polygons corresponding to each road frame as the current polygons, respectively, and performing the following vertex sorting operation to obtain the vertex sorting result of the polygons corresponding to each road frame:
[0072] Determine the angles between the lines connecting each vertex of the current polygon and the center point of the current polygon and the preset reference line to obtain a reference angle corresponding to each vertex of the current polygon;
[0073] Sort the vertices of the current polygon in order from small to large or from large to small according to the corresponding reference angles to obtain the vertex sorting result of the current polygon;
[0074] The matching of polygons corresponding to adjacent road frames in the road frame sequence is performed based on the vertex sorting result of the polygons corresponding to adjacent road frames in the road frame sequence.
[0075] It should be noted that the center point of the current polygon is the average value of the coordinates of each vertex of the current polygon.
[0076] For example, see Figure 3 , the following description is made by taking the polygon being a quadrilateral A1-A3-A4-A2 as an example.
[0077] It should be noted that, here, the vertices of the polygon are all located in the same world coordinate system. Suppose that the world coordinate system includes the x-axis, calculate the average value of the coordinates of A1, A2, A3, and A4 to obtain the center point o of the quadrilateral A1-A3-A4-A2, and suppose that the preset reference line is the x-axis of the world coordinate system, then the angles between the lines connecting A1, A2, A3, and A4 and o and the x-axis are the reference angles corresponding to A1, A2, A3, and A4 respectively. Here, the angle between the line and the x-axis can be an angle in which the line is rotated clockwise by an angle corresponding to the angle with the center point o as the center, and then the line can be parallel to the x-axis and oA is in the same direction as the positive direction of the x-axis; it can also be an angle in which the line is rotated counterclockwise by an angle corresponding to the angle and then the line can be parallel to the x-axis and oA is in the same direction as the positive direction of the x-axis.
[0078] Sort the vertices of the current polygon according to the corresponding reference angles from small to large or from large to small to obtain the vertex sorting result of the current polygon. For example, assuming that the reference line is the x-axis of the world coordinate system, the angle between the connecting line and the x-axis can be an angle at which the connecting line is rotated clockwise with the center point o as the center to a corresponding angle so that it can be parallel to the x-axis and oA is in the same direction as the positive direction of the x-axis. Sort the vertices of the current polygon according to the corresponding reference angles from large to small, then the vertex sorting results of the four points A1, A2, A3, A4 are A2, A1, A3, A4.
[0079] Matching polygons corresponding to adjacent road frames in the road frame sequence is performed based on vertex sorting results of polygons corresponding to adjacent road frames in the road frame sequence. For example, the shape of the polygon can be outlined and determined based on the vertex sorting results of the polygon, and matching is performed based on the shapes of two polygons corresponding to adjacent road frames.
[0080] Through the embodiments provided in the present application, by sorting the vertices of the polygons, the vertex data of the polygons can be adapted to the subsequent matching process in the lane line processing method, thereby improving the processing efficiency of the lane line processing method.
[0081] As an optional solution, the lane line of the target road is tracked by matching the polygons corresponding to the adjacent road frames in the road frame sequence, and the tracking result of the lane line of the target road is obtained, including:
[0082] S41, using adjacent road frames in the road frame sequence as current adjacent road frames in sequence to perform the following lane line tracking operations to obtain a lane line tracking result of the target road, wherein the previous road frame in the current adjacent road frame is a first current road frame, the next road frame is a second current road frame, and the polygons corresponding to the first current road frame include a first polygon corresponding to the first lane line of the target road:
[0083] calculating an intersection-and-union ratio between a polygon corresponding to a second current road frame and the first polygon;
[0084] If there is a second polygon whose intersection-and-annex ratio with the first polygon is greater than or equal to a preset intersection-and-annex ratio threshold value among the polygons corresponding to the second current road frame, it is determined that the first lane line is tracked successfully, and the second polygon is determined as the polygon corresponding to the first lane line;
[0085] If there is no polygon in the polygons corresponding to the second current road frame whose intersection-and-annex ratio with the first polygon is greater than or equal to a preset intersection-and-annex ratio threshold, it is determined that the tracking of the first lane line has failed.
[0086] In this embodiment, the calculated intersection-and-union ratio between polygons may be the ratio of the area of the intersection to the area of the union between the two polygons. The intersection-and-union ratio between polygons may be used to compare the similarity or overlap between the two polygons.
[0087] The target road may include multiple lane lines, so the second current road frame may include multiple polygons corresponding to the multiple lane lines in the target road. By calculating the intersection ratio between the polygon corresponding to the second current road frame and the first polygon, it can be determined whether the second current road frame has a polygon with a high degree of similarity to the first polygon.
[0088] When there is a second polygon whose intersection-and-annexation ratio with the first polygon is greater than or equal to a preset intersection-and-annexation ratio threshold value among the polygons corresponding to the second current road frame, it means that there is a second polygon with a high degree of similarity to the first polygon among the polygons corresponding to the second current road frame, that is, it can be considered that the lane line corresponding to the second polygon in the second current road frame is the same lane line as the first lane line. At this time, it can be considered that the tracking of the first lane line is successful, and the second polygon is determined as the polygon corresponding to the first lane line.
[0089] If there is no polygon whose intersection-and-annex ratio with the first polygon is greater than or equal to the preset intersection-and-annex ratio threshold among the polygons corresponding to the second current road frame, it means that there is no second polygon with a high degree of similarity to the first polygon among the polygons corresponding to the second current road frame. In this case, it can be considered that the tracking of the first lane line has failed.
[0090] Through the embodiments provided in the present application, by calculating the intersection-and-joint ratio between polygons, it is possible to accurately determine whether the lane line is tracked, thereby improving the efficiency of lane line tracking.
[0091] As an optional solution, after tracking the lane line of the target road by matching the polygons corresponding to the adjacent road frames in the road frame sequence, the method further includes:
[0092] S51, when the second lane line of the target road is tracked, a principal component analysis is performed on a lane line point set corresponding to the second lane line to obtain a main direction of the lane line point set corresponding to the second lane line;
[0093] S52, segmenting the lane line point set corresponding to the second lane line along the main direction of the lane line point set corresponding to the second lane line to obtain a group of segmentation point sets;
[0094] S53, performing a second-order function fitting on each segment point set in a group of segment point sets to obtain a fitting function corresponding to each segment point set;
[0095] S54, extracting a target lane line point from each segment point set according to a fitting function corresponding to each segment point set and the center of each segment point set, to obtain a fused lane line point curve corresponding to the second lane line, wherein the fused lane line curve includes the target lane line point extracted from each segment point set;
[0096] S55, converting the fused lane line curve into a polygon corresponding to the second lane line according to the width of the second lane line, and obtaining a multi-frame fusion result of the second lane line.
[0097] See also Figure 5 , Figure 5 is a schematic diagram of another optional lane line processing method according to an embodiment of the present invention, Figure 5 The steps can represent the complete process of the lane line processing method of this application:
[0098] Step 1, single-frame lane line result, corresponds to the acquisition in the above embodiment of performing lane line reconstruction on each road frame in the road frame sequence to obtain the lane line reconstruction result of each road frame.
[0099] Step 2, lane line sparse control point extraction, corresponds to the acquisition in the above embodiment of performing lane line reconstruction on each road frame in the road frame sequence to obtain the lane line reconstruction result of each road frame.
[0100] Step 3, polygonal area generation, corresponds to the above embodiment of taking each road frame as the current road frame and performing the following processing operations to obtain a polygon corresponding to each road frame.
[0101] Step 4, sorting the polygon corner points, corresponds to sorting the polygon vertices in the above embodiment.
[0102] Step 5, polygon tracking, corresponds to the above embodiment of using adjacent road frames in the road frame sequence as current adjacent road frames to perform the following lane line tracking operation to obtain the tracking result of the lane line of the target road.
[0103] Step 6, tracking determination, when it is determined to be yes, it corresponds to the successful tracking of the first lane line in the above embodiment, and the polygon update corresponds to determining the second polygon as the polygon corresponding to the first lane line in the above embodiment.
[0104] Step 7, tracking determination, when the determination is no, a lane line multi-segment MLS (Moving Least Squares) algorithm fusion is performed, corresponding to steps S51-S55 in this embodiment.
[0105] In the related technology, in the multi-frame fusion process of lane lines, the lane line point set is usually repeatedly fitted and updated based on the third-order coefficient representation of the lane lines. The third-order coefficient representation will fail in the more complex lane line representation and needs to be truncated when the lane lines are fused to a certain length. At the same time, the third-order coefficient representation will cause redundant representation of the lane lines in the simpler straight lane line representation, reducing the multi-frame fusion efficiency of the lane lines.
[0106] In order to at least solve some of the above problems, in this embodiment, when the second lane line of the target road is tracked, principal component analysis is performed on the lane line point set corresponding to the second lane line to obtain the main direction of the lane line point set corresponding to the second lane line; here, principal component analysis refers to PCA (Principal Component Analysis) decomposition technology. PCA is a data dimensionality reduction technology. PCA can eliminate noise and redundant information in the data while retaining the most important information in the data. Through PCA decomposition, the main direction of the lane line point set corresponding to the second lane line can be obtained, that is, the extension direction of the second lane line collected by the vehicle over time.
[0107] The lane line point set corresponding to the second lane line is segmented along the main direction of the lane line point set corresponding to the second lane line to obtain a group of segmentation point sets; see Figure 6 , Figure 6 is a schematic diagram of another optional lane line processing method according to an embodiment of the present invention, wherein the second lane line being tracked includes a set of lane line points corresponding to the second lane line in a set of continuous lane frames, and the lane line point set is projected onto Figure 6 The same coordinate system as shown in Figure 6 As shown, the point set is segmented.
[0108] A second-order function is fitted to each segment point set in a group of segment point sets to obtain a fitting function corresponding to each segment point set; here, the specific function for fitting the second-order function to the segment point set is not limited.
[0109] According to the fitting function corresponding to each segment point set and the center of each segment point set, the target lane line point is extracted from each segment point set to obtain a fused lane line point curve corresponding to the second lane line, wherein the fused lane line curve includes the target lane line point extracted from each segment point set; here, the center of each segment point set is obtained by calculating the average value of each segment point set.
[0110] The fused lane line curve is converted into a polygon corresponding to the second lane line according to the width of the second lane line, and a multi-frame fusion result of the second lane line is obtained, that is, the second lane line is obtained; it should be noted that, in this embodiment, the fused lane line curve is converted into a polygon corresponding to the second lane line according to the width of the second lane line, which can be obtained by taking the fused lane line curve as the center line and converting based on the width of the second lane line.
[0111] Through the embodiments provided in the present application, multi-segment fusion of the tracked lane lines is performed based on the MLS algorithm, and a multi-frame fusion result can be obtained accurately and efficiently, thereby improving the multi-frame fusion efficiency of the lane lines.
[0112] As an optional solution, before converting the fused lane line curve into a polygon corresponding to the second lane line according to the width of the second lane line, the method further includes:
[0113] S61, performing thinning processing on the target lane line points on the fused lane line curve to obtain a thinned fused lane line curve.
[0114] In this embodiment, the target lane line points on the fused lane line curve are thinned out by using the thinning processing method of the above embodiment. For example, the target lane line points on the fused lane line curve can be thinned out based on the Douglas-Peucker algorithm. Here, the specific method of the thinning processing is not limited.
[0115] Through the embodiments provided in the present application, by thinning out the target lane line points on the fused lane line curve, the amount of data can be further reduced, the data processing speed can be accelerated, and the efficiency of the lane line processing method can be improved.
[0116] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention 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, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of various embodiments of the present invention.
[0117] In this embodiment, a lane line processing device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and will not be repeated here. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0118] Figure 7 is a structural block diagram of an optional lane line processing device according to an embodiment of the present invention, such as Figure 7 As shown, the device comprises:
[0119] An acquisition unit 702 is used to acquire a lane line reconstruction result of each road frame by performing lane line reconstruction on each road frame in the road frame sequence, wherein the lane line reconstruction result of each road frame includes a lane line curve corresponding to each road frame;
[0120] A first conversion unit 704 is used to convert the lane line curve corresponding to each road frame into a polygon corresponding to each road frame according to the first lane line width, wherein the polygon corresponding to each road frame is used to represent the lane line in each road frame;
[0121] The first execution unit 706 is used to track the lane line of the target road by matching polygons corresponding to adjacent road frames in the road frame sequence to obtain a tracking result of the lane line of the target road, wherein the target road is a road corresponding to the road frame sequence.
[0122] It should be noted that the acquisition unit 702 in this embodiment can be used to execute the above step S202, the first conversion unit 704 in this embodiment can be used to execute the above step S204, and the first execution unit 706 in this embodiment can be used to execute the above step S206.
[0123] Through the embodiments provided by the present application, lane line reconstruction is performed on each road frame in a road frame sequence to obtain a lane line reconstruction result for each road frame, wherein the lane line reconstruction result for each road frame includes a lane line curve corresponding to each road frame; the lane line curve corresponding to each road frame is converted into a polygon corresponding to each road frame according to a first lane line width, wherein the polygon corresponding to each road frame is used to represent the lane line in each road frame; the lane line of the target road is tracked by matching the polygons corresponding to adjacent road frames in the road frame sequence to obtain a tracking result of the lane line of the target road, wherein the target road is a road corresponding to the road frame sequence, thereby solving the technical problem of low efficiency of multi-frame fusion of lane lines caused by low efficiency of tracking lane lines of the target road in the road frame sequence in the lane line processing method in the related art, thereby improving the multi-frame fusion efficiency of lane lines.
[0124] Optionally, the first conversion unit includes:
[0125] The first execution module is used to perform the following processing operations on each road frame as a current road frame to obtain a polygon corresponding to each road frame, wherein the lane line curve corresponding to the current road frame is the current lane line curve:
[0126] Based on the positional relationship between lane line points on the current lane line curve, the lane line points on the current lane line curve are thinned out to obtain a thinned current lane line curve;
[0127] A polygon is constructed with a line connecting adjacent lane line points on the thinned current lane line curve as a center line and a first lane line width as a width to obtain a polygon corresponding to the current road frame.
[0128] Optionally, the first execution module includes:
[0129] The execution submodule is used to add the current lane line curve as a curve to be thinned out to the queue of curves to be thinned out, and sequentially extract the curves to be thinned out from the queue of curves to be thinned out as the current curves to be thinned out to perform the following processing operations until the queue of curves to be thinned out is empty:
[0130] Calculate the distances from the lane line points in the current thinning curve to the current reference straight line, where the current reference straight line is the straight line where the first lane line point on the current thinning curve and the last lane line point on the current thinning curve are located;
[0131] If there is a lane line point in the current curve to be thinned whose distance to the current reference line is greater than or equal to the preset distance threshold, the lane line point in the current curve to be thinned whose distance to the current reference line is the largest is used as the segmentation point to segment the current curve to be thinned, and the two curve segments obtained by segmentation are added as the curves to be thinned to the queue of curves to be thinned;
[0132] When the distances from the lane line points in the current curve to be thinned to the current reference straight line are all less than a preset distance threshold, the other lane line points on the current curve to be thinned except the first lane line point of the current curve to be thinned and the last lane line point of the current curve to be thinned are removed to obtain the thinned current lane line curve.
[0133] Optionally, the device further comprises:
[0134] The second execution unit is used to convert the lane line curve corresponding to each road frame into a polygon corresponding to each road frame according to the first lane line width, and then use the polygon corresponding to each road frame as the current polygon to perform the following vertex sorting operation to obtain the vertex sorting result of the polygon corresponding to each road frame:
[0135] Determine the angles between the lines connecting each vertex of the current polygon and the center point of the current polygon and the preset reference line to obtain a reference angle corresponding to each vertex of the current polygon;
[0136] Sort the vertices of the current polygon in order from small to large or from large to small according to the corresponding reference angles to obtain the vertex sorting result of the current polygon;
[0137] The matching of polygons corresponding to adjacent road frames in the road frame sequence is performed based on the vertex sorting result of the polygons corresponding to adjacent road frames in the road frame sequence.
[0138] Optionally, the first execution unit includes:
[0139] The second execution module is used to sequentially use adjacent road frames in the road frame sequence as current adjacent road frames to perform the following lane line tracking operations to obtain a lane line tracking result of the target road, wherein the previous road frame in the current adjacent road frame is a first current road frame, the next road frame is a second current road frame, and the polygons corresponding to the first current road frame include a first polygon corresponding to a first lane line of the target road:
[0140] calculating an intersection-and-union ratio between a polygon corresponding to a second current road frame and the first polygon;
[0141] If there is a second polygon whose intersection-and-annex ratio with the first polygon is greater than or equal to a preset intersection-and-annex ratio threshold value among the polygons corresponding to the second current road frame, it is determined that the first lane line is tracked successfully, and the second polygon is determined as the polygon corresponding to the first lane line;
[0142] If there is no polygon in the polygons corresponding to the second current road frame whose intersection-and-annex ratio with the first polygon is greater than or equal to a preset intersection-and-annex ratio threshold, it is determined that the tracking of the first lane line has failed.
[0143] Optionally, the device further comprises:
[0144] an analysis unit, configured to, after tracking the lane line of the target road by matching polygons corresponding to adjacent road frames in the road frame sequence, perform principal component analysis on a lane line point set corresponding to the second lane line when tracking of a second lane line of the target road is completed, to obtain a main direction of the lane line point set corresponding to the second lane line;
[0145] A third execution unit is used to segment the lane line point set corresponding to the second lane line along the main direction of the lane line point set corresponding to the second lane line to obtain a group of segment point sets;
[0146] A fitting unit is used for fitting a second-order function to each segment point set in a group of segment point sets to obtain a fitting function corresponding to each segment point set;
[0147] an extraction unit, configured to extract a target lane line point from each segment point set according to a fitting function corresponding to each segment point set and a center of each segment point set, so as to obtain a fused lane line point curve corresponding to the second lane line, wherein the fused lane line curve includes the target lane line point extracted from each segment point set;
[0148] The second conversion unit is used to convert the fused lane line curve into a polygon corresponding to the second lane line according to the width of the second lane line, so as to obtain a multi-frame fusion result of the second lane line.
[0149] Optionally, the device further comprises:
[0150] The thinning unit is used to perform thinning processing on the target lane line points on the fused lane line curve before converting the fused lane line curve into a polygon corresponding to the second lane line according to the width of the second lane line to obtain a thinned fused lane line curve.
[0151] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0152] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0153] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0154] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0155] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0156] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0157] According to another aspect of the embodiment of the present application, a computer program product is provided, the computer program product comprising a computer program / instruction, the computer program / instruction comprising a program code for executing the method shown in the flowchart. Figure 8 The computer program can be downloaded and installed from the network through the communication part 809, and / or installed from the removable medium 811. When the computer program is executed by the central processor 801, various functions provided by the embodiments of the present application are executed. The serial numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.
[0158] refer to Figure 8 , Figure 8 It is a structural block diagram of a computer system of an optional electronic device according to an embodiment of the present application.
[0159] Figure 8 The computer system structure block diagram of the electronic device used to implement the embodiment of the present application is schematically shown. Figure 8As shown, the computer system 800 includes a central processing unit 801 (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory 802 (ROM) or the program loaded from the storage part 808 to the random access memory 803 (RAM). Various programs and data required for system operation are also stored in the random access memory 803. The central processing unit 801, the read-only memory 802 and the random access memory 803 are connected to each other through a bus 804. The input / output interface 805 (Input / Output interface, i.e., I / O interface) is also connected to the bus 804.
[0160] The following components are connected to the input / output interface 805: an input section 806 including a keyboard, a mouse, etc.; an output section 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a local area network card, a modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the input / output interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed so that a computer program read therefrom is installed into the storage section 808 as needed.
[0161] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 809, and / or installed from the removable medium 811. When the computer program is executed by the central processor 801, various functions defined in the system of the present application are executed.
[0162] It should be noted that Figure 8 The computer system 800 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0163] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0164] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A lane line processing method, characterized in that: include: Reconstructing lane lines for each road frame in the road frame sequence to obtain a lane line reconstruction result for each road frame, wherein the lane line reconstruction result for each road frame includes a lane line curve corresponding to each road frame; Converting a lane line curve corresponding to each road frame into a polygon corresponding to each road frame according to a first lane line width, wherein the polygon corresponding to each road frame is used to represent a lane line in each road frame; By matching polygons corresponding to adjacent road frames in the road frame sequence, the lane line of the target road is tracked to obtain a tracking result of the lane line of the target road, wherein the target road is a road corresponding to the road frame sequence.
2. The method according to claim 1, characterized in that The converting the lane line curve corresponding to each road frame into a polygon corresponding to each road frame according to the first lane line width includes: The following processing operations are performed on each of the road frames as a current road frame to obtain a polygon corresponding to each of the road frames, wherein the lane line curve corresponding to the current road frame is the current lane line curve: Based on the positional relationship between lane line points on the current lane line curve, thinning out the lane line points on the current lane line curve to obtain a thinned out current lane line curve; A polygon corresponding to the current road frame is constructed by taking a line connecting adjacent lane line points on the thinned current lane line curve as a center line and taking the first lane line width as a width.
3. The method according to claim 2, characterized in that The thinning out of lane line points on the current lane line curve based on the positional relationship between lane line points on the current lane line curve to obtain the thinned out current lane line curve includes: The current lane line curve is added as a curve to be thinned out to a queue of curves to be thinned out, and the curves to be thinned out are sequentially extracted from the queue of curves to be thinned out as the current curves to be thinned out to perform the following processing operations until the queue of curves to be thinned out is empty: Calculate the distances from the lane line points in the current curve to be thinned out to the current reference straight line, respectively, wherein the current reference straight line is the straight line where the first lane line point on the current curve to be thinned out and the last lane line point on the current curve to be thinned out are located; When there is a lane line point in the current curve to be thinned out whose distance to the current reference straight line is greater than or equal to a preset distance threshold, the lane line point in the current curve to be thinned out whose distance to the current reference straight line is the largest is used as a segmentation point to segment the current curve to be thinned out, and two curve segments obtained by segmentation are added as curves to be thinned out to the queue of curves to be thinned out; When the distances from the lane line points in the current curve to be thinned out to the current reference straight line are all less than a preset distance threshold, the other lane line points on the current curve to be thinned out except the first lane line point of the current curve to be thinned out and the last lane line point of the current curve to be thinned out are removed to obtain the thinned current lane line curve.
4. The method according to claim 1, characterized in that: After converting the lane line curve corresponding to each road frame into a polygon corresponding to each road frame according to the first lane line width, the method further includes: The polygons corresponding to each road frame are respectively used as current polygons to perform the following vertex sorting operation to obtain the vertex sorting result of the polygons corresponding to each road frame: Respectively determine the angles between the lines connecting each vertex of the current polygon and the center point of the current polygon and a preset reference line to obtain a reference angle corresponding to each vertex of the current polygon; Sort the vertices of the current polygon in order from small to large or from large to small according to the corresponding reference angles to obtain a vertex sorting result of the current polygon; The matching of polygons corresponding to adjacent road frames in the road frame sequence is performed based on vertex sorting results of polygons corresponding to adjacent road frames in the road frame sequence.
5. The method according to claim 1, characterized in that The tracking of the lane line of the target road by matching polygons corresponding to adjacent road frames in the road frame sequence to obtain a tracking result of the lane line of the target road includes: The adjacent road frames in the road frame sequence are sequentially used as current adjacent road frames to perform the following lane line tracking operation to obtain a lane line tracking result of the target road, wherein the previous road frame in the current adjacent road frame is a first current road frame, the next road frame is a second current road frame, and the polygons corresponding to the first current road frame include a first polygon corresponding to the first lane line of the target road: calculating an intersection-and-union ratio between a polygon corresponding to the second current road frame and the first polygon; If there is a second polygon whose intersection-and-annex ratio with the first polygon is greater than or equal to a preset intersection-and-annex ratio threshold among the polygons corresponding to the second current road frame, it is determined that the first lane line is tracked successfully, and the second polygon is determined as the polygon corresponding to the first lane line; If there is no polygon whose intersection-and-annex ratio with the first polygon is greater than or equal to a preset intersection-and-annex ratio threshold among the polygons corresponding to the second current road frame, it is determined that the tracking of the first lane line has failed.
6. The method according to any one of claims 1 to 5, characterized in that After tracking the lane line of the target road by matching the polygons corresponding to the adjacent road frames in the road frame sequence, the method further includes: When the tracking of the second lane line of the target road is completed, performing principal component analysis on the lane line point set corresponding to the second lane line to obtain the main direction of the lane line point set corresponding to the second lane line; Segmenting the lane line point set corresponding to the second lane line along the main direction of the lane line point set corresponding to the second lane line to obtain a group of segmentation point sets; Performing second-order function fitting on each segment point set in the group of segment point sets to obtain a fitting function corresponding to each segment point set; Extracting a target lane line point from each segment point set according to a fitting function corresponding to each segment point set and a center of each segment point set, to obtain a fused lane line point curve corresponding to the second lane line, wherein the fused lane line curve includes the target lane line point extracted from each segment point set; The fused lane line curve is converted into a polygon corresponding to the second lane line according to the width of the second lane line to obtain a multi-frame fusion result of the second lane line.
7. The method according to claim 6, characterized in that Before converting the fused lane line curve into a polygon corresponding to the second lane line according to the second lane line width, the method further includes: The target lane line points on the fused lane line curve are thinned to obtain the thinned fused lane line curve.
8. A lane line processing device, characterized in that: include: An acquisition unit, configured to acquire a lane line reconstruction result of each road frame by performing lane line reconstruction on each road frame in the road frame sequence, wherein the lane line reconstruction result of each road frame includes a lane line curve corresponding to each road frame; A first conversion unit, configured to convert a lane line curve corresponding to each road frame into a polygon corresponding to each road frame according to a first lane line width, wherein the polygon corresponding to each road frame is used to represent a lane line in each road frame; The first execution unit is used to track the lane line of the target road by matching polygons corresponding to adjacent road frames in the road frame sequence to obtain a tracking result of the lane line of the target road, wherein the target road is a road corresponding to the road frame sequence.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 7 when executed by a processor.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Lane line grouping method and device, electronic equipment and computer readable storage medium
CN119741320A
