Lane line determination method and device, medium and equipment

By processing the image pixel sets and external parameters of cameras with different field of view angles, the problem of lane line perception deviation is solved and the accuracy and stability of lane line fusion in intelligent driving are improved.

CN118865299APending Publication Date: 2024-10-29SHANGHAI ANTING HORIZON INTELLIGENT TRANSP TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410868139.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

Cameras with different field of view have lateral deviations after sensing lane lines in intelligent driving and converting them to the same coordinate system, resulting in poor accuracy and stability of the fusion results of perceived lane lines.

Method used

By determining the image pixel point set of the first camera and the second camera, and performing conversion based on the external parameters, the external parameters of the second camera are corrected to eliminate the deviation, and the lane lines are determined by combining the two sampling point sets to improve the perception consistency and fusion accuracy. .

Benefits of technology

It effectively eliminates the lateral deviation between cameras, improves the accuracy and stability of lane line fusion, and enhances the decision-making basis of the intelligent driving system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118865299A_ABST
    Figure CN118865299A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a lane line determination method and device, a medium and equipment, and the method comprises the steps: determining a first image corresponding to a first camera and a second image corresponding to a second camera; determining a first lane line pixel point set based on the first image; determining a second lane line pixel point set based on the second image; based on the first lane line pixel point set and a first external parameter of a first camera, determining a first lane line sampling point set corresponding to the first lane line pixel point set under a vehicle local coordinate system; determining a corrected external parameter corresponding to a second external parameter of the second camera; based on the second lane line pixel point set and the corrected external parameter, determining a second lane line sampling point set corresponding to the second lane line pixel point set under the vehicle local coordinate system; and determining a lane line based on the first lane line sampling point set and the second lane line sampling point set. According to the embodiment of the invention, the sensing lane line fusion distortion degree of different cameras can be reduced, so that the lane line fusion precision and stability are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to computer vision technology, and in particular to a method, device, medium and equipment for determining lane lines. Background Art

[0002] In the field of intelligent driving, solutions based on cameras with different fields of view (FOV) (such as wide-angle cameras and narrow-angle cameras) to perceive lane lines around vehicles are gradually being used. However, due to camera installation errors, external parameter calibration errors, image processing errors, etc., cameras with different fields of view may easily cause lateral deviations in lane lines perceived by cameras with different fields of view after conversion to the same coordinate system (such as the vehicle's local coordinate system), which will lead to poor accuracy and stability in the fusion results of lane lines perceived by cameras with different fields of view. Summary of the invention

[0003] The embodiments of the present disclosure provide a method, apparatus, medium and device for determining lane lines, which can improve the accuracy and stability of the fusion results of perceived lane lines at different field of view angles.

[0004] A first aspect of the present disclosure provides a method for determining a lane line, including: determining a first image corresponding to a first camera and a second image corresponding to a second camera; determining a first lane line pixel point set based on the first image; determining a second lane line pixel point set based on the second image; determining a first lane line sampling point set corresponding to the first lane line pixel point set in a vehicle local coordinate system based on the first lane line pixel point set and a first extrinsic parameter of the first camera; determining a corrected extrinsic parameter corresponding to a second extrinsic parameter of the second camera; determining a second lane line sampling point set corresponding to the second lane line pixel point set in the vehicle local coordinate system based on the second lane line pixel point set and the corrected extrinsic parameter; and determining a lane line based on the first lane line sampling point set and the second lane line sampling point set.

[0005] According to a second aspect of the present disclosure, a lane line determination device is provided, comprising: a first processing module, for determining a first image corresponding to a first camera and a second image corresponding to a second camera; a second processing module, for determining a first lane line pixel point set based on the first image; a third processing module, for determining a second lane line pixel point set based on the second image; a fourth processing module, for determining a first lane line sampling point set corresponding to the first lane line pixel point set in a vehicle local coordinate system based on the first lane line pixel point set and a first extrinsic parameter of the first camera; a fifth processing module, for determining a corrected extrinsic parameter corresponding to the second extrinsic parameter of the second camera; a sixth processing module, for determining a second lane line sampling point set corresponding to the second lane line pixel point set in the vehicle local coordinate system based on the second lane line pixel point set and the corrected extrinsic parameter; and a seventh processing module, for determining a lane line based on the first lane line sampling point set and the second lane line sampling point set.

[0006] According to a third aspect of the present disclosure, a computer-readable storage medium is provided, wherein the storage medium stores a computer program, and the computer program is used to execute the lane line determination method described in any of the above embodiments of the present disclosure.

[0007] The fourth aspect of the present disclosure provides an electronic device, which includes: a processor; a memory for storing executable instructions of the processor; the processor is used to read the executable instructions from the memory and execute the instructions to implement the lane line determination method described in any of the above embodiments of the present disclosure.

[0008] A fifth aspect of the present disclosure provides a computer program product. When instructions in the computer program product are executed by a processor, the lane line determination method provided by any of the above embodiments of the present disclosure is executed.

[0009] Based on the lane line determination method, device, medium and equipment provided by the above embodiments of the present disclosure, during the driving process of the vehicle, the first image corresponding to the first camera and the second image corresponding to the second camera can be determined, the first lane line pixel point set can be determined based on the first image, and the second lane line pixel point set can be determined based on the second image; further, the first lane line sampling point set corresponding to the first lane line pixel point set in the vehicle local coordinate system can be determined based on the first lane line pixel point set and the first extrinsic parameter of the first camera; and the corrected extrinsic parameter corresponding to the second extrinsic parameter of the second camera can be determined, and the second lane line sampling point set corresponding to the second lane line pixel point set in the vehicle local coordinate system can be determined based on the second lane line pixel point set and the corrected extrinsic parameter, and the lane line can be determined by combining the first lane line sampling point set and the second lane line sampling point set. The corrected extrinsic parameter of the second camera is used to eliminate or reduce the lateral deviation between the second lane line sampling point set and the first lane line sampling point set, improve the consistency of the perceived lane line of the first camera and the second camera, avoid or reduce the degree of fusion distortion of the perceived lane lines of different cameras, and thus improve the accuracy and stability of the fused lane line. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 This is an exemplary application scenario of the lane line determination method provided by the present disclosure;

[0011] Figure 2 is a flowchart of a method for determining a lane line provided by an exemplary embodiment of the present disclosure;

[0012] Figure 3 is a flowchart of a method for determining a lane line provided by another exemplary embodiment of the present disclosure;

[0013] Figure 4 is a schematic diagram of a flow chart of determining a corrected external parameter corresponding to a second external parameter provided by an exemplary embodiment of the present disclosure;

[0014] Figure 5 is a schematic diagram of a flow chart of determining a corrected external parameter corresponding to a second external parameter provided by another exemplary embodiment of the present disclosure;

[0015] Figure 6 is a flowchart of an iterative process for determining a corrected external parameter of a second camera provided by an exemplary embodiment of the present disclosure;

[0016] Figure 7 is a schematic diagram of the determination principle of lateral deviation provided by an exemplary embodiment of the present disclosure;

[0017] Figure 8 is a flowchart of a method for determining a lane line provided by another exemplary embodiment of the present disclosure;

[0018] Fig. 9is a flowchart of a method for determining a lane line provided by another exemplary embodiment of the present disclosure;

[0019] Fig.10 is a schematic diagram of a fused lane line sampling point set provided by an exemplary embodiment of the present disclosure;

[0020] Fig.11 is a schematic structural diagram of a lane line determination device provided by an exemplary embodiment of the present disclosure;

[0021] Fig.12 is a structural schematic diagram of a lane line determination device provided by another exemplary embodiment of the present disclosure;

[0022] Fig.13 is a structural schematic diagram of a lane line determination device provided by yet another exemplary embodiment of the present disclosure;

[0023] Fig.14 is a structural schematic diagram of a lane line determination device provided by another exemplary embodiment of the present disclosure;

[0024] Fig.15 is a structural schematic diagram of a lane line determination device provided by yet another exemplary embodiment of the present disclosure;

[0025] Fig.16 It is a structural diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0026] To explain the present disclosure, example embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. It should be understood that the present disclosure is not limited to the example embodiments.

[0027] It should be noted that the relative arrangement of components and steps, the numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.

[0028] SUMMARY OF THE DISCLOSURE

[0029] In the process of realizing the present disclosure, the inventors found that in the field of intelligent driving, the solution of sensing the lane lines around the vehicle based on cameras with different fields of view (FOV) (such as wide-angle cameras and narrow-angle cameras) has gradually been applied, mainly because different fields of view have different perception accuracy for lane lines at different distances in front of the vehicle. For example, wide-angle cameras have higher perception accuracy for close-range lane lines, but lower perception accuracy for long-range lane lines, while narrow-angle cameras can make up for the defect of low perception accuracy of wide-angle cameras for long-range lane lines. However, due to camera installation errors, external parameter calibration errors, image perception errors, etc. of cameras with different fields of view, it is easy to cause lateral deviations in the lane lines sensed by cameras with different fields of view after conversion to the same coordinate system (such as the vehicle coordinate system). For example, the part where the wide-angle lane line and the narrow-angle lane line should overlap has a certain angle deviation in the vehicle local coordinate system, which will lead to poor accuracy and stability of the fusion results of the perceived lane lines with different fields of view.

[0030] Exemplary Overview

