Yaw angle estimation method, device, equipment, vehicle and medium for vehicle-mounted camera

By using the lane image collected by the on-board camera in the intelligent driving vehicle to detect the same target lane line and establish a mapping relationship, the yaw angle estimation without manual calibration and without additional sensors is realized, which solves the problem of lane line detection caused by the extrinsic parameter deviation of the on-board camera. Inaccuracy issues are eliminated and driving safety and efficiency are improved.

CN116823958BActive Publication Date: 2024-09-17APOLLO INTELLIGENT CONNECTIVITY (BEIJING) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310429708.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-20
Publication Date
2024-09-17
Estimated Expiration
2043-04-20

AI Technical Summary

Technical Problem

The external parameter deviation of the on-board camera in an intelligent driving vehicle leads to inaccurate lane line detection, which may cause the vehicle to deviate from the road. There are problems of low efficiency and high cost of manual calibration.

Method used

By detecting the same target lane line based on the first and second lane images collected by the vehicle-mounted camera while the vehicle is driving, a mapping relationship is established to estimate the yaw angle of the vehicle-mounted camera, achieving automation without manual calibration and without additional sensors. Yaw angle estimation.

Benefits of technology

It achieves efficient and automated yaw angle estimation during vehicle driving, improves the accuracy of lane line detection and driving safety, and reduces costs and waiting time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116823958B
    Figure CN116823958B
Patent Text Reader

Abstract

The present disclosure provides a method, device, equipment, vehicle and medium for estimating the yaw angle of a vehicle-mounted camera. It relates to the field of data processing, and in particular to the field of intelligent driving and autonomous driving vehicles. The specific implementation scheme is: during the driving of the vehicle, a first lane image is collected at a first moment based on the vehicle-mounted camera, and a second lane image is collected at a second moment based on the vehicle-mounted camera; the first lane line detected from the first lane image and the second lane line detected from the second lane image are obtained; when the first lane line and the second lane line meet the calibration conditions, the yaw angle estimation value of the vehicle-mounted camera is determined based on the mapping relationship between the first lane line and the second lane line; the mapping relationship is used to map the detection point on the first lane line to the second lane line. The embodiment of the present disclosure does not require manual calibration or additional sensors, and the yaw angle estimation can be automatically completed during the driving of the vehicle.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of data processing technology, and in particular to technical fields such as intelligent driving and autonomous driving vehicles. Background Art

[0002] With the development of automobile technology, the application of intelligent driving is becoming more and more extensive. The on-board camera is one of the most important sensors in intelligent driving. It is responsible for the detection of lane lines, obstacles, etc. Due to the influence of external disturbances, body deformation, replacement of on-board cameras or on-board camera accessories, etc., the external parameters of the on-board camera will change accordingly, that is, the external parameters will deviate. At this time, if the on-board camera is used for lane line detection, it will cause the vehicle to deviate to the left or right during driving. If the deviation is serious, it may even cause a safety accident. Therefore, it is very important to ensure the accuracy of the camera's external parameters. Summary of the invention

[0003] The present disclosure provides a method, an apparatus, a device, a vehicle and a storage medium for estimating a yaw angle of a vehicle-mounted camera.

[0004] According to one aspect of the present disclosure, a method for estimating a yaw angle of a vehicle-mounted camera is provided, comprising:

[0005] During the driving of the vehicle, an image of a first lane is collected at a first moment based on the onboard camera, and an image of a second lane is collected at a second moment based on the onboard camera;

[0006] Acquire a first lane line detected from the first lane image and a second lane line detected from the second lane image, wherein the first lane line and the second lane line both represent the same target lane line;

[0007] When the first lane line and the second lane line meet the calibration conditions, the yaw angle estimation value of the vehicle-mounted camera is determined based on the mapping relationship between the first lane line at the first moment and the second lane line at the second moment; the mapping relationship is used to map the detection point on the first lane line to the second lane line.

[0008] According to another aspect of the present disclosure, a yaw angle estimation device for a vehicle-mounted camera is provided, comprising:

[0009] An image acquisition module, used for acquiring an image of a first lane at a first moment based on a vehicle-mounted camera, and acquiring an image of a second lane at a second moment based on the vehicle-mounted camera during vehicle driving;

[0010] A lane line acquisition module, used to acquire a first lane line detected from the first lane image and a second lane line detected from the second lane image, wherein the first lane line and the second lane line both represent the same target lane line;

[0011] The estimation module is used to determine the yaw angle estimation value of the vehicle-mounted camera based on the mapping relationship between the first lane line at a first moment and the second lane line at a second moment when the first lane line and the second lane line meet the calibration conditions; the mapping relationship is used to map the detection point on the first lane line to the second lane line.

[0012] According to another aspect of the present disclosure, there is provided an electronic device, comprising:

[0013] at least one processor; and

[0014] a memory communicatively connected to the at least one processor; wherein,

[0015] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute any method in the embodiments of the present disclosure.

[0016] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute any method according to the embodiments of the present disclosure.

[0017] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, which implements any method according to the embodiments of the present disclosure when executed by a processor.

[0018] According to another aspect of the present disclosure, a vehicle is provided. The vehicle includes the aforementioned electronic device.

[0019] The disclosed embodiment does not require manual calibration or additional sensors, and can automatically estimate the yaw angle during vehicle driving.

[0020] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0022] Figure 1 is a flow chart of a method for estimating a yaw angle of a vehicle-mounted camera according to an embodiment of the present disclosure;

