Lane line mirror compensation method and system based on obstacle pressure line area ratio

By constructing the overlapping area between the obstacle's rotating rectangle and the lane line, calculating the ratio of the area of ​​the obstacle crossing the line, and performing dynamic mirror compensation, the problems of lane line parameter jumps and shortened visibility distance caused by obstacle crossing the line are solved, and the continuity and stability of lane line output are achieved.

CN123182178APending Publication Date: 2026-11-27DONGFENG COMML VEHICLE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202611537106.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-30
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies struggle to quantify the degree of overlap between obstacles and lane lines, leading to abrupt changes in lane line parameters and a shortened visibility distance in scenarios where obstacles cross the lane lines, thus affecting the continuity and stability of lane line output.

Method used

By acquiring the geometric parameters of the obstacle, the overlapping area of ​​the obstacle's rotating rectangle and the lane line is constructed, the ratio of the area of ​​the line-crossing is calculated, and dynamic mirror compensation is performed by combining the single-sided line-crossing state and the quality of the lane line. Within a preset time window, the lane line on the crossed side is reconstructed using the uncrossed lane line as the mirror reference.

Benefits of technology

It achieves continuity and stability of lane line parameters in scenarios where obstacles cross the line and obstruct the lane line, reduces the probability of false triggering of mirror compensation, and ensures the smoothness and reliability of lane line output.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123182178A_ABST
    Figure CN123182178A_ABST
Patent Text Reader

Abstract

The application provides a lane line dynamic mirror image compensation method and system based on an obstacle line pressing area ratio. Left and right lane line parameters and obstacle geometric parameters are obtained, an obstacle rotating rectangle is constructed, lane line curves are approximated as line segments within the obstacle range, a split polygon is formed by the intersection of the line segments and the rotating rectangle, and the line pressing area ratio is calculated. According to the area ratio, one-side line pressing is identified and the line pressing starting time and the lane width before line pressing are saved. After lane line quality, visible distance difference and time window gating, the curve term of the lane line on the non-pressed side is used to reconstruct the abnormal lane line on the pressed side, and the lane width before line pressing is used to determine the constant term of the abnormal side. The application can quantify the degree of obstacle line pressing, and keep the lane line output continuous and stable when the shielding causes one-side lane line shortening or parameter abnormality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of intelligent driving, automotive electronics and autonomous driving perception post-processing technology, and in particular to a lane line mirror compensation method and system based on the ratio of obstacle-overlapping area. Background Technology

[0002] Autonomous vehicles typically use forward-facing cameras to capture road images and output the left and right lane lines of their current lane using lane line detection algorithms. Lane lines can be represented using a cubic polynomial, with parameters including a constant term C0, a first-order term C1, a second-order term C2, a third-order term C3, and the line-of-sight distance. The lateral control module determines the vehicle's position relative to the lane center and the road orientation based on these parameters. Therefore, the continuity and stability of the lane line detection results directly affect the smoothness and reliability of the vehicle's lateral control.

[0003] In scenarios where adjacent or preceding vehicles are driving over the lane lines, the vehicle body may partially obscure the lane lines. Furthermore, vehicle outlines, shadows, and textures can interfere with image segmentation or feature extraction, causing anomalies such as a sudden shortening of the visible distance, abrupt changes in curve parameters, or temporary loss of visibility on the obscured side of the lane, while the lane lines on the other side may remain relatively intact. If abnormal lane line parameters are directly provided to the lateral control module, it can easily lead to sudden changes in lane width, lane center shift, or discontinuity in the control target.

[0004] CN119360319A discloses a method, apparatus, readable storage medium, and electronic device for detecting vehicle lane crossings. It describes a scheme that detects lane lines and vehicles by acquiring road images and determines whether a vehicle has crossed a lane line based on the spatial relationship between the vehicle boundary and the lane line. However, this scheme primarily outputs a qualitative judgment of whether a vehicle has crossed a lane line, without continuously quantifying the degree of overlap between the obstacle and the lane line. When the obstacle has a heading angle or the lane line has a certain curvature, judging solely based on the vehicle's bounding box or relative positional relationship is insufficient to accurately reflect the actual geometric overlap between the obstacle and the lane line. Furthermore, this document does not describe a scheme for dynamically mirroring the abnormal lane line using the unobstructed lane line, based on the degree of crossing and the lane width before crossing, when obstacle crossing causes a reduction in the visible distance of one lane line, a jump in curve parameters, or temporary loss of visibility. Therefore, it is difficult to guarantee the continuity and stability of the output lane line parameters, lane width, and lane center in this scenario.

