Lane line processing and lane positioning method, device, equipment and storage medium

By identifying lane lines and curb lines in road images, it determines and corrects misidentified and missing lane lines, solving the problem of inaccurate lane line recognition in complex environments and improving the accuracy of lane positioning.

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

Patent Information

Application Number
CN202011080260.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-10
Publication Date
2024-09-06
Estimated Expiration
2040-10-10

AI Technical Summary

Technical Problem

Existing lane line recognition technology is prone to misrecognition and deletion in complex road environments, affecting the accuracy of lane positioning.

Method used

By identifying lane lines and curb lines in road images, misidentified and missing lane lines are determined and corrected to improve the accuracy of lane lines.

Benefits of technology

It significantly improves the accuracy of lane line recognition, enhances the accuracy of lane positioning, and provides a novel processing idea.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112132109B
    Figure CN112132109B
Patent Text Reader

Abstract

The present application discloses a lane line processing and lane positioning method, device, equipment and storage medium, which relates to artificial intelligence technology, specifically to the fields of computer vision, deep learning and intelligent transportation technology. The specific implementation scheme is: identifying the road image collected by the vehicle to obtain the lane line and the roadside line; according to the roadside line, determining the misidentified lane line and the missing lane line in the lane line; according to the misidentified lane line and the missing lane line, correcting the identified lane line. In order to improve the accuracy of lane line recognition processing, a new idea is provided for lane line processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, in particular to artificial intelligence technology, and further to computer vision, deep learning and intelligent transportation technology. Specifically, it relates to a lane line processing and lane positioning method, device, equipment and storage medium. Background Art

[0002] With the development of intelligent transportation technology, lane line recognition technology is being used more and more widely. For example, lane lines can be identified to locate the lane where the vehicle is located. At present, lane line recognition technology collects road images through cameras installed on vehicles and identifies lane lines in road images based on straight line detection algorithms. However, due to the complex road environment, lane lines are often missing or misidentified, which seriously affects the accuracy of related applications involving lane lines (such as lane positioning), and is in urgent need of improvement. Summary of the invention

[0003] The present disclosure provides a lane line processing and lane positioning method, device, equipment and storage medium.

[0004] According to a first aspect of the present disclosure, a lane line processing method is provided, comprising:

[0005] Identify the road image collected by the vehicle and obtain the lane lines and roadside lines;

[0006] Determining, according to the roadside line, misidentified lane lines and missing lane lines among the lane lines;

[0007] The identified lane line is corrected according to the misidentified lane line and the missing lane line.

[0008] According to a second aspect of the present disclosure, a lane positioning method is provided, comprising:

[0009] Get lane positioning request;

[0010] In response to the lane positioning request, the lane positioning information of the vehicle is determined in real time according to the corrected lane lines; wherein the corrected lane lines are determined as follows: identifying the road image collected by the vehicle to obtain lane lines and roadside lines; determining misidentified lane lines and missing lane lines among the lane lines according to the roadside lines, and correcting the identified lane lines according to the misidentified lane lines and the missing lane lines to obtain corrected lane lines.

[0011] According to a third aspect of the present disclosure, a lane line processing device is provided, comprising:

[0012] An image recognition module is used to recognize road images collected by vehicles and obtain lane lines and roadside lines;

[0013] A lane line analysis module, used for determining misidentified lane lines and missing lane lines among the lane lines according to the roadside lines;

[0014] The lane line correction module is used to correct the identified lane line according to the misidentified lane line and the missing lane line.

[0015] According to a fourth aspect of the present disclosure, a lane positioning device is provided, comprising:

[0016] A request acquisition module is used to obtain lane positioning requests;

[0017] A lane positioning module is used to respond to the lane positioning request and determine the lane positioning information of the vehicle in real time according to the corrected lane lines; wherein the corrected lane lines are determined as follows: identifying the road image collected by the vehicle to obtain lane lines and roadside lines; determining misidentified lane lines and missing lane lines in the lane lines according to the roadside lines, and correcting the identified lane lines according to the misidentified lane lines and the missing lane lines to obtain corrected lane lines.

[0018] According to a fifth aspect of the present disclosure, there is provided an electronic device, including:

[0019] at least one processor; and

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

[0021] The memory stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor so that the at least one processor can execute the lane line processing method or lane positioning method of any embodiment of the present application.

[0022] According to a sixth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided. The computer instructions are used to enable a computer to execute the lane line processing method or lane positioning method of any embodiment of the present application.

[0023] The technology of the present application improves the accuracy of lane line recognition processing and provides a new idea for lane line processing.

[0024] 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

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

[0026] Figure 1A is a flow chart of a lane line processing method provided according to an embodiment of the present application;

[0027] Figure 1B is a schematic diagram of a road image provided according to an embodiment of the present application;

[0028] Figure 2 is a flowchart of another lane line processing method provided according to an embodiment of the present application;

[0029] Figure 3 is a flowchart of another lane line processing method provided according to an embodiment of the present application;

[0030] Figure 4 is a flowchart of another lane line processing method provided according to an embodiment of the present application;

[0031] Figure 5 is a flow chart of a lane positioning method provided according to an embodiment of the present application;

[0032] Figure 6 is a flow chart of another lane positioning method provided according to an embodiment of the present application;

[0033] Figure 7 is a flow chart of another lane positioning method provided according to an embodiment of the present application;

[0034] Figure 8 is a flow chart of another lane positioning method provided according to an embodiment of the present application;

[0035] Fig. 9 is a structural schematic diagram of a lane line processing device provided according to an embodiment of the present application;

[0036] Fig.10 is a structural schematic diagram of a lane positioning device provided according to an embodiment of the present application;

[0037] Fig.11 It is a block diagram of an electronic device used to implement the lane line processing method or lane positioning method of an embodiment of the present application. DETAILED DESCRIPTION

[0038] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application 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 can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0039] Figure 1Ais a flowchart of a lane line processing method provided according to an embodiment of the present application. Figure 1B is a schematic diagram of a road image provided according to an embodiment of the present application. This embodiment is applicable to the case where lane line recognition processing is performed on a collected road image. This embodiment can be executed by a lane line processing device configured in an electronic device, and the device can be implemented using software and / or hardware. The electronic device can be an in-vehicle terminal device or a back-end server device. Figure 1A-1B As shown, the method includes:

[0040] S101, identifying a road image collected by a vehicle to obtain lane lines and roadside lines.

[0041] The road image may refer to an image of the road environment in front of the vehicle captured in real time by an image acquisition device (such as a camera) installed on the vehicle. Figure 1B That is, a schematic diagram of a road image, which includes a road surface with lane lines marked on it, vehicles on the road surface, curbs on both sides of the road, railings on the curbs, and buildings on both sides of the road. Optionally, the road image of the embodiment of the present application may be an image of the road ahead captured during the driving process of the vehicle. Lane lines may refer to lines marked on the road surface to indicate dedicated lanes for motor vehicles, such as Figure 1B The roadside line may refer to the intersection line between the roadside curbstones and the road surface on both sides of the road, such as Figure 1B As shown in S5 and S6 in .

[0042] Optionally, if the electronic device executing the embodiment of the present application is a vehicle-mounted terminal device, the image acquisition device on the vehicle can transmit the acquired road image to the vehicle-mounted terminal device, and the vehicle-mounted terminal device identifies the lane lines and roadside lines of the received road image; if the electronic device executing the embodiment of the present application is a back-end server device, the image acquisition device on the vehicle can transmit the acquired image to the back-end server device, and the back-end server device identifies the lane lines and roadside lines of the received road image. Optionally, when transmitting the road image to the back-end server, it can be transmitted directly by the image acquisition device or through the vehicle-mounted terminal, which is not limited in this embodiment.

