Lane line identification result jump detection method and device, electronic equipment and medium

Through straight-line fitting and feature comparison of lane line recognition results, the real-time problem of jump detection in lane line recognition results is solved, ensuring safety and continuity during vehicle driving, and avoiding lane line recognition results in autonomous driving systems. Safety hazards caused by jumps.

CN118692048APending Publication Date: 2024-09-24BEIJING ZHIXINGZHE TECH CO LTD

Patent Information

Application Number
CN202310288064.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-22
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

In the existing technology, lane line recognition results are prone to jump when affected by environmental factors, resulting in inability to identify in time and posing safety risks.

Method used

By obtaining the lane line recognition results of the current frame, perform straight line fitting, confirm the lane line features, and compare them with the features of the previous frame to perform jump detection to ensure the continuity and real-time performance of the lane line recognition results.

Benefits of technology

It achieves real-time jump detection of lane line recognition results, avoids safety hazards, provides stable and continuous input, and provides good constraints for the decision-making and control modules of the autonomous driving system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118692048A
    Figure CN118692048A
Patent Text Reader

Abstract

The embodiment of the invention discloses a lane line recognition result jump detection method and device, electronic equipment and a storage medium, and the method comprises the steps: obtaining a lane line recognition result of a current frame, carrying out the straight line fitting based on the lane line recognition result of the current frame, obtaining the lane line features of the current frame, and obtaining the lane line features of the current frame; according to the lane line recognition result jump detection method, the lane line feature corresponding to the current frame is compared with the lane line feature corresponding to the previous frame, jump detection is carried out, and the calculated amount of the fitting method based on the straight line is small, so that few system resources are needed for executing the lane line recognition result jump detection method, jump detection can be carried out in real time in the vehicle driving process, and the vehicle driving efficiency is improved. Therefore, the real-time performance of lane line identification result jump detection is ensured, and the problem that potential safety hazards exist due to the fact that jump of the lane line identification result cannot be found in time in the prior art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of autonomous driving, and more specifically, to a method, device, electronic device and medium for detecting lane line recognition result jumps. Background Art

[0002] The vigorous development of autonomous driving technology has put forward higher requirements for the real-time recognition of traffic elements. As a constraint on the drivable area of ​​the road, the lane line recognition result is very important for the subsequent decision-making and control modules of the autonomous driving system, which in turn affects driving safety.

[0003] For the real-time lane recognition task during vehicle driving, a learning-based method is often used. According to the difference in the recognition object, the lane recognition task can be divided into: Ego-lane, Ego_road, and All-road. Among them, Ego-lane recognizes the left and right lanes relative to the vehicle, which is mainly used in the lane departure warning system (LDWS) and lane keeping assistance (LKA) in the Advanced Driver Assistance System (ADAS); Ego_road recognizes all lanes consistent with the vehicle's driving method; All_road recognizes all lanes consistent with the vehicle's driving method or on both sides.

[0004] In the Ego-lane recognition task, affected by multiple complex factors such as occlusion by other vehicles in the environment or irregular changes in the road structure, the left or right lane line information output by the learning-based method often jumps and does not meet the continuity constraint. The above jump means that the lane line on a certain side identified is not the lane line on a certain side relative to the vehicle. For example, the true value of the identified left lane line is the lane line relative to the right side of the vehicle. Incorrect lane line jump results pose a huge safety hazard. Therefore, the jump results of the vehicle should be avoided in time to maintain the continuity of the lane line detection results on the same side. In related technologies, lane line jumps cannot be identified in time. Therefore, how to detect jumps in lane line recognition results has become an urgent problem to be solved. Summary of the invention

[0005] The embodiments of the present application provide a method, device, electronic device and medium for detecting lane line recognition result jumps, which can perform jump detection in real time during vehicle driving, ensuring the real-time nature of lane line recognition result jump detection, and solving the problem in related technologies that lane line recognition result jumps cannot be detected in time, posing a safety hazard.

[0006] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.

[0007] According to one aspect of an embodiment of the present application, a method for detecting jumps in lane line recognition results is provided, the method comprising: obtaining a lane line recognition result of a current frame, performing straight line fitting based on the lane line recognition result of the current frame to obtain a fitted straight line of the current frame; confirming lane line features corresponding to the current frame based on the fitted straight line; comparing the lane line features corresponding to the current frame with the lane line features corresponding to the previous frame, and performing jump detection on the lane line recognition result of the current frame based on the comparison result.

[0008] In some examples, the lane line recognition result of the current frame includes: a first lane line recognition result and a second lane line recognition result, and a straight line fitting is performed based on the lane line recognition result of the current frame to obtain a fitted straight line of the current frame, including: obtaining a pixel point sequence contained in the first lane line recognition result and the second lane line recognition result; performing a straight line fitting based on the pixel point sequence contained in the first lane line recognition result and the pixel point sequence contained in the second lane line recognition result, respectively, to obtain a first fitting result and a second fitting result, and using the first fitting result and the second fitting result as the fitted straight line.

[0009] In some examples, confirming the lane line features corresponding to the current frame based on the fitting straight line includes: determining a target value based on the output resolution of the sensor; respectively substituting the target value into the first fitting result and the second fitting result to respectively determine the first lane line features corresponding to the first fitting result and the second lane line features corresponding to the second fitting result; and determining the lane line features corresponding to the current frame based on the first lane line features and the second lane line features.