[0023] Figure 2 is a schematic diagram of a lane line detection result according to an embodiment of the present disclosure;

[0024] Figure 3is a schematic diagram of estimating the yaw angle based on solution 1 according to an embodiment of the present disclosure;

[0025] Figure 4 is another schematic flow chart of a method for estimating a yaw angle of a vehicle-mounted camera according to an embodiment of the present disclosure;

[0026] Figure 5 is a schematic diagram of estimating the yaw angle based on solution 2 according to an embodiment of the present disclosure;

[0027] Figure 6 is a framework diagram for estimating the yaw angle according to an embodiment of the present disclosure;

[0028] Figure 7 is another schematic flow chart of a method for estimating a yaw angle of a vehicle-mounted camera according to an embodiment of the present disclosure;

[0029] Figure 8 is a block diagram of a yaw angle estimation device for a vehicle-mounted camera for implementing an embodiment of the present disclosure;

[0030] Fig. 9 It is a block diagram of an electronic device used to implement the yaw angle estimation method of the vehicle-mounted camera according to the embodiment of the present disclosure. DETAILED DESCRIPTION

[0031] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope of the present disclosure. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0032] In vehicle-mounted cameras, the yaw angle of the camera's external parameters is particularly important for lane line detection. If the yaw angle deviates, the vehicle will deviate to the left or right, and a large yaw angle deviation will affect driving safety.

[0033] In the related art, when the yaw angle deviates, the vehicle will be sent to a repair shop for manual calibration of the camera external parameters to correct the yaw angle. However, this method has a low degree of automation because it requires manual operation. In addition, the user needs to wait for a long time, and the efficiency of yaw angle correction is also low.

[0034] Another solution is to use other sensors such as LiDAR to calibrate the on-board camera. This solution can check whether the camera's external parameters are biased. However, although this solution does not rely on human intervention, it requires the use of other sensors, which is costly and is not suitable for pure visual autonomous driving solutions.

[0035] In view of this, the present disclosure provides a method for estimating the yaw angle of a vehicle-mounted camera. The method can estimate the yaw angle while the vehicle is traveling, and does not require additional sensors. Figure 1 As shown, it is a schematic diagram of the process of the method, comprising:

[0036] S101, during vehicle driving, collecting a first lane image at a first moment based on a vehicle-mounted camera, and collecting a second lane image at a second moment based on the vehicle-mounted camera.

[0037] That is, during the driving process of the vehicle, any on-board camera can be used to collect images of the driving lane in real time based on the on-board camera to obtain lane images corresponding to each collection moment. In the disclosed embodiment, for ease of understanding of the solution, the first lane image and the second lane image collected at two moments are used for illustration.

[0038] After the lane image is obtained, lane line detection can be performed on each lane image frame, so as to extract lane lines from each lane image frame. In implementation, lane images can be collected in real time, and lane detection can be performed on the lane images in real time, so as to detect corresponding lane lines from different lane images for the same lane line. The detected lane lines can be stored for use in subsequent processing flows.

[0039] S102, obtaining a first lane line detected from the first lane image and a second lane line detected from the second lane image, wherein the first lane line and the second lane line both represent the same target lane line.

[0040] In the disclosed embodiment, the first lane line and the second lane line can be obtained from the storage space of the lane line, or after the first lane image and the second lane image are acquired, the two lane images can be detected respectively to obtain the first lane line and the second lane line. It should be noted that in order to ensure the accuracy of the yaw angle estimation, the first lane line and the second lane line are detected for the same actual lane line, which is the target lane line mentioned above.

[0041] S103, when the first lane line and the second lane line meet the calibration conditions, determine the yaw angle estimation value of the vehicle-mounted camera based on the mapping relationship between the first lane line at the first moment and the second lane line at the second moment; the mapping relationship is used to map the detection point on the first lane line to the second lane line.

[0042] When the first moment is earlier than the second moment, the lane line detected at the previous moment is mapped to the lane line detected at the next moment. When the first moment is later than the second moment, the lane line detected at the next moment is mapped to the lane line detected at the previous moment.

[0043] Different lane lines detected for the same target lane line have a mapping relationship. By defining the mapping relationship as mapping the first lane line to the second lane line, it is helpful to solve the yaw angle.

[0044] The mapping relationship includes the yaw angle to be estimated. Thus, the mapping relationship is used to constrain the first lane line and the second lane line to be on the same straight line, thereby estimating the yaw angle.

[0045] In summary, in the embodiment of the present disclosure, for the target lane line, the first lane line and the second lane line in the lane images collected at different times are extracted, and then the yaw angle can be estimated based on the mapping relationship between the first lane line and the second lane line. This method does not require manual calibration of the yaw angle, nor does it require the use of additional sensors. The yaw angle can be estimated based on visual information (i.e., the first lane image and the second lane image) during vehicle driving. Therefore, the embodiment of the present disclosure can efficiently estimate the yaw angle during vehicle driving.

[0046] During implementation, the calibration conditions are used to select lane lines suitable for estimating the yaw angle from lane lines detected in the image. For example, lane lines with good visual effects and clarity are selected. In some embodiments, in order to improve the accuracy of yaw angle estimation, the calibration conditions may include at least one of the following:

[0047] Condition 1) The lane length is greater than the preset length;

[0048] This condition can be used to select relatively complete and clear lane lines that are detected, so as to improve the accuracy of yaw angle estimation by improving the accuracy of basic data.

[0049] Condition 2) The curvature of the lane line is lower than the preset curvature;