[0043] Optionally, the recognition of road images in the embodiment of the present application is divided into two stages, one stage is lane line recognition of road images, and the other stage is roadside line recognition of road images. Optionally, the embodiment of the present application can be based on the recognition algorithms corresponding to lane lines and roadside lines, respectively, to recognize lane lines and roadside lines of road images. Taking lane line recognition as an example, the straight lines in the road image can be recognized based on the Hough line transformation algorithm, and the recognized results are used as the preliminary recognized lane lines. It is also possible to recognize lane lines and roadside lines of road images based on deep neural networks. For example, a deep learning model capable of lane line recognition and a deep learning model capable of roadside line recognition can be pre-trained; it is also possible to pre-train a deep learning model capable of simultaneously recognizing lane lines and roadside lines, input the collected road image into the trained deep learning model, and run the deep learning model to obtain the recognized lane lines and roadside lines.

[0044] Optionally, in the embodiment of the present application, the operations of lane line recognition and roadside line recognition on the road image can be performed in parallel to improve recognition efficiency. Alternatively, lane line recognition can be performed on the road image first, and if a lane line is recognized, roadside line recognition can be performed on the road image. If a lane line is not recognized, recognition of the road image is stopped and the next frame of road image is waited for to be recognized, so as to avoid roadside line recognition on a road where no lane line exists, thereby reducing power consumption of electronic equipment.

[0045] It should be noted that, since the number of lane lines on different roads is uncertain and the features of lane lines are relatively simple, the lane lines obtained by recognizing road images are not necessarily accurate lane lines. There may be cases of misidentification or missed recognition. For example, this step Figure 1B When lane lines are recognized in the road image shown, the guardrails S7 and S9 on both sides of the road and the edge line S8 of the building may be mistakenly recognized as lane lines; since the edge lane lines S1 and S4 of the road close to the curb have poor clarity, they may not be recognized, and there are still missing lane lines among the recognized lane lines.

[0046] S102: Determine misidentified lane lines and missing lane lines among the lane lines according to the roadside lines.

[0047] Optionally, in the embodiment of the present application, the lane lines identified in S101 can be analyzed based on the roadside lines to find out the misidentified lane lines contained therein and determine whether there are missing lane lines. Specifically, there are many methods for determining misidentified lane lines and missing lane lines in the embodiment of the present application, which are not limited thereto.

[0048] Possible implementation method 1: Based on the positional relationship between each identified lane line and the identified roadside line, combined with the preset judgment rules, it can be determined whether there are misidentified and missing lane lines in the lane lines identified in S101. For example, misidentified lane lines are mainly caused by the misidentification of obstacles with straight edges on both sides of the road, so the lane line located to the left of the left roadside line and the lane line located to the right of the right roadside line can be regarded as misidentified lane lines. Missing lane lines can be determined by removing the misidentified lane lines from the identified lane lines and analyzing the intervals between the remaining lane lines to determine whether there are missing lane lines.

[0049] Possible implementation method 2 may be to determine misidentified lane lines and missing lane lines based on a deep neural network. For example, a deep learning model that can determine misidentified and missing lane lines in lane lines based on roadside lines may be pre-trained using a large number of training samples. The data information corresponding to the lane lines and roadside lines identified by S101 (such as the pixel coordinates corresponding to the lane lines and roadside lines in the road image) is input into the trained deep learning model, and the data information of misidentified lane lines and missing lane lines can be obtained by running the deep learning model.

[0050] S103, correcting the identified lane lines according to the misidentified lane lines and the missing lane lines.

[0051] Optionally, after S102 analyzes the initially identified lane lines and determines the misidentified lane lines and the missing lane lines contained therein, the lane lines initially identified in S101 may be corrected based on the analysis results of S102. Specifically, the misidentified lane lines may be removed from the initially identified lane lines, and then the missing lane lines may be supplemented to complete the correction of the lane lines and obtain the accurate lane lines contained in the road image.

[0052] The technical solution of the embodiment of the present application identifies lane lines and roadside lines from road images collected by vehicles, and determines misidentified and missing lane lines in the identified lane lines based on the identified roadside lines, and then corrects the identified lane lines based on the determination results. The solution of the embodiment of the present application can correct both misidentified lane lines and missing lane lines based on the identified roadside lines, greatly improving the accuracy of the final lane lines. This in turn improves the accuracy of related applications involving lane lines (such as lane positioning). It provides a new idea for the processing of lane lines.

[0053] Optionally, in the application of lane lines, sometimes it is sufficient to ensure that the lane lines around one side of the roadside are accurate. For example, in the application scenario of lane positioning, it is only necessary to accurately determine the lane lines next to one side of the roadside, and then the lane where the vehicle is located can be determined based on the side roadside. At this time, in order to improve the efficiency of lane line processing, for such application scenarios, you can choose to determine the roadside line on one side, and determine the misidentified lane lines and missing lane lines in the initially identified lane lines based on the side roadside line. Optionally, considering the complex road environment, such as vehicles merging into intersections, bus stops, temporary parking spaces, etc. are all located on the right side of the road, so the recognition result of the right side roadside line is lower than that of the left side. Therefore, in the embodiment of the present application, when at least two roadside lines are identified, it can be that after the roadside line is identified from the road image, it is preferred to use the roadside line on the left side as a reference to determine and analyze the misidentified and missing lane lines in the initially identified lane lines. Optionally, the embodiment of the present application can also be that when there are at least two identified roadside lines, according to the confidence of at least two roadside lines, the target roadside line is determined from at least two roadside lines; according to the target roadside line, the misidentified lane lines and missing lane lines in the lane lines are determined. Specifically, when identifying the roadside line from the road image, the confidence of each identified roadside line can be further determined. For example, if a deep learning model is used to identify the roadside line, the deep learning model outputs the probability (i.e., confidence) that the roadside line is a real roadside line while outputting the identified roadside line. Then compare the confidence of each identified roadside line, take the roadside line with the highest confidence as the target roadside line, and take one side of the target roadside line as the reference, according to the above S102 method, determine the misidentified lane lines and missing lane lines in the identified lane lines. The advantage of this setting is that the misidentified lane lines and missing lane lines are determined based only on one side of the roadside line, which greatly improves the lane line processing efficiency without affecting the accuracy of the lane line application scenario. In addition, the embodiment of the present application selects the roadside lines based on the confidence of each roadside line, thereby improving the accuracy of the roadside line selection and providing a guarantee for the subsequent accurate lane line processing.

[0054] Figure 2 is a flowchart of another lane line processing method provided according to an embodiment of the present application; based on the above embodiment, this embodiment provides a specific description of determining misidentified lane lines and missing lane lines in lane lines according to roadside lines, such as Figure 2 As shown, the method includes:

[0055] S201, identifying the road image collected by the vehicle to obtain lane lines and roadside lines.

[0056] S202: A lane line whose interval distance with a preset point on the roadside line satisfies a misrecognition threshold is regarded as a misrecognized lane line.

[0057] Among them, the preset point on the roadside can be a point selected in advance on the roadside. For example, the preset point can be any point among the starting point, midpoint and end point of the roadside. Considering that the starting point and end point of the roadside in the road image are prone to missing features, the embodiment of the present application can select the midpoint of the roadside as the preset point.

[0058] The misidentification threshold may be a criterion for determining whether a lane line is a misidentified lane line based on the interval distance between the preset points of the lane line and the roadside line. Optionally, in an embodiment of the present application, the roadside line on the left side of the road and the roadside line on the right side of the road correspond to different misidentification thresholds. Specifically, the misidentification threshold corresponding to the roadside line on the left side of the road is: the interval distance between the lane line and the preset points of the left side roadside line is less than a first value (such as 300mm); the misidentification threshold corresponding to the roadside line on the right side of the road is: the interval distance between the lane line and the preset points of the right side roadside line is greater than a second value (such as -300mm), wherein the first value is greater than or equal to 0, the second value is less than or equal to 0, the first value and the second value may be a pair of opposite numbers, and the specific value may be set according to the distance between each roadside line and its nearest road edge lane line.