[0010] In some examples, determining the lane line feature corresponding to the current frame based on the first lane line feature and the second lane line feature includes: determining a fixed weight, weighting the first lane line feature and the second lane line feature based on the fixed weight, respectively, to obtain a first weighted feature and a second weighted feature; combining the first weighted feature and the second weighted feature to obtain the lane line feature corresponding to the current frame.

[0011] In some examples, the lane line features corresponding to the current frame are compared with the lane line features corresponding to the previous frame, and based on the comparison result, the lane line recognition result of the current frame is detected for a jump, including: differentially comparing the lane line features corresponding to the current frame with the lane line features corresponding to the previous frame to obtain a differential value; comparing the differential value with a target threshold, and if the differential value is higher than the target threshold, it is determined that the lane line recognition result of the current frame has a jump.

[0012] In some examples, the lane line feature corresponding to the current frame is determined based on the first lane line feature and the second lane line feature, including: directly determining the first lane line feature and the second lane line feature as the lane line features corresponding to the current frame; comparing the lane line feature corresponding to the current frame with the lane line feature corresponding to the previous frame, and performing jump detection on the lane line recognition result of the current frame based on the comparison result, including: comparing the first lane line feature corresponding to the current frame with the first lane line feature corresponding to the previous frame, and obtaining a first comparison result, and performing jump detection on the first lane line recognition result of the current frame based on the first comparison result; comparing the second lane line feature corresponding to the current frame with the second lane line feature corresponding to the previous frame, and obtaining a second comparison result, and performing jump detection on the second lane line recognition result of the current frame based on the second comparison result.

[0013] In some examples, before comparing the lane line features corresponding to the current frame with the lane line features corresponding to the previous frame, and performing jump detection on the lane line recognition results of the current frame based on the comparison results, the method also includes: determining the lane line features corresponding to the previous frame; if the lane line features corresponding to the previous frame are default values, stopping comparing the lane line features corresponding to the current frame with the lane line features corresponding to the previous frame.

[0014] According to one aspect of an embodiment of the present application, a lane line recognition result jump detection device is provided, characterized in that the device includes: a fitting module, the fitting module is used to obtain the lane line recognition result of the current frame, and perform straight line fitting based on the lane line recognition result of the current frame to obtain the fitted straight line of the current frame; a confirmation module, the confirmation module is used to confirm the lane line features corresponding to the current frame based on the fitted straight line; and a detection module, the detection module is used to compare the lane line features corresponding to the current frame with the lane line features corresponding to the previous frame, and perform jump detection on the lane line recognition result of the current frame based on the comparison result.

[0015] According to one aspect of an embodiment of the present application, an embodiment of the present application provides an electronic device, comprising one or more processors; a storage device for storing one or more computer programs, when the one or more computer programs are executed by the one or more processors, the electronic device implements the method as described above.

[0016] According to one aspect of an embodiment of the present application, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor of an electronic device, the electronic device executes the method as described above.

[0017] According to one aspect of the embodiments of the present application, the embodiments of the present application provide a computer program product, the computer program product includes a computer program, and the computer program is stored in a computer-readable storage medium. A processor of an electronic device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the electronic device performs the methods provided in the above embodiments.

[0018] In the technical solution provided in the embodiments of the present application, the lane line recognition result jump detection method includes: obtaining the lane line recognition result of the current frame, performing straight line fitting based on the lane line recognition result of the current frame to obtain the fitted straight line of the current frame; confirming the lane line features corresponding to the current frame based on the fitted straight line; comparing the lane line features corresponding to the current frame with the lane line features corresponding to the previous frame, and performing jump detection on the lane line recognition result of the current frame based on the comparison result. Among them, by obtaining the lane line recognition result of the current frame, and performing straight line fitting based on the lane line recognition result of the current frame, the lane line feature of the current frame is obtained, and the lane line feature corresponding to the current frame is compared with the lane line feature corresponding to the previous frame to perform jump detection. Among them, the straight line fitting method has a small amount of calculation, so the system resources required to execute the lane line recognition result jump detection method are small, so that jump detection can be performed in real time during vehicle driving, ensuring the real-time performance of lane line recognition result jump detection, and ensuring the continuity of the lane line recognition result jump detection output result. Stable and continuous lane line recognition result jump detection provides good input and constraints for the decision-making and control modules of the automatic driving system, thereby ensuring the safe operation of the vehicle's automatic driving and avoiding the problem of failure to timely detect lane line recognition result jumps in related technologies, resulting in safety hazards.

[0019] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0021] Figure 1 is a basic flow chart of a lane line recognition result jump detection method shown in an exemplary embodiment of the present application;

[0022] Figure 2 is a basic flow chart of a lane line recognition result jump detection method shown in an exemplary embodiment of the present application;

[0023] Figure 3 is a basic flow chart of a lane line recognition result jump detection method shown in an exemplary embodiment of the present application;

[0024] Figure 4 is a basic flow chart of a lane line recognition result jump detection method shown in an exemplary embodiment of the present application;

[0025] Figure 5 is a basic flow chart of a lane line recognition result jump detection method shown in an exemplary embodiment of the present application;

[0026] Figure 6 is a schematic diagram of a lane line recognition result jump detection device shown in an exemplary embodiment of the present application;

[0027] Figure 7 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION

[0028] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

[0029] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0030] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all contents and operations, nor must they be executed in the order described. For example, some operations may be decomposed, while some operations may be combined or partially combined, so the actual execution order may change according to actual conditions.