[0031] Figure 1 This is an exemplary application scenario of the lane line determination method provided by the present disclosure. Figure 1 As shown, when the vehicle 11 is driving on the road, the first camera 12 and the second camera 13 on the vehicle can collect the environmental image of the front view range of the vehicle 11, which is used to determine the perceived lane line corresponding to the lane line 14, and provide effective lane line data for the control and decision-making of the vehicle 11. The first camera 12 and the second camera 13 can be cameras with different field of view angles. Figure 1The field of view FOV1 of the first camera 12 is greater than the field of view FOV2 of the second camera 13, and the viewing angles of the first camera 12 and the second camera 13 have an overlapping area. As shown in the figure, the first camera 12 and the second camera 13 are both cameras of the vehicle's forward viewing angle, so that the first camera 12 and the second camera 13 can both perceive the lane line 14 in the vehicle's forward viewing range. Since the first camera 12 and the second camera 13 have different field of views, the first camera 12 and the second camera 13 can perceive different distance segments of the lane line 14. For example, the first camera 12 mainly has a good perception accuracy for the lane line 14 in the short-distance segment, and the second camera 13 mainly focuses on the perception of the lane line in the long-distance segment. In this way, the first camera 12 and the second camera 13 can realize the effective perception of the lane line in the short-distance segment and the long-distance segment, and the overall perceived fused lane line is obtained by fusion of the perceived lane lines of different field of views. By using the lane line determination method disclosed in the present invention, after obtaining the first image corresponding to the first camera 12 and the second image corresponding to the second camera 13, the first lane line pixel point set can be determined based on the first image, and the second lane line pixel point set can be determined based on the second image; then, based on the first lane line pixel point set and the first extrinsic parameter of the first camera 12, the first lane line sampling point set corresponding to the first lane line pixel point set in the vehicle local coordinate system (taking the vehicle coordinate system xoy as an example in the figure) can be determined; and the corrected extrinsic parameter corresponding to the second extrinsic parameter of the second camera 13 can be determined; based on the second lane line pixel point set and the corrected extrinsic parameter, the second lane line sampling point set corresponding to the second lane line pixel point set in the vehicle local coordinate system is determined; then, based on the first lane line sampling point set and the second lane line sampling point set, the lane line is determined as the final perceived lane line for control and decision-making of the vehicle 11. The corrected extrinsic parameters of the second camera 13 are used to eliminate or reduce the lateral deviation between the second lane line sampling point set and the first lane line sampling point set, improve the consistency of the lane lines perceived by the first camera 12 and the second camera 13, avoid or reduce the degree of distortion of the fusion of lane lines perceived by different cameras, and thus improve the accuracy and stability of the fused lane lines.

[0032] Exemplary Methods

[0033] Figure 2 is a flow chart of a lane line determination method provided by an exemplary embodiment of the present disclosure. This embodiment can be applied to electronic devices, such as a vehicle-mounted computing platform, such as Figure 2 As shown, the method of the embodiment of the present disclosure may include the following steps:

[0034] Step 201: Determine a first image corresponding to a first camera and a second image corresponding to a second camera.

[0035] The viewing angle range of the first camera and the viewing angle range of the second camera have an overlapping area, so that the first image and the second image can contain pixel areas of the same lane line. Optionally, the first image and the second image can contain pixel areas of different distance ranges (or distance segments) of the same lane line, and the distance range corresponding to the first image and the distance range corresponding to the second image have an overlapping part, so as to facilitate the subsequent fusion of the lane lines.

[0036] In some optional embodiments, the field of view of the first camera is greater than the field of view of the second camera. For example, the first camera and the second camera are both cameras with a forward-looking perspective of the vehicle, the first camera is a wide-angle camera, and the second camera is a narrow-angle camera. The field of view of the wide-angle camera is greater than the field of view of the narrow-angle camera. For example, the field of view of the wide-angle camera is 120 degrees, and the field of view of the narrow-angle camera is 30 degrees. The wide-angle camera can effectively perceive the lane lines in the close range in front of the vehicle, and the narrow-angle camera can effectively perceive the lane lines in the long range in front of the vehicle. As a supplement to the wide-angle lane line perception results, the recall rate of the long-distance lane lines can be improved.

[0037] In some optional embodiments, the first image corresponding to the first camera and the second image corresponding to the second camera may be images acquired by the camera, or may be images obtained by preprocessing the images acquired by the camera, and the specific details are not limited. The preprocessing may include, for example, image enhancement, resolution conversion, cropping, etc., to obtain images that meet the requirements of subsequent processing.

[0038] In some optional embodiments, if the frame rates of the first camera and the second camera are different, the first image and the second image may be time-synchronized images.

[0039] Step 202: Determine a first lane line pixel point set based on the first image.

[0040] Among them, the first lane line pixel point set may include a subset of pixels corresponding to one or more lane lines respectively obtained by the first image perception (which may be referred to as a first pixel point subset or a first lane line pixel point subset). The pixel point subset corresponding to each lane line may include a group of pixels belonging to the lane line. For example, the first lane line pixel point set may include a subset of pixels corresponding to the left and right lane lines of the main lane where the vehicle is currently located, a subset of pixels corresponding to the left lane line of the left lane of the main lane, a subset of pixels corresponding to the right lane line of the right lane of the main lane, and so on. The lane line pixel point subset specifically included in the first lane line pixel point set is determined according to the specific perception result of the first image.

[0041] In some optional embodiments, the first lane line pixel point set may be determined based on any implementable lane line detection algorithm or model. For example, a lane line semantic segmentation model may be used to perform semantic segmentation on the first image to obtain a semantic segmentation result, and the first lane line pixel point set may be determined based on the semantic segmentation result. Specifically, the semantic segmentation result may include all pixel point sets belonging to lane lines in the first image, and a subset of pixel points belonging to each lane line may be obtained by clustering the pixel point sets.

[0042] In some optional embodiments, the pixel point subset of each lane line included in the first lane line pixel point set may be a set of more effective pixel points after a preset processing. The preset processing may include center pixel point extraction, thinning, etc. For each lane line, center pixel point extraction refers to extracting pixel points belonging to the center line of the lane line from the pixel point subset of the lane line. For example, for each row of pixel points, if there are multiple pixel points belonging to the lane line, the pixel point located in the middle of the multiple pixel points is taken as the center pixel point extracted from the row to obtain the center pixel point set. Thinning may be to sample the center pixel point set according to a preset pixel interval to obtain a thinned pixel point set, and use the thinned pixel point set as the pixel point subset corresponding to the lane line. Based on the pixel point subsets corresponding to each lane line, the first lane line pixel point set is determined. Through center pixel point extraction and thinning, the number of pixels in the pixel point subset of each lane line can be greatly reduced, thereby effectively improving the processing efficiency of the subsequent processing process.

[0043] Step 203: Determine a second lane line pixel point set based on the second image.

[0044] The second lane line pixel point set may include a pixel point subset corresponding to one or more lane lines respectively obtained by the second image perception (which may be referred to as a second pixel point subset or a second lane line pixel point subset). The pixel point subset corresponding to each lane line may include a group of pixel points belonging to the lane line.

[0045] In some optional embodiments, the specific operation of determining the second lane line pixel point set is similar to the specific operation of determining the first lane line pixel point set, and is not described in detail here.

[0046] It should be noted that step 202 and step 203 may be performed in any order.

[0047] Step 204 : Determine a first lane line sampling point set corresponding to the first lane line pixel point set in the vehicle local coordinate system based on the first lane line pixel point set and the first extrinsic parameter of the first camera.

[0048] Among them, the first external parameter of the first camera is a pre-calibrated external parameter of the first camera relative to the local coordinate system of the vehicle. The first external parameter may include the position and posture of the camera coordinate system of the first camera relative to the local coordinate system of the vehicle, which can be expressed as T = (x, y, z, yaw, roll, pitch), or expressed as a translation vector and a rotation matrix. The specific representation method of the external parameter is not limited. Among them, x, y, z represent the position of the camera coordinate system of the first camera relative to the local coordinate system of the vehicle, and yaw, pitch, and roll respectively represent the heading angle, pitch angle, and roll angle of the camera coordinate system of the first camera relative to the local coordinate system of the vehicle. The local coordinate system of the vehicle may be a coordinate system with a preset position on the vehicle as the origin. For example, the local coordinate system of the vehicle may be a self-vehicle coordinate system (also called a vehicle coordinate system, abbreviated as VCS) with the center of the rear axle of the vehicle as the origin, or a local coordinate system with other positions of the vehicle as the origin. The specific local coordinate system of the vehicle is not limited.

[0049] In some optional embodiments, based on the first external parameter combined with the internal parameter of the first camera, the pixel points in the first lane line pixel point set can be converted to the vehicle local coordinate system to obtain the first lane line sampling point set in the vehicle local coordinate system.

[0050] In some optional embodiments, when the first lane line pixel point set is a pixel point set obtained by clustering but not thinned, the first lane line pixel point set can be converted to the vehicle local coordinate system, and then the sampling points on the center line can be extracted and thinned to obtain the first lane line sampling point set.

[0051] Step 205 , determining a corrected extrinsic parameter corresponding to a second extrinsic parameter of the second camera.

[0052] Among them, the second extrinsic parameter of the second camera is a pre-calibrated extrinsic parameter of the second camera relative to the local coordinate system of the vehicle. The corrected extrinsic parameter is an extrinsic parameter used to fuse the perceived lane lines of the first image and the second image by correcting the second extrinsic parameter in a certain way. The role of the corrected extrinsic parameter is to reduce the lateral deviation of the perception results of the same lane line by different cameras in the same coordinate system caused by camera installation errors, extrinsic parameter calibration errors, image perception errors, etc., so as to improve the accuracy and stability of the fusion results of the perceived lane lines.

[0053] In some optional embodiments, the modified external parameter corresponding to the second external parameter may be predetermined and stored in a preset storage space, and the modified external parameter corresponding to the second external parameter may be directly read from the preset storage space.

[0054] In some optional embodiments, the corrected extrinsic parameter corresponding to the second extrinsic parameter can be obtained by real-time calculation at each time frame during the vehicle's driving process. That is, according to the lateral deviation of the lane lines in the first image and the second image acquired in real time in the same coordinate system, the corrected extrinsic parameter corresponding to the second extrinsic parameter is calculated in accordance with the principle of reducing the lateral deviation. The corrected extrinsic parameter is then used to replace the second extrinsic parameter for the fusion of the perceived lane lines of the first image and the second image.

[0055] In some optional embodiments, the corrected external parameter corresponding to the second external parameter can be determined in any historical time frame before the current time frame (or the current moment) and stored in a preset storage space, and then the corrected external parameter corresponding to the second external parameter can be read from the preset storage space. For example, during the driving of the vehicle, the corrected external parameter corresponding to the second external parameter can be calculated according to the lateral deviation of the lane line in the image actually collected by the first camera and the second camera in the same coordinate system in some time frames at a certain frequency. Then, within a period of time after obtaining the corrected external parameter, no further calculation is required, and the corrected external parameter calculated most recently is directly used. When the time for the next calculation of the corrected external parameter is reached, a new round of calculation is performed to obtain a new corrected external parameter, and the new corrected external parameter replaces the corrected external parameter calculated last time, and so on. On the basis of ensuring the accuracy and effectiveness of the corrected external parameter, the number of calculations of the corrected external parameter can be reduced, and the consumption of computing resources can be reduced.