[0059] Optionally, in the embodiment of the present application, for each identified lane line, the interval distance between the lane line and the preset point of the roadside line is calculated, and then for the left side roadside line, based on the misrecognition threshold corresponding to the left side roadside line, it is determined whether the interval distance between each lane line and the preset point of the left side roadside line meets the misrecognition threshold, and the lane line that meets the misrecognition threshold is used as the misrecognized lane line. The process of determining the misrecognized lane line based on the right side roadside line is similar and will not be repeated here.

[0060] For example, Figure 1BTaking the road image shown as an example, it is assumed that the lane lines identified by S201 include: S2-S4, and S7-S9. The identified roadside lines are S5 and S6. And the misrecognition threshold corresponding to the left side roadside line S5 is: the distance between the lane line and the midpoint of the left side roadside line S5 is less than 300mm; the misrecognition threshold corresponding to the right side roadside line S6 is: the distance between the lane line and the midpoint of the right side roadside line S6 is greater than -300mm. At this time, if the left side roadside line S5 is used as a reference, the distance between the lane line S2-lane line S4 and the lane line S7-lane line S9 from the midpoint of the left side roadside line S5 can be calculated, wherein the distance between the lane line S7 and the lane line S8 on the left side of the left side roadside line S5 and the midpoint of the left side roadside line S5 is negative, and the distance between the lane line S2-lane line S4 and the lane line S9 on the right side of the left side roadside line S5 and the midpoint of the left side roadside line S5 is positive. If the distance between the lane line S2 closest to the left side roadside line S5 and the preset point of the left side roadside line S is greater than 300mm, then the lane lines that meet the misrecognition threshold of the left side roadside line S5 are only the lane lines S7 and S8 located on the left side of the left side roadside line S5. At this time, lane lines S7 and lane lines S8 can be regarded as misrecognized lane lines, that is, S7 is actually the railing on the left side of the road, and S8 is actually the top edge line of the building on the left side of the road. The right side roadside line S6 can be determined as a misrecognized lane line S9 in a similar way.

[0061] S203: If there are lane lines whose interval distance satisfies the missing threshold among the remaining lane lines except the misidentified lane line, the road edge lane line is regarded as the missing lane line among the lane lines.

[0062] Among them, the missing threshold can be a judgment standard for judging whether the identified lane line is missing according to the interval distance between the lane line and the preset point of the roadside line. Optionally, in an embodiment of the present application, the roadside line on the left side of the road and the roadside line on the right side of the road correspond to different missing thresholds. Optionally, the missing threshold corresponding to the roadside line on the left side of the road is: the interval distance between the first lane line on the left side and the preset point of the roadside line on the left side is greater than a third value (such as 3500mm); the missing threshold corresponding to the roadside line on the right side of the road is: the interval distance between the first lane line on the right side and the preset point of the roadside line on the right side is greater than a fourth value (such as -3500mm), wherein the third value is positive, the fourth value is negative, and the specific values ​​of the third value and the fourth value can be determined according to the distance between the two road lines on the road.

[0063] Optionally, the lane line in the middle of the road is usually more obvious, while the lane lines on the edge of the road near the curb on both sides of the road (i.e., the first lane line near the curb on both sides) are less clear in the collected road image due to the influence of roadside dust, fallen leaves, accumulated water or light, such as Figure 1B As shown, the left road edge lane line S1 and the right road edge lane line S4 have significantly lower clarity than the middle lane line S2 and lane line S3. Therefore, when performing lane line recognition on a road image, the missing lane line is usually the road edge lane line located next to the curb. Therefore, the missing lane line determined in the embodiment of the present application is mainly the road edge lane line.

[0064] Optionally, the misidentified lane lines determined by S202 may be first removed from the lane lines identified by S201, and then it may be determined from the remaining lane lines whether there are missing lane lines. Specifically, for the roadside line on the left, it may be determined whether the interval between the first lane line on the left and the preset point of the roadside line on the left among the remaining lane lines is greater than a third value. If so, it indicates that the road edge lane line next to the roadside on the left is missing in the identified lane lines. Otherwise, there is no missing lane line on the left side of the lane lines identified by S201. For the roadside line on the right, the process of determining the missing lane line is similar and will not be repeated here.

[0065] For example, Figure 1B Taking the road image shown in the figure as an example, assuming that after removing the misidentified lane lines, the remaining lane lines are S2-S4, and the missing threshold corresponding to the left side roadside line S5 is: the distance between the first lane line on the left and the preset point of the left side roadside line S5 is greater than 3500mm. Since the first lane line on the left side of lane line S2-lane line S4 is S2, it can be determined whether the distance between the preset point of lane line S2 and the left side roadside line S5 is greater than 3500mm. If it is greater, it means that the edge lane line next to the left side roadside line S5 is missing in lane line S2-lane line S4, that is, Figure 1B Lane line S1 in .

[0066] S204: Correct the identified lane lines according to the misidentified lane lines and the missing lane lines.

[0067] It should be noted that in the embodiment of the present application, it is possible to select whether to perform the operations of S202-S203 based on one roadside line or two roadside lines based on different application scenarios after lane line processing. For example, if the application scenario after lane line processing is a lane positioning scenario, the operations of S202-S203 can be performed based on one roadside line (such as the left roadside line, or the roadside line with high confidence).

[0068] The technical solution of the embodiment of the present application is to identify lane lines and roadside lines for road images collected by vehicles, and determine misidentified lane lines based on the spacing distances between each identified lane line and the preset points of the identified roadside lines, and the misidentification threshold. Misidentified lane lines are removed, and if there are lane lines among the remaining lane lines whose spacing distances from the preset points of the roadside lines meet the missing threshold, the lane lines at the edge of the road are treated as missing lane lines. The embodiment of the present application provides a method for determining misidentified lane lines and missing lane lines based on the spacing distances between lane lines and roadside lines, the misidentification threshold and the missing threshold, which greatly improves the accuracy of determining misidentified lane lines and missing lane lines, and ensures the authenticity of the processed lane lines.

[0069] Figure 3 1 is a flowchart of another lane line processing method provided according to an embodiment of the present application. Based on the above embodiments, this embodiment provides a detailed description of how to determine the interval distance between the lane line and the preset point along the road, such as Figure 3 As shown, the method includes:

[0070] S301, identifying the road image collected by the vehicle to obtain lane lines and roadside lines.

[0071] S302, performing curve fitting on the lane line to obtain a curve equation of the lane line.

[0072] Optionally, in the embodiment of the present application, S301 recognizes the road image and can obtain data information of lane lines and roadside lines, for example, pixel coordinates constituting each road line and roadside line. At this time, curve fitting can be performed according to the data information of each lane line identified according to a preset hyperbolic model to obtain the curve equation of the lane line. Specifically: The curve equation used in the embodiment of the present application is:

[0073] u-u0=A(v-v0)+B / (v-v0); (1)

[0074] Where (u0, v0) is the vanishing point, A is the slope, B is the curvature, and (u, v) is a specific point on the curve. A curve equation can be fitted for each lane line based on the above formula (1).

[0075] Optionally, a curve equation may also be fitted for each identified roadside line based on the curve model.

[0076] S303, determining the position coordinates of the preset points along the road.

[0077] Optionally, the preset point of the roadside can be pre-set according to actual needs, and any point among the starting point, midpoint and end point of the roadside can be selected. Considering that the starting point and end point of the roadside in the road image are prone to feature loss, the embodiment of the present application can select the midpoint position of the roadside as the preset point. If the preset point is the starting point or end point of the roadside, the coordinates of the starting point or end point of the roadside can be directly obtained in the road image as the position coordinates of the preset point. If the preset point is the midpoint of the roadside, the coordinates of the starting point and end point of the roadside can be first obtained in the road image, and the coordinates of the starting point and end point are averaged to obtain the coordinates of the midpoint as the position coordinates of the preset point. It can also be to average the position coordinates of all pixel points of the identified roadside, and use the processing results as the position coordinates of the preset point, etc. This embodiment is not limited to this.