[0031] It should also be noted that the "multiple" mentioned in this application refers to two or more than two. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship.

[0032] Embodiment 1

[0033] In order to solve the above technical problems, the present application provides a lane line recognition result jump detection method, such as Figure 1 As shown, the method includes:

[0034] S101, obtaining a lane line recognition result of a current frame, and performing straight line fitting based on the lane line recognition result of the current frame to obtain a fitting straight line of the current frame;

[0035] S102, confirming the lane line feature corresponding to the current frame based on the fitting straight line;

[0036] S103: Compare the lane line features corresponding to the current frame with the lane line features corresponding to the previous frame, and perform jump detection on the lane line recognition result of the current frame based on the comparison result.

[0037] It can be understood that the lane line recognition result jump detection method provided in this embodiment can be applied to mobile tools, wherein the mobile tool can be all devices with mobile capabilities, including vehicles with automatic driving or intelligent driving (including vehicles with manned functions (such as cars, buses, large buses, minibuses, etc.), vehicles with cargo functions (such as ordinary trucks, vans, trailers, closed trucks, tank trucks, flatbed trucks, container trucks, dump trucks, special structure trucks), special vehicles (such as logistics distribution vehicles, automatic guided transport vehicles AGV, patrol cars, cranes, cranes, excavators, bulldozers, forklifts, rollers, loaders, off-road engineering vehicles, armored engineering vehicles, sewage treatment vehicles, sanitation vehicles, vacuum trucks, floor washing vehicles, sprinkler trucks, sweeping robots, food delivery robots, shopping guide robots, lawn mowers, golf carts, etc.), vehicles with entertainment functions (such as entertainment vehicles, amusement park automatic driving devices, balance cars, etc.), rescue vehicles (such as fire trucks, ambulances, power repair vehicles, engineering rescue vehicles, etc.)) and robots (such as sweeping robots, food delivery robots, etc.).

[0038] Among them, obtaining the lane line recognition result of the current frame includes: photographing the left and right sides of the mobile tool relative to the own vehicle through the sensor, and obtaining the photographed images relative to the left and right sides of the own vehicle respectively, performing lane line recognition based on the photographed image of the left side of the own vehicle, and then obtaining the left lane line recognition result of the own vehicle, performing lane line recognition based on the photographed image of the right side of the own vehicle, and then obtaining the right lane line recognition result of the own vehicle; it can be understood that when the left and / or right lane line recognition results of the own vehicle jump, it can be determined that the lane line recognition results of the current frame jump.

[0039] It can be understood that the lane line features corresponding to the current frame are compared with the lane line features corresponding to the previous frame, wherein the previous frame and the current frame are adjacent frames, for example, the nth frame is the current frame (n is an integer greater than or equal to 1), and the n-1th frame is the previous frame. It can be understood that the lane line features corresponding to the previous frame are obtained by linear fitting based on the lane line recognition result of the previous frame to obtain the fitting straight line of the previous frame, and then confirmed based on the fitting straight line of the previous frame.

[0040] Continuing with the above example, if the sensor of the mobile tool fails to recognize the lane line in the previous frame, the lane line feature of the previous frame is set to the default value; taking the default value of 0 as an example, for example, the mobile tool has just started and no lane line recognition is performed in the previous frame, the lane line feature of the previous frame is set to 0; for another example, in the previous frame, the mobile tool is traveling on a road without lane lines (or blurred lane lines), resulting in the mobile tool's sensor failing to recognize the lane lines. In this case, the lane line feature of the mobile tool in the previous frame is set to 0.

[0041] In some examples of this embodiment, before comparing the lane line features corresponding to the current frame with the lane line features corresponding to the previous frame, and performing jump detection on the lane line recognition result of the current frame based on the comparison result, the method also includes: determining the lane line features corresponding to the previous frame; if the lane line features corresponding to the previous frame are default values, stopping comparing the lane line features corresponding to the current frame with the lane line features corresponding to the previous frame.

[0042] Based on the above example, it can be understood that if the lane line feature corresponding to the previous frame is the default value, there is no comparison condition. Therefore, if the lane line feature corresponding to the previous frame is the default value, the comparison of the lane line feature corresponding to the current frame with the lane line feature corresponding to the previous frame is stopped. Similarly, if the lane line feature corresponding to the previous frame is not the default value, step S103 is executed.

[0043] In some examples of this embodiment, the lane line recognition result of the current frame includes: a first lane line recognition result and a second lane line recognition result, such as Figure 2As shown, the step in the above step S101 performs straight line fitting based on the lane line recognition result of the current frame to obtain the fitting straight line of the current frame, which can be expanded to:

[0044] S201, obtaining a pixel point sequence included in the first lane line recognition result and the second lane line recognition result;

[0045] S202: Perform straight line fitting based on the pixel point sequence included in the first lane line recognition result and the pixel point sequence included in the second lane line recognition result to obtain a first fitting result and a second fitting result, and use the first fitting result and the second fitting result as the fitting straight line.

[0046] It can be understood that the lane line recognition result of the current frame includes the recognition of the left and right lane lines of the moving tool relative to the own vehicle through the sensor. Therefore, the lane line recognition result specifically includes the first lane line recognition result and the second lane line recognition result, wherein the first lane line recognition result is the left lane line recognition result of the own vehicle, and the second lane line recognition result is the right lane line recognition result of the own vehicle; or the first lane line recognition result is the right lane line recognition result of the own vehicle, and the second lane line recognition result is the left lane line recognition result of the own vehicle. The following is an example in which the first lane line recognition result is the left lane line recognition result of the own vehicle, and the second lane line recognition result is the right lane line recognition result of the own vehicle.