[0050] During implementation, the curve equation of the lane line is obtained through lane line detection. For example, the first lane line corresponds to the first curve equation, and the second lane line corresponds to the second curve equation. For each lane line, multiple detection points on the target lane line can be obtained, and the curve equation can be fitted based on these multiple detection points.

[0051] After obtaining the curve equation, the higher-order coefficients of the curve equation can be used to measure the curvature of the lane line. For example, the coefficients of the higher-order terms of the curve equation can be queried. If the coefficients of the higher-order terms are close to 0, that is, the absolute values ​​of the coefficients of the higher-order terms are small enough, it can be determined that the curve equation is close to a straight line. Thus, for any lane line of the first lane line and the second lane line, when the absolute value of the coefficient of the curve equation of the lane line higher than the first-order term is less than a preset threshold, it is determined that the curvature of the lane line is lower than the preset curvature.

[0052] This condition can help filter out straight lane lines, that is, lane lines that are close to straight lines. Lane lines that are close to straight lines are consistent with the actual situation, and the accuracy of yaw angle estimation can be improved by improving the accuracy of basic data.

[0053] Condition 3) The first lane line and the second lane line are parallel;

[0054] During implementation, a first straight line equation of the first lane line and a second straight line equation of the second lane line may be determined. If the straight line represented by the first straight line equation is parallel to the straight line represented by the second straight line equation, it is determined that the first lane line and the second lane line have a parallel relationship.

[0055] During implementation, a first straight line equation of the first lane line may be fitted using multiple detection points in the curve equation of the first lane line. Similarly, a second straight line equation of the second lane line may be fitted using multiple detection points in the curve equation of the second lane line.

[0056] In another embodiment, a first observation point (i.e., the detection point closest to the vehicle) may be obtained from among multiple detection points of the first lane line, and a first straight line equation of the first lane line may be fitted based on the first observation point. For example, the tangent slope of the first observation point in the curve equation of the first lane line is determined, the tangent slope is used as the slope of the first straight line equation of the first lane line, and the straight line passing through the first observation point is solved to obtain the first straight line equation of the first lane line.

[0057] Similarly, the first observation point (i.e., the detection point closest to the vehicle) can be obtained from the multiple detection points of the second lane line, and the second straight line equation of the second lane line can be fitted based on the first observation point. For example, the tangent slope of the first observation point in the curve equation of the second lane line is determined, and the tangent slope is used as the slope of the second straight line equation of the second lane line, and the straight line passing through the first observation point is solved to obtain the second straight line equation of the second lane line.

[0058] Of course, when the curve equations of the first lane line and the second lane line are approximately straight lines, the coefficients of the first lane line and the second lane line can also be checked. If the difference between the two is small, it can also be understood that the first lane line and the second lane line are nearly parallel.

[0059] By requiring the first lane line and the second lane line to be parallel, the quality of the detected lane lines can be further guaranteed. Moreover, compared with non-parallel lane lines, the mapping relationship between parallel lane lines is simpler, which can improve the efficiency and accuracy of yaw estimation.

[0060] Condition 4), the time interval between the first moment and the second moment is greater than the preset interval;

[0061] That is, the first moment and the second moment are not required to be too close. Since the vehicle collects lane images in real time based on the on-board camera during driving, when the frame rate of the collection is large, multiple frames of lane images are collected almost at the same time, so that the change between the images is small. In order to have sufficient changes to facilitate the estimation of the yaw angle, the time interval between the first moment and the second moment is required to be greater than the preset interval in the embodiment of the present disclosure.

[0062] Condition 5) At least n third lane lines are detected between the first moment and the second moment, where n is a positive integer greater than or equal to 1, and the third lane line is obtained by performing lane line detection on the target lane line.

[0063] The purpose of setting condition 5) is the same as that of condition 4. Therefore, during implementation, it is also possible to require that either condition 4) or condition 5) be executed.

[0064] In the disclosed example, condition 5) is set to ensure that there is sufficient variation between the first lane line and the second lane line, so as to estimate the yaw angle.

[0065] In some embodiments, the vehicle can collect images of the driving lane in real time based on the on-board camera, obtain the lane image in real time, and then perform lane line detection on the lane image in real time, so as to extract the detection results of the same target lane line. Each lane line detected for the target lane line is stored, and a sliding window can be set during implementation, and the lane lines belonging to the same sliding window detected from the lane image are stored in groups according to the sliding window. Among them, one sliding window belongs to a group.

[0066] Then, for the lane lines in the same sliding window, the first lane line and the second lane line are selected according to the calibration conditions.

[0067] When the first lane line and the second lane line meet the calibration conditions, the yaw angle estimation value is obtained based on the mapping relationship between the two lane lines.

[0068] like Figure 2 As shown, the black solid line represents the actual lane line, and the dotted line represents the detected lane line (the lane lines detected in the embodiment of the present disclosure are all lane lines in the vehicle coordinate system). Due to the deviation of the yaw angle, the detected lane line may be misaligned with the actual lane line. During implementation, any actual lane line can be selected as the target lane line to establish a mapping relationship between the first lane line and the second lane line.

[0069] based on Figure 2As shown in the deviation, since the first lane line and the second lane line belong to the detection results of the same target lane line at different times, in the mapping relationship, the detection point on the first lane line is converted to the target lane line at the first moment by the yaw angle to be estimated to obtain the first middle point, and the first middle point is converted to the target lane line at the second moment by the displacement of the vehicle between the first moment and the second moment to obtain the second middle point, and the second middle point is converted to the second lane line at the second moment by the negative value of the yaw angle to be estimated.