[0005] Therefore, a lane line mirror compensation method and system based on the obstacle-over-line area ratio is needed. Based on quantifying the degree of obstacle over-line, the method combines the single-sided over-line state, lane width before over-line, lane line quality, visibility distance difference, and effective time window to dynamically reconstruct the lane line on the over-line side. The method also implements smoothing and output protection on the compensation results to improve the continuity and stability of lane line output in obstacle-over-line occlusion scenarios. Summary of the Invention

[0006] The main objective of this invention is to provide a lane line mirror compensation method and system based on the obstacle-overlapping area ratio. This addresses the problem that when an obstacle overlaps and obscures one side of the lane line, existing technologies struggle to quantify the degree of overlap between the obstacle and the lane line, and lack a continuous processing mechanism that drives lane line parameter reconstruction and output protection based on the quantification results of the obstacle overlap. This leads to abrupt changes in lane line parameters on the affected side, reduced visibility distance, and impact on downstream lateral control.

[0007] To solve the above-mentioned technical problems, the technical solution adopted by the present invention is: a dynamic mirroring compensation method for lane lines based on the proportion of obstacle-overlapping area, comprising: S1, obtain the left and right lane line parameters and obstacle geometry parameters; S2, construct an obstacle rotation rectangle based on the obstacle's geometric parameters, determine the overlapping area between the obstacle rotation rectangle and the lane line, and determine the ratio of the area of ​​the line-crossing area based on the area of ​​the overlapping area and the area of ​​the obstacle rotation rectangle; S3, determine the single-sided line crossing status based on the line crossing area ratio, and record the line crossing start time and lane width before line crossing when the single-sided line crossing status is determined for the first time; S4, within a preset time window, performs compensation gating on the single-sided lane crossing state based on the lane line status. When the lane line on the crossed side meets the mirror compensation conditions, the lane line on the uncrossed side is used as the mirror reference and combined with the lane width before crossing the line to reconstruct the lane line on the crossed side.

[0008] In the preferred embodiment, S2 includes: Based on the obstacle's geometric parameters, rotate and translate the local vertices of the obstacle to obtain the obstacle's rotated rectangle; The polynomial curve of the lane line is approximated by line segments based on the lateral enclosing range of the obstacle's rotating rectangle. Determine the effective intersection points of the approximate lane line segments and each side of the rotating rectangle of the obstacle; Construct a segmented polygon based on the valid intersection points and the vertices of the rotating rectangle located on the same side of the lane lines, and use the segmented polygon as the overlapping region.

[0009] In the preferred embodiment, S2 further includes: sorting the effective intersection points and the vertices of the rotating rectangle according to the polar angle of each vertex relative to the center point, calculating the area of ​​the segmented polygon using the polygon area formula, and dividing the area of ​​the segmented polygon by the product of the obstacle length and the obstacle width to obtain the line pressing area ratio.

[0010] In the preferred embodiment, S3 determines the lane line corresponding to the line-over area ratio greater than 0.02 and less than 0.98 as the lane line on the pressure side. When determining the single-side line-over state for the first time, the lane width before the line-over is saved according to the difference between the constant terms of the left and right lane lines. When the line-over area ratio does not meet the requirements of this interval, the line-over state of the corresponding side is reset.

[0011] In the preferred embodiment, S4 includes: Mirror compensation is not performed when both the left and right sides are simultaneously pressed against the line. Mirror compensation is not performed when the difference in visibility between the left and right lane lines is less than 5 meters. Mirror compensation is not performed when lane lines are in a jump or missing state. Mirror compensation is not performed when an abnormality is detected at the shunt port.

[0012] In the preferred embodiment, S4 also includes: The lane width before crossing the line will be limited to between 3.3 meters and 3.8 meters; Calculate the time difference between the current time and the start time of the pressure line, and allow mirror compensation if the time difference does not exceed 2000 milliseconds.

[0013] In the preferred embodiment, when S4 reconstructs the lane line on the pressure side, the curve shape parameters and visibility distance of the lane line on the unpressure side are assigned to the lane line on the pressure side, and the constant term of the lane line on the pressure side is determined based on the sum or difference between the constant term of the lane line on the unpressure side and the lane width before the lane line is pressed.

[0014] In the preferred embodiment, S4 also includes line mark detection that is performed in parallel with mirror compensation: filtering obstacles with a longitudinal distance greater than 0 meters and less than 50 meters, where the obstacles are commercial vehicles with a longitudinal speed lower than the vehicle's speed; Select the corresponding side lane line based on the lateral position of the obstacle; A lane-crossing marker is set when the ratio of the area of ​​the obstacle crossing the corresponding lane line is greater than 0 and less than 0.2, and this condition is met for at least 5 consecutive frames.

[0015] In the preferred scheme, the lane line constant term after reconstruction is gradually adjusted, and the change in a single frame is limited to 0.05 meters; When either side is in a position where it is crossing the line, the regular lane line quality inspection and replacement will be suspended, and the regular lane line quality inspection and replacement will be resumed after the position is reset.