[0056] Step 206 , based on the second lane line pixel point set and the corrected extrinsic parameter, determine the second lane line sampling point set corresponding to the second lane line pixel point set in the vehicle local coordinate system.

[0057] Among them, based on the corrected extrinsic parameters and the intrinsic parameters of the second camera, the conversion relationship between the pixel coordinate system of the second image and the local coordinate system of the vehicle can be determined, so that the second lane line pixel point set can be converted to the local coordinate system of the vehicle according to the conversion relationship to obtain the corresponding sampling point set in the local coordinate system of the vehicle, and the corresponding sampling point set in the local vehicle coordinate system (or the sampling point set after certain processing) can be determined as the second lane line sampling point set corresponding to the second lane line pixel point set.

[0058] It should be noted that the determination of the second lane line sampling point set from step 205 to step 206 and step 204 may be performed in any order.

[0059] Step 207: Determine the lane line based on the first lane line sampling point set and the second lane line sampling point set.

[0060] The determined lane line may be a fitted lane line curve. The lane line curve may be represented by a curve coefficient. The specific representation method is not limited.

[0061] In some optional embodiments, the lane line curve may be a quadratic curve, a cubic curve, or the like.

[0062] In some optional embodiments, the first lane line sampling point set and the second lane line sampling point set may be fused, and lane line fitting may be performed to obtain a lane line curve as the lane line of the current time frame.

[0063] In some optional embodiments, corresponding to the first lane line pixel point set and the second lane line pixel point set, the first lane line sampling point set may include lane line sampling point subsets corresponding to one or more lane lines, and the second lane line sampling point set may include lane line sampling point subsets corresponding to one or more lane lines. For multiple lane lines, the fusion of the first lane line sampling point set and the second lane line sampling point set may include lane line matching, tracking, filtering, etc., to obtain the fused lane line curve corresponding to each lane line. Matching refers to determining whether each lane line sampling point subset in the first lane line sampling point set and each lane line sampling point subset in the second lane line sampling point set belong to the same lane line. Through lane line matching, the corresponding relationship between each lane line sampling point subset in the first lane line sampling point set and each lane line sampling point subset in the second lane line sampling point set can be determined to determine the two sampling point subsets to be fused corresponding to each lane line. Tracking refers to determining the tracking relationship between the lane line sampling point subset of the current time frame and the lane line curve obtained in the previous time frame, so as to establish the association relationship between the perceived lane line of the current time frame and the perceived lane line of the historical time frame. Filtering refers to filtering and updating the lane line prediction (predicted lane line curve coefficient) of the current time frame predicted based on the odometer information based on the lane line observation of the current time frame perceived by the image (the fused lane line sampling point set), and obtaining the lane line curve of the filtered current time frame, thereby obtaining the lane line determined in the current time frame.

[0064] The lane line determination method provided in this embodiment can determine the first lane line pixel point set based on the first image corresponding to the first camera and the second lane line pixel point set based on the second image corresponding to the second camera during vehicle driving; further, the first lane line sampling point set corresponding to the first lane line pixel point set in the vehicle local coordinate system can be determined based on the first lane line pixel point set and the first extrinsic parameter of the first camera; and the corrected extrinsic parameter corresponding to the second extrinsic parameter of the second camera can be determined, and the second lane line sampling point set corresponding to the second lane line pixel point set in the vehicle local coordinate system can be determined based on the second lane line pixel point set and the corrected extrinsic parameter, and the lane line can be determined by combining the first lane line sampling point set and the second lane line sampling point set. Since the second lane line sampling point set is obtained by converting the corrected extrinsic parameter based on the second extrinsic parameter, the role of the corrected extrinsic parameter of the second camera is to eliminate or reduce the lateral deviation between the second lane line sampling point set and the first lane line sampling point set, therefore, the consistency of the perceived lane line of the first camera and the second camera can be improved, and the degree of fusion distortion of the perceived lane lines of different cameras can be avoided or reduced, thereby improving the accuracy and stability of the fused lane line.

[0065] Figure 3 It is a flowchart of a method for determining a lane line provided by another exemplary embodiment of the present disclosure.

[0066] In some optional embodiments, in the above Figure 2 Based on the embodiment shown, Figure 3 As shown, step 205 of determining the corrected extrinsic parameter corresponding to the second extrinsic parameter of the second camera may specifically include the following steps:

[0067] Step 2051, based on the first lane line sampling point set, the second lane line pixel point set, and the second extrinsic parameter of the second camera, determine the corrected extrinsic parameter corresponding to the second extrinsic parameter.

[0068] Among them, since the second extrinsic parameter of the second camera is the calibrated extrinsic parameter of the second camera, the second lane line pixel point set can be converted to the vehicle local coordinate system based on the second extrinsic parameter of the second camera, and the lane line sampling point set in the vehicle local coordinate system can be obtained, and then the deviation (or error) between the lane line sampling point set in the vehicle local coordinate system and the first lane line sampling point set can be determined, and the deviation is used to determine the corrected extrinsic parameter corresponding to the second extrinsic parameter. Specifically, the corrected extrinsic parameter corresponding to the second extrinsic parameter can be obtained by solving the corrected extrinsic parameter that minimizes the deviation.

[0069] This embodiment determines the corrected extrinsic parameter corresponding to the second extrinsic parameter by determining the first lane line sampling point set, the second lane line pixel point set, and the second extrinsic parameter of the second camera in real time, which can further improve the timeliness and effectiveness of the corrected extrinsic parameter, thereby minimizing the overall lateral deviation of the perceived lane lines of different cameras caused by various errors, thereby ensuring the accuracy and stability of the fused lane lines.

[0070] In some optional embodiments, the first lane line sampling point set may include a lane line sampling point subset corresponding to at least one lane line of the road where the vehicle is currently located; the at least one lane line includes the main lane line of the lane where the vehicle is currently located.

[0071] The number of main lane lines may be one or two. The main lane line refers to the lane line of the lane where the vehicle is currently located. That is, the main lane line may include at least one of the left lane line and the right lane line of the lane where the vehicle is located. In the case where there are two main lane lines, the corrected external parameter corresponding to the second external parameter may be determined in combination with the lateral deviation of the two main lane lines. Alternatively, the corrected external parameter corresponding to the second external parameter may be determined based on the lateral deviation of any one of the two main lane lines.

[0072] Figure 4 It is a flowchart of determining a corrected external parameter corresponding to a second external parameter provided by an exemplary embodiment of the present disclosure.

[0073] In some optional embodiments, determining the corrected extrinsic parameter corresponding to the second extrinsic parameter based on the first lane line sampling point set, the second lane line pixel point set, and the second extrinsic parameter of the second camera in step 2051 may include:

[0074] Step 20511: Based on the first lane line sampling point set, determine the first lane line sampling point subset corresponding to the main lane line.

[0075] Among them, the lane line sampling point subset corresponding to the main lane line can be determined according to the size relationship of the lateral coordinates of each lane line sampling point subset in the first lane line sampling point set, as the first lane line sampling point subset corresponding to the main lane line. For example, it can be determined whether it is a left lane line or a right lane line according to whether the lateral coordinate of each lane line sampling point subset is greater than 0, and the lateral distance between the sampling point and the vehicle is determined according to the specific coordinate value of the lateral coordinate, and the left lane line sampling point subset with the closest lateral distance is determined as the first lane line sampling point subset corresponding to the left main lane line, and the right lane line sampling point subset with the closest lateral distance is determined as the first lane line sampling point subset corresponding to the right main lane line.

[0076] Step 20512: Determine a second lane line sampling point subset corresponding to the main lane line based on the second lane line pixel point set and the second extrinsic parameter.

[0077] The second lane line sampling point subset may include at least one of a second lane line sampling point subset corresponding to the left main lane line and a second lane line sampling point subset corresponding to the right main lane line.

[0078] In some optional embodiments, the second lane line pixel point set can be converted to the vehicle local coordinate system based on the second extrinsic parameter and the intrinsic parameter of the second camera, and then the second lane line sampling point subset corresponding to the main lane line can be determined according to the above operation of determining the first lane line sampling point subset.

[0079] It should be noted that step 20511 and step 20512 may be performed in any order.

[0080] Step 20513: Determine a corrected extrinsic parameter corresponding to the second extrinsic parameter based on the first lane line sampling point subset and the second lane line sampling point subset.

[0081] Among them, the first lane line sampling point subset and the second lane line sampling point subset are lane line sampling point subsets with a certain matching relationship in a unified local coordinate system. Therefore, the lateral deviation can be calculated according to the first lane line sampling point subset and the second lane line sampling point subset, which is used to calculate the corrected external parameter corresponding to the second external parameter. The matching relationship refers to whether they belong to the same lane line. For example, if the first lane line sampling point subset and the second lane line sampling point subset are both sampling point subsets corresponding to the left main lane line (or the right main lane line), it is determined that the first lane line sampling point subset and the second lane line sampling point subset belong to the same lane line. Alternatively, the first lane line sampling point subset includes the first sampling point subsets corresponding to the left main lane line and the right main lane line, respectively, and the second lane line sampling point subset includes the second sampling point subsets corresponding to the left main lane line and the right main lane line, respectively, then the first sampling point subset and the second sampling point subset corresponding to the left main lane line belong to the same left main lane line, and the first sampling point subset and the second sampling point subset corresponding to the right main lane line belong to the same right main lane line.

[0082] In some optional embodiments, there is at least one sampling point in the first lane line sampling point subset whose longitudinal coordinate is the same as the longitudinal coordinate of a sampling point in the second lane line sampling point subset. That is, the longitudinal distance range covered by the first lane line sampling point subset and the longitudinal distance range covered by the second lane line sampling point subset have an overlapping range segment, so that the lateral deviation between the first lane line sampling point subset and the second lane line sampling point subset can be calculated through two groups of sampling points belonging to the same range segment, thereby further improving the accuracy of the corrected external parameters.