[0047] Among them, when the sensor identifies the left and right lane lines of the vehicle, it will give the identification results in the form of pixel points. It can be understood that the pixel points include but are not limited to multiple coordinate values, which can be represented as (x, y), where x is the horizontal coordinate of the pixel point, and y is the vertical coordinate of the pixel point; wherein, the lane line recognition results on the left side and the lane line recognition results on the right side of the vehicle respectively include multiple pixel points, and the multiple pixel points form a corresponding pixel point sequence.

[0048] Continuing with the above example, a straight line fitting is performed based on the pixel point sequence included in the first lane line recognition result and the pixel point sequence included in the second lane line recognition result, respectively, to obtain a first fitting result and a second fitting result, and the first fitting result and the second fitting result are used as the fitting straight line. Specifically, a straight line fitting is performed based on the (x, y) value given in the pixel point sequence included in the first lane line recognition result to obtain a straight line expression corresponding to the first lane line recognition result, which can be represented as y=k1x+b1, wherein k1 is a slope determined based on the pixel sequence in the first lane line recognition result, and b1 is a slope determined based on the pixel sequence in the first lane line recognition result. is the intercept determined based on the pixel sequence in the first lane line recognition result; similarly, a straight line fitting is performed based on the (x, y) values ​​given in the pixel point sequence contained in the second lane line recognition result to obtain a straight line expression corresponding to the second lane line recognition result, which can also be represented as y=k2x+b2, wherein k2 is the slope determined based on the pixel sequence in the second lane line recognition result, and b2 is the intercept determined based on the pixel sequence in the second lane line recognition result, and the straight line expression corresponding to the first lane line recognition result and the straight line expression corresponding to the second lane line recognition result are used as the fitting straight line of the current frame.

[0049] It can be understood that this embodiment does not limit the fitting method when performing straight line fitting, for example, straight line fitting is performed by least squares method; for example, straight line fitting is performed by gradient descent method; for example, straight line fitting is performed by Gauss-Newton, Levy-Martin algorithm.

[0050] In some examples of this embodiment, Figure 3 As shown, the above step S102 confirms the lane line feature corresponding to the current frame based on the fitting straight line and can be expanded to:

[0051] S301, determining a target value based on the output resolution of the sensor;

[0052] S302, bringing the target value into the first fitting result and the second fitting result, respectively, to determine a first lane line feature corresponding to the first fitting result and a second lane line feature corresponding to the second fitting result;

[0053] S303: Determine a lane line feature corresponding to the current frame based on the first lane line feature and the second lane line feature.

[0054] Among them, the sensor is used to shoot the left and right sides of the moving tool relative to the vehicle, and the photographed images relative to the left and right sides of the vehicle are obtained respectively. When the sensor outputs the photographed images, there will be an output resolution, that is, each lane line image has the same resolution; taking the image resolution of 1280*720 output by the sensor as an example, based on the above 720, any value from 700 to 750 is selected as the target value. Preferably, an integer close to the resolution is selected as the target value. Taking the above 720 as an example, 700 is selected as the target value.

[0055] The target value is respectively substituted into the first fitting result and the second fitting result to determine the first lane line feature corresponding to the first fitting result and the second lane line feature corresponding to the second fitting result. Specifically, the target value is used as the y value and substituted into the first fitting result and the second fitting result to obtain the expression of the x value. Taking the target value as 700 and the straight line expression y=k1x+b2 of the first fitting result as an example, 700 is substituted into the first fitting result to calculate x=(700-b1) / k1, and x=(700-b1) / k1 is used as the first lane line feature. Similarly, the second lane line feature corresponding to the second fitting result can be obtained.

[0056] It can be understood that for each frame of the image to be detected input to the network, which has the same resolution, for the network output results that have jumped, the straight lines fitted based on the lane line detection results, the fitting results k and b are significantly different from the historical results. Directly comparing k or b is a feasible idea, but at common image resolutions, such as 1280*720, the value of k selected for fitting is often small, and it is difficult to observe obvious changes after the candidate steps. The value of b selected for fitting often has large errors, and it is not easy to confirm whether there is a jump. At the same time, because the lane lines in the image output by the sensor are often not parallel to the x-axis in the image coordinate system, the x feature obtained based on the above method can be used in subsequent steps to observe whether the lane line recognition result of the current frame has jumped.

[0057] Continuing with the above example, in some examples, after obtaining the first fitting result and the second fitting result of the current frame, the slope k and / or intercept b determined by the first fitting result of the current frame can be directly compared with the slope k and / or intercept b determined by the first fitting result of the previous frame to determine whether the lane line corresponding to the first fitting result has jumped; similarly, the slope k and / or intercept b determined by the second fitting result of the current frame can be directly compared with the slope k and / or intercept b determined by the second fitting result of the previous frame to determine whether the lane line corresponding to the second fitting result has jumped.

[0058] In some examples of this embodiment, Figure 4As shown, the above step S303 determines the lane line feature corresponding to the current frame based on the first lane line feature and the second lane line feature and can be expanded to:

[0059] S401, determining a fixed weight, and weighting the first lane line feature and the second lane line feature based on the fixed weight to obtain a first weighted feature and a second weighted feature;