[0070] The mapping relationship can be expressed as shown in formula (1):

[0071] p'0=T yaw *T loc *(T yaw ) -1 *p0 (1)

[0072] in,

[0073]

[0074] In formula (1), p0 represents the detection point on the first lane line, T yaw represents the expression of the yaw angle to be estimated, θ represents the yaw angle to be estimated, T loc represents the displacement change of the vehicle between the first moment and the second moment, p'0 represents the mapping point of the detection point on the first lane line on the second lane line, ρ represents the rotation of the vehicle between the first moment and the second moment, t x represents the longitudinal displacement of the vehicle, t y Represents the lateral displacement of the vehicle. x and t y It is calculated based on the positioning data of the vehicle at the first moment and the second moment.

[0075] Based on this mapping relationship, the conversion of points on the same lane line collected at different times can be realized. This mapping relationship takes into account the yaw angle to be estimated and the displacement change of the vehicle itself, and can accurately and reasonably describe the transformation between the first lane line and the second lane line, which is conducive to accurately estimating the yaw angle.

[0076] Based on the mapping relationship, the embodiments of the present disclosure exemplarily provide two solutions for estimating yaw, and different solutions are described below.

[0077] Solution 1) Derive the yaw angle estimation formula based on the mapping relationship

[0078] During implementation, since the mapping relationship includes the yaw angle, it is convenient to map the first lane line to the second lane line, and thus the yaw angle estimation formula can be derived based on the mapping relationship.

[0079] After deriving the yaw angle estimation formula, the yaw angle estimation formula can be saved. During the vehicle driving process, the first straight line equation of the first lane line and the second straight line equation of the second lane line can be obtained by collecting lane images; the parameters of the first straight line equation and the parameters of the second straight line equation are used as parameters of the yaw angle estimation formula to obtain the yaw angle estimation value.

[0080] Therefore, in the embodiment of the present disclosure, the parameters of the first straight line equation of the first lane line and the second straight line equation of the second lane line are obtained during the vehicle driving process, and then the yaw angle estimation value can be determined by solving the yaw angle estimation formula. The implementation process is simple and efficient. When the vehicle is driving slowly, there is enough time to obtain the yaw angle estimation value, and when the vehicle is driving at high speed, the yaw angle can also be estimated in time, thereby improving the efficiency of intelligent driving.

[0081] During implementation, a yaw angle estimation formula can be obtained based on a mapping relationship and a series of reasoning processes, and the yaw angle estimation formula can be obtained by using means such as approximation and equivalent replacement in the reasoning process.

[0082] Exemplarily, assuming that the first moment is before the second moment, the first straight line equation of the first lane line obtained at the first moment is expressed as shown in formula (2):

[0083] y=c 0i +c 1i x (2)

[0084] The second straight line equation of the second lane line obtained at the second moment is expressed as shown in formula (3):

[0085] y=c 0j +c 1j x (3)

[0086] Correspondingly, the yaw angle estimation formula can be expressed as shown in formula (4):

[0087]

[0088] In formula (4), θ represents the estimated value of the yaw angle, t x represents the longitudinal displacement of the vehicle, t y represents the lateral displacement of the vehicle, c oi represents the intercept of the first straight line equation, c 1i represents the slope of the first straight line equation, ρ represents the rotation of the vehicle from the first moment to the second moment, and c ojRepresents the intercept of the second line equation.

[0089] Based on the yaw angle estimation formula, the yaw angle estimation value can be solved simply and efficiently. The yaw angle can be estimated not only when the vehicle is driving slowly, but also when the vehicle is driving at high speed. Therefore, the estimated lane line can be compensated quickly to improve the accuracy and safety of driving.

[0090] like Figure 3 As shown in the figure, the rectangular box represents the vehicle. The vehicle detects the first lane line at time t (i.e. the first moment), and the corresponding first straight line equation is l1. At time t+1, i.e. the second moment, the vehicle detects the second lane line and the corresponding second straight line equation is l2. The yaw angles corresponding to time t and time t+1 can be solved by the parameters of l1 and l2 and the yaw angle estimation formula.

[0091] Solution 2) Solve the yaw angle based on the optimization objective function

[0092] In this implementation, an objective function can be constructed based on the mapping relationship, and the yaw angle can be estimated by optimizing the objective function. Figure 4 The process shown includes:

[0093] S401, mapping a plurality of detection points on the first lane line to a second straight line equation of the second lane line through a mapping relationship, to obtain a plurality of mapping points.

[0094] It should be emphasized that, in the embodiment of the present disclosure, the first lane line at the first moment is mapped to the second lane line at the second moment, thereby obtaining corresponding multiple mapping points.

[0095] The mapping relationship shown in formula (4) can still be used to obtain multiple mapping points.

[0096] S402, establishing an objective function, where the objective function is used to solve the sum of distances from a plurality of mapping points to a second straight line equation of a second lane line.

[0097] That is, the mapping point should theoretically be on the second straight line equation of the second lane line, but due to the deviation of the yaw angle, the obtained mapping point may not be on the second straight line equation. Therefore, the distance from each mapping point to the second straight line equation can be solved, and then the sum of the distances from each mapping point on the first lane line to the second straight line equation is used as the objective function.

[0098] The expression of the objective function can be expressed as shown in formula (5):

[0099]

[0100] Wherein, i represents the i-th detection point on the first lane line, di represents the distance from the mapping point of the i-th detection point on the first lane line on the second straight line equation to the second straight line equation, and n represents the total number of detection points on the first lane line.