[0083] This embodiment determines the corrected extrinsic parameter corresponding to the second extrinsic parameter through the first lane line sampling point subset and the second lane line sampling point subset of the main lane line perceived by the first image and the second image in the vehicle local coordinate system. Since the main lane line is closer to the vehicle than other lane lines, the perception accuracy is higher, which can further improve the accuracy and effectiveness of the corrected extrinsic parameter.

[0084] Figure 5 It is a flowchart of determining a corrected external parameter corresponding to a second external parameter provided by another exemplary embodiment of the present disclosure.

[0085] In some optional embodiments, determining the corrected extrinsic parameter corresponding to the second extrinsic parameter based on the first lane line sampling point subset and the second lane line sampling point subset in step 20513 may include:

[0086] Step 205131, performing curve fitting on the first lane line sampling point subset to obtain the first main lane line curve corresponding to the main lane line.

[0087] The curve fitting may be a quadratic curve fitting, a cubic curve fitting, etc. Correspondingly, the first main lane line curve may be a linear curve (ie, a straight line), a quadratic curve, a cubic curve, etc.

[0088] In some optional embodiments, any curve fitting algorithm in the related art may be used to perform curve fitting, and the curve fitting algorithm may include, for example, the least squares method, the maximum likelihood estimation method, etc., which are not specifically limited.

[0089] Step 205132: Use the second lane line sampling point subset as the current lane line sampling point subset.

[0090] Step 205133, determine the current heading angle step size based on the current lane line sampling point subset and the first main lane line curve.

[0091] The current heading angle step size refers to the step size for iteratively updating the heading angle, which can be expressed as Δyaw. The current heading angle step size includes the heading angle change direction and change amount of this iteration. For example, Δyaw greater than zero indicates that the iteration direction is an increasing direction, and Δyaw less than zero indicates that the iteration direction is a decreasing direction.

[0092] In some optional embodiments, the current heading angle step may be determined based on the lateral deviation between each sampling point in the current lane line sampling point subset and the first main lane line curve. For example, the direction and amount of change of the current heading angle may be determined based on the change of the lateral deviation relative to the lateral deviation of the previous iteration (increase or decrease) and the heading angle step of the previous iteration, and the current heading angle step may be determined based on the change direction and amount.

[0093] In some optional embodiments, sampling points in the current lane line sampling point subset that overlap with the longitudinal distance range of the first lane line sampling point subset (referred to as overlapping sampling points) can be determined based on the longitudinal coordinates of each sampling point in the current lane line sampling point subset and the longitudinal coordinates of each sampling point in the first lane line sampling point subset, and the current heading angle step can be determined based on the lateral deviations between these overlapping sampling points and the first main lane line curve. Since the current lane line sampling point subset and the first main lane line curve belong to the same lane line, the lane lines in the overlapping part of the longitudinal distance range should be completely overlapped, that is, the lateral deviation is 0, and the heading angles of the lane lines should be consistent. Based on this, the lateral deviations between the overlapping sampling points in the overlapping part and the first main lane line curve are calculated to guide the correction of the heading angle, so that the yaw angles of the overlapping sampling points in the overlapping area after conversion based on the corrected heading angle gradually become consistent with the first main lane line curve, thereby achieving the purpose of reducing the lateral deviation.

[0094] In some optional embodiments, a preset gradient algorithm may be used to determine the current heading angle step size. The gradient algorithm may include, for example, a stochastic gradient descent method, a Newton method, a Gauss-Newton method, etc., without specific limitation.

[0095] Step 205134, determine the current corrected external parameter based on the current heading angle step and the previous corrected external parameter corresponding to the second external parameter.

[0096] The previous corrected external parameter is a corrected external parameter determined in the previous iteration. The previous corrected external parameter is initially the second external parameter, that is, in the first iteration, the previous corrected external parameter is the second external parameter.

[0097] In some optional embodiments, the current corrected external parameter can be obtained by performing correction based on the current heading angle step and the previous corrected heading angle in the previous corrected external parameter. An exemplary current corrected external parameter T' can be expressed as follows:

[0098] T n =T n-1 +(0,0,0,Δyaw,0,0)=(x,y,z,yaw n-1 +Δyaw,row,pitch)

[0099] Where n represents the current iteration number, T n-1 Indicates the previous corrected external parameter corresponding to the second external parameter. The determination process of the previous corrected external parameter is the same as that of the current corrected external parameter.

[0100] Step 205135, based on the second lane line pixel point set and the current corrected external parameter, determine the third lane line sampling point subset corresponding to the main lane line.

[0101] Among them, based on the current corrected external parameters and the internal parameters of the second camera, the second lane line pixel point set can be converted to the vehicle local coordinate system to obtain the lane line sampling point set in the vehicle local coordinate system, and the lane line sampling point subset corresponding to the main lane line is determined as the third lane line sampling point subset corresponding to the main lane line.

[0102] In some optional embodiments, a subset of pixel points corresponding to the main lane line can be determined in the second lane line pixel point set, and based on the current corrected external parameters and the internal parameters of the second camera, the subset of pixel points corresponding to the main lane line is converted to the vehicle local coordinate system to obtain a third lane line sampling point subset corresponding to the main lane line.

[0103] Step 205136, in response to the third lane line sampling point subset and the first main lane line curve satisfying the iteration end condition, the current corrected extrinsic parameter is determined as the corrected extrinsic parameter corresponding to the second extrinsic parameter.

[0104] Among them, the iteration end condition may include an iteration number condition and an error condition. The iteration number condition may include that the current iteration number reaches an iteration number threshold. The error condition may include that the error sum (total deviation) is less than the error threshold, and the error sum may refer to the sum of the absolute values ​​of the lateral deviations corresponding to each sampling point, or the sum of the squares of the lateral deviations of each sampling point. The specific method for determining the error sum is not limited. If the current iteration meets the iteration end condition, the current corrected external parameter is determined as the corrected external parameter corresponding to the second external parameter, and the iteration process ends.

[0105] This embodiment obtains the corrected extrinsic parameter corresponding to the second extrinsic parameter through iterative correction, so that the yaw angle of the lane line sampling point subset corresponding to the second lane line pixel point set converted by the corrected extrinsic parameter gradually approaches the first lane line sampling point subset, thereby achieving accurate and effective correction of the second extrinsic parameter and providing accurate and effective corrected extrinsic parameter for the fusion of the perceived lane line of the first camera and the perceived lane line of the second camera.

[0106] In some optional embodiments, determining the current heading angle step length based on the current lane line sampling point subset and the first main lane line curve in step 205133 may include:

[0107] Determine the target sampling point corresponding to each lane line sampling point in the current lane line sampling point subset on the first main lane line curve; determine the lateral deviation corresponding to each lane line sampling point based on each lane line sampling point and each target sampling point in the current lane line sampling point subset; determine the current heading angle step according to the lateral deviation corresponding to each lane line sampling point.

[0108] Among them, for each lane line sampling point (or simply sampling point) in the current lane line sampling point subset, the target sampling point corresponding to the sampling point on the first main lane line curve is a sampling point with the same longitudinal coordinate (or longitudinal distance from the vehicle) as the sampling point. That is, according to the longitudinal coordinate (or longitudinal distance) of the lane line sampling point, the target sampling point with the same longitudinal coordinate (or the same longitudinal distance) can be determined on the first main lane line curve. The lateral deviation corresponding to the sampling point is determined based on the lateral coordinate of the sampling point and the lateral coordinate of the corresponding target sampling point. That is, the lateral deviation can be expressed as the difference between the lateral coordinates of the sampling point and the corresponding target sampling point or the lateral distance between the sampling point and the target sampling point. Based on this, the lateral deviation corresponding to each sampling point (or sampling points in the overlapping part of the longitudinal distance range) in the current lane line sampling point subset can be obtained.

[0109] In some optional embodiments, an objective function may be constructed based on the lateral deviations corresponding to the lane line sampling points, and the heading angle step length of each iteration may be solved based on minimization of the objective function. The solution may include the above-mentioned stochastic gradient descent method, Newton method, Gauss-Newton method, etc., which will not be described in detail.

[0110] In this embodiment, the lateral deviation between each lane line sampling point in the current lane line sampling point subset and the corresponding target sampling point on the first main lane line curve is calculated to determine the solution of the heading angle step in the iterative process, so that an accurate and effective heading angle step can be obtained, providing an effective heading angle adjustment direction and adjustment amount for determining the corrected external parameters.

[0111] In some optional embodiments, such as Figure 5 As shown, step 20513 of determining the corrected extrinsic parameter corresponding to the second extrinsic parameter based on the first lane line sampling point subset and the second lane line sampling point subset may also include:

[0112] Step 205137: In response to the third lane line sampling point subset and the first main lane line curve not satisfying the iteration end condition, the third lane line sampling point subset is used as the current lane line sampling point subset. Return to step 205133 to determine the current heading angle step length based on the current lane line sampling point subset and the first main lane line curve.

[0113] Among them, when the third lane line sampling point subset and the first main lane line curve do not meet the iteration end condition, the third lane line sampling point subset can continue to be used as the current lane line sampling point subset to continue the next iteration, that is, return to step 205133, and repeat steps 205133 to 205127 until the iteration process is ended and the corrected external parameter corresponding to the second external parameter is obtained.

[0114] In this embodiment, when the current iteration does not meet the iteration end condition, the iteration can be continued to implement the cyclic iterative correction of the second camera extrinsic parameters, thereby continuously improving the accuracy and effectiveness of the corrected extrinsic parameters.

[0115] In some optional embodiments, determining the corrected extrinsic parameter corresponding to the second extrinsic parameter based on the first lane line sampling point subset and the second lane line sampling point subset in step 20513 may include:

[0116] Based on the first lane line sampling point subset and the second lane line sampling point subset, a first corrected external parameter of the second external parameter in the current time frame is determined; based on the historical corrected external parameters of the first corrected external parameter and the second external parameter in the historical time frame, a corrected external parameter corresponding to the second external parameter is determined.