[0078] S304: Determine the interval distance between the lane line and the preset point on the roadside according to the curve equation of the lane line and the position coordinates of the preset point.

[0079] Optionally, in an embodiment of the present application, when the curve equation of the lane line and the position coordinates of a preset point along the road are known, the interval distance between the preset point and the lane line can be calculated based on a point-to-curve distance calculation formula.

[0080] S305: A lane line whose interval distance with a preset point on the roadside line satisfies a misrecognition threshold is regarded as a misrecognized lane line.

[0081] S306: If there are lane lines whose interval distance satisfies the missing threshold among the remaining lane lines except the misidentified lane line, the road edge lane line is regarded as the missing lane line among the lane lines.

[0082] S307: Correct the identified lane lines according to the misidentified lane lines and the missing lane lines.

[0083] The technical solution of the embodiment of the present application is to identify lane lines and roadside lines from road images collected by vehicles, fit curve equations to the identified lane lines, determine the position coordinates of preset points for the identified roadside lines, and then determine the spacing distances between each identified lane line and the preset points on the roadside lines based on the curve equations and the position coordinates of the preset points; then combine the misidentification threshold and the missing threshold to determine the misidentified lane lines and the missing lane lines, and based on the determination results, correct the identified lane lines. The solution of the embodiment of the present application provides a solution for accurately determining the spacing distance between the roadside lines and the lane lines. The accurate spacing distance provides a guarantee for the subsequent determination of misidentified lane lines and missing lane lines, thereby ensuring the accuracy of the correction of the identified lane lines.

[0084] Figure 4 1 is a flow chart of another lane line processing method provided according to an embodiment of the present application. Based on the above embodiments, this embodiment provides a specific introduction to the road image collected by the vehicle, such as Figure 4 As shown, the method includes:

[0085] S401, start.

[0086] S402, perform lane line recognition on the road image collected by the vehicle, and determine whether the lane line is recognized, if not, execute S403, if yes, execute S404.

[0087] Optionally, an embodiment of the present application may first identify lane lines on the road image collected by the vehicle. The specific identification method has been introduced in the above embodiment and will not be repeated here. Since each frame of the road image does not necessarily contain lane lines or clear lane lines, this step may not be able to identify lane lines when performing lane line recognition operations on the road image. At this time, it is necessary to determine whether the lane lines are recognized in this step. If they are recognized, the operation of S404 can be performed to further determine whether the roadside detection conditions are met; if the lane lines are not recognized, the operation of S403 can be performed to clear the image recognition data, end the lane line processing of the road image, and wait for the next frame of the road image collected by the vehicle to be processed.

[0088] S403, ending the lane line processing of the road image.

[0089] S404, if the lane line is identified, determine whether the road edge detection condition is met, if so, execute S405, if not, execute S403.

[0090] Among them, the curb detection condition may refer to a determination condition that specifies whether a curb recognition operation can be performed on a road image. There may be many curb detection conditions in the embodiment of the present application, which are not limited in the present embodiment. For example, it may include at least one of the following: Condition 1, the preset recognition period is reached at the current moment; wherein, the preset recognition period in the condition 1 may be determined by combining factors such as the acquisition frequency of the image acquisition device, the vehicle driving speed, and the lane line application scenario. For example, the preset recognition period may be 2s. Condition 2, the confidence of the lane line is greater than the confidence threshold (such as 70%); Condition 3, the number of lane lines recognized in two adjacent frames of road images is inconsistent. The curb detection condition in the embodiment of the present application may be any one or more combinations of the above, which may be selected according to actual conditions, with greater flexibility, and the combination of the above conditions may more accurately locate the situation where the lane line changes, and process the lane line in real time and accurately.

[0091] Optionally, in order to reduce the power consumption of lane line processing, the embodiment of the present application may not perform roadside line recognition on each frame of road image collected by the vehicle, but only execute S405 to perform roadside line recognition on the road image collected by the vehicle when the lane line is recognized in the road image and the roadside detection condition is currently met. Otherwise, execute the operation of S403 to clear the image recognition data of this time, end the lane line processing of the road image, and wait for the next frame of road image collected by the vehicle to be processed.

[0092] Specifically, if the curb detection condition is the above-mentioned condition one, this step may be to determine whether the current moment has reached a preset recognition period, such as 2s, from the last curb line recognition. If so, it means that the curb detection condition one is met. If the curb detection condition is the above-mentioned condition two, it may be that when S402 identifies the lane lines in the road image, the credibility of each identified lane line, that is, the confidence level, is calculated; it is determined whether the confidence level of the identified lane line meets the preset confidence threshold (such as 70%), for example, it may be fully satisfied or partially satisfied. If satisfied, it means that the curb detection condition two is met. If the curb detection condition is the above-mentioned condition three, it may be to obtain the number of lane lines recognized by the current frame road image and the number of lane lines recognized by the previous frame road image, and compare whether the two are consistent. If they are inconsistent, it means that the curb detection condition three is met.

[0093] S405: If the lane line is identified and the roadside detection condition is met, the roadside line is identified on the road image to obtain the roadside line.

[0094] Optionally, in an embodiment of the present application, only when the lane line is recognized in the road image and the road detection conditions are also met at the same time, can the road image collected by the vehicle be further subjected to the roadside line recognition operation. The specific method for roadside line recognition in the road image has been introduced in the above embodiment and will not be repeated in this embodiment.

[0095] S406: Determine misidentified lane lines and missing lane lines among the lane lines according to the roadside lines.

[0096] S407: Correct the identified lane lines according to the misidentified lane lines and the missing lane lines.

[0097] The technical solution of the embodiment of the present application, after acquiring the road image collected by the vehicle, first performs lane line recognition on the road image, and only after the lane line is recognized and the roadside detection condition is currently met, can the roadside line recognition of the road image continue, and based on the recognized roadside line, the misidentified and missing lane lines in the recognized lane lines are determined, and then based on the determination result, the recognized lane lines are corrected. The solution of the embodiment of the present application does not need to recognize lane lines and roadside lines for each frame of road image collected by the vehicle. Through the lane line recognition situation and roadside detection conditions, the road image where the lane line may change is located for roadside line recognition, which reduces the power consumption of lane line processing while ensuring the timeliness and accuracy of lane line processing.

[0098] Figure 5 This is a flow chart of a lane positioning method provided according to an embodiment of the present application. This embodiment is applicable to the case where lane positioning of a vehicle that has captured the road image is performed in real time using lane lines corrected by the lane line processing method of any embodiment of the present application. This embodiment can be executed by a lane positioning device configured in an electronic device, and the device can be implemented using software and / or hardware. The electronic device can be a vehicle-mounted terminal device, or a backend server device. Figure 5 As shown, the method includes:

[0099] S501: Obtain a lane positioning request.

[0100] Among them, the lane positioning request is used to instruct the electronic device that receives the request to locate the lane where the vehicle is located. The lane positioning request can be generated by the vehicle-mounted terminal, and the vehicle-mounted terminal locally obtains and responds to the lane positioning request, or the vehicle-mounted terminal transmits the generated lane positioning request to the back-end server, and the back-end server obtains and responds to the lane positioning request. The lane positioning request can also be generated by the back-end server, and the back-end server locally obtains and responds to the road positioning request; or the back-end server transmits the generated lane positioning request to the vehicle-mounted terminal, and the vehicle-mounted terminal obtains and responds to the lane positioning request. Optionally, in an embodiment of the present application, if the electronic device that obtains the lane positioning is a back-end server, the lane positioning request may include vehicle identification information that needs to be lane positioned.

[0101] S502, in response to a lane positioning request, determining the lane positioning information of the vehicle in real time according to the corrected lane lines; wherein the corrected lane lines are determined as follows: identifying the road image collected by the vehicle to obtain lane lines and roadside lines; determining misidentified lane lines and missing lane lines among the lane lines according to the roadside lines, and correcting the identified lane lines according to the misidentified lane lines and missing lane lines to obtain corrected lane lines.