[0016] A lane line dynamic mirroring compensation system based on the proportion of obstacle-overlapping area includes: The data acquisition module is used to acquire the parameters of the left and right lane lines and the geometric parameters of obstacles; The area ratio calculation module is used to construct a rotating rectangle of the obstacle based on the obstacle's geometric parameters, and to determine the area ratio of the area of ​​the obstacle crossing the lane line based on the overlapping area between the rotating rectangle of the obstacle and the lane line. The line-crossing status module is used to determine the line-crossing status on one side based on the line-crossing area ratio, and to save the line-crossing start time and the lane width before line-crossing; The mirror compensation module is used to reconstruct the lane line on the pressure side within a preset time window, using the unpressured lane line as a mirror reference and combining it with the lane width before the pressure line.

[0017] This invention provides a lane line mirror compensation method and system based on the ratio of obstacle overlay area. It uses the rotating rectangle of the obstacle and the local curve of the lane line to jointly determine the overlapping area, which can comprehensively reflect the influence of obstacle length, width, heading angle and lane line local curvature on the degree of overlay, and express the degree of overlay as a continuous area ratio.

[0018] When the lane crossing state is first determined, the lane width before crossing is saved. The lane line on the crossed side is reconstructed using the curve shape parameters and visibility distance of the lane line on the uncrossed side. The lateral position of the lane line on the crossed side is determined by the saved lane width, so as to maintain the continuity of lane line shape, width and output length when the lane line on one side is blocked.

[0019] By using dual-sided lane crossing filtering, visual distance difference judgment, lane line jump and loss state gating, diversion point abnormal gating, lane width range limitation, and real-time compensation time window, the applicable scenarios of mirror compensation are limited, reducing the possibility of falsely triggering compensation in non-target scenarios.

[0020] An independent, continuous-frame lane marking detection path is adopted to provide stable lane marking status information to downstream modules. By using a constant term for progressive adjustment and pausing regular lane marking quality replacement during lane marking, the sudden changes caused by compensation parameter switching can be reduced, and the compensation results can be avoided from being overwritten by the original detection values ​​affected by occlusion. Attached Figure Description

[0021] The present invention will be further described below with reference to the accompanying drawings and embodiments: Figure 1 The diagram shows the architecture of the lane line dynamic mirror compensation system and the collaborative relationship between the two processing paths. Figure 2 Flowchart for wire clamping detection and real-time mirror compensation; Figure 3 Here is the overall flowchart of the lane line dynamic mirror compensation method; Detailed Implementation Example 1 like Figure 1-3 As shown, a lane line mirror compensation method based on the obstacle-over-line area ratio includes: S1, obtain the left and right lane line parameters and obstacle geometry parameters; S2, construct an obstacle rotation rectangle based on the obstacle's geometric parameters, determine the overlapping area between the obstacle rotation rectangle and the lane line, and determine the ratio of the area of ​​the line-crossing area based on the area of ​​the overlapping area and the area of ​​the obstacle rotation rectangle; S3, determine the single-sided line crossing status based on the line crossing area ratio, and record the line crossing start time and lane width before line crossing when the single-sided line crossing status is determined for the first time; S4, within a preset time window, performs compensation gating on the single-sided lane crossing state based on the lane line status. When the lane line on the crossed side meets the mirror compensation conditions, the lane line on the uncrossed side is used as the mirror reference and combined with the lane width before crossing the line to reconstruct the lane line on the crossed side.

[0022] In the preferred embodiment, S2 includes: Based on the obstacle's geometric parameters, rotate and translate the local vertices of the obstacle to obtain the obstacle's rotated rectangle; The polynomial curve of the lane line is approximated by line segments based on the lateral enclosing range of the obstacle's rotating rectangle. Determine the effective intersection points of the approximate lane line segments and each side of the rotating rectangle of the obstacle; Construct a segmented polygon based on the valid intersection points and the vertices of the rotating rectangle located on the same side of the lane lines, and use the segmented polygon as the overlapping region.

[0023] In the preferred embodiment, S2 further includes: sorting the effective intersection points and the vertices of the rotating rectangle according to the polar angle of each vertex relative to the center point, calculating the area of ​​the segmented polygon using the polygon area formula, and dividing the area of ​​the segmented polygon by the product of the obstacle length and the obstacle width to obtain the line pressing area ratio.

[0024] In the preferred embodiment, S3 determines the lane line corresponding to the line-over area ratio greater than 0.02 and less than 0.98 as the lane line on the pressure side. When determining the single-side line-over state for the first time, the lane width before the line-over is saved according to the difference between the constant terms of the left and right lane lines. When the line-over area ratio does not meet the requirements of this interval, the line-over state of the corresponding side is reset.