[0117] Among them, the historical time frame (i.e., historical moment) may refer to the time frame before the current time frame. The number of historical time frames may be one or more. The first corrected external parameter of the current time frame is a corrected external parameter determined based on the first lane line sampling point subset and the second lane line sampling point subset of the current time frame in real time. The acquisition of the first corrected external parameter can refer to steps 205131 to 205137, which will not be repeated here. The historical corrected external parameter of each historical time frame is determined in the process of determining the lane line corresponding to the historical time frame, and its determination principle may be consistent with the first corrected external parameter of the current time frame. The corrected external parameter corresponding to the second external parameter is determined by combining the first corrected external parameter and the historical corrected external parameter. The corrected external parameter corresponding to the second external parameter may be determined based on the first corrected external parameter, the historical corrected external parameter and the preset determination rule. The preset determination rule may, for example, include averaging the first corrected external parameter and the historical corrected external parameter, or averaging after removing the outliers, and taking the average as the corrected external parameter corresponding to the second external parameter. Alternatively, the corrected external parameters of each time frame are weighted according to the timeliness weights of the historical time frame and the current time frame to obtain the corrected external parameters corresponding to the second external parameter. Alternatively, based on the historical corrected external parameters and the first corrected external parameters, the convergence of the corrected external parameters is determined, and when the convergence conditions are met, the first corrected external parameter is determined as the corrected external parameter corresponding to the second external parameter. Subsequent time frames do not need to calculate the corrected external parameters again to reduce the amount of calculation. Of course, the subsequent time frames can calculate the corrected external parameters for each time frame or calculate the corrected external parameters once every preset time frame. The disclosed embodiment is not limited. When the convergence conditions are not met, the corrected external parameter corresponding to the second external parameter can be obtained by averaging, or the first corrected external parameter can be temporarily used as the corrected external parameter corresponding to the second external parameter, and the calculation of the corrected external parameter can be continued in the next time frame.

[0118] In this embodiment, the first corrected external parameter calculated in the current time frame and the historical corrected external parameter determined in the historical time frame are combined to comprehensively determine the corrected external parameter corresponding to the second external parameter, which can further improve the accuracy and effectiveness of the corrected external parameter.

[0119] In some optional embodiments, Figure 6 FIG. 1 is a flowchart of an iterative process for determining the corrected external parameters of the second camera provided by an exemplary embodiment of the present disclosure. Figure 6 As shown, the first camera is a wide-angle camera, the second camera is a narrow-angle camera, the first image is a wide-angle image, and the second image is a narrow-angle image. The iterative process includes the following steps:

[0120] Step 301, the wide-angle main lane line sampling point subset (i.e., the first lane line sampling point subset) and the narrow-angle main lane line point subset (i.e., the second lane line sampling point subset) are matched. That is, since the main lane line may include two left and right main lane lines, each main lane line corresponds to a group of first lane line sampling point subsets and a group of second lane line sampling point subsets, it is necessary to determine which first lane line sampling point subset and which second lane line sampling point subset belong to the same main lane line through matching.

[0121] Step 302: curve fitting of a wide-angle main lane line sampling point subset may be performed by using a cubic curve fitting method to obtain a wide-angle main lane line curve (ie, a first main lane line curve).

[0122] Step 303, determine whether the iteration end condition is met. If not, go to step 304, if yes, go to step 309. The iteration end condition includes that the number of iteration optimizations is greater than or equal to the iteration number threshold, or the error sum is less than or equal to the error threshold.

[0123] Step 304: Update the current extrinsic parameter yaw value of the narrow-angle camera to obtain the current corrected extrinsic parameter.

[0124] Step 305: Based on the current corrected external parameters, the narrow-angle main lane line pixel point set (i.e., each pixel point in the second lane line pixel point set corresponding to the main lane line) is converted to the VCS coordinate system to obtain a third lane line sampling point subset corresponding to the main lane line.

[0125] Step 306, calculate the lateral deviation, that is, calculate the lateral deviation from each sampling point in the third lane line sampling point subset (which may be each sampling point in the third lane line sampling point subset that overlaps with the wide-angle main lane line curve in the longitudinal direction) to the wide-angle main lane line curve at the corresponding longitudinal distance.

[0126] For example, Figure 7 FIG. 1 is a schematic diagram of the determination principle of the lateral deviation provided by an exemplary embodiment of the present disclosure. Figure 7As shown, xoy represents the local coordinate system of the vehicle, the wide-angle main lane line curve is represented by S1, for each sampling point Pi in the third lane line sampling point subset S2, a target sampling point Pj with the same longitudinal distance is determined on the wide-angle main lane line curve S1 according to the longitudinal distance of the sampling point Pi, and the lateral distance di between the sampling point Pi and the target sampling point Pj is calculated as the lateral deviation corresponding to the sampling point Pi.

[0127] Step 307, calculate the error sum. The error sum may be calculated as the sum of the absolute values ​​of each lateral deviation, or the sum of the squares of each lateral deviation, or the weight of each sampling point is determined according to the longitudinal distance of each sampling point, and the absolute value of each lateral deviation is weighted according to the weight of each sampling point to obtain the error sum. The principle for determining the weight of each sampling point may be that the farther the longitudinal distance is, the smaller the weight is. The error sum is used to determine whether the iteration end condition is met.

[0128] Step 308: Determine the iteration step length and optimization direction according to the lateral deviation. Return to step 303. The iteration step length and optimization direction are the current heading angle step length.

[0129] Step 307 and step 308 may be performed in any order.

[0130] Step 309, record the narrow angle corrected extrinsic parameter of the current time frame (ie, the first corrected extrinsic parameter corresponding to the second extrinsic parameter), or record the corrected extrinsic parameter yaw value.

[0131] Step 310, calculate the narrow angle extrinsic parameter yaw value for multiple frames until the corrected yaw value tends to be stable. That is, in each time frame, combine the corrected extrinsic parameter yaw value of the current time frame and the historical corrected extrinsic parameter yaw value of the historical time frame to determine whether the corrected yaw value converges.

[0132] After obtaining a stable corrected yaw value, the stable corrected yaw value can be used for lane line fusion at a subsequent moment. In a certain subsequent period of time or in the entire subsequent driving process, the corrected external parameter calculation may no longer be performed to reduce the number of calculations of the corrected external parameter and reduce computing resource consumption.

[0133] Figure 8 It is a flowchart of a method for determining a lane line provided by yet another exemplary embodiment of the present disclosure.

[0134] In some optional embodiments, in the above Figure 2 Based on the embodiment shown, Figure 8 As shown, determining the corrected extrinsic parameter corresponding to the second extrinsic parameter of the second camera in step 205 may include:

[0135] Step 205a, obtaining the historical corrected external parameter corresponding to the second external parameter determined in the historical time frame.

[0136] Among them, the historical time frame can be any time frame before the current time frame. For example, a multi-frame calculation of the corrected external parameter can be performed within the preset time length when the vehicle starts to travel, and the corrected external parameter corresponding to the second external parameter is obtained as the historical corrected external parameter of the candidate moment. At each moment after this preset time length, the historical corrected external parameter is used as the corrected external parameter corresponding to the second external parameter. Alternatively, the corrected external parameter is calculated at a certain frequency, for example, the corrected external parameter is calculated every 10 seconds (which can be obtained by calculating one or more time frames), then for the current time frame that is not a calculation time frame, the historical corrected external parameter obtained by the most recent calculation before the current time frame is used as the corrected external parameter corresponding to the second external parameter.

[0137] Step 205b: determine the historical corrected external parameter as the corrected external parameter corresponding to the second external parameter.

[0138] In this embodiment, by determining the historical corrected external parameter corresponding to the second external parameter determined in the historical time frame as the corrected external parameter used in the current time frame, it is equivalent to having some time frames that do not need to calculate the corrected external parameter in real time. Therefore, the amount of calculation can be reduced and the efficiency of determining the lane line can be improved.

[0139] Fig. 9 It is a flowchart of a method for determining a lane line provided by yet another exemplary embodiment of the present disclosure.

[0140] In some optional embodiments, in the above Figure 2 Based on the embodiment shown, Fig. 9 As shown, the step 207 of determining the lane line based on the first lane line sampling point set and the second lane line sampling point set may include:

[0141] Step 2071: Determine a fused lane line sampling point set based on the first lane line sampling point set and the second lane line sampling point set.

[0142] The fused lane line sampling point set may include fused lane line sampling point subsets corresponding to one or more lane lines. The lane line sampling point subset corresponding to each lane line in the first lane line sampling point set (which may be referred to as the first sampling point subset) and the lane line sampling point subset corresponding to the lane line in the second lane line sampling point set (which may be referred to as the second sampling point subset) may be fused into a fused lane line sampling point subset corresponding to the lane line. Based on this, a fused lane line sampling point subset corresponding to each lane line is obtained. For each lane line, the fusion method of the first sampling point subset corresponding to the lane line and the second sampling point subset may include one or more of the processing of merging, deduplication, and sparseness of the sampling points, which is not specifically limited. For example, the merging result of the first sampling point subset corresponding to the lane line and the second sampling point subset may be directly used as the fused lane line sampling point subset corresponding to the lane line. For another example, the result after merging and deduplication may be used as the fused lane line sampling point subset corresponding to the lane line. Deduplication may refer to selecting one of the sampling points or the average of the two sampling points for two sampling points at the same longitudinal distance as the deduplicated sampling point at the longitudinal distance. Sparseness can refer to a method of reducing the number of sampling points according to the longitudinal distance interval.

[0143] Step 2072: Based on the fused lane line sampling point set and the historical lane line curve of the previous time frame, determine the tracking relationship between the fused lane line sampling point set and the historical lane line curve.

[0144] Among them, the tracking relationship refers to the relationship between each fused lane line sampling point subset in the fused lane line sampling point set and the historical lane line curve corresponding to each lane line, whether they belong to the same lane line. That is, the tracking relationship can characterize the historical lane line curve of the lane line to which each fused lane line sampling point subset belongs. The historical lane line curve may include the lane line curve of one or more lane lines determined in the previous time frame. For the case of multiple lane lines, the historical lane line curve corresponding to the fused lane line sampling point subset can be determined based on the lateral distance relationship between the sampling points in the fused lane line sampling point subset corresponding to each lane line and the historical lane line curve, and based on this, the tracking relationship between the fused lane line sampling point set and the historical lane line curve is obtained.

[0145] Step 2073, based on the historical lane line curve and odometer information, determine the current lane line prediction curve coefficient.