[0060] S402: Combine the first weighted feature and the second weighted feature to obtain a lane line feature corresponding to the current frame.

[0061] It can be understood that, if a lane line jump occurs, whether the lane line on one side jumps or the lane lines on both sides jump, the lane line features of the current frame are greatly different from the lane line features of the previous frame. Therefore, it is appropriate to perform continuity detection of the network output result based on the lane line features. In order to simplify the calculation, for the lane lines on both sides of the vehicle, a weighted sum is performed based on the first lane line feature and the second lane line feature, and the result of the weighted sum is used as the lane line feature corresponding to the current frame;

[0062] Continuing with the above example, taking the fixed weight as 1 / 2, the first lane line feature as x=(700-b1) / k1, and the second lane line feature as x=(700-b2) / k2 as an example, the first lane line feature and the second lane line feature are weighted based on the fixed weight to obtain the first weighted feature (700-b1) / 2k1 and the second weighted feature (700-b2) / 2k2, and then the first weighted feature and the second weighted feature are added to obtain the lane line feature (700-b1) / 2k1+(700-b2) / 2k2 corresponding to the current frame, and subsequently jump detection is performed based on the lane line feature (700-b1) / 2k1+(700-b2) / 2k2 corresponding to the current frame.

[0063] It can be understood that in some examples, the first lane line feature and the second lane line feature can be used as lane line features corresponding to the current frame, respectively, and jump detection can be performed subsequently, thereby respectively detecting whether there are jumps in the lane lines on both sides of the vehicle.

[0064] In some examples of this embodiment, Figure 5 As shown, in step S103, the lane line features corresponding to the current frame are compared with the lane line features corresponding to the previous frame, and jump detection is performed on the lane line recognition result of the current frame based on the comparison result, which can be expanded to:

[0065] S501, performing a differential comparison between the lane line feature corresponding to the current frame and the lane line feature corresponding to the previous frame to obtain a differential value;

[0066] S502: Compare the difference value with a target threshold value. If the difference value is higher than the target threshold value, determine that a lane line recognition result of the current frame has a jump.

[0067] Among them, the lane line features corresponding to the current frame are differentially compared with the lane line corresponding to the previous frame to obtain a differential value; it can be understood that due to sensor measurement errors or other factors, the lane line features of the current frame have noise. By differentially comparing the lane line features corresponding to the current frame with the lane line corresponding to the previous frame, the influence of the noise carried in the lane line features corresponding to the current frame can be effectively removed.

[0068] Among them, after obtaining the differential value, the differential value is compared with the target threshold to determine whether there is an impact feature, thereby determining whether the lane line recognition result of the current frame has a jump. Specifically, if the differential value is higher than the target threshold, it means that the lane line feature corresponding to the current frame has an impact feature compared with the lane line feature corresponding to the previous frame, and then it is determined that the lane line recognition result of the current frame has a jump; if the differential value is lower than the target threshold, it means that the lane line feature corresponding to the current frame has no impact feature compared with the lane line feature corresponding to the previous frame, and then it is determined that the lane line recognition result of the current frame has not a jump. It can be understood that the target threshold is selected by relevant personnel according to actual needs.

[0069] Continuing with the above example, in some examples, if the first lane line feature and the second lane line feature are directly determined as the lane line feature corresponding to the current frame, the lane line feature corresponding to the previous frame is compared with the lane line feature corresponding to the previous frame, and based on the comparison result, the lane line recognition result of the current frame is subjected to jump detection, including:

[0070] Compare the first lane line feature corresponding to the current frame with the first lane line feature corresponding to the previous frame to obtain a first comparison result, and perform jump detection on the first lane line recognition result of the current frame based on the first comparison result;

[0071] The second lane line feature corresponding to the current frame is compared with the second lane line feature corresponding to the previous frame to obtain a second comparison result, and a jump detection is performed on the second lane line recognition result of the current frame based on the second comparison result.

[0072] Specifically, the first lane line feature corresponding to the current frame is compared with the first lane line feature corresponding to the previous frame to obtain a first comparison result, and the first comparison result is compared with the first target threshold. If the first comparison result is higher than the first target threshold, it indicates that the first lane line feature corresponding to the current frame is compared with the first lane line feature corresponding to the previous frame. There is an impact feature, and then it is determined that the first lane line recognition result of the current frame has a jump; if the first comparison result is lower than the first target threshold, it indicates that the first lane line feature corresponding to the current frame is compared with the first lane line feature corresponding to the previous frame. There is no impact feature, and then it is determined that the first lane line recognition result of the current frame has not jumped.

[0073] Similarly, the second lane line feature corresponding to the current frame is compared with the second lane line feature corresponding to the previous frame, and a second comparison result is obtained. The second comparison result is compared with the second target threshold. If the second comparison result is higher than the second target threshold, it indicates that the second lane line feature corresponding to the current frame is compared with the second lane line feature corresponding to the previous frame. There is an impact feature, and then it is determined that the second lane line recognition result of the current frame has a jump; if the second comparison result is lower than the second target threshold, it indicates that the second lane line feature corresponding to the current frame is compared with the second lane line feature corresponding to the previous frame. There is no impact feature, and then it is determined that the second lane line recognition result of the current frame has not jumped.

[0074] Among them, by comparing the first lane line feature and the second lane line feature respectively, it is determined whether a single-side lane line jump occurs in the lane line recognition result of the current frame, thereby achieving more accurate lane line jump detection.