[0025] In the preferred embodiment, S4 includes: Mirror compensation is not performed when both the left and right sides are simultaneously pressed against the line. Mirror compensation is not performed when the difference in visibility between the left and right lane lines is less than 5 meters. Mirror compensation is not performed when lane lines are in a jump or missing state. Mirror compensation is not performed when an abnormality is detected at the shunt port.

[0026] In the preferred embodiment, S4 also includes: The lane width before crossing the line will be limited to between 3.3 meters and 3.8 meters; Calculate the time difference between the current time and the start time of the pressure line, and allow mirror compensation if the time difference does not exceed 2000 milliseconds.

[0027] In the preferred embodiment, when S4 reconstructs the lane line on the pressure side, the curve shape parameters and visibility distance of the lane line on the unpressure side are assigned to the lane line on the pressure side, and the constant term of the lane line on the pressure side is determined based on the sum or difference between the constant term of the lane line on the unpressure side and the lane width before the lane line is pressed.

[0028] In the preferred embodiment, S4 also includes line mark detection that is performed in parallel with mirror compensation: filtering obstacles with a longitudinal distance greater than 0 meters and less than 50 meters, where the obstacles are commercial vehicles with a longitudinal speed lower than the vehicle's speed; Select the corresponding side lane line based on the lateral position of the obstacle; A lane-crossing marker is set when the ratio of the area of ​​the obstacle crossing the corresponding lane line is greater than 0 and less than 0.2, and this condition is met for at least 5 consecutive frames.

[0029] In the preferred scheme, the lane line constant term after reconstruction is gradually adjusted, and the change in a single frame is limited to 0.05 meters; When either side is in a position where it is crossing the line, the regular lane line quality inspection and replacement will be suspended, and the regular lane line quality inspection and replacement will be resumed after the position is reset.

[0030] A lane line mirroring compensation system based on the ratio of obstacle area to lane line coverage includes: The data acquisition module is used to acquire the parameters of the left and right lane lines and the geometric parameters of obstacles; The area ratio calculation module is used to construct a rotating rectangle of the obstacle based on the obstacle's geometric parameters, and to determine the area ratio of the area of ​​the obstacle crossing the lane line based on the overlapping area between the rotating rectangle of the obstacle and the lane line. The line-crossing status module is used to determine the line-crossing status on one side based on the line-crossing area ratio, and to save the line-crossing start time and the lane width before line-crossing; The mirror compensation module is used to reconstruct the lane line on the pressure side within a preset time window, using the unpressured lane line as a mirror reference and combining it with the lane width before the pressure line.

[0031] Example 2 This embodiment, based on the method and system described in Embodiment 1, further explains the geometric calculation of the pressure line area ratio, the confirmation of the single-sided pressure line state, the compensation gating, and the mirror reconstruction process. The following parameter names are used to describe an implementable processing method and do not constitute a limitation on the scope of the claims.