[0146] Among them, the current lane line prediction curve coefficient refers to the predicted value of the lane line curve coefficient corresponding to the current time frame. The odometer information may include the vehicle's driving state information such as speed, acceleration, angular velocity, etc. from the previous time frame to the current time frame. As the vehicle travels, the lane line that the camera can perceive gradually extends, but the lane line does not change in the global coordinate system (such as the world coordinate system or the map coordinate system). Therefore, the historical lane line curve can be predicted to the current time frame based on the historical lane line curve and odometer information. Specifically, multiple historical sampling points can be sampled on the historical lane line curve, and the current predicted sampling points corresponding to each historical sampling point can be predicted according to the odometer information. Curve fitting is performed based on each current predicted sampling point to obtain the current lane line prediction curve coefficient.

[0147] Step 2074, based on the tracking relationship between the fused lane line sampling point set and the historical lane line curve, the current lane line prediction curve coefficient is filtered to obtain the filtered curve coefficient.

[0148] The lane line sampling point set is integrated to represent the observation of the lane line in the current time frame, and the lane line curve coefficient is used as the state variable. The filter is constructed based on the state variable, the state transfer matrix, and the observation equation. The filter state variable is updated through the observation, and the filtered curve coefficient is obtained based on the updated state quantity. The filtering methods include but are not limited to Kalman filtering, extended Kalman filtering, and other filters.

[0149] Step 2075, determine the lane line based on the filtered curve coefficient.

[0150] The filtered curve coefficients can determine the lane curve. For example, the quadratic curve coefficients (c0, c1, c2) can determine the lane curve as y=c0+c1x+c2x 2 The lane line curve is determined as the lane line currently perceived and used for vehicle decision-making and control.

[0151] In this embodiment, the first lane line sampling point set is fused with the second lane line sampling point set to obtain a fused lane line sampling point set, and the lane line is obtained by filtering in combination with the curve coefficient predicted by the odometer information. Since the second lane line sampling point set is obtained based on the corrected extrinsic parameter conversion of the second camera, the lateral deviation between the second lane line sampling point set and the first lane line sampling point set is effectively reduced, thereby effectively improving the effectiveness of the fused lane line sampling point set. In combination with the odometer information prediction and filtering, the lane line curve coefficient is effectively determined, thereby improving the accuracy of the lane line, and providing an accurate and effective lane line reference for vehicle decision-making and control.

[0152] In some optional embodiments, Fig.10 FIG. 1 is a schematic diagram of a fused lane line sampling point set provided by an exemplary embodiment of the present disclosure. Fig.10 As shown in the figure, taking a lane line as an example, the narrow-angle lane line pixel point set corresponding to the lane line is converted to the narrow-angle lane line sampling point set S3 under VCS (i.e., the vehicle local coordinate system) based on the calibration external parameter (second external parameter) of the second camera, and the corrected external parameter corresponding to the second external parameter is corrected relative to the yaw value of the second external parameter. The narrow-angle lane line pixel point set corresponding to the lane line is converted to the narrow-angle lane line sampling point set S4 under VCS based on the corrected external parameter, and the wide-angle lane line pixel point set under VCS corresponds to the wide-angle lane line sampling point set S5. It can be seen that the corrected external parameter changes the yaw angle of the narrow-angle lane line sampling point set S4 under VCS relative to S3, and the lateral deviation between S4 and S5 is greatly reduced relative to the lateral deviation between S3 and S5, making S4 more consistent with the wide-angle lane line sampling point set S5, so that S4 and S5 are fused and used for lane line fitting to obtain the lane line curve corresponding to the lane line, effectively reducing the distortion of the fused lane line.

[0153] In some optional embodiments, step 20513 of determining the corrected external parameter corresponding to the second external parameter based on the first lane line sampling point subset and the second lane line sampling point subset may include: performing curve fitting on the first lane line sampling point subset to obtain a first main lane line curve corresponding to the main lane line; determining the current heading angle step based on the second lane line sampling point subset and the first main lane line curve; determining the corrected external parameter corresponding to the second external parameter based on the current heading angle step, the previous heading angle correction, the second lane line sampling point subset and the first main lane line curve.

[0154] The previous heading angle correction is the heading angle correction of the corrected external parameter obtained in the previous iteration relative to the second external parameter. In the first iteration, since there is no previous iteration, the previous heading angle correction is an initialization value, and the initialization value is zero. The method for determining the first main lane line curve and the method for determining the current heading angle step can refer to the above embodiment.

[0155] In some optional embodiments, the lateral deviation between the target point in the sampling point subset of the second lane line sampling point after correction by the current heading angle correction amount and the first main lane line curve can be calculated according to the current heading angle step, the previous heading angle correction amount, the second lane line sampling point subset and the first main lane line curve, according to the pre-acquired lateral deviation mapping rule, and the corrected external parameter corresponding to the second external parameter is determined according to whether the lateral deviation meets the iteration end condition.

[0156] In this embodiment, the iterative adjustment of the heading angle correction amount can be directly implemented in the vehicle local coordinate system, and the operation of projecting the second lane line pixel point set to the vehicle local coordinate system in each iteration can be avoided, thereby reducing the amount of calculation and accelerating the iterative convergence process.

[0157] In some optional embodiments, determining the corrected extrinsic parameter corresponding to the second extrinsic parameter based on the current heading angle step, the previous heading angle correction, the second lane line sampling point subset, and the first main lane line curve may include:

[0158] Based on the current heading angle step, the previous heading angle correction and the second external parameter, the current corrected external parameter is determined; based on the current heading angle step, the previous heading angle correction, the first main lane line curve and the second lane line sampling point subset, the lateral deviation corresponding to each sampling point in the second lane line sampling point subset under the current corrected external parameter is determined; in response to the lateral deviation satisfying the iteration end condition, the current corrected external parameter is determined as the corrected external parameter corresponding to the second external parameter.

[0159] Among them, the current heading angle correction value can be determined based on the current heading angle step and the previous heading angle correction value, and then the heading angle in the second external parameter can be corrected based on the current heading angle correction value to obtain the current corrected external parameter. The lateral deviation corresponding to each sampling point in the second lane line sampling point subset under the current corrected external parameter refers to the lateral deviation of the target point after each sampling point is rotated according to the current heading angle correction value relative to the first main lane line curve.

[0160] In some optional embodiments, the mapping rule between the current heading angle step, the previous heading angle correction, the first main lane line curve and the second lane line sampling point subset and the corrected lateral deviation (i.e., the lateral deviation mapping rule) can be determined in advance based on the correlation between the camera extrinsic parameter heading angle change and the lane line sampling point change mapped to the vehicle local coordinate system. Then, based on the mapping rule, the current heading angle step, the previous heading angle correction, the first main lane line curve and the second lane line sampling point subset can be mapped to the lateral deviation corresponding to each sampling point in the second lane line sampling point subset under the current corrected extrinsic parameter.

[0161] In this embodiment, in the process of iteratively obtaining the corrected extrinsic parameters, the lateral deviation under the corrected extrinsic parameters can be calculated directly in the vehicle local coordinate system based on the second lane line sampling point subset, thereby avoiding projecting the pixel points in the second lane line pixel point set to the vehicle local coordinate system in each iteration, effectively reducing the amount of calculation and improving the convergence speed of the iterative process.

[0162] In some optional embodiments, determining the corrected extrinsic parameter corresponding to the second extrinsic parameter based on the current heading angle step, the previous heading angle correction, the second lane line sampling point subset and the first main lane line curve may also include:

[0163] In response to the lateral deviation not satisfying the iteration termination condition, the next heading angle step is determined based on the lateral deviation; the next heading angle step is used as the current heading angle step, the current heading angle correction is used as the previous heading angle correction, and the step of determining the current corrected external parameter based on the current heading angle step, the previous heading angle correction and the second external parameter is repeated; the current heading angle correction is the heading angle correction of the current corrected external parameter relative to the second external parameter.

[0164] The specific operation of determining the heading angle step length based on the lateral deviation can be referred to in the above embodiment. The iteration end condition is consistent with the above embodiment. If the lateral deviation of the current iteration (nth iteration) does not meet the iteration end condition, it is necessary to continue the iteration, and the sum of the current heading angle step of the nth iteration and the previous heading angle correction is determined as the current heading angle correction of the nth iteration. The next heading angle step is determined based on the lateral deviation of the nth iteration, and the next iteration (n+1th iteration) process is entered. The next heading angle step determined by the nth iteration is the current heading angle step of the n+1th iteration, and the current heading angle correction obtained in the nth iteration is the previous heading angle correction of the n+1th iteration. The step of determining the current corrected external parameter based on the current heading angle step, the previous heading angle correction and the second external parameter and subsequent steps are repeatedly executed, and so on, until the lateral deviation meets the iteration end condition, that is, the current iteration number reaches the iteration number threshold or the error sum is less than the error threshold, and the current corrected external parameter is determined as the corrected external parameter corresponding to the second external parameter.

[0165] In some optional embodiments, the lateral deviation mapping rule may be determined by the following process:

[0166] The first camera is a wide-angle camera (large eye), and the second camera is a narrow-angle camera (small eye). Assuming that there is only a rotation transformation between the large and small eye sampling points in the vehicle local coordinate system, the extrinsic parameter correction obtained at the nth iteration (i.e., the heading angle change of the corrected extrinsic parameter obtained at the nth iteration relative to the second extrinsic parameter) is expressed as the rotation transformation R, and the narrow-angle lane line sampling point (i.e., the sampling point in the second lane line sampling point subset) is expressed as P i , i = 1, 2, ..., N, N represents the number of narrow-angle lane sampling points, then, at the n+1th iteration, based on the external parameter correction (heading angle correction) obtained at the nth iteration, the narrow-angle lane sampling point P′ after rotating the current heading angle step dγ is i The distance d to the wide-angle lane curve (i.e., the wide-angle main lane curve) can be expressed as follows

[0167] d = P′ i ×v k =R(0,0,dγ)P i ×v k Formula 1

[0168] Among them, v k Represents the coefficient vector of the wide-angle lane curve. R(0,0,dγ) represents the rotation matrix (rotation transformation) of adding the heading angle step dγ to the rotation transformation R corresponding to the heading angle correction obtained in the previous (i.e., nth) iteration.