[0101] S403, adjusting the yaw angle to be estimated in the mapping relationship by taking minimizing the objective function as the optimization goal.

[0102] When each detection point on the first lane line can be accurately mapped to the second lane line, theoretically, the distance from each mapping point to the second straight line equation of the second lane line is close to 0. Therefore, the objective function is minimized, that is, the distance from each mapping point to the second straight line equation is minimized to complete the optimization of the estimated yaw angle.

[0103] S404, obtaining the value of the yaw angle to be estimated when minimizing the objective function as the yaw angle estimation value.

[0104] After optimization, when the objective function is minimized, the yaw angle is corrected, and the value of the yaw angle to be estimated is the required yaw angle estimate.

[0105] Through the embodiments of the present disclosure, the yaw angle can be optimized by optimizing the minimum objective function. During the optimization process, the minimization distance is used as a constraint condition, and the process is short and easy to implement. It is convenient to complete the yaw angle calibration of the vehicle-mounted camera during driving, so that the yaw angle can be calibrated without manual work or additional sensors, increasing the applicable scenarios of the embodiments of the present disclosure.

[0106] like Figure 5 As shown, Figure 5 The two adjacent lane lines represent the first lane line and the second lane line respectively. The first lane line is mapped to the second lane line, and the distance d represented by the objective function is solved. The yaw angle can be solved by optimizing the objective function.

[0107] During implementation, lane images can be collected in real time, lane line detection can be performed in real time, and detection results of the same target lane line in lane images of different frames can be obtained and stored in the same sliding window. Therefore, it can be understood that multiple first moments and multiple second moments are included in the same sliding window. Every two lane lines that meet the calibration conditions constitute a lane line pair, and each pair of lane line pairs includes a first lane line and a second lane line. In order to improve the accuracy of yaw angle estimation, in the embodiment of the present disclosure, multiple moment pairs are included in the sliding window, each moment pair includes a first moment and a corresponding second moment, and each moment pair corresponds to a pair of lane line pairs. On this basis, the yaw angle estimation value of the vehicle-mounted camera can be solved in the sliding window based on the first lane line and the second lane line corresponding to each moment pair, respectively, to obtain multiple yaw angle estimation values; the average of the multiple yaw angle estimation values ​​is solved to obtain the yaw angle calibration value of the vehicle-mounted camera.

[0108] For example, the same sliding window includes lane line 1, lane line 2, lane line 3, lane line 4 and lane line 5. Assuming that lane line 1 and lane line 3 meet the calibration conditions, and lane line 1 and lane line 4 meet the calibration conditions, a yaw angle estimation value y1 is solved based on lane line 1 and lane line 3, and another yaw angle estimation value y2 is solved based on lane line 1 and lane line 4. The yaw angle calibration value is obtained by solving the average of y1 and y2.

[0109] Of course, in other embodiments, the detection results of different target lane lines can be stored in the same sliding window. For example, multiple first lane lines and multiple second lane lines of the left lane line, and multiple first lane lines and multiple second lane lines of the right lane line. The yaw angle is estimated based on the first lane line and the second lane line of the left lane line to obtain multiple yaw angle estimation values, and the yaw angle can also be estimated based on the first lane line and the second lane line of the right lane line to obtain multiple yaw angle estimation values. Afterwards, the multiple yaw angle estimation values ​​of the left lane line and the multiple yaw angle estimation values ​​of the right lane line can be used to find the average to obtain the yaw angle calibration value in the sliding window.

[0110] It can be understood that in the embodiment of the present disclosure, the target lane lines corresponding to multiple time pairs in the same sliding window can be the same or different.

[0111] The yaw angle of the vehicle-mounted camera is calibrated by solving the mean of multiple yaw angle estimation values, which can reduce the impact of accidental errors on the yaw estimation value and improve the accuracy of the yaw angle estimation value.

[0112] Similarly, in the embodiment of the present disclosure, multiple sliding windows can be set, each sliding window can estimate a yaw angle calibration value respectively, and during implementation, the yaw angle calibration value of the vehicle-mounted camera can be solved separately in the multiple sliding windows to obtain multiple yaw angle calibration values; when the error between the multiple yaw angle calibration values ​​is less than the error threshold, stop solving the yaw angle calibration value, and determine that the yaw angle of the vehicle-mounted camera reaches a stable state.

[0113] When the yaw angle reaches a stable state, stopping the solution can save computing resources and improve the efficiency of computing resource utilization.

[0114] During implementation, the solution provided by the embodiment of the present disclosure can be executed when the vehicle is started. After the yaw angle calibration value is stable, the solution can be stopped. When an accident occurs or the vehicle is started again, the solution provided by the embodiment of the present disclosure can be executed again.

[0115] Taking the above-mentioned solution 1 as an example, the yaw angle estimation method provided by the embodiment of the present disclosure is described below in conjunction with the accompanying drawings. Figure 6 The figure is a schematic diagram of the overall framework of the solution provided by the embodiment of the present disclosure. Figure 6 In the process, lane line detection is performed on the lane image captured by the vehicle-mounted camera to obtain the lane line detected from the lane image and the positioning data of each frame of the lane image. The positioning data is the position data obtained by performing the positioning operation. For example, the vehicle-mounted camera captures the lane image, and the positioning module of the vehicle continuously performs the positioning operation to obtain the positioning data. Thus, the positioning data closest to the acquisition time of the lane image can be obtained from the positioning data as the positioning data of the lane image. Thus, the input information is obtained.

