A lane line intersection point detection method, device, equipment and storage medium
By detecting lane line point clusters from vehicle images, fitting equations, and using Kalman filtering to track intersections, the problem of inaccurate lane line intersection recognition when GPS signals are insufficient is solved, achieving stable lane line intersection detection and ensuring the safety of the autonomous driving system.
Patent Information
- Application Number
- CN202311803291.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-25
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-12-25
AI Technical Summary
Existing technologies rely on GPS and high-precision maps for lane intersection detection, which results in poor detection stability and inaccurate identification of lane intersections when GPS signals are insufficient.
By detecting images during vehicle movement, lane line point clusters are obtained, lane line equations are fitted, lane line status is determined, and Kalman filter equations are used to track intersections. The Euclidean distance formula is combined to adjust observation noise and accurately solve for the coordinates of lane line intersections.
Even when GPS signals are weak, it can accurately identify lane line intersections, ensuring the stability of the driving system and driving safety, and avoiding inaccurate detection problems caused by insufficient GPS signals.
Smart Images

Figure CN118135512B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of driver assistance technology, and in particular to a method, apparatus, device, and storage medium for detecting lane intersections. Background Technology
[0002] In areas such as highways and ramp merging / exiting areas, lanes merge and separate, resulting in lane markings intersecting. Accurately identifying lane intersections improves the autonomous driving system's understanding of lane topology, providing a basis for the planning and control module.
[0003] Current technical solutions rely on the Global Positioning System (GPS) and high-definition maps. GPS provides location information, which is then combined with high-definition maps to determine if lane lines intersect. However, GPS and high-definition maps not only increase the cost of using autonomous driving, but also, if the current GPS signal is insufficient to support vehicle positioning, lane line intersection detection will be impossible, leading to poor stability of the driving system. Summary of the Invention
[0004] This invention provides a method, apparatus, computer device, and storage medium for detecting lane intersections.
[0005] In a first aspect, the present invention provides a method for detecting lane intersections, comprising:
[0006] Lane line point clusters are obtained by detecting images during vehicle movement;
[0007] The lane line point cluster is fitted to obtain the lane line equation;
[0008] Based on the lane line equation, the current lane line state is obtained, wherein the lane line state includes lane line bifurcation state and lane line merging state;
[0009] Based on the lane line status, the lane line equation is solved to obtain the coordinates of the lane line intersection points.
[0010] Furthermore, after obtaining the coordinates of the lane intersections, the process also includes:
[0011] The lane intersections are tracked using the Kalman filter equation to obtain measured and predicted intersection values.
[0012] The current tracking count is obtained, and the observation noise is adjusted according to the tracking count. When the tracking count is less than a threshold value a, the observation noise is set as the first observation noise. When the tracking count is greater than or equal to the threshold value a, the distance m between the measured value and the predicted value of the intersection point is obtained using the Euclidean distance formula. If m is less than a distance threshold value b, the observation noise is set as the first observation noise. If m is greater than or equal to the distance threshold value b, the observation noise is set as the second observation noise, and the second observation noise is greater than the first observation noise.
[0013] Further, obtaining the current lane line state based on the lane line equation includes:
[0014] Obtain the overlapping area of lane line L1 and lane line L2 in the x direction, where the x direction is the vehicle travel direction;
[0015] Within the overlapping area, obtain the difference Δy between lane line L1 and lane line L2 in the y direction, wherein the y direction is perpendicular to the vehicle's direction of travel;
[0016] If Δy decreases monotonically in the x-direction, then the lane line state is a lane line merging state;
[0017] If Δy increases monotonically in the x-direction, then the lane line state is a lane line bifurcation state.
[0018] Further, fitting the lane line point cluster to obtain the lane line equation includes:
[0019] The lane line equation is obtained by fitting the lane line point cluster with a cubic equation.
[0020] Further, the step of solving the lane line equation based on the lane line state to obtain the coordinates of the lane line intersection points includes:
[0021] The equations for the two lane lines are solved using the Shengjin formula to obtain real-valued solutions.
[0022] If the real solution is unique and satisfies the first condition, the unique real solution is confirmed as the lane line intersection point. The first condition is that when the lane lines are in a bifurcated state, the x-coordinate of the real solution is less than the starting position of the overlapping area, and when the lane lines are in a merged state, the x-coordinate of the real solution is greater than the ending position of the overlapping area.
[0023] If the real solution is not unique, the real solution is filtered by the first condition, and the real solution that satisfies the first condition is confirmed as the lane line intersection point.
[0024] Furthermore, after filtering the real solutions using the first condition, if a unique real solution still does not exist, then:
[0025] Obtain the start and end coordinates of lane line L1 and lane line L2 within the overlapping area;
[0026] Based on the starting point coordinates and the ending point coordinates, establish the straight line equations of lane line L1 and lane line L2;
[0027] Obtain the coordinates of the intersection point of the line equation, and use the Euclidean distance formula to obtain the distance between the real solution and the coordinates of the intersection point of the line equation;
[0028] The real solution closest to the intersection point of the line equation is identified as the lane line intersection point.
[0029] Secondly, the present invention also provides a lane intersection detection device, comprising:
[0030] The lane line recognition module is used to detect lane line point clusters by analyzing images of vehicles in motion.
[0031] The lane line generation module is used to fit the lane line point cluster to obtain the lane line equation;
[0032] The lane line status acquisition module is used to acquire the current lane line status according to the lane line equation, wherein the lane line status includes lane line bifurcation status and lane line merging status.
[0033] The intersection confirmation module is used to solve the lane line equation based on the lane line status to obtain the coordinates of the lane line intersection point.
[0034] Furthermore, the intersection confirmation module also includes:
[0035] The intersection tracking unit is used to track the intersection of the lane lines using the Kalman filter equation, and to obtain the intersection measurement value and the intersection prediction value.
[0036] An observation noise adjustment unit is used to obtain the current number of tracking attempts and adjust the observation noise according to the number of tracking attempts. When the number of tracking attempts is less than a threshold value a, the observation noise is set as the first observation noise. When the number of tracking attempts is greater than or equal to the threshold value a, the distance m between the measured value and the predicted value of the intersection point is obtained using the Euclidean distance formula. If m is less than a distance threshold value b, the observation noise is set as the first observation noise. If m is greater than or equal to the distance threshold value b, the observation noise is set as the second observation noise, where the second observation noise is greater than the first observation noise.
[0037] Thirdly, the present invention also provides a computer device, comprising:
[0038] At least one memory and at least one processor;
[0039] The memory is used to store one or more programs;
[0040] When the one or more programs are executed by the at least one processor, the at least one processor implements the steps of a lane intersection detection method as described in the first aspect.
[0041] Fourthly, the present invention also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of a lane intersection detection method as described in the first aspect.
[0042] This invention detects lane line point clusters in images during vehicle movement; then fits these lane line point clusters to obtain lane line equations; based on these equations, the current lane line state is obtained, including lane line bifurcation and lane line merging states; and based on these states, the lane line equations are solved to obtain the coordinates of lane line intersections. This invention solves the technical problem of being unable to identify lane line intersections when GPS positioning signals are weak and the vehicle's current location cannot be accurately determined. Furthermore, it accurately judges the states between lane lines, thereby precisely identifying the positions of lane line intersections, ensuring the stability of the driving system's detection, and guaranteeing driving safety.
[0043] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. Attached Figure Description
[0044] Figure 1 This is a flowchart illustrating the steps of a lane intersection detection method provided in an exemplary embodiment.
[0045] Figure 2 This is a schematic diagram of the overlapping area of a lane intersection detection method provided in an exemplary embodiment;
[0046] Figure 3 This is a schematic diagram of lane bifurcation state in a lane intersection detection method provided in an exemplary embodiment;
[0047] Figure 4 This is a schematic diagram of lane merging state in a lane intersection detection method provided in an exemplary embodiment;
[0048] Figure 5 This is a schematic diagram of an actual detection screen in a lane intersection detection method provided in an exemplary embodiment;
[0049] Figure 6 This is a schematic diagram of the detection result in a lane intersection detection method provided in an exemplary embodiment;
[0050] Figure 7 This is a schematic diagram of a lane intersection detection device provided in an exemplary embodiment;
[0051] Figure 8 This is an internal structure diagram of a computer device configured as a server, provided in one exemplary embodiment.
[0052] Figure 9 This is an internal structure diagram of a computer device configured as a terminal, provided in one exemplary embodiment. Detailed Implementation
[0053] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0054] It should be understood that the described embodiments are merely some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of the embodiments of this application.
[0055] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to limit the embodiments of this application. The singular forms “a,” “the,” and “the” used in the embodiments of this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any or all possible combinations of one or more of the associated listed items.
[0056] In the following description, when referring to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims. In the description of this application, it should be understood that the terms "first," "second," "third," etc., are used only to distinguish similar objects and are not necessarily used to describe a specific order or sequence, nor should they be construed as indicating or implying relative importance. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.
[0057] Furthermore, in the description of this application, unless otherwise stated, "multiple" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.
[0058] Therefore, based on consideration of the background technology, this application provides a lane intersection detection method, such as... Figure 1 As shown, the method includes the following steps:
[0059] S201: Obtain lane line point clusters by detecting images during vehicle movement.
[0060] Specifically, the images of the vehicle during its movement are acquired by an image acquisition device installed on the vehicle. This image acquisition device includes, but is not limited to, cameras and video recording equipment. In this embodiment, images of the area in front of the vehicle are acquired using a front wide-angle camera and a front telephoto camera positioned at the front of the vehicle.
[0061] In a specific example, after acquiring the vehicle driving image, the image is preprocessed, including but not limited to image denoising, image enhancement, color space conversion and other preprocessing methods. Then, feature extraction is performed on the preprocessed image to obtain lane line point clusters, wherein the features include but are not limited to color, edge and texture features.
[0062] S202: Fit the lane line point cluster to obtain the lane line equation.
[0063] Specifically, the lane line point cluster is represented as a series of two-dimensional coordinate points, containing the shape information of the lane lines in the image. After obtaining the coordinates of the lane line point cluster, the coordinates are transformed into the vehicle coordinate system, and a lane line fitting model is defined, which is then used to fit the lane lines using the least squares method.
[0064] In a preferred embodiment, lane lines are fitted using cubic equations. Cubic equations can better fit curved lane lines, and their performance is better than that of fitting lane lines with straight lines at intersections.
[0065] Specifically, the lane lines are fitted using a cubic equation model, which is as follows:
[0066] y(x)=C0+C1x+C2x 2 +C3x 3
[0067] Wherein, C0, C1, C2, and C3 are all fitting parameters.
[0068] In other examples, lane lines can be fitted using other higher-order polynomial equations based on actual working conditions. However, it should be noted that while higher-order polynomials can fit lane lines better, they are more sensitive to noise and outliers. Therefore, the choice of polynomial order should take into account the impact of noise to avoid overfitting, which could reduce the accuracy and robustness of the lane lines.
[0069] S203: Obtain the current lane line state according to the lane line equation, wherein the lane line state includes lane line bifurcation state and lane line merging state.
[0070] In a preferred embodiment, obtaining the current lane line state according to the lane line equation includes: obtaining the overlapping area of lane line L1 and lane line L2 in the x-direction, wherein the x-direction is the vehicle travel direction; obtaining the difference Δy between lane line L1 and lane line L2 in the y-direction within the overlapping area, wherein the y-direction is perpendicular to the vehicle travel direction; if Δy monotonically decreases in the x-direction, the lane line state is a lane merging state; if Δy monotonically increases in the x-direction, the lane line state is a lane bifurcation state.
[0071] Specifically, such as Figure 2 As shown, the detected lane lines are traversed, and two lane lines, L1 and L2, are obtained. The overlapping area of the two lane lines in the x-direction is obtained, and the starting position of the overlapping area is recorded as x_start and the ending position of the overlapping area is recorded as x_end, according to the vehicle's travel direction. Based on the lane line equation of lane line L1, the position information of lane line L1 at x_start and x_end is obtained (x_start, y1_start) and (x_end, y1_end); based on the lane line equation of lane line L2, the position information of lane line L2 at x_start and x_end is obtained (x_start, y2_start) and (x_end, y2_end).
[0072] In one embodiment, the lane line status can be determined by obtaining the distance in the y-direction between the start and end positions of the two lane lines in the overlapping area, and using a preset threshold value. If the difference in the y-direction distance between the lane lines at the start position is greater than the difference in the y-direction distance at the end position, the two lane lines are considered to be in a merged state; if the difference in the y-direction distance between the lane lines at the start position is less than the difference in the y-direction distance at the end position, the two lane lines are considered to be in a bifurcated state.
[0073] In a preferred embodiment, the lane line state can also be obtained by determining the monotonicity of the y-direction spacing between the two lane lines. Specifically:
[0074] Obtain the equation y1(x) for lane line L1 and the equation y2(x) for lane line L2;
[0075] Take n points within the overlapping region (x_start, x_end), and divide the overlapping region into n-1 segments along the x-direction, where the interval length of the overlapping region is...
[0076] length = x_end - x_start
[0077] The length of each segment in the overlapping region is:
[0078] perlength = length / (n-1)
[0079] The coordinates of the k-th point in the x-direction among the n points are:
[0080] x_k=x_start+k perlengt(0≤k <n)
[0081] Obtain the y-coordinates of lane lines L1 and L2 at the x_k coordinate, and calculate the difference Δy_k between their y-coordinates:
[0082] y1_k=y1(x_k)
[0083] y2_k=y2(x_k)
[0084] Δy_k=fabs(y1_k-y2_k)
[0085] like Figure 3 As shown, if Δy_0, Δy_1, ..., Δy_(n-1) are monotonically increasing, that is:
[0086] Δy_1-Δy_0≥0
[0087] Δy_2-Δy_1≥0 ......
[0089] Δy_(n-1)-Δy_(n-2)≥0
[0090] Then it is determined that the current lane line is in a bifurcation state;
[0091] like Figure 4 As shown, if Δy_0, Δy_1, ..., Δy_(n-1) are monotonically decreasing, that is:
[0092] Δy_1-Δy_0≤0
[0093] Δy_2-Δy_1≤0 ......
[0095] Δy_(n-1)-Δy_(n-2)≤0
[0096] Then it is determined that the current lane lines are in a merged state.
[0097] Unlike the conventional method of determining the relationship between two lane lines by using threshold values, this application's embodiment introduces monotonicity to determine the lane line intersection type. By judging the size of the distance between multiple points, rather than just the distance between the first and last points, the judgment of the lane line status is more accurate and can cover complex and ever-changing actual working conditions. This avoids the possibility of missed detections or false detections that may result from setting the threshold value too high or too low.
[0098] S204: Solve the lane line equation based on the lane line state to obtain the coordinates of the lane line intersection point.
[0099] In a preferred embodiment, the lane line equations are solved to obtain real solutions. Based on the current state relationship between the two lane lines, the real solutions are categorized and discussed to obtain a unique lane line intersection point. Specifically, the two lane line equations are solved using the Shengjin formula to obtain real solutions. If the real solution is unique and satisfies a first condition, the unique real solution is confirmed as the lane line intersection point. The first condition is that when the lane lines are in a bifurcation state, the x-coordinate of the real solution is less than the starting position of the overlapping area; when the lane lines are in a merging state, the x-coordinate of the real solution is greater than the ending position of the overlapping area. If the real solutions are not unique, they are filtered according to the first condition, and the real solution satisfying the first condition is confirmed as the lane line intersection point.
[0100] In a specific example, if the equations of lane lines L1 and L2 have only one real solution (x0, y0) and satisfy the first condition, then this real solution (x0, y0) is identified as the intersection point. The first condition is:
[0101] If L1 and L2 are in a lane bifurcation state, then x0 must be satisfied. <x_start;
[0102] If L1 and L2 are in a lane merging state, then x0 > x_end must be satisfied.
[0103] If the equations for lane lines L1 and L2 have two or three real solutions, then all real solutions are filtered according to the first condition mentioned above. If only one real solution satisfies the first condition after filtering, then the solution is confirmed as the lane line intersection.
[0104] If, after filtering the real solutions according to the first condition, there is still no unique real solution, then:
[0105] Obtain the starting and ending coordinates of lane lines L1 and L2 within the overlapping area; establish the straight line equations of lane lines L1 and L2 based on the starting and ending coordinates; obtain the intersection coordinates of the straight line equations, and obtain the distance between the real solution and the intersection coordinates of the straight line equations using the Euclidean distance formula; confirm that the real solution closest to the intersection of the straight line equations is the lane line intersection point.
[0106] Specifically, based on the first and last two points of lane line L1 (x_start, y1_start), and (x_end, y1_end), establish straight line a1; based on the first and last two points of lane line L1 (x_start, y2_start), and (x_end, y2_end), establish straight line a2; based on the equations of the two lines a1 and a2, calculate the coordinates of their intersection point (x_temp, y_temp).
[0107] By using the Euclidean distance formula:
[0108]
[0109] Obtain the Euclidean distances between all real solutions and the intersection points of the line equation, and identify the point with the smallest distance from the line intersection point as the intersection point of the lane lines.
[0110] In a preferred embodiment, after confirming the lane line intersection, the lane line intersection needs to be tracked as an observation value to assist the vehicle's autonomous driving system in judging the vehicle's current driving status.
[0111] Specifically, the lane intersections are tracked using the Kalman filter equation to obtain measured and predicted intersection values. The current tracking count is obtained, and the observation noise is adjusted based on the tracking count. When the tracking count is less than a threshold value a, the observation noise is set as the first observation noise. When the tracking count is greater than or equal to the threshold value a, the distance m between the measured and predicted intersection values is obtained using the Euclidean distance formula. If m is less than a distance threshold b, the observation noise is set as the first observation noise. If m is greater than or equal to the distance threshold b, the observation noise is set as the second observation noise, where the second observation noise is greater than the first observation noise.
[0112] In a specific example, the Kalman filter equation with adaptive adjustment of observation noise is used to track the intersection points, including:
[0113] Set the state vector as follows:
[0114] s(k)=[x0(k),y0(k)]T
[0115] Set the state transition matrix as follows:
[0116]
[0117] Where θ is the turning angle of the vehicle from time k to time k+1.
[0118] Set the control matrix as follows:
[0119]
[0120] Set the control vector as follows:
[0121]
[0122] The prediction equation is set as follows:
[0123] s(k+1)=A*s(k)+B*u
[0124] Set the measurement matrix as follows:
[0125] H = [1, 1] T
[0126] The observations of the x and y coordinates are set to be independent, and the observation noise is set as follows:
[0127]
[0128] When the current number of tracking attempts is less than the threshold value 'a', a smaller observation noise value is set to achieve fast tracking.
[0129] When the number of tracking attempts exceeds the threshold value 'a', according to the Euclidean distance formula...
[0130]
[0131] Calculate the distance m between the measured value and the predicted value of the intersection point;
[0132] When the distance m is less than the distance threshold b, a smaller observation noise is set;
[0133] When the distance m is greater than the distance threshold b, a larger observation noise is set to obtain a smooth trajectory. Both the number of observations threshold a and the distance threshold b need to be adjusted according to actual working conditions, and the most suitable value is selected as the threshold.
[0134] In a specific application scenario, such as Figure 5 As shown, Figure 5 The image is captured by the front telephoto camera during vehicle movement. The lane intersection detection method described in this application is used to detect lane intersections in the current image. The detection results are as follows: Figure 6 As shown, the white box area represents the identified lane line intersection locations.
[0135] This application embodiment detects lane line point clusters in images during vehicle movement; then fits these lane line point clusters to obtain lane line equations; based on these equations, the current lane line state is obtained, including lane line bifurcation and lane line merging states; and based on these states, the lane line equations are solved to obtain the coordinates of lane line intersections. Furthermore, after obtaining the lane line intersection coordinates, a Kalman filter equation is used to stably track the lane line intersections. This application embodiment solves the technical problem of being unable to identify lane line intersections when GPS positioning signals are weak and the current vehicle position cannot be accurately determined. It also accurately judges the state between lane lines, thereby precisely identifying the location of lane line intersections, ensuring the stability of the driving system's detection, and guaranteeing driving safety.
[0136] This application also provides a lane intersection detection device 300, such as... Figure 7 As shown, it includes:
[0137] The lane line recognition module 301 is used to obtain lane line point clusters by detecting images during vehicle travel.
[0138] Lane line generation module 302 is used to fit the lane line point cluster to obtain the lane line equation;
[0139] The lane line status acquisition module 303 is used to acquire the current lane line status according to the lane line equation, wherein the lane line status includes lane line bifurcation status and lane line merging status.
[0140] The intersection confirmation module 304 is used to solve the lane line equation based on the lane line status and obtain the coordinates of the lane line intersection.
[0141] In one exemplary example, the intersection confirmation module 304 further includes:
[0142] The intersection tracking unit is used to track the intersection of the lane lines using the Kalman filter equation, and to obtain the intersection measurement value and the intersection prediction value.
[0143] An observation noise adjustment unit is used to obtain the current number of tracking attempts and adjust the observation noise according to the number of tracking attempts. When the number of tracking attempts is less than a threshold value a, the observation noise is set as the first observation noise. When the number of tracking attempts is greater than or equal to the threshold value a, the distance m between the measured value and the predicted value of the intersection point is obtained using the Euclidean distance formula. If m is less than a distance threshold value b, the observation noise is set as the first observation noise. If m is greater than or equal to the distance threshold value b, the observation noise is set as the second observation noise, where the second observation noise is greater than the first observation noise.
[0144] It should be noted that both the lane intersection detection device and the lane intersection detection method originate from the same inventive concept. For a related explanation of the lane intersection detection device, please refer to the embodiments in the lane intersection detection method, which will not be repeated here.
[0145] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 8As shown, this computer device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operating system and computer programs stored in the non-volatile storage media. The database stores data. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communicating with external terminals via a network. When executed by the processor, the computer program implements a lane intersection detection method.
[0146] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 9 As shown, the computer device includes a processor, memory, input / output interface, communication interface, display unit, and input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interface. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input / output interface is used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When executed by the processor, the computer program implements a lane intersection detection method. The display unit is used to form a visually visible image and can be a display screen, projection device, or virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.
[0147] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements a lane intersection detection method as described in any of the above embodiments.
[0148] This invention can take the form of a computer program product implemented on one or more storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing program code. Computer-readable storage media include permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to: phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information accessible by a computing device.
[0149] It should be understood that the embodiments of this application are not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from their scope. The scope of the embodiments of this application is limited only by the appended claims.
[0150] The above-described embodiments are merely illustrative of several implementation methods of the embodiments of this application, and their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of the embodiments of this application, and these all fall within the protection scope of the embodiments of this application.
Claims
1. A method for detecting lane intersections, characterized in that, Includes the following steps: Lane line point clusters are obtained by detecting images during vehicle movement; The lane line point cluster is fitted to obtain the lane line equation; Based on the lane line equation, the current lane line state is obtained, and the overlapping area of lane line L1 and lane line L2 in the x direction is obtained, wherein the x direction is the vehicle travel direction, and the lane line state includes lane line bifurcation state and lane line merging state. Based on the lane line condition, the lane line equation is solved to obtain the coordinates of the lane line intersection points, including: The equations for the two lane lines are solved using the Shengjin formula to obtain real-valued solutions. If the real solution is unique and satisfies the first condition, the unique real solution is confirmed as the lane line intersection point. The first condition is that when the lane lines are in a bifurcated state, the x-coordinate of the real solution is less than the starting position of the overlapping area, and when the lane lines are in a merged state, the x-coordinate of the real solution is greater than the ending position of the overlapping area. If the real solution is not unique, the real solution is filtered by the first condition, and the real solution that satisfies the first condition is confirmed as the lane line intersection point. If, after filtering the real solutions according to the first condition, there is still no unique real solution, then: obtain the starting coordinates and ending coordinates of lane line L1 and lane line L2 within the overlapping area; establish the straight line equations of lane line L1 and lane line L2 based on the starting coordinates and the ending coordinates; obtain the intersection coordinates of the straight line equations, and obtain the distance between the real solution and the intersection coordinates of the straight line equations using the Euclidean distance formula; confirm that the real solution closest to the intersection of the straight line equations is the lane line intersection point.
2. The lane intersection detection method according to claim 1, characterized in that, After obtaining the coordinates of the lane intersections, the process also includes: The lane intersections are tracked using the Kalman filter equation to obtain measured and predicted intersection values. The current tracking count is obtained, and the observation noise is adjusted according to the tracking count. When the tracking count is less than a threshold value a, the observation noise is set as the first observation noise. When the tracking count is greater than or equal to the threshold value a, the distance m between the measured value and the predicted value of the intersection point is obtained using the Euclidean distance formula. If m is less than a distance threshold value b, the observation noise is set as the first observation noise. If m is greater than or equal to the distance threshold value b, the observation noise is set as the second observation noise, and the second observation noise is greater than the first observation noise.
3. The lane intersection detection method according to claim 1, characterized in that, The step of obtaining the current lane line state based on the lane line equation includes: Within the overlapping area, obtain the difference Δy between lane line L1 and lane line L2 in the y direction, wherein the y direction is perpendicular to the vehicle's direction of travel; If Δy decreases monotonically in the x-direction, then the lane line state is a lane line merging state; If Δy increases monotonically in the x-direction, then the lane line state is a lane line bifurcation state.
4. The lane intersection detection method according to claim 3, characterized in that, The process of fitting the lane line point cluster to obtain the lane line equation includes: The lane line equation is obtained by fitting the lane line point cluster with a cubic equation.
5. A lane intersection detection device, characterized in that, include: The lane line recognition module is used to detect lane line point clusters by analyzing images of vehicles in motion. The lane line generation module is used to fit the lane line point cluster to obtain the lane line equation; The lane line state acquisition module is used to acquire the current lane line state according to the lane line equation, and to acquire the overlapping area of lane line L1 and lane line L2 in the x direction, wherein the x direction is the vehicle travel direction; the lane line state includes lane line bifurcation state and lane line merging state. The intersection point confirmation module is used to solve the lane line equation based on the lane line state to obtain the coordinates of the lane line intersection point, including: The equations for the two lane lines are solved using the Shengjin formula to obtain real-valued solutions. If the real solution is unique and satisfies the first condition, the unique real solution is confirmed as the lane line intersection point. The first condition is that when the lane lines are in a bifurcated state, the x-coordinate of the real solution is less than the starting position of the overlapping area, and when the lane lines are in a merged state, the x-coordinate of the real solution is greater than the ending position of the overlapping area. If the real solution is not unique, the real solution is filtered by the first condition, and the real solution that satisfies the first condition is confirmed as the lane line intersection point. If, after filtering the real solutions according to the first condition, there is still no unique real solution, then: obtain the starting coordinates and ending coordinates of lane line L1 and lane line L2 within the overlapping area; establish the straight line equations of lane line L1 and lane line L2 based on the starting coordinates and the ending coordinates; obtain the intersection coordinates of the straight line equations, and obtain the distance between the real solution and the intersection coordinates of the straight line equations using the Euclidean distance formula; confirm that the real solution closest to the intersection of the straight line equations is the lane line intersection point.
6. The lane intersection detection device according to claim 5, characterized in that, The intersection confirmation module also includes: The intersection tracking unit is used to track the intersection of the lane lines using the Kalman filter equation, and to obtain the intersection measurement value and the intersection prediction value. An observation noise adjustment unit is used to obtain the current number of tracking attempts and adjust the observation noise according to the number of tracking attempts. When the number of tracking attempts is less than a threshold value a, the observation noise is set as the first observation noise. When the number of tracking attempts is greater than or equal to the threshold value a, the distance m between the measured value and the predicted value of the intersection point is obtained using the Euclidean distance formula. If m is less than a distance threshold value b, the observation noise is set as the first observation noise. If m is greater than or equal to the distance threshold value b, the observation noise is set as the second observation noise, where the second observation noise is greater than the first observation noise.
7. A computer device, characterized in that, include: At least one memory and at least one processor; The memory is used to store one or more programs; When the one or more programs are executed by the at least one processor, the at least one processor implements the steps of the lane intersection detection method as described in any one of claims 1 to 4.
8. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the lane intersection detection method as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Lane line recognition method, device and equipment and storage medium
CN111160086A
Cross lane line detection method, electronic equipment and storage medium
CN115995068A