[0169] For small angle rotation, R(0,0,dγ) can be approximately expressed as follows:

[0170]

[0171] Among them, γ n Indicates the heading angle correction obtained in the nth iteration.

[0172] Substituting the above formula 2 into the above formula 1, we can get P' i The distance d to the wide-angle lane curve (i.e., the wide-angle main lane curve) can be obtained by sorting:

[0173]

[0174] Among them, since the lane line sampling points in the vehicle local coordinate system lack information in the z direction, the rotated sampling point P′ can be calculated based only on the heading angle step of the iterative process. i The distance to the wide-angle lane line curve is used as the lateral deviation of the sampling point until the optimization result meets the iteration threshold or the number of iterations reaches the iteration number threshold, that is, the embodiment of the present disclosure only corrects the yaw value in the second external parameter. The distance from the rotated sampling point to the main lane line curve can characterize the lateral deviation between the rotated sampling point and the main lane line curve. Therefore, Formula 3 can be used as a lateral deviation mapping rule. During the iteration process, the lateral deviation after the current iteration correction can be calculated by the lateral deviation mapping rule represented by Formula 3. There is no need to convert the lane line pixel points to the vehicle local coordinate system for each iteration, which effectively reduces the amount of calculation and improves the convergence speed of the iterative process.

[0175] The disclosed embodiment corrects the second extrinsic parameter of the second camera to obtain a corrected extrinsic parameter, which is used to improve the consistency of the lane lines perceived by the first camera and the second camera in the BEV (bird's eye view) space (i.e., the vehicle local coordinate system), reduce the degree of fusion distortion of lane lines from different perspectives, and thus greatly improve the accuracy and stability of the fused lane lines.

[0176] The above-mentioned embodiments of the present disclosure may be implemented separately or in any combination without conflict. The specific configuration may be based on actual needs and the present disclosure does not limit this.

[0177] Any lane line determination method provided in the embodiments of the present disclosure may be executed by any appropriate device with data processing capabilities, including but not limited to: a terminal device and a server, etc. Alternatively, any lane line determination method provided in the embodiments of the present disclosure may be executed by a processor, such as the processor executing any lane line determination method mentioned in the embodiments of the present disclosure by calling corresponding instructions stored in a memory. This will not be described in detail below.

[0178] Exemplary Devices

[0179] Fig.11 is a schematic diagram of the structure of a lane line determination device provided by an exemplary embodiment of the present disclosure. The device of this embodiment can be used to implement the corresponding method embodiment of the present disclosure, such as Fig.11 The device shown may include: a first processing module 51 , a second processing module 52 , a third processing module 53 , a fourth processing module 54 , a fifth processing module 55 , a sixth processing module 56 and a seventh processing module 57 .

[0180] The first processing module 51 is used to determine a first image corresponding to the first camera and a second image corresponding to the second camera.

[0181] The second processing module 52 is used to determine a first lane line pixel point set based on the first image.

[0182] The third processing module 53 is used to determine a second lane line pixel point set based on the second image.

[0183] The fourth processing module 54 is used to determine a first lane line sampling point set corresponding to the first lane line pixel point set in the vehicle local coordinate system based on the first lane line pixel point set and the first extrinsic parameter of the first camera.

[0184] The fifth processing module 55 is used to determine the corrected extrinsic parameter corresponding to the second extrinsic parameter of the second camera.

[0185] The sixth processing module 56 is used to determine the second lane line sampling point set corresponding to the second lane line pixel point set in the vehicle local coordinate system based on the second lane line pixel point set and the corrected extrinsic parameter.

[0186] The seventh processing module 57 is used to determine the lane line based on the first lane line sampling point set and the second lane line sampling point set.

[0187] Fig.12 It is a schematic diagram of the structure of a lane line determination device provided by another exemplary embodiment of the present disclosure.

[0188] In some optional embodiments, in the above Fig.11 Based on the embodiment shown, Fig.12As shown, the fifth processing module 55 may include: a first processing unit 551, which is used to determine a corrected extrinsic parameter corresponding to the second extrinsic parameter based on the first lane line sampling point set, the second lane line pixel point set, and the second extrinsic parameter of the second camera.

[0189] In some optional embodiments, the first lane line sampling point set may include a lane line sampling point subset corresponding to at least one lane line of the road where the vehicle is currently located; the at least one lane line includes the main lane line of the lane where the vehicle is currently located.

[0190] Fig.13 It is a structural schematic diagram of a lane line determination device provided by yet another exemplary embodiment of the present disclosure.

[0191] In some optional embodiments, the first processing unit 551 may include:

[0192] The first determining subunit 5511 is used to determine a first lane line sampling point subset corresponding to the main lane line based on the first lane line sampling point set.

[0193] The first processing sub-unit 5512 is used to determine a second lane line sampling point subset corresponding to the main lane line based on the second lane line pixel point set and the second extrinsic parameter.

[0194] The second processing subunit 5513 is used to determine a corrected extrinsic parameter corresponding to the second extrinsic parameter based on the first lane line sampling point subset and the second lane line sampling point subset.

[0195] In some optional embodiments, the second processing subunit 5513 is specifically used to: perform curve fitting on the first lane line sampling point subset to obtain the first main lane line curve corresponding to the main lane line. Use the second lane line sampling point subset as the current lane line sampling point subset. Determine the current heading angle step based on the current lane line sampling point subset and the first main lane line curve. Determine the current corrected external parameter based on the current heading angle step and the previous corrected external parameter corresponding to the second external parameter; the previous corrected external parameter is the corrected external parameter determined in the previous iteration. Determine the third lane line sampling point subset corresponding to the main lane line based on the second lane line pixel point set and the current corrected external parameter. In response to the third lane line sampling point subset and the first main lane line curve satisfying the iteration end condition, determine the current corrected external parameter as the corrected external parameter corresponding to the second external parameter.

[0196] In some optional embodiments, the second processing sub-unit 5513 is specifically used to: determine the target sampling point corresponding to each lane line sampling point in the current lane line sampling point subset on the first main lane line curve; determine the lateral deviation corresponding to each lane line sampling point based on each lane line sampling point and each target sampling point in the current lane line sampling point subset; determine the current heading angle step according to the lateral deviation corresponding to each lane line sampling point.

[0197] In some optional embodiments, the second processing sub-unit 5513 can also be used to: in response to the third lane line sampling point subset and the first main lane line curve not satisfying the iteration end condition, use the third lane line sampling point subset as the current lane line sampling point subset, and repeatedly execute the step of determining the current heading angle step size based on the current lane line sampling point subset and the first main lane line curve.

[0198] In some optional embodiments, the second processing subunit 5513 is specifically used to: determine the first corrected external parameter of the second external parameter in the current time frame based on the first lane line sampling point subset and the second lane line sampling point subset; determine the corrected external parameter corresponding to the second external parameter based on the historical corrected external parameters of the first corrected external parameter and the second external parameter in the historical time frame.

[0199] In some optional embodiments, the second processing subunit 5513 is specifically configured to:

[0200] Perform curve fitting on the first lane line sampling point subset to obtain the first main lane line curve corresponding to the main lane line; determine the current heading angle step based on the second lane line sampling point subset and the first main lane line curve; determine the corrected external parameter corresponding to the second external parameter based on the current heading angle step, the previous heading angle correction, the second lane line sampling point subset and the first main lane line curve; the previous heading angle correction is the heading angle correction of the corrected external parameter obtained in the previous iteration relative to the second external parameter.

[0201] In some optional embodiments, the second processing subunit 5513 is specifically configured to:

[0202] Based on the current heading angle step, the previous heading angle correction and the second external parameter, the current corrected external parameter is determined; based on the current heading angle step, the previous heading angle correction, the first main lane line curve and the second lane line sampling point subset, the lateral deviation corresponding to each sampling point in the second lane line sampling point subset under the current corrected external parameter is determined; in response to the lateral deviation satisfying the iteration end condition, the current corrected external parameter is determined as the corrected external parameter corresponding to the second external parameter.

[0203] In some optional embodiments, the second processing subunit 5513 is further configured to:

[0204] In response to the lateral deviation not satisfying the iteration termination condition, the next heading angle step is determined based on the lateral deviation; the next heading angle step is used as the current heading angle step, the current heading angle correction is used as the previous heading angle correction, and the step of determining the current corrected external parameter based on the current heading angle step, the previous heading angle correction and the second external parameter is repeated; the current heading angle correction is the heading angle correction of the current corrected external parameter relative to the second external parameter.

[0205] Fig.14 It is a structural schematic diagram of a lane line determination device provided by yet another exemplary embodiment of the present disclosure.

[0206] In some optional embodiments, in the above Fig.11 Based on the embodiment shown, Fig.14 As shown, the fifth processing module 55 may include: a second processing unit 552 and a third processing unit 553 .

[0207] The second processing unit 552 is used to obtain the historical corrected external parameter corresponding to the second external parameter determined in the historical time frame.

[0208] The third processing unit 553 is used to determine the historical corrected external parameter as the corrected external parameter corresponding to the second external parameter.

[0209] In some optional embodiments, the fifth processing module 55 may include the above-mentioned first processing unit 551, second processing unit 552 and third processing unit 553, so as to support two functions of real-time online determination of the corrected external parameters and pre-determination of the corrected external parameters. When the corrected external parameters cannot be determined in real-time online, the pre-determined corrected external parameters can be used.

[0210] Fig.15 It is a structural schematic diagram of a lane line determination device provided by yet another exemplary embodiment of the present disclosure.

[0211] In some optional embodiments, in the above Fig.11 Based on the embodiment shown, Fig.15 As shown, the seventh processing module 57 may include:

[0212] The fusion unit 571 is used to determine a fused lane line sampling point set based on the first lane line sampling point set and the second lane line sampling point set.

[0213] The tracking unit 572 is used to determine the tracking relationship between the fused lane line sampling point set and the historical lane line curve based on the fused lane line sampling point set and the historical lane line curve of the previous time frame.

[0214] The prediction unit 573 is used to determine the current lane line prediction curve coefficient based on the historical lane line curve and odometer information.

[0215] The filtering unit 574 is used to filter the current lane line prediction curve coefficient based on the tracking relationship between the fused lane line sampling point set and the historical lane line curve to obtain the filtered curve coefficient.

[0216] The determination unit 575 is used to determine the lane line based on the filtered curve coefficient.

[0217] The beneficial technical effects corresponding to the exemplary embodiment of the present device can be found in the corresponding beneficial technical effects of the above exemplary method section, which will not be repeated here.

[0218] Exemplary Electronic Devices

[0219] Fig.16 It is a structural diagram of an electronic device provided by an embodiment of the present disclosure, including at least one processor 91 and a memory 92.

[0220] The processor 91 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 90 to perform desired functions.

[0221] The memory 92 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. Non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 91 may execute one or more computer program instructions to implement the methods and / or other desired functions of the various embodiments of the present disclosure described above.

[0222] In one example, the electronic device 90 may further include: an input device 93 and an output device 94 , and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).