[0102] Among them, the corrected lane line required for lane positioning of the vehicle in the embodiment of the present application can be determined by the lane line processing method described in any of the above embodiments. The specific determination process is not repeated here. Optionally, if the lane line processing process and the lane positioning process are performed by the same electronic device, the electronic device can obtain the corrected lane line locally; if the lane line processing process and the lane positioning process are performed by different electronic devices, the lane positioning request can include the corrected lane line; or the corrected lane line can be obtained through interaction between electronic devices.

[0103] Optionally, in an embodiment of the present application, in response to a lane positioning request, there are many ways to determine the lane positioning information of the vehicle in real time based on the corrected lane lines, which are not limited here. Method 1: Determine the lane positioning information of the vehicle based on the relationship between the slopes of the corrected lane lines. Among them, the specific determination method will be described in detail in subsequent embodiments. Method 2: Convert the position of each corrected lane line in the road image to the world coordinate system, and combine the actual positioning information of the vehicle to determine the target lane lines located on both sides of the current vehicle from the corrected lane lines, and use the lane number associated with the target lane line as the current lane number of the vehicle, that is, the lane positioning information of the vehicle. Method 3: Input the corrected lane line into a pre-trained deep learning model for vehicle positioning, and run the deep learning model to obtain the lane positioning information of the vehicle.

[0104] It should be noted that in the embodiment of the present application, the lane positioning information corresponding to the vehicle in each frame of the road image collected by the vehicle can be determined based on the lane line corrected. If the road image is collected in real time during the driving process of the vehicle, and the corrected lane line is obtained according to the lane line processing method introduced in the above embodiments, the present embodiment can determine and update the lane positioning information of the vehicle in real time during the driving process of the vehicle based on the real-time corrected lane line.

[0105] The technical solution of the embodiment of the present application, after obtaining the vehicle positioning request, corrects the misidentified lane lines and missing lane lines based on the roadside lines in the road image, and obtains accurate lane lines to determine the lane positioning information of the vehicle in real time. The corrected lane lines used in the solution of the embodiment of the present application to determine the lane positioning information do not contain misidentified lane lines and missing lane lines, and the accuracy is higher, thereby improving the accuracy of lane positioning.

[0106] Figure 6 1 is a flow chart of another lane positioning method provided according to an embodiment of the present application. Based on the above embodiment, this embodiment provides a specific description of how to determine the lane positioning information of the vehicle in real time according to the corrected lane line. Figure 6As shown, the method includes:

[0107] S601: Obtain a lane positioning request.

[0108] S602: In response to the lane positioning request, determine the slope of the corrected lane line.

[0109] Among them, the corrected lane lines are determined as follows: identifying the road image collected by the vehicle to obtain lane lines and roadside lines; according to the roadside lines, determining the misidentified lane lines and missing lane lines in the lane lines, and correcting the identified lane lines based on the misidentified lane lines and missing lane lines to obtain the corrected lane lines.

[0110] Optionally, in an embodiment of the present application, in response to a lane positioning request, when determining the slope of the corrected lane line, the slope of the lane line can be determined based on the curve equation fitted for each lane line in the lane line processing stage. For example, if the curve equation fitted for a corrected lane line is: u-u0=A(v-v0)+B / (v-v0); the value of parameter A can be obtained as the slope of the lane line.

[0111] S603: Use two corrected adjacent lane lines with opposite slopes as target lane lines.

[0112] The target lane line may refer to the lane lines on both sides of the lane where the vehicle is located. For example, if the lane number of the vehicle is left lane 1, the target lane line is the first lane line and the second lane line on the left side of the road.

[0113] Optionally, for the road image collected during the driving process, the lane lines on both sides of the lane where the vehicle is actually located are usually symmetrical based on the driving direction. Therefore, after determining each corrected target lane line, this embodiment can sequentially determine whether the slopes of two adjacent lane lines are a pair of opposite numbers, such as 2 and -2. The two corrected adjacent lane lines with a pair of opposite slopes are used as the target lane lines. For example, Figure 1B Taking the road image shown as an example, if the corrected lane lines are S1-S4, analyzing the slopes of these four corrected lane lines, it can be seen that the slopes of lane line S2 and lane line S3 should be a pair of opposite numbers, and the slopes of lane line S1 and lane line S4 should be a pair of opposite numbers. At this time, since lane line S2 and lane line S3 are two adjacent lane lines, lane line S2 and lane line S3 are taken as target lane lines.

[0114] S604: Determine lane positioning information of the vehicle according to the target lane line.

[0115] Optionally, in the embodiment of the present application, after obtaining the target lane line, the lane between the target lane lines may be used as the current lane of the vehicle, that is, the lane positioning information of the vehicle. Figure 1B Taking the road image shown as an example, if the target lane lines are lane lines S2 and lane lines S3, lane 2 between lane lines S2 and lane lines S3 may be used as the lane positioning information of the vehicle.

[0116] It should be noted that, in the embodiment of the present application, if the corrected lane line is corrected based on the left side of the roadside, the lane positioning information determined at this time is the corresponding lane number counted from the left, for example, it can be lane 1, lane 2, and lane 3. If the corrected lane line is corrected based on the right side of the roadside, the lane positioning information determined at this time is the corresponding lane number counted from the right, for example, it can be lane-1, lane-2, and lane-3. If the corrected lane line is corrected based on the roadside on both sides, it can be counted from either side at this time.

[0117] The technical solution of the embodiment of the present application, after obtaining the vehicle positioning request, uses the slope of the corrected lane line as the target lane line, and then determines the vehicle's lane positioning information in real time based on the target lane line. When determining the vehicle's lane positioning information, the solution of the embodiment of the present application uses a corrected lane line that does not contain misidentified lane lines and missing lane lines, and has higher accuracy. The lane positioning information is determined based on the slope of the lane line, and no other information needs to be obtained, which provides a new idea for lane positioning.

[0118] Figure 7 1 is a flow chart of another lane positioning method provided according to an embodiment of the present application. Based on the above embodiments, this embodiment provides a specific description of the lane positioning information of the vehicle determined in real time according to the corrected lane line, such as Figure 7 As shown, the method includes:

[0119] S701: Obtain a lane positioning request.

[0120] S702, in response to the lane positioning request, when the number of corrected lane lines in two adjacent frames of road images is consistent, determine whether the vehicle has a lane change event in the current frame of road image, if so, execute S703, if not, execute S704.

[0121] The lane change event refers to a vehicle changing from one lane to the left or right to another lane during driving, for example, changing from lane 1 to lane 2. Optionally, the lane change event includes the lane change direction.

[0122] Optionally, in response to the acquired lane positioning request, the embodiment of the present application first determines whether the number of corrected lane lines of the current frame road image collected by the vehicle is consistent with the number of corrected lane lines of the previous frame road image collected by the vehicle. If they are inconsistent, it means that the corrected lane lines of the current frame and the previous frame road image have changed (that is, the lane lines may have really changed, or there may be a misidentification or missed identification). At this time, the lane positioning information corresponding to the current frame road image cannot be referenced by the lane positioning information corresponding to the previous frame road image, so it is necessary to determine the lane positioning information of the vehicle in the current frame road image according to the methods introduced in the above embodiments. For example, two corrected adjacent lane lines with opposite slopes in the current frame road image are used as target lane lines, and the lane positioning information of the vehicle is determined according to the target lane lines. If they are consistent, it means that the corrected lane lines of the current frame and the previous frame road image have not changed. In order to further determine whether the positioning information of the vehicle has changed, it can be determined whether there is a lane change event compared with the previous frame road image. Specifically, whether there is a lane change event for the vehicle in the current frame road image can be determined based on the change in the slope of the corrected lane line in the current frame road image and the previous frame road image. The specific determination method will be described in detail in the subsequent embodiments. Optionally, in the embodiment of the present application, if it is determined that there is a lane change event for the vehicle in the current frame road image, it means that the lane positioning information of the vehicle in the current frame road image must have changed compared with the previous frame road image. In this case, S703 is executed to re-determine the lane positioning information of the vehicle in the current frame road image. If it is determined that there is no lane change event for the vehicle in the current frame road image, it means that the lane positioning information of the vehicle in the current frame road image remains unchanged compared with the previous frame road image. In this case, S704 is executed to use the lane positioning information of the previous frame road image as the lane positioning information of the current frame image.