[0075] This example provides a method for detecting lane line recognition result jumps, the method comprising: obtaining the lane line recognition result of the current frame, performing straight line fitting based on the lane line recognition result of the current frame to obtain a fitted straight line of the current frame; confirming the lane line features corresponding to the current frame based on the fitted straight line; comparing the lane line features corresponding to the current frame with the lane line features corresponding to the previous frame, and performing jump detection on the lane line recognition result of the current frame based on the comparison result. Among them, by obtaining the lane line recognition result of the current frame, and performing straight line fitting based on the lane line recognition result of the current frame, the lane line feature of the current frame is obtained, and the lane line feature corresponding to the current frame is compared with the lane line feature corresponding to the previous frame to perform jump detection. Among them, the straight line fitting method has a small amount of calculation, so the system resources required to execute the lane line recognition result jump detection method are small, so that jump detection can be performed in real time during vehicle driving, ensuring the real-time performance of lane line recognition result jump detection, and ensuring the continuity of the lane line recognition result jump detection output result. Stable and continuous lane line recognition result jump detection provides good input and constraints for the decision-making and control modules of the automatic driving system, thereby ensuring the safe operation of the vehicle's automatic driving and avoiding the problem of failure to timely detect lane line recognition result jumps in related technologies, resulting in safety hazards.

[0076] Embodiment 2

[0077] In order to better understand the present invention, this example provides a more specific example for illustration, wherein this example provides a lane line recognition result jump detection method, which includes five steps: S1 lane line detection result straight line fitting, S2 x eigenvalue calculation of fixed y value, S3 x eigenvalue weighted summation, S4 difference with the previous result, and S5 jump detection, which are as follows:

[0078] S1-Linear fitting of lane detection results:

[0079] Lane line recognition is performed through the sensors of the mobile tool, and the lane line recognition results output by the sensor network are given in the form of a pixel point sequence. For the pixel point sequence representing the lane line on a certain side, a straight line fitting can be performed based on the (x, y) values ​​given by it, and the straight line expression y=kx+b is obtained. Among them, since the lane line is detected for the left lane line S1 and the right lane line S2 of the mobile tool relative to the vehicle, the straight line expression obtained includes the straight line expression of the left lane line S1 and the straight line expression of the right lane line S2.

[0080] S2-Calculation of x eigenvalue after fixing y value:

[0081] For each frame of the image to be detected input to the network, it has the same resolution. For the network output results that jump, based on the straight line fitted by S1, the fitting results k and b are significantly different from the historical results. Directly comparing k or b is a feasible idea, but at common image resolutions, such as 1280*720, the value of k selected for fitting is often small, and it is difficult to observe obvious changes after differentiation. The value of b selected for fitting often has a large error. Therefore, the present invention fixes y, such as selecting y=700 at a resolution of 1280*720, and calculates x=(700-b) / k. Since the lane lines in the image are often not parallel to the x-axis in the image coordinate system, the x feature obtained based on the above method is often effective.

[0082] S3-weighted summation:

[0083] To simplify the calculation, for the lane lines on both sides, the x feature values ​​of the lane lines on both sides are calculated based on S1 and S2, and the weighted sum is obtained to obtain the total x feature for a certain detection result, represented by X. In general, it can be expressed as Due to the jump, whether the lane line on one side jumps or the lane lines on both sides jump, the X feature is significantly different from the historical feature. Therefore, it is more appropriate to perform continuity detection of the network output results based on this feature.

[0084] S4-Differentiation with the X feature detected in the previous frame:

[0085] Take the image sequence collected in a high-speed scene and the lane line recognition result output by the network as an example, where the original image resolution is 1280*720, and the fixed y=700 is selected. X features are calculated for the part of the recognition result where lane lines exist on both sides. For the X features output by each frame, it is differentiated from the X features of the previous frame, where the differential result of the first frame is set to 0. For each frame of the image, the original X features calculated based on the lane line recognition result output by the network and the difference between it and the previous frame;

[0086] After differentiating the X feature of each frame from the historical information, obvious impact features can be observed, and the noise caused by sensor measurement errors or other factors in the original X can be effectively filtered after differentiation. The data with impact features are traced back, and the lane line recognition results on both sides output by the network are marked on the original image to obtain an image corresponding to a certain impact pulse. Affected by factors such as lane line wear and occlusion by other vehicles in the environment, the recognition result of the lane line on the left side of the vehicle jumps during the driving process, and the lane line on the left side of the vehicle is recognized.

[0087] S5-Transition Detection

[0088] For the difference value calculated after step S4, by setting a threshold, it is possible to determine whether there is an impact feature, thereby determining whether the lane line result recognized in this frame has a jump compared to the historical information.

[0089] The lane line recognition result jump detection method proposed in this example can directly perform jump detection based on the output results of the network. The straight line fitting method has the characteristics of small computational complexity, few required computing resources, and high real-time performance. It can ensure the continuity of the network output results. The stable and continuous lane line recognition results provide good input and constraints for the decision-making and control modules of the autonomous driving system, thereby ensuring safe operation.

[0090] Embodiment 3

[0091] Based on the same technical concept, this embodiment also provides a lane line recognition result jump detection device, such as Figure 6 As shown, the device comprises:

[0092] A fitting module 1, wherein the fitting module 1 is used to obtain a lane line recognition result of a current frame, and perform straight line fitting based on the lane line recognition result of the current frame to obtain a fitting straight line of the current frame;