[0032] In the vehicle coordinate system, the x-axis represents the vehicle's longitudinal direction, and the y-axis represents the vehicle's lateral direction. The coordinates of the obstacle center are ( , The length and width are denoted as follows: and The heading angle is denoted as The left and right lane markings are represented using cubic polynomials, where the constant term C0 reflects the lateral position of the lane marking relative to the vehicle center, and C1, C2, and C3 together describe the local shape of the lane marking. The visible distance is denoted as D. Lane markings on either side can be represented as: ; First, construct a rotating rectangle that reflects the true pose of the obstacle. Four local vertices are formed with the obstacle's center as the origin. , ),in Take ± / 2, Take ± / 2; then adjust the local vertices according to the heading angle. Rotate and translate to the vehicle coordinate system. The rotated vertex ( , )satisfy: ; The longitudinal bounding range is determined by the four rotated vertices. , ] respectively and Substituting the equation into the cubic polynomial of the lane lines, we obtain the endpoints. and and with line segments This approximates the local lane lines within the area covered by obstacles. This local approximation is only used to determine the overlapping area, eliminating the need to calculate the analytical intersection points of the entire cubic curve, thus reducing the amount of real-time computation.

[0033] For any side Q1Q2 of the rotated rectangle, use the parameters respectively. and Represents the approximate line segment of the lane line and the points on the sides of the rectangle: ; make = And solve and Only if 0 ≤ ≤1 and 0≤ When the value is ≤1, the corresponding point is retained as a valid intersection point, thus eliminating invalid intersection points on the extension lines of the two line segments. Then, depending on whether the obstacle is located to the left or right of the lane line, vertices on the same side of the lane line as the valid intersection points are selected from the four vertices of the rotated rectangle to form a segmented polygon.

[0034] Suppose that the segmented polygon has n vertices, and the coordinates of the i-th vertex are ( , To avoid vertex intersections, the center position of each vertex is first determined, then the vertices are sorted according to their polar angles relative to that center position. Finally, the area of ​​the overlapping region is calculated using the shoelace formula. : ; The (n+1)th vertex is treated the same as the first vertex. The area of ​​the obstacle's rotating rectangle remains constant before and after the rotation. Therefore, the area ratio r of the crease is determined according to the following formula: ; According to the state determination method defined in claim 4, when 0.02 < r < 0.98, the corresponding lane line is determined as the lane line on the pressure side. When a certain side first enters the section, the start time of the line crossing is recorded. The lane width before crossing the lane line is recorded as the difference between the constant terms of the left and right lane lines at that time. ;when When exiting the section, reset the corresponding side line crossing state so that the lane width and start time can be obtained again for the next line crossing.

[0035] ; Before performing mirror reconstruction, scene gating is performed sequentially. When both the left and right sides are simultaneously in a state of pressing the line, compensation is stopped because there is no reliable reference for the unpressed side; when the difference in the visible distance between the left and right lane lines is less than 5 meters, the output lengths on both sides are considered to be similar, and unnecessary replacements are not performed. In cases of lane line jumps, lane line loss, or merging point anomalies, the current lane line is not used as a mirror reference. The recorded lane width, as per claim 6, is limited to between 3.3 meters and 3.8 meters, and can be expressed as: ; Simultaneously calculate the current time t and the time when the pressure line begins. Time difference between =t Only in This instant image compensation is allowed within 2000 milliseconds; This condition indicates that compensation occurs within a defined window after the pressure line begins, rather than waiting for the pressure line to continue for 2000 milliseconds before execution.

[0036] If the left lane is crossed, the visible distance of the left lane line is shorter than that of the right lane line, and the quality of the right lane line is normal, then the right lane line is used as the mirror reference. The constant term of the left lane line is determined by the sum of the constant term of the right lane line and the width of the restricted lane. Other curve terms and visible distances are directly adopted from the corresponding values ​​of the right lane line. ; If the right lane is crossed, the visible distance of the right lane line is shorter than that of the left lane line, and the quality of the left lane line is normal, then the reconstruction is completed in the opposite direction: ; Therefore, the uncompressed lane line provides the road curvature and output length, while the lane width before the line overlap provides the lateral position of the compressed lane line. Together, they ensure that the reconstructed left and right lane lines maintain a reasonable spacing. After compensation, the target constant term can be progressively adjusted. Assuming the constant term output in the k-th frame is the current value, the next frame updates it with a change step of no more than 0.05 meters. ; in, This indicates that the variation is limited to a given upper and lower bound. Regular lane line quality checks and replacements are paused when either side is in a lane-crossing state to prevent mirrored results from being overwritten by the original detection values ​​affected by occlusion. After resetting the line crossing status, the regular quality check is resumed. For the line crossing mark path that runs parallel to the above instant mirror compensation path, obstacles with a longitudinal distance greater than 0 meters and less than 50 meters, a longitudinal speed lower than the vehicle's speed, and a type of commercial vehicle are selected. The corresponding side lane line is selected according to the lateral position of the obstacle, and the line crossing mark is output when 0 < r < 0.2 is met for at least 5 consecutive frames.

[0037] The above processes are executed by the data acquisition module, the area ratio calculation module, the line pressure status module, and the mirror compensation module, respectively. The detection of pressure marks, the progressive adjustment of constant terms, and the quality inspection gating can be implemented as sub-functions or collaborative modules of the aforementioned modules, thereby making the method and system structure correspond to each other.

[0038] Example 3 This embodiment corresponds to the scenario of right-side lane overlap on a highway, and is used to illustrate the area ratio calculation and mirror reconstruction process when the right lane line is obscured.

[0039] The vehicle is traveling at approximately 100 km / h in the left lane, while a commercial vehicle in the adjacent right lane is traveling at approximately 80 km / h and partially crosses the right lane line. The forward-facing camera outputs cubic polynomial parameters of the left and right lane lines and the visible distance at 30 frames per second, and the obstacle detection module outputs the obstacle's center position, length, width, heading angle, type, and longitudinal speed.

[0040] In this embodiment, the center of the obstacle is located approximately 30 meters in front of the vehicle, and its lateral position is approximately... It is 2.5 meters long, approximately 10 meters wide, and has a heading angle of approximately 0.05 radians. Its longitudinal speed is approximately 22 meters per second. The vehicle's speed is approximately 28 meters per second. The system first confirms that there are no lane line jumps or loss, and that the vehicle is not in an abnormal state at the merging point; the obstacle list is not empty, and both left and right lane lines have been detected. Subsequently, the calculation of the pressure line area ratio is performed because the obstacle is located within the preset longitudinal range.

[0041] According to the rotation and translation formula described in Example 2, local vertices are constructed with a half-vehicle length of 5 meters and a half-vehicle width of 1.25 meters. After substituting the heading angle of 0.05 radians, the four rotation vertices are approximately (34.94, ...). 1.00), (35.06, 3.50), (25.06, 4.00) and (24.94, 1.50). This yields a longitudinal enclosing range of approximately [24.94 meters, 35.06 meters]. The coordinates of the right lane line are then calculated at both ends of this range to form a local approximate line segment. The coordinates mentioned above are approximate values ​​given for ease of explanation; in actual processing, the floating-point parameters output by the detection module are used.

[0042] The approximate line segment of the right lane line is intersected sequentially with the four sides of the rotating rectangle. Intersection points where both parameters t and u are within the range [0, 1] are retained. These valid intersection points, along with the vertices of the rectangle on the selected side, form a segmented polygon. Using polar angle sorting and the shoelace formula, assuming the overlapping area is 8.75 square meters, the pressure area ratio r = 8.75 / (10 × 2.5) = 0.35. This ratio falls between 0.02 and 0.98, thus confirming that the right lane line is under pressure.

[0043] Upon initial confirmation of right-side lane crossing, the system records the current time as the start of the crossing and saves the lane width before the crossing based on the difference between the left and right lane line constants at that time. If the left lane line C0 is 1.8 meters and the right lane line C0 is... If the width is 1.8 meters, the recorded lane width is 3.6 meters, which is within the effective range of 3.3 meters to 3.8 meters, and no truncation is required.

[0044] At this time, due to the obstruction of commercial vehicles, the visibility distance of the right lane line was shortened from about 60 meters under normal conditions to about 45 meters, while the visibility distance of the left lane line was still about 60 meters, with a difference of more than 5 meters between the two sides. Meanwhile, the quality of the left lane line is normal, neither the left nor the right lane lines are crossed at the same time, and the current time is about 500 milliseconds away from the start of the crossing, which is within the compensation window of 2000 milliseconds. Therefore, the right-side mirror compensation condition is met.

[0045] The system uses the left lane line as a mirror reference and updates the right lane line constant to 1.8. 3.6= The right lane line was repositioned to 1.8 meters, and lane numbers C1, C2, and C3 from the left lane were assigned to the right lane line. The right-side visibility distance was updated to 60 meters. The reconstructed right lane line shared the same local curve shape as the left lane line and maintained a lateral spacing of approximately 3.6 meters before crossing the lane line. Constants were then progressively adjusted in steps not exceeding 0.05 meters per frame, and regular quality replacement was paused during the period when the right lane line was crossed.

[0046] When the right-side lane marking area ratio falls outside the judgment range, the system resets the right-side lane marking status and resumes the regular lane marking quality check. When the pressure line duration exceeds 2000 milliseconds, stop the current real-time mirror compensation to avoid temporarily reconstructing long-term replacement camera detection results.

[0047] Example 4 This embodiment corresponds to a scenario where the left lane line is crossed on an urban road, illustrating the reverse mirroring process when the left lane line is obscured. A car is traveling at approximately 50 km / h in the right lane of an urban road. A car in the adjacent left lane cuts into this lane and crosses the left lane line, shortening the visibility of the left lane line while the right lane line remains visible.

[0048] The obstacle's center is located approximately 25 meters in front of the vehicle, with a lateral position of approximately 2.0 meters, a length of approximately 4.5 meters, a width of approximately 1.8 meters, and a heading angle of approximately 0.1 radians. The system constructs a rotating rectangle around the obstacle as described in Example 2, using local approximate line segments of the left lane line within the longitudinal enclosure of the rotating rectangle to determine effective intersection points and segment the polygon. Assuming the calculated left lane marking area ratio is 0.28, this ratio falls within the judgment range of 0.02 to 0.98, and the system confirms a single-sided lane marking on the left side.

[0049] When initially confirming the left lane line overlap, if the constant terms for the left and right lane lines are 1.8 meters and... If the distance is 1.8 meters, then the lane width before crossing the line is recorded as 3.6 meters. The visible distance of the left lane line is approximately 40 meters, and the visible distance of the right lane line is approximately 55 meters, with a difference of 15 meters between the two sides. The right lane markings are of normal quality, with no double lane crossings or abnormal merging points, and the current time is approximately 800 milliseconds from the start of the lane crossing, thus meeting the left-side mirror compensation conditions.

[0050] The system updates the left lane line constant to the sum of the right lane line constant and the lane width of 3.6 meters. 1.8 + 3.6 = 1.8 meters, and assign the right lane lines C1, C2, and C3, as well as the 55-meter visibility distance, to the left lane lines. Compared with Example 3, this example only changes the direction of pressure and the mirror image direction; the calculation of the pressure area ratio, lane width limit, time window, and quality gating method remain the same.

[0051] After the left lane line is reconstructed, a constant term is also gradually adjusted, and routine quality checks and replacements are suspended before the left lane line is reset, thereby reducing the possibility of sudden lane center shift during vehicle entry.

[0052] Example 5 This embodiment corresponds to a commercial vehicle lane marking detection scenario, illustrating the continuous frame confirmation path executed in parallel with real-time mirror compensation. The vehicle is traveling on a highway, and there is a commercial vehicle approximately 35 meters ahead. The commercial vehicle's lateral position is approximately 1.5 meters, its length is approximately 8 meters, its width is approximately 2.5 meters, and its longitudinal speed is approximately 20 meters per second. The vehicle's speed is approximately 28 meters per second.

[0053] Since the obstacle's longitudinal distance is between 0 and 50 meters, its longitudinal speed is lower than the vehicle's speed, and its type meets the commercial vehicle criteria, the system retains the obstacle. Furthermore, because its lateral coordinate is greater than 0, only the left lane line is selected to calculate the percentage of the area crossed. Assuming that r = 0.12 is obtained according to the geometric method described in Example 2, then the condition for determining the crossed-line marker, 0 < r < 0.2, is satisfied.

[0054] The system uses obstacle markers as indices to accumulate consecutive frame counts. From frame 1 to frame 4, only the count is updated without outputting a stable line-pressing flag. If the area ratio condition is still met in the 5th frame, the lane crossing mark is written into the lane line status for use by the downstream lateral control or lane line post-processing module. If the determination condition is no longer met in any subsequent frame, the corresponding count is reset. If the obstacle no longer appears in the current frame, its history count is deleted to prevent the old state from affecting other obstacles.

[0055] In this embodiment, the five consecutive frame confirmations are used to obtain a stable lane-over-line status output. This has a different function than the 2000-millisecond time window that limits the duration of instantaneous mirror compensation in embodiments 3 and 4. The two can share the lane-over-line area ratio calculation module, but they serve the status output and lane line parameter reconstruction respectively.

[0056] Example 6 This embodiment corresponds to a collaborative processing scenario, illustrating the coordination relationship between the instantaneous mirror compensation path, the lane-crossing sign detection path, the constant term progressive adjustment, and the quality inspection gating. The vehicle is traveling on a highway, and a commercial vehicle approximately 30 meters ahead crosses the lane line from the right lane towards this lane, its lateral position being approximately... 2.0 meters, longitudinal speed is about 20 meters / second, and vehicle speed is about 28 meters / second.

[0057] The lane marking detection path first filters obstacles based on their distance, speed, and type, and selects the right lane line because the obstacle's lateral coordinate is less than 0. Assuming the calculated right lane marking area ratio is 0.15, the lane marking is output after 5 consecutive frames satisfying 0 < r < 0.2, providing a stable scene state for downstream modules.

[0058] Simultaneously, the instant mirror compensation path calculates the proportion of the right-side overlap area for compensation judgment based on the same obstacle. Assuming this proportion is 0.35, the system confirms single-sided overlap on the right side. If the visibility distance of the right lane line is approximately 40 meters and the visibility distance of the left lane line is approximately 60 meters, the quality of the left lane line is normal, the lane width before crossing the line is 3.6 meters, and it is still within the 2000 millisecond compensation window, then the right lane line will be reconstructed based on the left lane line.

[0059] During mirror reconstruction, the constant term for the right lane line is obtained by subtracting 3.6 meters from the constant term for the left lane line. The C1, C2, C3, and visible distance of the right lane line adopt the corresponding parameters of the left lane line. Subsequently, the progressive adjustment function limits the single-frame change of the right constant term to within 0.05 meters, so that the compensation value smoothly approaches the target value.

[0060] Since the right side is still in a lane-crossing state, the conditions for regular lane line quality checks and replacements are not met, and the system does not use the original camera values ​​affected by occlusion to overwrite the mirrored results. Once the right side's lane-crossing state is reset, regular quality checks and replacements resume. Thus, the two lane-crossing processing paths respectively complete immediate parameter recovery and stable state output, while progressive adjustment and quality gating ensure smooth parameter transitions and effective compensation results, respectively, together forming a complete closed loop for lane line stability processing.

[0061] The above embodiments are merely preferred technical solutions of the present invention and should not be considered as limitations on the present invention. The scope of protection of the present invention should be limited to the technical solutions described in the claims, including equivalent substitutions of the technical features described in the claims. That is, equivalent substitutions and improvements within this scope are also within the scope of protection of the present invention.

Claims

1. A method for dynamic mirroring compensation of lane lines based on the proportion of obstacle-overlapping area, characterized in that, include: S1, obtain the left and right lane line parameters and obstacle geometry parameters; S2, construct an obstacle rotation rectangle based on the obstacle's geometric parameters, determine the overlapping area between the obstacle rotation rectangle and the lane line, and determine the ratio of the area of ​​the line-crossing area based on the area of ​​the overlapping area and the area of ​​the obstacle rotation rectangle; S3, determine the single-sided line crossing status based on the line crossing area ratio, and record the line crossing start time and lane width before line crossing when the single-sided line crossing status is first determined; S4, within a preset time window, performs compensation gating on the single-sided lane crossing state based on the lane line status. When the lane line on the crossed side meets the mirror compensation conditions, the lane line on the uncrossed side is used as the mirror reference and combined with the lane width before crossing the line to reconstruct the lane line on the crossed side.

2. The lane line dynamic mirror compensation method according to claim 1, characterized in that, S2 include: Based on the obstacle's geometric parameters, rotate and translate the local vertices of the obstacle to obtain the obstacle's rotated rectangle; The polynomial curve of the lane line is approximated by line segments based on the lateral enclosing range of the obstacle's rotating rectangle. Determine the effective intersection points of the approximate lane line segments and each side of the rotating rectangle of the obstacle; Construct a segmented polygon based on the valid intersection points and the vertices of the rotating rectangle located on the same side of the lane lines, and use the segmented polygon as the overlapping region.

3. The lane line dynamic mirror compensation method according to claim 2, characterized in that, S2 also includes: sorting the effective intersection points and the vertices of the rotating rectangle according to the polar angle of each vertex relative to the center point, calculating the area of ​​the segmented polygon using the polygon area formula, and dividing the area of ​​the segmented polygon by the product of the obstacle length and the obstacle width to obtain the line pressing area ratio.

4. The lane line dynamic mirror compensation method according to claim 1, characterized in that, S3 determines the lane lines corresponding to the line-over area ratios greater than 0.02 and less than 0.98 as the lane lines on the pressure side. When determining the single-side line-over state for the first time, it saves the lane width before the line-over based on the difference between the constant terms of the left and right lane lines, and resets the line-over state of the corresponding side when the line-over area ratio does not meet the requirements of this interval.

5. The lane line dynamic mirror compensation method according to claim 4, characterized in that, S4 include: Mirror compensation is not performed when both the left and right sides are simultaneously pressed against the line. Mirror compensation is not performed when the difference in visibility between the left and right lane lines is less than 5 meters. Mirror compensation is not performed when lane lines are in a jump or missing state. Mirror compensation is not performed when an abnormality is detected at the shunt port.

6. The lane line dynamic mirror compensation method according to claim 5, characterized in that, S4 also includes: The lane width before crossing the line will be limited to between 3.3 meters and 3.8 meters; Calculate the time difference between the current time and the start time of the pressure line, and allow mirror compensation if the time difference does not exceed 2000 milliseconds.

7. The lane line dynamic mirror compensation method according to claim 6, characterized in that, When S4 reconstructs the lane line on the pressure side, it assigns the curve shape parameters and visibility distance of the lane line on the unpressure side to the lane line on the pressure side, and determines the constant term of the lane line on the pressure side based on the sum or difference between the constant term of the lane line on the unpressure side and the lane width before the lane line is pressed.

8. The lane line dynamic mirroring compensation method according to claim 1, characterized in that, It also includes line mark detection that is performed in parallel with mirror compensation: filtering obstacles with a longitudinal distance greater than 0 meters and less than 50 meters, and the obstacles being commercial vehicles with a longitudinal speed lower than the vehicle's speed; Select the corresponding side lane line based on the lateral position of the obstacle; A lane-crossing marker is set when the ratio of the area of ​​the obstacle crossing the corresponding lane line is greater than 0 and less than 0.2, and this condition is met for at least 5 consecutive frames.

9. The lane line dynamic mirror compensation method according to claim 7, characterized in that, The lane line constants after reconstruction are gradually adjusted, and the change in a single frame is limited to 0.05 meters. When either side is in a line-crossing state, the regular lane line quality inspection and replacement shall be suspended, and the regular lane line quality inspection and replacement shall be resumed after the line-crossing state is reset.

10. A lane line mirror compensation system based on the ratio of obstacle-overlapping area, characterized in that, include: The data acquisition module is used to acquire the parameters of the left and right lane lines and the geometric parameters of obstacles; The area ratio calculation module is used to construct a rotating rectangle of the obstacle based on the obstacle's geometric parameters, and to determine the area ratio of the area of ​​the obstacle crossing the lane line based on the overlapping area between the rotating rectangle of the obstacle and the lane line. The line-crossing status module is used to determine the line-crossing status on one side based on the line-crossing area ratio, and to save the line-crossing start time and the lane width before line-crossing; The mirror compensation module is used to reconstruct the lane line on the pressure side within a preset time window, using the unpressured lane line as a mirror reference and combining it with the lane width before the pressure line.

Citation Information

Patent Citations

  • Vehicle line pressing detection method and device, readable storage medium and electronic equipment

    CN119360319A