[0123] S703: If there is a lane change event, determine the lane positioning information of the vehicle in the current frame road image according to the lane change direction.

[0124] Optionally, if there is a lane change event for the vehicle in the current frame road image, the lane change direction can be determined first according to the lane change event. For example, if the lane change event includes the lane change direction, the lane change direction can be directly obtained from the lane change event. After determining the lane change direction corresponding to the vehicle in the current frame road image, the lane positioning information of the vehicle in the current frame road image can be determined in combination with the lane positioning information of the vehicle in the previous frame road image. Specifically, due to relevant legal provisions, when changing lanes, a vehicle can only change one lane at a time and cannot change lanes continuously. Therefore, if the lane change direction is to change lanes to the left, the lane number corresponding to the lane information of the vehicle in the previous frame road image can be reduced by one as the lane positioning information of the vehicle in the current frame road image; if the lane change direction is to change lanes to the right, the lane number corresponding to the lane information of the vehicle in the previous frame road image can be increased by one as the lane positioning information of the vehicle in the current frame road image.

[0125] S704: Use the lane positioning information of the previous frame of road image as the lane positioning information of the current frame of image.

[0126] The technical solution of the embodiment of the present application obtains and responds to the vehicle positioning request. If the number of lane lines after correction of two adjacent frames of road images is consistent, and there is a lane change event for the vehicle in the current frame of road image, the lane positioning information of the vehicle in the current frame of road image can be determined based on the lane change direction and the lane positioning information of the vehicle in the previous frame of road image. If the number of lane lines after correction of two adjacent frames of road images is consistent, but there is no lane change event for the vehicle in the current frame of road image, the lane positioning information of the current frame of road image is consistent with that of the previous frame of road image. The solution of the embodiment of the present application introduces a lane change event when determining the lane positioning information of the vehicle. When the number of lane lines after correction of two adjacent frames of road images is consistent, the lane positioning information of the vehicle in the current frame of road image can be quickly determined based on whether there is a lane change event. The efficiency and accuracy of lane positioning are improved, and another new idea for lane positioning is provided.

[0127] Figure 8 is a flow chart of another lane positioning method provided according to an embodiment of the present application. Based on the above embodiments, this embodiment provides a specific description of determining whether a vehicle has a lane change event in the current frame road image, such as Figure 8 As shown, the method includes:

[0128] S801: Obtain a lane positioning request.

[0129] S802, in response to a lane positioning request, when the number of corrected lane lines in two adjacent frames of road images is consistent, determine a target lane line associated with the lane positioning information according to the lane positioning information of the vehicle in a previous frame of road image.

[0130] Optionally, in an embodiment of the present application, in response to a lane positioning request, when it is determined that the number of corrected lane lines of two adjacent frames of road images is the same, the lane positioning information determined for the previous frame of road image may be first obtained, for example, the lane number corresponding to the vehicle in the previous frame of road image. After the lane positioning information of the vehicle in the previous frame of road image is obtained, the nearest lane lines on the left and right sides of the lane number corresponding to the positioning information may be used as the target lane lines associated with the lane positioning information. For example, assuming that the lane positioning information of the vehicle in the previous frame of road image is left lane 1, the first lane line and the second lane line on the left side of both sides of lane 1 may be used as the target lane lines.

[0131] S803: Determine a first ratio according to the slope of the target lane line in the previous frame of the road image.

[0132] Optionally, since the number of target lane lines is two, an embodiment of the present application may be to obtain the corresponding slopes of the two target lane lines in the previous frame of the road image. Specifically, the slope of the target lane line may be determined based on the curve equation fitted to the two target lane lines in the lane line processing stage of the previous frame of the road image. For example, if the curve equation fitted to one of the target lane lines is: u-u0=A(v-v0)+B / (v-v0); then the value of the obtained parameter A may be used as the slope of the target lane line.

[0133] In the embodiment of the present application, when determining the first ratio according to the slope of the target lane line in the previous frame of the road image, the first ratio may be determined according to the following formula (2):

[0134] d1=(al_1+ar_1) / (al_1-ar_1); (2)

[0135] Wherein, d1 is the first ratio; al_1 is the slope of the target lane line located on the left in the previous frame of the road image; ar_1 is the slope of the target lane line located on the right in the previous frame of the road image.

[0136] S804: Determine a second ratio according to the slope of the target lane line in the current frame road image.

[0137] Optionally, when determining the second ratio according to the slope of the target lane line in the current frame road image, the embodiment of the present application may determine the second ratio according to the following formula (3):

[0138] d2=(al_2+ar_2) / (al_2-ar_2); (3)

[0139] Wherein, d2 is the second ratio; al_2 is the slope of the target lane line located on the left in the current frame road image; ar_2 is the slope of the target lane line located on the right in the current frame road image.

[0140] It should be noted that the method for determining the slope of the target lane line in the current frame road image is similar to the method for determining the slope of the target lane line in the previous frame road image, which will not be described in detail here.

[0141] S805, determining whether there is a lane change event of the vehicle in the current frame road image according to the change relationship between the first ratio and the second ratio, if yes, executing S806, if no, executing S807.

[0142] Optionally, in an embodiment of the present application, if the vehicle changes lanes to the left, the slope ratio of the target lane line will change from 1 to -1; when the vehicle changes lanes to the right, the slope ratio of the target lane line will change from -1 to 1; therefore, based on this rule, it can be determined whether the change from the first ratio to the second ratio conforms to the above-mentioned rule of changing lanes to the left or right. If so, it means that the vehicle has a lane changing event in the current frame road image. At this time, S806 is executed to determine the lane positioning information of the vehicle in the current frame road image. If not, the vehicle has no lane changing event in the current frame road image. At this time, S807 is executed to use the lane positioning information of the previous frame road image as the lane positioning information of the current frame image.

[0143] Optionally, when the embodiment of the present application determines whether the change from the first ratio to the second ratio conforms to the above-mentioned rule of changing lanes to the left or right, the first ratio d1 and the second ratio d2 calculated based on the above-mentioned formula (2) and formula (3) may be used. If the first ratio d1-the second ratio d2 is less than the first ratio threshold value (such as -1.5), it indicates that the vehicle has a lane change event to the right in the current frame road image; if the first ratio d1-the second ratio d2 is greater than the second ratio threshold value (such as 1.5), it indicates that the vehicle has a lane change event to the left in the current frame road image.

[0144] S806: If there is a lane change event, determine the lane positioning information of the vehicle in the current frame road image according to the lane change direction.

[0145] S807: Use the lane positioning information of the previous frame of road image as the lane positioning information of the current frame of image.

[0146] The technical solution of the embodiment of the present application obtains and responds to the vehicle positioning request. If the number of lane lines after correction of two adjacent frames of road images is the same, the target lane line is determined according to the positioning information of the vehicle in the previous frame of the road image, and the first ratio is determined according to the slope of the target lane line in the previous frame of the road image, and the second ratio is determined according to the slope of the target lane line in the current frame of the road image. According to the change relationship between the first ratio and the second ratio, it is determined whether there is a lane change event. If so, the lane positioning information of the vehicle in the current frame of the road image can be determined according to the lane change direction and the lane positioning information of the vehicle in the previous frame of the road image. Otherwise, the lane positioning information is consistent with the previous frame of the road image. The solution of the embodiment of the present application provides a new idea for determining whether a vehicle has a lane change event based on the change of the slope of the lane line in adjacent frames of road images, which provides a guarantee for the subsequent rapid determination of the vehicle's lane positioning information based on the lane change event.