[0093] A confirmation module 2, the confirmation module 2 is used to confirm the lane line feature corresponding to the current frame based on the fitting straight line;

[0094] A detection module 3, the detection module 3 is used to compare the lane line features corresponding to the current frame with the lane line features corresponding to the previous frame, and perform jump detection on the lane line recognition result of the current frame based on the comparison result;

[0095] Among them, the lane line recognition result of the current frame includes: a first lane line recognition result and a second lane line recognition result, and a straight line fitting is performed based on the lane line recognition result of the current frame to obtain a fitted straight line of the current frame, including: obtaining a pixel point sequence contained in the first lane line recognition result and the second lane line recognition result; performing a straight line fitting based on the pixel point sequence contained in the first lane line recognition result and the pixel point sequence contained in the second lane line recognition result, respectively, to obtain a first fitting result and a second fitting result, and using the first fitting result and the second fitting result as the fitted straight line.

[0096] Among them, confirming the lane line features corresponding to the current frame based on the fitting straight line includes: determining a target value based on the output resolution of the sensor; bringing the target value into the first fitting result and the second fitting result, respectively, to determine the first lane line features corresponding to the first fitting result and the second lane line features corresponding to the second fitting result; determining the lane line features corresponding to the current frame based on the first lane line features and the second lane line features.

[0097] Among them, determining the lane line feature corresponding to the current frame based on the first lane line feature and the second lane line feature includes: determining a fixed weight, weighting the first lane line feature and the second lane line feature based on the fixed weight, respectively, to obtain a first weighted feature and a second weighted feature; combining the first weighted feature and the second weighted feature to obtain the lane line feature corresponding to the current frame.

[0098] Among them, the lane line features corresponding to the current frame are compared with the lane line features corresponding to the previous frame, and the lane line recognition result of the current frame is detected for jumps based on the comparison result, including: differentially comparing the lane line features corresponding to the current frame with the lane line features corresponding to the previous frame to obtain a differential value; comparing the differential value with a target threshold, if the differential value is higher than the target threshold, it is determined that the lane line recognition result of the current frame has a jump.

[0099] Wherein, determining the lane line feature corresponding to the current frame based on the first lane line feature and the second lane line feature includes: directly determining the first lane line feature and the second lane line feature as the lane line features corresponding to the current frame; comparing the lane line feature corresponding to the current frame with the lane line feature corresponding to the previous frame, and performing jump detection on the lane line recognition result of the current frame based on the comparison result, including: comparing the first lane line feature corresponding to the current frame with the first lane line feature corresponding to the previous frame, and obtaining a first comparison result, and performing jump detection on the first lane line recognition result of the current frame based on the first comparison result; comparing the second lane line feature corresponding to the current frame with the second lane line feature corresponding to the previous frame, and obtaining a second comparison result, and performing jump detection on the second lane line recognition result of the current frame based on the second comparison result.

[0100] Among them, before comparing the lane line features corresponding to the current frame with the lane line features corresponding to the previous frame, and performing jump detection on the lane line recognition result of the current frame based on the comparison result, the method also includes: determining the lane line features corresponding to the previous frame; if the lane line features corresponding to the previous frame are default values, stopping comparing the lane line features corresponding to the current frame with the lane line features corresponding to the previous frame.

[0101] It should be understood that the various template combinations of the lane line recognition result jump detection device provided in this embodiment can implement the various steps of the above-mentioned lane line recognition result jump detection method, and achieve the same technical effects as the various steps of the lane line recognition result jump detection method, which will not be repeated here.

[0102] Embodiment 4

[0103] An embodiment of the present application also provides an electronic device, comprising one or more processors and a storage device, wherein the storage device is used to store one or more computer programs. When the one or more computer programs are executed by one or more processors, the electronic device implements the above lane line recognition result jump method.

[0104] Figure 7 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.

[0105] It should be noted that Figure 7 The computer system 1800 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.

[0106] like Figure 7 As shown, the computer system 1800 includes a processor (Central Processing Unit, CPU) 1801, which can perform various appropriate actions and processes according to the program stored in the read-only memory (Read-Only Memory, ROM) 1802 or the program loaded from the storage part 1808 to the random access memory (Random Access Memory, RAM) 1803, such as executing the method in the above embodiment. In RAM 1803, various programs and data required for system operation are also stored. CPU 1801, ROM 1802 and RAM 1803 are connected to each other through bus 1804. Input / output (Input / Output, I / O) interface 1805 is also connected to bus 1804.

[0107] In some embodiments, the following components are connected to the I / O interface 1805: an input section 1806 including a keyboard, a mouse, etc.; an output section 1807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1808 including a hard disk, etc.; and a communication section 1809 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 1809 performs communication processing via a network such as the Internet. A drive 1810 is also connected to the I / O interface 1805 as needed. A removable medium 1811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1810 as needed, so that a computer program read therefrom is installed into the storage section 1808 as needed.

[0108] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer 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 includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 1809, and / or installed from a removable medium 1811. When the computer program is executed by a processor (CPU) 1801, various functions defined in the system of the present application are executed.

[0109] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (Erasable Programmable Read Only Memory), a flash memory, an optical fiber, a portable compact disk read-only memory (Compact Disc Read-Only Memory, CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. This propagated data signal can take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. A computer program contained on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0110] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the devices, methods and computer program products according to various embodiments of the present application. Among them, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and a computer program.