[0116] The input data is used as upstream data for subsequent processing. During implementation, the positioning data and the lane lines detected from the image are corresponding, and the lane lines and their corresponding positioning data are associated and stored in the same sliding window. Preprocessing operations are performed on the data in the same sliding window. After obtaining the first lane line and the second lane line that meet the calibration conditions, the yaw angle estimation operation can be performed to obtain the yaw angle estimation value, and then the lane line can be corrected.

[0117] Combine the following Figure 7 right Figure 6 The framework is further described, including the following steps:

[0118] S701, detect the target lane line based on the vehicle-mounted camera, and cache the obtained lane line and the corresponding positioning data into the sliding window. Figure 6 Get input information.

[0119] S702, corresponding Figure 6The preprocessing operation in can filter the data according to the length of the lane line and the curve equation coefficient in the sliding window, and only retain the lane line with a length greater than the preset length and a curvature less than the preset curvature, and obtain the lane line with good observation and close to the straight line after filtering. And use the first observation point of the lane line and its tangent slope to approximate the lane line to a straight line, and obtain the straight line equation corresponding to each lane line.

[0120] S703, extract lane lines that are separated by n lane lines from each other from the sliding window to obtain multiple lane line pairs, each lane line pair including a first lane line and a second lane line. Figure 6 Through data selection, the lane lines that meet the calibration conditions are screened out.

[0121] S704: For each lane line pair, calculate the displacement of the vehicle according to the positioning data of the first lane line and the positioning data of the second lane line in the lane line pair.

[0122] During implementation, if a vehicle lane change is detected, the set of data within the sliding window will not be calculated.

[0123] S705 , based on the displacement, the straight line equation of the first lane line and the parameters of the straight line equation of the second lane line, a yaw angle estimation formula is used to calculate a yaw angle estimation value.

[0124] S704 and S705 correspond to Figure 6 The geometric calculation process in is used to estimate the yaw angle.

[0125] S706, after traversing all lane line pairs in the sliding window, a set of yaw angle estimation values ​​is obtained, and the average value of the set of yaw angle estimation values ​​is calculated to obtain the final yaw angle calibration value. Figure 6 The mean filter is completed in .

[0126] Finally, corresponding Figure 6 In the correction process, the lane line is corrected by the obtained yaw calibration value for assisted driving.

[0127] In summary, in the embodiments of the present disclosure, the yaw angle can be estimated during vehicle driving to correct the yaw angle and supplement the lane line so as to enable correct assisted driving.

[0128] Based on the same technical concept, in the embodiments of the present disclosure, Figure 8 As shown, a yaw angle estimation device 800 for a vehicle-mounted camera is also provided, comprising:

[0129] The image acquisition module 801 is used to acquire an image of a first lane at a first moment based on a vehicle-mounted camera, and to acquire an image of a second lane at a second moment based on the vehicle-mounted camera during vehicle driving;

[0130] A lane line acquisition module 802 is used to acquire a first lane line detected from the first lane image and a second lane line detected from the second lane image, wherein the first lane line and the second lane line both represent the same target lane line;

[0131] The estimation module 803 is used to determine the yaw angle estimation value of the vehicle-mounted camera based on the mapping relationship between the first lane line at a first moment and the second lane line at a second moment when the first lane line and the second lane line meet the calibration conditions; the mapping relationship is used to map the detection point on the first lane line to the second lane line.

[0132] In some embodiments, the calibration conditions include at least one of the following:

[0133] The lane line length is greater than the preset length;

[0134] The curvature of the lane line is lower than the preset curvature;

[0135] The first lane line and the second lane line are in parallel relationship;

[0136] The time interval between the first moment and the second moment is greater than a preset interval;

[0137] At least n third lane lines are detected between the first moment and the second moment, where n is a positive integer greater than or equal to 1, and the third lane lines are obtained by performing lane line detection on the target lane line.

[0138] In some embodiments, in the mapping relationship, the detection point on the first lane line is converted to the target lane line at the first moment by the yaw angle to be estimated to obtain a first middle point, the first middle point is converted to the target lane line at the second moment by the displacement generated by the vehicle between the first moment and the second moment to obtain a second middle point, and the second middle point is converted to the second lane line at the second moment by the negative value of the yaw angle to be estimated.

[0139] In some embodiments, the estimation module 803 includes:

[0140] An acquisition unit, used to acquire a first straight line equation of a first lane line and a second straight line equation of a second lane line;

[0141] The estimation unit is used to use the parameters of the first straight line equation and the parameters of the second straight line equation as parameters of a yaw angle estimation formula to obtain a yaw angle estimation value; the yaw angle estimation formula is obtained based on the mapping relationship inference.

[0142] In some embodiments, the yaw angle estimation formula is:

[0143]

[0144] θ represents the estimated value of the yaw angle, t x represents the longitudinal displacement of the vehicle, t y represents the lateral displacement of the vehicle, c oi represents the intercept of the first straight line equation, c 1i represents the slope of the first straight line equation, ρ represents the rotation of the vehicle from the first moment to the second moment, and c oj Represents the intercept of the second line equation.

[0145] In some embodiments, the estimation module 803 includes:

[0146] A mapping unit, used to map the plurality of detection points on the first lane line to the second straight line equation of the second lane line through a mapping relationship, to obtain a plurality of mapping points;

[0147] A construction unit, used for establishing an objective function, where the objective function is used for solving the sum of distances from a plurality of mapping points to a second straight line equation of a second lane line;