[0223] The input device 93 may also include, for example, a keyboard, a mouse, etc.

[0224] The output device 94 can output various information to the outside, and may include, for example, a display, a speaker, a printer, a communication network and its connected remote output devices, etc.

[0225] Of course, to simplify, Fig.16 Only some of the components related to the present disclosure in the electronic device 90 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device 90 may also include any other appropriate components.

[0226] Exemplary computer program products and computer-readable storage media

[0227] In addition to the above methods and devices, embodiments of the present disclosure may also provide a computer program product, including computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the methods of various embodiments of the present disclosure described in the above “Exemplary Methods” section.

[0228] The computer program product may be written in any combination of one or more programming languages ​​to write program code for performing the operations of the disclosed embodiments, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0229] In addition, an embodiment of the present disclosure may also be a computer-readable storage medium having computer program instructions stored thereon. When the computer program instructions are executed by a processor, the processor executes the steps in the method of various embodiments of the present disclosure described in the above “Exemplary Method” section.

[0230] Computer readable storage media can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium is, for example, but not limited to, a system, device or device including electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0231] The basic principles of the present disclosure are described above in conjunction with specific embodiments. However, the advantages, strengths, effects, etc. mentioned in the present disclosure are only examples and not limitations, and cannot be considered as necessary for each embodiment of the present disclosure. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, rather than limitation, and the above details do not limit the present disclosure to being implemented by adopting the above specific details.

[0232] Those skilled in the art may make various changes and modifications to the present disclosure without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the present disclosure claims and their equivalents, the present disclosure is also intended to include these modifications and variations.

Claims

1. A method for determining lane lines, include: Determine a first image corresponding to the first camera and a second image corresponding to the second camera; Based on the first image, determining a first lane line pixel point set; Determine a second lane line pixel point set based on the second image; Determine, based on the first lane line pixel point set and a first extrinsic parameter of the first camera, a first lane line sampling point set corresponding to the first lane line pixel point set in a vehicle local coordinate system; Determine a corrected extrinsic parameter corresponding to a second extrinsic parameter of the second camera; Determine, based on the second lane line pixel point set and the corrected extrinsic parameter, a second lane line sampling point set corresponding to the second lane line pixel point set in the vehicle local coordinate system; A lane line is determined based on the first lane line sampling point set and the second lane line sampling point set.

2. The method according to claim 1, in, The determining a corrected extrinsic parameter corresponding to the second extrinsic parameter of the second camera includes: Based on the first lane line sampling point set, the second lane line pixel point set, and the second extrinsic parameter of the second camera, a corrected extrinsic parameter corresponding to the second extrinsic parameter is determined.

3. The method according to claim 2, in, The first lane line sampling point set includes a lane line sampling point subset corresponding to at least one lane line of the road where the vehicle is currently located; the at least one lane line includes the main lane line of the lane where the vehicle is currently located; The determining, based on the first lane line sampling point set, the second lane line pixel point set, and the second extrinsic parameter of the second camera, a corrected extrinsic parameter corresponding to the second extrinsic parameter includes: Based on the first lane line sampling point set, determining a first lane line sampling point subset corresponding to the main lane line; Determine a second lane line sampling point subset corresponding to the main lane line based on the second lane line pixel point set and the second extrinsic parameter; Based on the first lane line sampling point subset and the second lane line sampling point subset, the corrected extrinsic parameter corresponding to the second extrinsic parameter is determined.

4. The method according to claim 3, in, The determining, based on the first lane line sampling point subset and the second lane line sampling point subset, the corrected extrinsic parameter corresponding to the second extrinsic parameter comprises: Performing curve fitting on the first lane line sampling point subset to obtain a first main lane line curve corresponding to the main lane line; Using the second lane line sampling point subset as the current lane line sampling point subset; Determine a current heading angle step size based on the current lane line sampling point subset and the first main lane line curve; Determine a current corrected external parameter based on the current heading angle step and a previous corrected external parameter corresponding to the second external parameter; the previous corrected external parameter is a corrected external parameter determined in a previous iteration; Determine a third lane line sampling point subset corresponding to the main lane line based on the second lane line pixel point set and the current corrected extrinsic parameter; In response to the third lane line sampling point subset and the first main lane line curve satisfying an iteration end condition, the current corrected extrinsic parameter is determined as the corrected extrinsic parameter corresponding to the second extrinsic parameter.

5. The method according to claim 4, in, The determining the current heading angle step size based on the current lane line sampling point subset and the first main lane line curve includes: Determine a target sampling point corresponding to each lane line sampling point in the current lane line sampling point subset on the first main lane line curve; Determine the lateral deviations corresponding to the lane line sampling points based on the lane line sampling points and the target sampling points in the current lane line sampling point subset; The current heading angle step is determined according to the lateral deviations respectively corresponding to the lane line sampling points.

6. The method according to claim 4, in, Also includes: In response to the third lane line sampling point subset and the first main lane line curve not satisfying the iteration end condition, the third lane line sampling point subset is used as the current lane line sampling point subset, and the step of determining the current heading angle step size based on the current lane line sampling point subset and the first main lane line curve is repeatedly executed.

7. The method according to claim 3, in, The determining, based on the first lane line sampling point subset and the second lane line sampling point subset, the corrected extrinsic parameter corresponding to the second extrinsic parameter comprises: Determine a first corrected extrinsic parameter of the second extrinsic parameter in a current time frame based on the first lane line sampling point subset and the second lane line sampling point subset; The corrected external parameter corresponding to the second external parameter is determined based on the first corrected external parameter and the historical corrected external parameter of the second external parameter in the historical time frame.

8. The method according to claim 3, in, The determining, based on the first lane line sampling point subset and the second lane line sampling point subset, the corrected extrinsic parameter corresponding to the second extrinsic parameter comprises: Performing curve fitting on the first lane line sampling point subset to obtain a first main lane line curve corresponding to the main lane line; Determine a current heading angle step size based on the second lane line sampling point subset and the first main lane line curve; Based on the current heading angle step, the previous heading angle correction, the second lane line sampling point subset and the first main lane line curve, the corrected external parameter corresponding to the second external parameter is determined; the previous heading angle correction is the heading angle correction of the corrected external parameter obtained in the previous iteration relative to the second external parameter.

9. The method according to claim 8, in, The determining the corrected extrinsic parameter corresponding to the second extrinsic parameter based on the current heading angle step, the previous heading angle correction, the second lane line sampling point subset and the first main lane line curve includes: Determine a current corrected external parameter based on the current heading angle step, the previous heading angle correction value and the second external parameter; Determine, based on the current heading angle step, the previous heading angle correction, the first main lane line curve and the second lane line sampling point subset, the lateral deviation corresponding to each sampling point in the second lane line sampling point subset under the current corrected external parameter; In response to the lateral deviation satisfying an iteration end condition, the current corrected extrinsic parameter is determined as the corrected extrinsic parameter corresponding to the second extrinsic parameter.

10. The method according to claim 9, in, Also includes: In response to the lateral deviation not satisfying the iteration end condition, determining a next heading angle step length based on the lateral deviation; The next heading angle step is used as the current heading angle step, and the current heading angle correction is used as the previous heading angle correction. The step of determining the current corrected external parameter based on the current heading angle step, the previous heading angle correction and the second external parameter is repeated; the current heading angle correction is the heading angle correction of the current corrected external parameter relative to the second external parameter.

11. The method according to claim 1, in, The determining a corrected extrinsic parameter corresponding to the second extrinsic parameter of the second camera includes: Obtaining a historical corrected external parameter corresponding to the second external parameter determined in the historical time frame; The historical corrected external parameter is determined as the corrected external parameter corresponding to the second external parameter.

12. The method according to any one of claims 1 to 11, in, The determining of the lane line based on the first lane line sampling point set and the second lane line sampling point set includes: Determine a fused lane line sampling point set based on the first lane line sampling point set and the second lane line sampling point set; Based on the fused lane line sampling point set and the historical lane line curve of the previous time frame, determining a tracking relationship between the fused lane line sampling point set and the historical lane line curve; Determining a current lane line prediction curve coefficient based on the historical lane line curve and odometer information; Based on the tracking relationship between the fused lane line sampling point set and the historical lane line curve, filtering the current lane line prediction curve coefficient to obtain a filtered curve coefficient; The lane line is determined based on the filtered curve coefficient.

13. A lane line determination device, include: A first processing module, used to determine a first image corresponding to the first camera and a second image corresponding to the second camera; A second processing module, configured to determine a first lane line pixel point set based on the first image; A third processing module, configured to determine a second lane line pixel point set based on the second image; a fourth processing module, configured to determine, based on the first lane line pixel point set and a first extrinsic parameter of the first camera, a first lane line sampling point set corresponding to the first lane line pixel point set in a vehicle local coordinate system; A fifth processing module, configured to determine a corrected extrinsic parameter corresponding to a second extrinsic parameter of the second camera; a sixth processing module, configured to determine, based on the second lane line pixel point set and the corrected extrinsic parameter, a second lane line sampling point set corresponding to the second lane line pixel point set in the vehicle local coordinate system; A seventh processing module is used to determine a lane line based on the first lane line sampling point set and the second lane line sampling point set.

14. A computer-readable storage medium storing a computer program, wherein the computer program is used to execute the method according to any one of claims 1 to 12.

15. An electronic device, the electronic device include: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the method described in any one of claims 1-12.