[0111] The units or modules involved in the embodiments described in this application may be implemented by software or hardware, and the units or modules described may also be set in a processor. The names of these units or modules do not, in some cases, constitute limitations on the units or modules themselves.

[0112] Another aspect of the present application further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the lane line recognition result jump method as described above is implemented. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.

[0113] Another aspect of the present application further provides a computer program product, which includes a computer program stored in a computer-readable storage medium. A processor of an electronic device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the electronic device executes the lane line recognition result jump method as described above in the above embodiments.

[0114] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.

[0115] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.

[0116] The above content is only a preferred exemplary embodiment of the present application and is not intended to limit the implementation scheme of the present application. A person of ordinary skill in the art can easily make corresponding changes or modifications based on the main concept and spirit of the present application. Therefore, the scope of protection of the present application shall be based on the scope of protection required by the claims.

Claims

1. A lane line recognition result jump detection method, characterized in that: The method comprises: Acquire a lane line recognition result of a current frame, and perform straight line fitting based on the lane line recognition result of the current frame to obtain a fitting straight line of the current frame; Confirming the lane line feature corresponding to the current frame based on the fitting straight line; The lane line features corresponding to the current frame are compared with the lane line features corresponding to the previous frame, and based on the comparison result, jump detection is performed on the lane line recognition result of the current frame.

2. The method according to claim 1, characterized in that The lane line recognition result of the current frame includes: a first lane line recognition result and a second lane line recognition result. A straight line fitting is performed based on the lane line recognition result of the current frame to obtain a fitting straight line of the current frame, including: Obtaining a pixel point sequence included in the first lane line recognition result and the second lane line recognition result; Straight line fitting is performed based on the pixel point sequence included in the first lane line recognition result and the pixel point sequence included in the second lane line recognition result to obtain a first fitting result and a second fitting result, and the first fitting result and the second fitting result are used as the fitting straight line.

3. The method according to claim 2, characterized in that Confirming the lane line feature corresponding to the current frame based on the fitting straight line includes: Determine the target value based on the output resolution of the sensor; Substituting the target value into the first fitting result and the second fitting result, respectively, to determine a first lane line feature corresponding to the first fitting result and a second lane line feature corresponding to the second fitting result; The lane line feature corresponding to the current frame is determined based on the first lane line feature and the second lane line feature.

4. The method according to claim 3, characterized in that Determining a lane line feature corresponding to the current frame based on the first lane line feature and the second lane line feature includes: Determine a fixed weight, and weight the first lane line feature and the second lane line feature based on the fixed weight to obtain a first weighted feature and a second weighted feature; The first weighted feature and the second weighted feature are combined to obtain a lane line feature corresponding to the current frame.

5. The method according to claim 1, characterized in that: Comparing the lane line feature corresponding to the current frame with the lane line feature corresponding to the previous frame, and performing jump detection on the lane line recognition result of the current frame based on the comparison result, including: Performing a differential comparison between the lane line feature corresponding to the current frame and the lane line feature corresponding to the previous frame to obtain a differential value; The difference value is compared with a target threshold value, and if the difference value is higher than the target threshold value, it is determined that a lane line recognition result of the current frame has a jump.

6. The method according to claim 3, characterized in that Determining the lane line feature corresponding to the current frame based on the first lane line feature and the second lane line feature, including: directly determining the first lane line feature and the second lane line feature as the lane line feature corresponding to the current frame; comparing the lane line feature corresponding to the current frame with the lane line feature corresponding to the previous frame, and performing jump detection on the lane line recognition result of the current frame based on the comparison result, including: Comparing the first lane line feature corresponding to the current frame with the first lane line feature corresponding to the previous frame to obtain a first comparison result, and performing jump detection on the first lane line recognition result of the current frame based on the first comparison result; The second lane line feature corresponding to the current frame is compared with the second lane line feature corresponding to the previous frame to obtain a second comparison result, and a jump detection is performed on the second lane line recognition result of the current frame based on the second comparison result.

7. The method according to claim 1, characterized in that Before comparing the lane line feature corresponding to the current frame with the lane line feature corresponding to the previous frame and performing jump detection on the lane line recognition result of the current frame based on the comparison result, the method further includes: Determine the lane line feature corresponding to the previous frame; If the lane line feature corresponding to the previous frame is a default value, then the comparison of the lane line feature corresponding to the current frame with the lane line feature corresponding to the previous frame is stopped.

8. A lane line recognition result jump detection device, characterized in that: The device comprises: A fitting module, the fitting module is used to obtain a lane line recognition result of the current frame, and perform straight line fitting based on the lane line recognition result of the current frame to obtain a fitting straight line of the current frame; A confirmation module, the confirmation module is used to confirm the lane line feature corresponding to the current frame based on the fitting straight line; A detection module, the detection module is used to compare the lane line features corresponding to the current frame with the lane line features corresponding to the previous frame, and perform jump detection on the lane line recognition result of the current frame based on the comparison result.

9. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the electronic device to execute the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor of an electronic device, the electronic device is caused to execute the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Lane line detection method and device

    CN105069415A

  • Lane line detection method and device and vehicle-mounted device

    CN109977776A

  • Lane line determination method and device, positioning precision evaluation method and device and equipment

    CN111860319A

  • Lane line fusion method and device, equipment and storage medium

    CN114926813A

  • Systems and methods for lane detection

    US20210406561A1

Cited By

  • Vehicle track online correction method based on thunder-vision fusion

    CN121837073A