[0148] An optimization unit, used for adjusting the estimated yaw angle in the mapping relationship by taking minimization of the objective function as the optimization goal;

[0149] The determination unit is used to obtain the value of the yaw angle to be estimated as the yaw angle estimation value when minimizing the objective function.

[0150] In some embodiments, the sliding window includes multiple time pairs, each time pair includes a first time and a corresponding second time, and further includes:

[0151] The mean filtering module is used to solve the yaw angle estimation value of the vehicle-mounted camera respectively for the first lane line and the second lane line corresponding to each other at each moment in the sliding window to obtain multiple yaw angle estimation values; and solve the mean of the multiple yaw angle estimation values ​​to obtain the yaw angle calibration value of the vehicle-mounted camera.

[0152] In some embodiments, it also includes:

[0153] The control module is used to respectively solve the yaw angle calibration value of the vehicle-mounted camera in multiple sliding windows to obtain multiple yaw angle calibration values; when the error between the multiple yaw angle calibration values ​​is less than the error threshold, stop solving the yaw angle calibration value and determine that the yaw angle of the vehicle-mounted camera reaches a stable state.

[0154] For the description of specific functions and examples of each module and unit of the device in the embodiment of the present disclosure, reference can be made to the relevant description of the corresponding steps in the above method embodiment, which will not be repeated here.

[0155] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0156] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0157] Fig. 9 A schematic block diagram of an example electronic device 900 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0158] like Fig. 9 As shown, the device 900 includes a computing unit 901, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 902 or a computer program loaded from a storage unit 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the device 900 can also be stored. The computing unit 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0159] A number of components in the device 900 are connected to the I / O interface 905, including: an input unit 906, such as a keyboard, a mouse, etc.; an output unit 907, such as various types of displays, speakers, etc.; a storage unit 908, such as a disk, an optical disk, etc.; and a communication unit 909, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 909 allows the device 900 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0160] The computing unit 901 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 901 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 901 performs the various methods and processes described above, such as the yaw angle estimation method of the vehicle-mounted camera. For example, in some embodiments, the yaw angle estimation method of the vehicle-mounted camera may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 908. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 900 via the ROM 902 and / or the communication unit 909. When the computer program is loaded into the RAM 903 and executed by the computing unit 901, one or more steps of the yaw angle estimation method of the vehicle-mounted camera described above may be performed. Alternatively, in other embodiments, the computing unit 901 may be configured to execute the yaw angle estimation method of the vehicle-mounted camera in any other appropriate manner (for example, by means of firmware).

[0161] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0162] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0163] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer 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 foregoing.

[0164] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0165] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0166] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0167] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0168] Based on the same technical concept, the embodiment of the present disclosure also provides a vehicle, which may include Fig. 9 Electronic equipment shown.

[0169] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the principles of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A method for estimating a yaw angle of a vehicle-mounted camera, comprising: During the driving of the vehicle, a first lane image is collected at a first moment based on the onboard camera, and a second lane image is collected at a second moment based on the onboard camera; Acquire a first lane line detected from the first lane image and a second lane line detected from the second lane image, wherein the first lane line and the second lane line both represent the same target lane line; When the first lane line and the second lane line meet the calibration conditions, determining the estimated yaw angle of the vehicle-mounted camera based on a mapping relationship between the first lane line at the first moment and the second lane line at the second moment; the mapping relationship is used to map the detection point on the first lane line to the second lane line; The mapping relationship includes a yaw angle to be estimated, and the mapping relationship is used to constrain the first lane line and the second lane line to be on the same straight line to estimate the yaw angle; In the mapping relationship, the detection point on the first lane line is converted to the target lane line at the first moment by the yaw angle to be estimated to obtain a first intermediate point, the first intermediate point is converted to the target lane line at the second moment by the displacement generated by the vehicle between the first moment and the second moment to obtain a second intermediate point, and the second intermediate point is converted to the second lane line at the second moment by the negative value of the yaw angle to be estimated.

2. The method according to claim 1, wherein: The calibration conditions include at least one of the following: The lane line length is greater than the preset length; The curvature of the lane line is lower than the preset curvature; The first lane line and the second lane line are in parallel relationship; The time interval between the first moment and the second moment is greater than a preset interval; At least n third lane lines are detected between the first moment and the second moment, where n is a positive integer greater than or equal to 1, and the third lane lines are obtained by performing lane line detection on the target lane line.

3. The method according to claim 1, wherein: The determining, based on a mapping relationship between the first lane line at the first moment and the second lane line at the second moment, an estimated yaw angle of the vehicle-mounted camera includes: Obtaining a first straight line equation of the first lane line and a second straight line equation of the second lane line; The parameters of the first straight line equation and the parameters of the second straight line equation are used as parameters of a yaw angle estimation formula to obtain the yaw angle estimation value; the yaw angle estimation formula is obtained by reasoning based on the mapping relationship.

4. The method according to claim 3, wherein: The yaw angle estimation formula is: Where θ represents the estimated yaw angle, t x represents the longitudinal displacement of the vehicle, t y represents the lateral displacement of the vehicle, c oi represents the intercept of the first straight line equation, c 1i represents the slope of the first straight line equation, ρ represents the rotation of the vehicle from the first moment to the second moment, c oj Denotes the intercept of the second straight line equation.