[0147] Fig. 9 1 is a schematic diagram of the structure of a lane line processing device provided according to an embodiment of the present application. This embodiment is applicable to the case where lane line recognition processing is performed on a collected road image. The device can implement the lane line processing method of any embodiment of the present application. The device 900 specifically includes the following:

[0148] Image recognition module 901, used to recognize the road image collected by the vehicle and obtain lane lines and roadside lines;

[0149] A lane line analysis module 902, configured to determine misidentified lane lines and missing lane lines among the lane lines according to the roadside lines;

[0150] The lane line correction module 903 is used to correct the identified lane line according to the misidentified lane line and the missing lane line.

[0151] The technical solution of the embodiment of the present application identifies lane lines and roadside lines from road images collected by vehicles, and determines misidentified and missing lane lines in the identified lane lines based on the identified roadside lines, and then corrects the identified lane lines based on the determination results. The solution of the embodiment of the present application can correct both misidentified lane lines and missing lane lines based on the identified roadside lines, greatly improving the accuracy of the final lane lines. This in turn improves the accuracy of related applications involving lane lines (such as lane positioning). It provides a new idea for the processing of lane lines.

[0152] Furthermore, the lane line analysis module 902 includes:

[0153] a misidentification analysis unit, configured to take a lane line whose interval distance from a preset point on the roadside line satisfies a misidentification threshold as a misidentified lane line;

[0154] A missing analysis unit is used to regard a road edge lane line as a missing lane line among the lane lines if there is a lane line whose interval distance satisfies the missing threshold among the remaining lane lines except the misidentified lane line.

[0155] Furthermore, the lane line analysis module 902 further includes a distance determination unit, which is used to:

[0156] Performing curve fitting on the lane line to obtain a curve equation of the lane line;

[0157] Determine the position coordinates of the preset points along the road;

[0158] The distance between the lane line and the preset point on the roadside line is determined according to the curve equation of the lane line and the position coordinates of the preset point.

[0159] Furthermore, the lane line analysis module 902 is specifically used for:

[0160] In the case where there are at least two roadside lines, determining a target roadside line from the at least two roadside lines according to the confidence levels of the at least two roadside lines;

[0161] According to the target roadside line, misidentified lane lines and missing lane lines in the lane lines are determined.

[0162] Furthermore, the image recognition module 901 includes:

[0163] A lane line recognition unit, used to perform lane line recognition on a road image collected by a vehicle;

[0164] The roadside line recognition unit is used to perform roadside line recognition on the road image if a lane line is recognized and the roadside detection condition is met.

[0165] Furthermore, the roadside detection condition includes at least one of the following: a preset recognition cycle is reached at the current moment; the confidence of the lane line is greater than a confidence threshold; the number of lane lines recognized in two adjacent frames of road images is inconsistent.

[0166] Fig.10 1 is a schematic diagram of the structure of a lane positioning device provided according to an embodiment of the present application. This embodiment is applicable to the case where the lane line corrected by the lane line processing method of any embodiment of the present application is used to perform lane positioning on the vehicle that collects the road image in real time. The device can implement the lane positioning method of any embodiment of the present application. The device 1000 specifically includes the following:

[0167] A request acquisition module 1001 is used to acquire a lane positioning request;

[0168] The lane positioning module 1002 is used to respond to the lane positioning request and determine the lane positioning information of the vehicle in real time according to the corrected lane lines; wherein the corrected lane lines are determined as follows: identifying the road image collected by the vehicle to obtain lane lines and roadside lines; determining the misidentified lane lines and missing lane lines in the lane lines according to the roadside lines, and correcting the identified lane lines according to the misidentified lane lines and the missing lane lines to obtain corrected lane lines.

[0169] The technical solution of the embodiment of the present application, after obtaining the vehicle positioning request, corrects the misidentified lane lines and missing lane lines based on the roadside lines in the road image, and obtains accurate lane lines to determine the lane positioning information of the vehicle in real time. The corrected lane lines used in the solution of the embodiment of the present application to determine the lane positioning information do not contain misidentified lane lines and missing lane lines, and the accuracy is higher, thereby improving the accuracy of lane positioning.

[0170] Furthermore, the lane positioning module 1002 includes:

[0171] A lane line slope determination unit, used to determine the slope of the corrected lane line;

[0172] A target lane line determination unit, used to use two corrected adjacent lane lines with opposite slopes as target lane lines;

[0173] The lane positioning unit is used to determine the lane positioning information of the vehicle according to the target lane line.

[0174] Furthermore, the lane positioning module 1002 further includes:

[0175] A lane change event determination unit, used to determine whether a vehicle has a lane change event in a current frame of road image when the number of corrected lane lines in two adjacent frames of road image is consistent;

[0176] The lane positioning unit is used to determine the lane positioning information of the vehicle in the current frame road image according to the lane changing direction if there is a lane changing event.

[0177] Furthermore, the lane change event determination unit is specifically used for:

[0178] Determine, based on lane positioning information of the vehicle in a previous frame of road image, a target lane line associated with the lane positioning information;

[0179] Determining a first ratio according to a slope of the target lane line in a previous frame of road image;

[0180] Determining a second ratio according to a slope of the target lane line in the current frame road image;

[0181] According to the change relationship between the first ratio and the second ratio, it is determined whether the vehicle has a lane change event in the current frame road image.

[0182] According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium.

[0183] like Fig.11 , is a block diagram of an electronic device for implementing the lane line processing method or lane positioning method of an embodiment of the present application. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, 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 application described and / or required herein.

[0184] like Fig.11 As shown, the electronic device includes: one or more processors 1101, a memory 1102, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In other embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Fig.11 A processor 1101 is taken as an example.

[0185] The memory 1102 is a non-transitory computer-readable storage medium provided in the present application. The memory stores instructions executable by at least one processor to enable the at least one processor to execute the lane line processing method or lane positioning method provided in the present application. The non-transitory computer-readable storage medium of the present application stores computer instructions, which are used to enable a computer to execute the lane line processing method or lane positioning method provided in the present application.

[0186] The memory 1102 is a non-transient computer-readable storage medium that can be used to store non-transient software programs, non-transient computer executable programs and modules, such as program instructions / modules corresponding to the lane line processing method or lane positioning method in the embodiments of the present application (for example, the attached Fig. 9 The image recognition module 901, the lane line analysis module 902 and the lane line correction module 903 shown in the figure; or Fig.10 The processor 1101 executes various functional applications and data processing of the server by running the non-transient software programs, instructions and modules stored in the memory 1102, that is, the lane line processing method or lane positioning method in the above method embodiment is implemented.

[0187] The memory 1102 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required by at least one function; the data storage area may store data created according to the use of an electronic device that implements the lane line processing method or the lane positioning method, etc. In addition, the memory 1102 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 1102 may optionally include a memory remotely arranged relative to the processor 1101, and these remote memories may be connected to the electronic device that implements the lane line processing method or the lane positioning method via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0188] The electronic device implementing the lane line processing method or lane positioning method may further include: an input device 1103 and an output device 1104. The processor 1101, the memory 1102, the input device 1103 and the output device 1104 may be connected via a bus or other means. Fig.11 The example of connecting through bus is taken in the following.

[0189] The input device 1103 can receive input digital or character information, and generate key signal input related to user settings and function control of the electronic device that implements the lane line processing method or lane positioning method, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator rod, one or more mouse buttons, a trackball, a joystick and other input devices. The output device 1104 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display and a plasma display. In some embodiments, the display device may be a touch screen.

[0190] Various implementations of the systems and techniques described herein can be realized in digital electronic circuit systems, integrated circuit systems, dedicated ASICs (application specific integrated circuits), 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.

[0191] These computer programs (also referred to as programs, software, software applications, or code) include machine instructions for programmable processors and can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, and / or means (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.

[0192] 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).

[0193] 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.