5. The method according to claim 1, wherein: The determining, based on a mapping relationship between the first lane line at the first moment and the second lane line at the second moment, an estimated yaw angle of the vehicle-mounted camera includes: Mapping the plurality of detection points on the first lane line to the second straight line equation of the second lane line through the mapping relationship to obtain a plurality of mapping points; Establishing an objective function, the objective function being used to solve the sum of distances from the plurality of mapping points to the second straight line equation of the second lane line; Taking minimizing the objective function as an optimization goal, adjusting the yaw angle to be estimated in the mapping relationship; In the case of minimizing the objective function, the value of the yaw angle to be estimated is used as the yaw angle estimation value.

6. The method according to any one of claims 1, 2, 3-5, comprising a plurality of time pairs in the sliding window, each time pair comprising a first time and a corresponding second time, and further comprising: In the sliding window, based on the first lane line and the second lane line corresponding to each other at each moment, respectively solve the yaw angle estimation value of the vehicle-mounted camera to obtain multiple yaw angle estimation values; An average of the multiple yaw angle estimation values ​​is solved to obtain a yaw angle calibration value of the vehicle-mounted camera.

7. The method according to claim 6, further comprising: Solving the yaw angle calibration value of the vehicle-mounted camera in multiple sliding windows respectively to obtain multiple yaw angle calibration values; When the error between the multiple yaw angle calibration values ​​is less than the error threshold, the yaw angle calibration value is stopped to be solved, and it is determined that the yaw angle of the vehicle-mounted camera reaches a stable state.

8. A yaw angle estimation device for a vehicle-mounted camera, comprising: An image acquisition module, used for acquiring an image of a first lane at a first moment based on the vehicle-mounted camera, and acquiring an image of a second lane at a second moment based on the vehicle-mounted camera during vehicle driving; A lane line acquisition module, used to acquire a first lane line detected from the first lane image and a second lane line detected from the second lane image, wherein the first lane line and the second lane line both represent the same target lane line; an estimation module, configured to determine, when the first lane line and the second lane line meet a calibration condition, an estimated yaw angle of the vehicle-mounted camera based on a mapping relationship between the first lane line at the first moment and the second lane line at the second moment; the mapping relationship is used to map a detection point on the first lane line to the second lane line; the mapping relationship includes a yaw angle to be estimated, and the first lane line and the second lane line are constrained to be on the same straight line by the mapping relationship to estimate the yaw angle; In the mapping relationship, the detection point on the first lane line is converted to the target lane line at the first moment by the yaw angle to be estimated to obtain a first intermediate point, the first intermediate point is converted to the target lane line at the second moment by the displacement generated by the vehicle between the first moment and the second moment to obtain a second intermediate point, and the second intermediate point is converted to the second lane line at the second moment by the negative value of the yaw angle to be estimated.

9. The device according to claim 8, wherein: The calibration conditions include at least one of the following: The lane line length is greater than the preset length; The curvature of the lane line is lower than the preset curvature; The first lane line and the second lane line are in parallel relationship; The time interval between the first moment and the second moment is greater than a preset interval; At least n third lane lines are detected between the first moment and the second moment, where n is a positive integer greater than or equal to 1, and the third lane lines are obtained by performing lane line detection on the target lane line.

10. The device according to claim 8, wherein: The estimation module comprises: An acquiring unit, configured to acquire a first straight line equation of the first lane line and a second straight line equation of the second lane line; An estimation unit is used to use the parameters of the first straight line equation and the parameters of the second straight line equation as parameters of a yaw angle estimation formula to obtain the yaw angle estimation value; the yaw angle estimation formula is inferred based on the mapping relationship.

11. The device according to claim 10, wherein: The yaw angle estimation formula is: Where θ represents the estimated yaw angle, t x represents the longitudinal displacement of the vehicle, t y represents the lateral displacement of the vehicle, c oi represents the intercept of the first straight line equation, c 1i represents the slope of the first straight line equation, ρ represents the rotation of the vehicle from the first moment to the second moment, c oj Denotes the intercept of the second straight line equation.

12. The device according to claim 8, wherein: The estimation module comprises: A mapping unit, configured to map the plurality of detection points on the first lane line to the second straight line equation of the second lane line through the mapping relationship to obtain a plurality of mapping points; A construction unit, configured to establish an objective function, wherein the objective function is used to solve the sum of distances from the plurality of mapping points to a second straight line equation of the second lane line; An optimization unit, configured to adjust the yaw angle to be estimated in the mapping relationship by taking minimization of the objective function as an optimization goal; A determination unit is used to obtain, when minimizing the objective function, a value of the yaw angle to be estimated as the yaw angle estimation value.

13. The apparatus according to any one of claims 8, 9, 10-12, comprising a plurality of time pairs in the sliding window, each time pair comprising a first time and a corresponding second time, and further comprising: The mean filtering module is used to solve the yaw angle estimation value of the vehicle-mounted camera respectively for the first lane line and the second lane line corresponding to each other at each moment in the sliding window to obtain multiple yaw angle estimation values; and solve the mean of the multiple yaw angle estimation values ​​to obtain the yaw angle calibration value of the vehicle-mounted camera.

14. The apparatus according to claim 13, further comprising: A control module, used to respectively solve the yaw angle calibration value of the vehicle-mounted camera in multiple sliding windows to obtain multiple yaw angle calibration values; When the error between the multiple yaw angle calibration values ​​is less than the error threshold, the yaw angle calibration value is stopped to be solved, and it is determined that the yaw angle of the vehicle-mounted camera reaches a stable state.

15. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.

16. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-7.

17. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 7.

18. A vehicle comprising the electronic device according to claim 15.