[0194] 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 between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0195] According to the technical solution of the embodiment of the present application, lane lines and roadside lines are identified in the road image collected by the vehicle, and the misidentified and missing lane lines in the identified lane lines are determined based on the identified roadside lines, and then the identified lane lines are corrected based on the determination results. The solution of the embodiment of the present application can correct both the misidentified lane lines and the missing lane lines based on the identified roadside lines, greatly improving the accuracy of the final lane lines. This in turn improves the accuracy of related applications involving lane lines (such as lane positioning). It provides a new idea for the processing of lane lines.

[0196] 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 application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution disclosed in this application can be achieved, and this document is not limited here.

[0197] The above specific implementations do not constitute a limitation on the protection scope of this application. 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 modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.

Claims

1. A lane line processing method, comprising: Identify the road image collected by the vehicle and obtain the lane lines and roadside lines; Determining, according to the roadside line, misidentified lane lines and missing lane lines among the lane lines; Eliminating misidentified lane lines from the lane lines, supplementing the missing lane lines, and obtaining accurate lane lines contained in the road image; Wherein, determining misidentified lane lines and missing lane lines in the lane lines according to the roadside lines includes: Performing curve fitting on the lane line to obtain a curve equation of the lane line; Determine the position coordinates of a preset point on the roadside; wherein the preset point is the midpoint of the roadside, and the position coordinates of the preset point are obtained by averaging the position coordinates of all pixel points on the roadside; Determine the interval distance between the lane line and the preset point on the roadside line according to the curve equation of the lane line and the position coordinates of the preset point; The lane line whose interval distance with the preset point of the roadside line meets the misrecognition threshold is used as the misrecognized lane line; If there is a lane line whose interval distance satisfies the missing threshold among the remaining lane lines except the misidentified lane line, the road edge lane line is regarded as the missing lane line among the lane lines.

2. The method according to claim 1, wherein determining misidentified lane lines and missing lane lines in the lane lines according to the roadside lines comprises: In the case where there are at least two roadside lines, determining a target roadside line from the at least two roadside lines according to the confidence levels of the at least two roadside lines; According to the target roadside line, misidentified lane lines and missing lane lines in the lane lines are determined.

3. The method according to claim 1, wherein: The identifying of the road image collected by the vehicle comprises: Perform lane line recognition on road images collected by vehicles; If the lane line is identified and the roadside detection condition is met, roadside line recognition is performed on the road image.

4. The method according to claim 3, wherein: The roadside detection condition includes at least one of the following: The preset recognition cycle is reached at the current moment; The confidence level of the lane line is greater than a confidence threshold; The number of lane lines recognized in two adjacent frames of road images is inconsistent.

5. A lane positioning method, comprising: Get lane positioning request; In response to the lane positioning request, the lane positioning information of the vehicle is determined in real time according to the corrected lane lines; wherein the corrected lane lines are determined by: recognizing the road image collected by the vehicle to obtain lane lines and roadside lines; determining misidentified lane lines and missing lane lines in the lane lines according to the roadside lines, and correcting the recognized lane lines according to the misidentified lane lines and the missing lane lines to obtain corrected lane lines; Wherein, determining the lane positioning information of the vehicle in real time according to the corrected lane line includes: When the number of corrected lane lines in two adjacent frames of road images is consistent, determining whether the vehicle has a lane change event in the current frame of road image; wherein the lane change event includes a lane change direction; If there is a lane change event, determining lane positioning information of the vehicle in the current frame road image according to the lane change direction; Wherein, determining whether the vehicle has a lane change event in the current frame road image includes: Determine, based on lane positioning information of the vehicle in a previous frame of road image, a target lane line associated with the lane positioning information; Determining a first ratio according to a slope of the target lane line in a previous frame of road image; Determining a second ratio according to a slope of the target lane line in the current frame road image; According to the change relationship between the first ratio and the second ratio, it is determined whether the vehicle has a lane change event in the current frame road image.

6. The method according to claim 5, wherein: Determining the lane positioning information of the vehicle in real time according to the corrected lane line includes: Determining the slope of the corrected lane line; Two corrected adjacent lane lines with opposite slopes are used as target lane lines; The lane positioning information of the vehicle is determined according to the target lane line.

7. A lane line processing device, comprising: An image recognition module is used to recognize road images collected by vehicles and obtain lane lines and roadside lines; A lane line analysis module, used to determine misidentified lane lines and missing lane lines among the lane lines according to the roadside lines; A lane line correction module, used to remove misidentified lane lines from the lane lines, supplement the missing lane lines, and obtain accurate lane lines contained in the road image; Wherein, the lane line analysis module includes: a misidentification analysis unit, configured to take a lane line whose interval distance from a preset point on the roadside line satisfies a misidentification threshold as a misidentified lane line; a missing analysis unit, configured to treat a road edge lane line as a missing lane line among the lane lines if there is a lane line whose interval distance satisfies the missing threshold among the remaining lane lines except the misidentified lane line; The lane line analysis module further includes a distance determination unit, which is used to: Performing curve fitting on the lane line to obtain a curve equation of the lane line; Determine the position coordinates of a preset point on the roadside; wherein the preset point is the midpoint of the roadside, and the position coordinates of the preset point are obtained by averaging the position coordinates of all pixel points on the roadside; The distance between the lane line and the preset point on the roadside line is determined according to the curve equation of the lane line and the position coordinates of the preset point.

8. The device according to claim 7, wherein: The lane line analysis module is specifically used for: In the case where there are at least two roadside lines, determining a target roadside line from the at least two roadside lines according to the confidence levels of the at least two roadside lines; According to the target roadside line, misidentified lane lines and missing lane lines in the lane lines are determined.

9. The device according to claim 7, wherein: The image recognition module comprises: A lane line recognition unit, used to perform lane line recognition on a road image collected by a vehicle; The roadside line recognition unit is used to perform roadside line recognition on the road image if a lane line is recognized and the roadside detection condition is met.

10. The device according to claim 9, wherein: The roadside detection condition includes at least one of the following: The preset recognition cycle is reached at the current moment; The confidence level of the lane line is greater than a confidence threshold; The number of lane lines recognized in two adjacent frames of road images is inconsistent.

11. A lane positioning device, comprising: A request acquisition module is used to obtain lane positioning requests; A lane positioning module, configured to determine the lane positioning information of the vehicle in real time according to the corrected lane lines in response to the lane positioning request; wherein the corrected lane lines are determined by: recognizing the road image collected by the vehicle to obtain lane lines and roadside lines; determining misidentified lane lines and missing lane lines in the lane lines according to the roadside lines, and correcting the identified lane lines according to the misidentified lane lines and the missing lane lines to obtain corrected lane lines; Wherein, the lane positioning module also includes: A lane change event determination unit, configured to determine whether a vehicle has a lane change event in a current frame of road image when the number of corrected lane lines in two adjacent frames of road image is consistent; wherein the lane change event includes a lane change direction; A lane positioning unit, configured to determine lane positioning information of the vehicle in the current frame road image according to a lane changing direction if a lane changing event occurs; The lane change event determination unit is specifically used for: Determine, based on lane positioning information of the vehicle in a previous frame of road image, a target lane line associated with the lane positioning information; Determining a first ratio according to a slope of the target lane line in a previous frame of road image; Determining a second ratio according to a slope of the target lane line in the current frame road image; According to the change relationship between the first ratio and the second ratio, it is determined whether the vehicle has a lane change event in the current frame road image.

12. The device according to claim 11, wherein The lane positioning module comprises: A lane line slope determination unit, used to determine the slope of the corrected lane line; A target lane line determination unit, used to use two corrected adjacent lane lines with opposite slopes as target lane lines; The lane positioning unit is used to determine the lane positioning information of the vehicle according to the target lane line.

13. An electronic device, wherein: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the lane line processing method described in any one of claims 1-4, or execute the lane positioning method described in any one of claims 5-6.

14. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to enable the computer to execute the lane line processing method described in any one of claims 1-4, or to execute the lane positioning method described in any one of claims 5-6.