Lane determination method, device and computer readable storage medium

By determining the lane change behavior of the target vehicle in continuous image frames, the problems of vehicle perception limitation and inter-frame jitter are solved, and the accuracy of vehicle lane change recognition and the reliability of lane trajectory are improved.

CN119169568BActive Publication Date: 2025-03-21ZHEJIANG GEELY HLDG GRP CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411680461.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-22
Publication Date
2025-03-21
Estimated Expiration
2044-11-22

AI Technical Summary

Technical Problem

In the LCC scenario of pure perception map, due to limited vehicle perception, the lane length is short, and the perception accuracy decreases with the distance from the bicycle. There is also a problem of shaking between other vehicles and jitter between continuous different frames, resulting in lower accuracy of lane lines and vehicle lane change recognition.

Method used

By acquiring the vehicle information of the current and previous frames in the continuous image frame, it is determined whether the target vehicle meets the preset lane change detection conditions. If it is satisfied, a certain number of front and rear continuous image frames will be obtained, and based on the lane binding information, it is determined whether the target vehicle has lane change behavior.

Benefits of technology

The number of original lane track points is reduced, the jitter problem between successive different frames is reduced, and the reliability of lane tracks and the accuracy of vehicle lane change recognition is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119169568B_ABST
    Figure CN119169568B_ABST
Patent Text Reader

Abstract

The present application discloses a lane determination method, device and computer-readable storage medium, the method comprising: obtaining a first vehicle corresponding to a current image frame in continuous image frames, and a second vehicle corresponding to a first image frame before the current image frame, and taking the intersection between the first vehicle and the second vehicle as a target vehicle; determining whether the target vehicle meets a preset lane change detection condition based on lane binding information of each vehicle in the continuous image frames; if the target vehicle meets the preset lane change detection condition, obtaining a first preset number of second image frames before the first image frame and a second preset number of third image frames after the current image frame in the continuous image frames; determining whether the target vehicle has changed lanes based on the lane binding information, the second image frame and the third image frame. The present application performs lane change recognition of the target vehicle through a certain number of continuous image frames before and after the current image frame, thereby improving the accuracy of vehicle lane change recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent driving technology, and in particular to a lane determination method, device, and computer-readable storage medium. Background Art

[0002] In the LCC (Lane Centering Control) scenario of pure perception map, due to limited vehicle perception, the length L of the lane that can be identified is short (usually 20~60 meters), and the perception accuracy will decrease as the distance from the ego increases. There may be occlusion of other vehicles during vehicle driving, making it difficult to identify a larger range of map information in a single frame scenario. When the map information is perceived through consecutive different frames, due to the jitter problem between consecutive different frames, when tracking the same lane, even if the lane number is the same, its information in different frames is inconsistent, resulting in low accuracy of the constructed lane line, low accuracy of the association between lane lines in different frames, and low accuracy of the association between vehicles and lanes, which in turn leads to low accuracy of vehicle lane change recognition.

[0003] Therefore, how to improve the accuracy of vehicle lane change recognition is a problem that needs to be solved urgently. Summary of the invention

[0004] The main purpose of this application is to provide a lane determination method, device and computer-readable storage medium, aiming to solve the technical problem of how to improve the accuracy of vehicle lane change recognition.

[0005] To achieve the above object, the present application provides a lane determination method, which comprises the following steps:

[0006] Acquire a first vehicle corresponding to a current image frame in the continuous image frames, and a second vehicle corresponding to a first image frame before the current image frame, and use the intersection of the first vehicle and the second vehicle as a target vehicle;

[0007] Based on the lane binding information of each vehicle in the continuous image frames, determining whether the target vehicle meets the preset lane change detection condition;

[0008] If the target vehicle meets the preset lane change detection condition, acquiring a first preset number of second image frames before the first image frame and a second preset number of third image frames after the current image frame in the continuous image frames;

[0009] Based on the lane binding information, the second image frame and the third image frame, it is determined whether the target vehicle has changed lanes.

[0010] In addition, to achieve the above-mentioned purpose, the present application also provides a lane determination device, which includes: a memory, a processor, and a lane determination program stored in the memory and executable on the processor, and the lane determination program implements the steps of the aforementioned lane determination method when executed by the processor.

[0011] In addition, to achieve the above-mentioned purpose, the present application also provides a computer-readable storage medium, on which a lane determination program is stored, and when the lane determination program is executed by a processor, the steps of the aforementioned lane determination method are implemented.

[0012] The present application obtains the first vehicle corresponding to the current image frame in continuous image frames, and the second vehicle corresponding to the first image frame before the current image frame, and takes the intersection of the first vehicle and the second vehicle as the target vehicle; then determines whether the target vehicle meets the preset lane change detection condition based on the lane binding information of each vehicle in the continuous image frames; and then if the target vehicle meets the preset lane change detection condition, obtains a first preset number of second image frames before the first image frame and a second preset number of third image frames after the current image frame in the continuous image frames; then determines whether the target vehicle changes lanes based on the lane binding information, the second image frame and the third image frame. When it is determined that the target vehicle meets the preset lane change detection condition through the lane binding information of the vehicle in the continuous image frames, the lane change recognition of the target vehicle is performed through a certain number of continuous image frames before and after the current image frame, which can greatly reduce the number of trajectory points of the original lane trajectory points, reduce the jitter problem between different consecutive frames, ensure the reliability of the lane trajectory, and improve the accuracy of vehicle lane change recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0014] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0015] Figure 1 A schematic diagram of a process flow provided for the first embodiment of the lane determination method of the present application;

[0016] Figure 2 This is a schematic diagram of a scene in an embodiment of a lane determination method of the present application;

[0017] Figure 3This is a schematic diagram of the data structure of the dictionary in an embodiment of the lane determination method of the present application;

[0018] Figure 4 This is a schematic diagram of a lane line scenario in an embodiment of a lane determination method of the present application;

[0019] Figure 5 A schematic diagram of a first two-dimensional grid in an embodiment of a lane determination method of the present application;

[0020] Figure 6 A schematic diagram of a second two-dimensional grid in an embodiment of the lane determination method of the present application;

[0021] Figure 7 A schematic diagram of a first global grid in an embodiment of a lane determination method of the present application;

[0022] Figure 8 This is a schematic diagram of the module structure of the lane determination device according to an embodiment of the present application.

[0023] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0024] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0025] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0026] The main solution of the present application is: obtain the first vehicle corresponding to the current image frame in the continuous image frames, and the second vehicle corresponding to the first image frame before the current image frame, and take the intersection between the first vehicle and the second vehicle as the target vehicle; based on the lane binding information of each vehicle in the continuous image frames, determine whether the target vehicle meets the preset lane change detection condition; if the target vehicle meets the preset lane change detection condition, obtain a first preset number of second image frames before the first image frame and a second preset number of third image frames after the current image frame in the continuous image frames; based on the lane binding information, the second image frame and the third image frame, determine whether the target vehicle is in a lane change condition in the current image frame.

[0027] Currently, after constructing lane lines, it is necessary to associate multiple lane line detection results in different frames, for example, to construct a local semantic map. The local semantic map contains not only the image detected by the vehicle in the current frame, but also the image detection results at the time or distance before the current moment. In order to fuse lane lines in different frames at different times, it is necessary to associate lane lines in different frames.

[0028] In the LCC (Lane Centering Control) scenario of pure perception map, due to the limited perception of the vehicle, the length L of the lane that can be recognized is short (usually 20~60 meters), and the perception accuracy will decrease as the distance from the ego increases. There may be occlusion of other vehicles during the driving process of the vehicle, making it difficult to recognize a large range of map information in a single frame scenario. When the map information is perceived through consecutive different frames, due to the jitter problem between consecutive different frames, when tracking the same lane, even if the lane number is the same, its information in different frames is inconsistent, resulting in low accuracy of the constructed lane line, low accuracy of the association of lane lines in different frames, low accuracy of the association between vehicles and lanes, and low accuracy of vehicle lane change recognition. Therefore, how to improve the accuracy of vehicle lane change recognition is a problem that needs to be solved urgently.

[0029] When the present application determines that the target vehicle meets the preset lane change detection conditions through the lane binding information of the vehicle in the continuous image frames, the lane change recognition of the target vehicle is performed through a certain number of continuous image frames before and after the current image frame, which can greatly reduce the number of trajectory points of the original lane trajectory points, reduce the jitter problem between different continuous frames, ensure the reliability of the lane trajectory, and improve the accuracy of vehicle lane change recognition.

[0030] It should be noted that the execution subject of this embodiment may be a lane determination device, or a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or a vehicle lane change recognition device capable of realizing the above functions, etc., and this embodiment does not specifically limit this. The following takes the lane determination device as the execution subject as an example to illustrate this embodiment and the following embodiments.

[0031] Based on this, this application proposes a lane determination method of the first embodiment, please refer to Figure 1 , the lane determination method includes steps S410 to S440:

[0032] Step S410, obtaining a first vehicle corresponding to a current image frame in the continuous image frames and a second vehicle corresponding to a first image frame before the current image frame, and taking the intersection of the first vehicle and the second vehicle as a target vehicle;

[0033] In this embodiment, a data stream of images taken by the vehicle before the current moment may be acquired in chronological order, the data stream including a preset number of continuous image frames, the preset number may be 1000, and the interval between frames in the continuous image frames may be 0.1s.

[0034] After obtaining a preset number of continuous image frames, it is necessary to first construct lane lines, associate lane lines of different frames, and associate vehicles with lanes. Specifically, in a feasible implementation, the lane determination method further includes steps S310 to S340:

[0035] Step S310, based on the association relationship corresponding to each lane line in a preset number of continuous image frames, the lane lines are merged to obtain global lane lines, wherein the global lane lines include merged lane lines and lane lines without an association relationship;

[0036] Step S320, establishing a first global grid based on the global trajectory point coordinates corresponding to the global lane line, and marking the global lane number corresponding to the global lane line in each grid of the first global grid;

[0037] Step S330, determining a target grid corresponding to each traffic vehicle in the first global grid based on the vehicle coordinates of the traffic vehicle in each image frame;

[0038] Step S340: determining the target lane number corresponding to each traffic vehicle based on the target grid.

[0039] In this embodiment, a data stream of images taken by the vehicle before the current moment may be acquired in chronological order, the data stream including a preset number of continuous image frames, the preset number may be 1000, and the interval between frames in the continuous image frames may be 0.1s.

[0040] After obtaining a preset number of continuous image frames, the association relationship corresponding to each lane line in the preset number of continuous image frames is obtained. In a feasible implementation, step S310 may include steps S210 to S240:

[0041] Step S210, obtaining the trajectory point coordinates of the trajectory points corresponding to each lane line in a preset number of continuous image frames, and performing a thinning process on the trajectory point coordinates to obtain the first trajectory point coordinates corresponding to each lane line;

[0042] Step S220, determining a horizontal coordinate span and a vertical coordinate span based on the coordinates of the first trajectory point, and establishing a first two-dimensional grid based on the horizontal coordinate span and the vertical coordinate span;

[0043] Step S230, marking the lane number of the lane line in each grid of the first two-dimensional grid based on the coordinates of the first trajectory point;

[0044] Step S240: determining the association relationship between lane lines based on the marked first two-dimensional grid.

[0045] In this embodiment, the trajectory point coordinates of the trajectory points corresponding to each lane line in a preset number of continuous image frames are obtained, and the trajectory point coordinates are thinned to obtain the first trajectory point coordinates corresponding to each lane line. In a feasible implementation, step S210 may include steps S110 to S140:

[0046] Step S110, generating a dictionary based on lane lines in a preset number of consecutive image frames, wherein the dictionary includes lane numbers of lane lines and track point coordinates of track points on the lane lines;

[0047] Step S120, determining the coordinates of the third track points corresponding to the lane lines of each lane number based on the dictionary;

[0048] Step S130, establishing two-dimensional grids corresponding to each lane line based on a preset grid spacing and the coordinates of the third trajectory point;

[0049] Step S140: performing thinning processing on the third trajectory point coordinates of each lane line based on the two-dimensional grid to obtain the first trajectory point coordinates corresponding to each lane line.

[0050] In this embodiment, a dictionary lane_dict can be initialized in advance. The key value of the dictionary is the lane number laneid that has appeared in consecutive image frames. The value of the dictionary is the data information of the lane corresponding to the key spliced ​​between different frames. It can be a list list, which is used to store the trajectory point sequence of the lane line corresponding to the key.

[0051] Next, based on the lane number of the lane line within the preset area corresponding to the vehicle in the image frame, the trajectory point coordinates are added to the dictionary. Specifically, for the target image frame in each image frame, the target lane line within the preset area corresponding to the vehicle in the target image frame is determined; the trajectory point coordinates of the trajectory point on the target lane line are obtained; and the trajectory point coordinates of the trajectory point on the target lane line are added to the end of the list corresponding to the lane number of the target lane line in the dictionary.

[0052] In this embodiment, for the target image frame in each image frame, the target lane line in the preset area corresponding to the vehicle in the target image frame is determined. Specifically, the lane line in the target image frame and the preset area corresponding to the vehicle in the target image frame can be identified by a recognition algorithm in the relevant technology, and then the target lane line in the preset area corresponding to the vehicle in the target image frame is determined, such as Figure 2 As shown, Figure 2Where v is the driving direction of the vehicle (ego vehicle), the line segment with an arrow is the lane line, the dotted box is the preset area, the lane line in the dotted box is the target lane line, including lane line 1 (lane1), lane line 2 (lane2), lane line 3 (lane3) and lane line 4 (lane4), the trajectory points on lane line 1 (lane1) include trajectory point 1 (point1), trajectory point 2 (point2), trajectory point 3 (point3), where the preset area can be the area between α meters directly behind the vehicle and β meters directly in front of the vehicle, for example, α=5, β=50.

[0053] Next, obtain the trajectory point coordinates of the target lane line, such as Figure 2 As shown in , point1, point2, and point3 are the track point coordinates of the track points on lane line lane1. After obtaining the track point coordinates of the track point on the target lane line, add the track point coordinates of the track point on the target lane line to the end of the list corresponding to the lane number of the target lane line in the dictionary, such as Figure 3 As shown in the figure, taking lane 1 (lane1) as an example, the value of lane 1 in the dictionary includes track point 1 (point1), track point 2 (point2), track point 3 (point3) in image frame 1 (frame1), track point 4 (point4), track point 5 (point5) in image frame 2 (frame2), track point M (pointM), track point M+1 (pointM+1), track point M+2 (pointM+2) in image frame M (frameM), etc.

[0054] It should be noted that the coordinates of the trajectory points are all coordinates in the vehicle coordinate system, and the lane line can be the lane center line, lane boundary line, road edge, etc.

[0055] In this embodiment, after adding the trajectory point coordinates corresponding to all image frames in the continuous image frames to the dictionary, the third trajectory point coordinates corresponding to the lane lines of each lane number are determined based on the dictionary. For example, for the lane line lane1, its third trajectory point coordinates include point1, point2, point3, point4, point5…pointM, pointM+1, pointM+2…pointN.

[0056] In this embodiment, after obtaining the third trajectory point coordinates corresponding to the lane lines of each lane number, the preset grid spacing is obtained, and based on the preset grid spacing and the third trajectory point coordinates, the two-dimensional grids corresponding to each lane line are established respectively. Specifically, for the lane line of each lane number, the maximum value of the horizontal coordinate, the minimum value of the horizontal coordinate, the maximum value of the vertical coordinate and the minimum value of the vertical coordinate are obtained in all the third trajectory point coordinates of the lane line, and based on the maximum value of the horizontal coordinate, the minimum value of the horizontal coordinate, the maximum value of the vertical coordinate, the minimum value of the vertical coordinate and the preset grid spacing, the two-dimensional grid corresponding to the lane line is established, wherein the preset grid spacing may be 1m*1m, and the basic unit of 1m*1m is a grid of the two-dimensional grid, and the elements of the grid are initialized to a first preset value, which may be 0, and the second preset value may be 1.

[0057] In a feasible implementation, step S130 may include steps S131-S132:

[0058] Step S131, obtaining the maximum value of the horizontal coordinate, the minimum value of the horizontal coordinate, the maximum value of the vertical coordinate, and the minimum value of the vertical coordinate corresponding to each lane line in the third trajectory point coordinates corresponding to each lane line;

[0059] Step S132, based on the maximum value of the horizontal coordinate, the minimum value of the horizontal coordinate, the maximum value of the vertical coordinate, the minimum value of the vertical coordinate and the preset grid spacing, respectively establish a two-dimensional grid corresponding to each lane line.

[0060] In this embodiment, after obtaining the third trajectory point coordinates corresponding to the lane lines of each lane number, the maximum horizontal coordinate, minimum horizontal coordinate, maximum vertical coordinate and minimum vertical coordinate corresponding to each lane line are obtained in the third trajectory point coordinates corresponding to each lane line. For each lane line with a lane number, horizontal coordinate comparison and vertical coordinate comparison are performed respectively in all the third trajectory point coordinates of the lane line to obtain the maximum horizontal coordinate, minimum horizontal coordinate, maximum vertical coordinate and minimum vertical coordinate corresponding to the lane line.

[0061] Next, the preset grid spacing is obtained, and based on the maximum value of the horizontal coordinate, the minimum value of the horizontal coordinate, the maximum value of the vertical coordinate, the minimum value of the vertical coordinate and the preset grid spacing, the two-dimensional grids corresponding to each lane line are established respectively, wherein the preset grid spacing can be 1m*1m, and the basic unit of 1m*1m is a grid of the two-dimensional grid, and the elements of the grid are initialized to a first preset value, which can be 0, and the second preset value can be 1.

[0062] Specifically, for each lane line with a lane number, a two-dimensional grid corresponding to the lane line is established based on the maximum value of the horizontal coordinate, the minimum value of the horizontal coordinate, the maximum value of the vertical coordinate, the minimum value of the vertical coordinate and the preset grid spacing of the lane line, wherein the horizontal spacing of the two-dimensional grid is the spacing between the maximum value of the horizontal coordinate and the minimum value of the horizontal coordinate, and the vertical spacing of the two-dimensional grid is the spacing between the maximum value of the vertical coordinate and the minimum value of the vertical coordinate, so that the grid row index and the grid column index of each grid in the two-dimensional grid are both integers, so as to facilitate the thinning of the trajectory points through the two-dimensional grid.

[0063] In this embodiment, after establishing a two-dimensional grid, the third trajectory point coordinates of each lane line are thinned out based on the two-dimensional grid to obtain the first trajectory point coordinates corresponding to each lane line. Specifically, for each lane line with a lane number, one trajectory point coordinate is obtained in turn from all the third trajectory point coordinates of the lane line, and the obtained trajectory point coordinates are projected to the two-dimensional grid to obtain a grid corresponding to the obtained trajectory point coordinates. If an element of the grid is a first preset value, the obtained trajectory point coordinate is retained, that is, the obtained trajectory point coordinate is added to the first trajectory point coordinates corresponding to the lane line, and the elements of the grid are set to the second preset value; if the elements of the grid are the second preset value, the obtained trajectory point coordinate is discarded to achieve screening of the trajectory points of the lane line.

[0064] In a feasible implementation, step S140 may include steps S141 to S143:

[0065] Step S141, determining the horizontal coordinate spacing and the vertical coordinate spacing between two adjacent trajectory points corresponding to each lane line based on the coordinates of the third trajectory points corresponding to each lane line;

[0066] Step S142, based on the preset spacing, the horizontal coordinate spacing and the vertical coordinate spacing, the third track point coordinates corresponding to each lane line are screened to obtain the fourth track point coordinates corresponding to each lane line;

[0067] Step S143: performing thinning processing on the fourth trajectory point coordinates of each lane line based on the two-dimensional grid to obtain the first trajectory point coordinates corresponding to each lane line.

[0068] In this embodiment, after establishing a two-dimensional grid, based on the third trajectory point coordinates corresponding to each lane line, the horizontal coordinate spacing and the vertical coordinate spacing between two adjacent trajectory points corresponding to each lane line are determined. Specifically, for each lane line with a lane number, in all the third trajectory point coordinates of the lane line, the trajectory point coordinates of two adjacent trajectory points are obtained in turn, and based on the horizontal coordinates and the vertical coordinates in the trajectory point coordinates of the two adjacent trajectory points, the corresponding horizontal coordinate spacing and vertical coordinate spacing are calculated respectively, wherein the horizontal coordinate spacing is the absolute value of the difference between the horizontal coordinates of the two adjacent trajectory points, and the vertical coordinate spacing is the absolute value of the difference between the vertical coordinates of the two adjacent trajectory points, and finally the horizontal coordinate spacing and the vertical coordinate spacing of all two adjacent trajectory points in the third trajectory point coordinates of the lane line are obtained.

[0069] After obtaining the horizontal coordinate spacing and the vertical coordinate spacing, the third trajectory point coordinates corresponding to each lane line are screened based on the preset spacing, the horizontal coordinate spacing and the vertical coordinate spacing to obtain the fourth trajectory point coordinates corresponding to each lane line. Specifically, for each lane line with a lane number, the horizontal coordinate spacing and the vertical coordinate spacing of each group of two adjacent trajectory points are compared with the preset spacing to determine whether there are two adjacent trajectory points of the lane line whose horizontal coordinate spacing is less than the preset spacing and whose vertical coordinate spacing is less than the preset spacing. If so, the latter trajectory point of the two adjacent trajectory points is discarded, wherein the front-to-back order of the two adjacent trajectory points is the order of the coordinates of the two trajectory points in the third trajectory point coordinates.

[0070] After obtaining the fourth trajectory point coordinates, the fourth trajectory point coordinates of each lane line are thinned out based on the two-dimensional grid to obtain the first trajectory point coordinates corresponding to each lane line. Specifically, for each lane line with a lane number, one trajectory point coordinate is obtained in turn from all the fourth trajectory point coordinates of the lane line, and the obtained trajectory point coordinates are projected onto the two-dimensional grid to obtain a grid corresponding to the obtained trajectory point coordinates. If an element of the grid is a first preset value, the obtained trajectory point coordinates are retained, that is, the obtained trajectory point coordinates are added to the first trajectory point coordinates corresponding to the lane line, and the elements of the grid are set to the second preset values; if the elements of the grid are the second preset values, the obtained trajectory point coordinates are discarded to achieve screening of the trajectory points of the lane line.

[0071] In a feasible implementation, step S143 may include steps S1431 to S1434:

[0072] Step S1431, rounding down the coordinates of the fourth track point to obtain the coordinates of the fifth track point corresponding to each lane line;

[0073] Step S1432, performing thinning processing on the fifth track point coordinates of each lane line based on the two-dimensional grid to obtain the sixth track point coordinates corresponding to each lane line;

[0074] Step S1433, rounding the coordinates of the sixth track point to obtain the coordinates of the seventh track point corresponding to each lane line;

[0075] Step S1434: thinning the coordinates of the seventh trajectory point of each lane line based on the two-dimensional grid to obtain the coordinates of the first trajectory point corresponding to each lane line.

[0076] In this embodiment, after obtaining the fourth trajectory point coordinates, the fourth trajectory point coordinates are rounded down to obtain the corresponding fifth trajectory point coordinates of each lane line. For example, the coordinate 1.1 is rounded down to 1, and the coordinate 1.9 is rounded down to 1. By rounding down, the coordinates of each fourth trajectory point are converted into integer fifth trajectory point coordinates, and then the horizontal coordinate and the vertical coordinate of the fifth trajectory point coordinate can be used as the grid row and grid column indexes in the two-dimensional grid, respectively.

[0077] After obtaining the coordinates of the fifth track point, the coordinates of the fifth track point of each lane line are thinned out based on the two-dimensional grid to obtain the coordinates of the sixth track point corresponding to each lane line. Specifically, in a feasible implementation, step S1432 may include steps a1 to a3:

[0078] Step a1, for each first target lane line in the lane lines, traverse the coordinates of the fifth track point of the first target lane line in sequence to obtain the first coordinates;

[0079] Step a2, determining a third grid corresponding to the first coordinate in the two-dimensional grid, and obtaining a first grid element of the third grid;

[0080] Step a3, if the first grid element is the first preset value, then the trajectory point coordinates corresponding to the first coordinates in the fourth trajectory point coordinates are added to the sixth trajectory point coordinates corresponding to the first target lane line, and the first grid element is set to the second preset value until the traversal of each fifth trajectory point coordinate is completed.

[0081] In this embodiment, for each first target lane line in the lane lines, the fifth track point coordinates of the first target lane line are traversed in sequence to obtain the first coordinate (the fifth track point coordinate currently traversed), and the traversal is performed in sequence according to the order of the fifth track point coordinates in the target lane lines. The third grid corresponding to the first coordinate is determined in the two-dimensional grid, that is, the grid row and grid column indexes of the third grid are consistent with the two coordinate values ​​of the first coordinate, the grid row index is the horizontal coordinate of the first coordinate, and the grid column index is the vertical coordinate of the first coordinate, the first grid element of the third grid is obtained, and it is determined whether the first grid element is the first preset value.

[0082] If the first grid element is the first preset value, the trajectory point coordinate corresponding to the first coordinate in the fourth trajectory point coordinate is added to the sixth trajectory point coordinate corresponding to the first target lane line, and the first grid element is set to the second preset value to add the trajectory point coordinate before rounding down to the corresponding sixth trajectory point coordinate; if the first grid element is the second preset value, the first coordinate is discarded; until the traversal of each fifth trajectory point coordinate is completed, all the sixth trajectory point coordinates of the target lane line are obtained.

[0083] In this embodiment, after obtaining the coordinates of the sixth trajectory point, the coordinates of the sixth trajectory point are rounded to obtain the coordinates of the seventh trajectory point corresponding to each lane line; for example, the coordinate 1.4 is rounded to 1, and the coordinate 1.9 is rounded to 2. By rounding, the coordinates of each sixth trajectory point are converted into integer coordinates of the seventh trajectory point, and then the horizontal coordinate and the vertical coordinate of the seventh trajectory point coordinate can be used as the grid row and grid column indexes in the two-dimensional grid, respectively.

[0084] After obtaining the coordinates of the seventh track point, the coordinates of the seventh track point of each lane line are thinned out based on the two-dimensional grid to obtain the coordinates of the first track point corresponding to each lane line. Specifically, in a feasible implementation, step S1434 may include steps b1 to b4:

[0085] Step b1, setting the elements of each grid in the two-dimensional grid to a first preset value;

[0086] Step b2, for each second target lane line in the lane line, traverse the coordinates of the seventh track point of the second target lane line in sequence to obtain the second coordinates;

[0087] Step b3, determining a fourth grid corresponding to the second coordinate in the two-dimensional grid, and obtaining a second grid element of the fourth grid;

[0088] Step b4, if the second grid element is the first preset value, then the trajectory point coordinates corresponding to the second coordinates in the sixth trajectory point coordinates are added to the first trajectory point coordinates corresponding to the second target lane line, and the second grid element is set to the second preset value until the traversal of each seventh trajectory point coordinate is completed.

[0089] In this embodiment, after the coordinates of the seventh trajectory point are acquired, the elements of each grid in the two-dimensional grid are set to the first preset value, that is, the elements of each grid in the two-dimensional grid are reset to the first preset value.

[0090] Next, for each second target lane line in the lane line, the seventh track point coordinates of the second target lane line are traversed in sequence to obtain the second coordinate (the seventh track point coordinate currently traversed), and the traversal is performed in sequence according to the order of the seventh track point coordinates in the target lane line, and the fourth grid corresponding to the second coordinate is determined in the two-dimensional grid, that is, the grid row and grid column indexes of the fourth grid are consistent with the two coordinate values ​​of the second coordinate, the grid row index is the horizontal coordinate of the second coordinate, and the grid column index is the vertical coordinate of the second coordinate, the second grid element of the fourth grid is obtained, and it is determined whether the second grid element is the first preset value.

[0091] If the second grid element is the first preset value, the trajectory point coordinate corresponding to the second coordinate in the sixth trajectory point coordinate is added to the first trajectory point coordinate corresponding to the second target lane line, and the second grid element is set to the second preset value, so as to add the trajectory point coordinate before rounding to the corresponding first trajectory point coordinate; if the first grid element is the second preset value, the first coordinate is discarded; until the traversal of each seventh trajectory point coordinate is completed, all the first trajectory point coordinates of the target lane line are obtained, such as Figure 4 As shown, Figure 4 This is the sequence of trajectory points of the lane line after two thinning processes. By performing two thinning processes on the coordinates of the trajectory points of the lane line, the number of trajectory points of each lane line is reduced, and the jitter problem between the trajectory points in the lane line is reduced.

[0092] In this embodiment, after the fourth trajectory point coordinates of all lane lines are processed by the processing method of this embodiment, the first trajectory point coordinates corresponding to each lane line can be obtained.

[0093] In this embodiment, after obtaining the first track point coordinates corresponding to each lane line, the horizontal coordinate span and the vertical coordinate span are determined based on the first track point coordinates. Specifically, the maximum horizontal coordinate, the minimum horizontal coordinate, the maximum vertical coordinate and the minimum vertical coordinate can be determined in the first track point coordinates corresponding to each lane line, that is, the maximum horizontal coordinate is the maximum value of all horizontal coordinates in the first track point coordinates, the minimum horizontal coordinate is the minimum value of all horizontal coordinates in the first track point coordinates, the maximum vertical coordinate is the maximum value of all vertical coordinates in the first track point coordinates, and the minimum vertical coordinate is the maximum value of all vertical coordinates in the first track point coordinates. minimum value; then, determine the horizontal coordinate span based on the maximum horizontal coordinate and the minimum horizontal coordinate, and determine the vertical coordinate span based on the maximum vertical coordinate and the minimum vertical coordinate, wherein the horizontal coordinate span can be determined according to the result of rounding up the difference between the maximum horizontal coordinate and the minimum horizontal coordinate, and the vertical coordinate span can be determined according to the result of rounding up the difference between the maximum vertical coordinate and the minimum vertical coordinate, or, first round the maximum horizontal coordinate and the minimum horizontal coordinate, determine the horizontal coordinate span based on the difference of the rounding results, round the maximum horizontal coordinate and the minimum horizontal coordinate, and determine the vertical coordinate span based on the difference of the rounding results.

[0094] After obtaining the horizontal coordinate span and the vertical coordinate span, a first two-dimensional grid is established based on the horizontal coordinate span and the vertical coordinate span. Specifically, a preset grid spacing can be obtained, and the first two-dimensional grid is established based on the preset grid spacing, the horizontal coordinate span and the vertical coordinate span, wherein n is the horizontal coordinate span, m is the vertical coordinate span, the first two-dimensional grid is a grid of m rows and n columns, and the length and width of each grid in the first two-dimensional grid are both the preset grid spacing.

[0095] The horizontal distance of the first two-dimensional grid is the horizontal coordinate span, and the vertical distance is the vertical coordinate span. The length and width of each grid in the first two-dimensional grid are both preset grid spacings.

[0096] In a feasible implementation, step S220 may include steps S221 to S223:

[0097] Step S221, determining the maximum horizontal coordinate, the minimum horizontal coordinate, the maximum vertical coordinate and the minimum vertical coordinate in the first track point coordinates corresponding to each lane line;

[0098] Step S222, determining the horizontal coordinate span based on the maximum horizontal coordinate and the minimum horizontal coordinate, and determining the vertical coordinate span based on the maximum vertical coordinate and the minimum vertical coordinate;

[0099] Step S223: establishing a first two-dimensional grid based on the preset grid spacing, the horizontal coordinate span, and the vertical coordinate span.

[0100] In this embodiment, after obtaining the first trajectory point coordinates corresponding to each lane line, the maximum horizontal coordinate, the minimum horizontal coordinate, the maximum vertical coordinate and the minimum vertical coordinate are determined in the first trajectory point coordinates corresponding to each lane line, that is, the horizontal coordinates of each trajectory point in the first trajectory point coordinates are compared to obtain the maximum horizontal coordinate and the minimum horizontal coordinate, and the vertical coordinates of each trajectory point in the first trajectory point coordinates are compared to obtain the maximum vertical coordinate and the minimum vertical coordinate.

[0101] Next, the horizontal coordinate span is determined based on the maximum horizontal coordinate and the minimum horizontal coordinate, and the vertical coordinate span is determined based on the maximum vertical coordinate and the minimum vertical coordinate; in a feasible implementation, step S222 may include steps S2221 to S2225:

[0102] Step S2221, respectively rounding down and rounding off the maximum horizontal coordinate, and taking the maximum value of the rounding results as the target maximum horizontal coordinate;

[0103] Step S2222, respectively performing downward rounding and rounding on the minimum horizontal coordinate, and taking the minimum value of the rounding results as the target minimum horizontal coordinate;

[0104] Step S2223, respectively rounding down and rounding off the maximum vertical coordinate, and taking the maximum value of the rounding results as the target maximum vertical coordinate;

[0105] Step S2224, respectively rounding down and rounding the minimum vertical coordinate, and taking the minimum value of the rounding results as the target minimum vertical coordinate;

[0106] Step S2225, determining the horizontal coordinate span based on the target maximum horizontal coordinate and the target minimum horizontal coordinate, and determining the vertical coordinate span based on the target maximum vertical coordinate and the target minimum vertical coordinate.

[0107] In this embodiment, the maximum horizontal coordinate is rounded down and rounded up to obtain two rounding results of the maximum horizontal coordinate, and the maximum value of the rounding results is used as the target maximum horizontal coordinate. If the two rounding results are equal, the target maximum horizontal coordinate is any one of the two rounding results.

[0108] The minimum horizontal coordinate is rounded down and rounded up respectively to obtain two rounding results of the minimum horizontal coordinate, and the minimum value of the rounding results is used as the target minimum horizontal coordinate. If the two rounding results are equal, the target minimum horizontal coordinate is any one of the two rounding results.

[0109] The maximum vertical coordinate is rounded down and rounded to obtain two rounding results of the maximum vertical coordinate, and the maximum value of the rounding results is used as the target maximum vertical coordinate. If the two rounding results are equal, the target maximum vertical coordinate is any one of the two rounding results.

[0110] The minimum vertical coordinate is rounded down and rounded to obtain two rounding results of the minimum vertical coordinate, and the minimum value of the rounding results is used as the target minimum vertical coordinate. If the two rounding results are equal, the target minimum vertical coordinate is any one of the two rounding results.

[0111] After obtaining the maximum horizontal coordinate and the minimum horizontal coordinate of the target, the horizontal coordinate span is determined based on the maximum horizontal coordinate and the minimum horizontal coordinate of the target, and the vertical coordinate span is determined based on the maximum vertical coordinate and the minimum vertical coordinate of the target. The formulas for the horizontal coordinate span and the vertical coordinate span are:

[0112] m=max(round(y_global_max),int(y_global_max))- min(round(y_global_min), int(y_global_min)) + 1;

[0113] n=max(round(x_global_max), int(x_global_max)) - min(round(x_global_min), int(x_global_min)) + 1;

[0114] Among them, n is the horizontal coordinate span, m is the vertical coordinate span, x_global_max is the maximum horizontal coordinate in the coordinates of the first track point, x_global_min is the minimum horizontal coordinate in the coordinates of the first track point, y_global_max is the maximum vertical coordinate in the coordinates of the first track point, y_global_min is the minimum vertical coordinate in the coordinates of the first track point, round(x) means rounding x to the nearest integer, int(x) means rounding x down, max(x, y) means taking the larger value of x and y, min(x, y) means taking the smaller value of x and y.

[0115] After obtaining the horizontal coordinate span and the vertical coordinate span, a first two-dimensional grid is established based on the preset grid spacing, the horizontal coordinate span and the vertical coordinate span, wherein the first two-dimensional grid is a grid of m rows and n columns, and the length and width of each grid in the first two-dimensional grid are both the preset grid spacing.

[0116] In this embodiment, after the first two-dimensional grid is established, the lane number of the lane line is marked in each grid of the first two-dimensional grid based on the coordinates of the first trajectory point. Specifically, the coordinates of each first trajectory point may be rounded first, and the trajectory point index of the corresponding trajectory point may be determined according to the rounded coordinates. According to the trajectory point index of each trajectory point, the lane number of each lane line is marked in each grid of the first two-dimensional grid, that is, for a grid where there is no lane number corresponding to the current trajectory point, the lane code corresponding to the trajectory point having the same trajectory point index and grid index (grid row index and grid column index) is marked in the grid, such as Figure 5 In a feasible implementation, step S230 may include steps S231 to S233:

[0117] Step S231, performing rounding processing on the coordinates of each first trajectory point to obtain the coordinates of the second trajectory point;

[0118] Step S232, determining the trajectory point index of each trajectory point corresponding to the first trajectory point coordinate based on the second trajectory point coordinate;

[0119] Step S233: based on the index of each trajectory point, marking the lane number of each lane line in each grid of the first two-dimensional grid.

[0120] In this embodiment, after establishing the first two-dimensional grid, the coordinates of each first trajectory point are rounded to obtain the coordinates of the second trajectory point, and based on the second trajectory point coordinates, the trajectory point index of each trajectory point corresponding to the first trajectory point coordinate is determined. Specifically, the formula of the trajectory point index is:

[0121] index_x = int(x) - int(x_global_min);

[0122] index_y = int(y) - int(y_global_min);

[0123] or

[0124] index_x = round(x) - int(x_global_min);

[0125] index_y = round(y) - int(y_global_min);

[0126] Among them, round(x) means rounding x to the nearest integer, int(x) means rounding x to the nearest integer, x_global_min means the minimum value of the horizontal coordinate in the coordinates of the first trajectory point, y_global_min means the minimum value of the vertical coordinate in the coordinates of the first trajectory point, and (index_x, index_y) is the index of the trajectory point corresponding to the coordinates (x, y).

[0127] After obtaining the trajectory point index, the lane number of each lane line is marked on each grid of the first two-dimensional grid based on each trajectory point index. That is, for a grid where there is no lane number corresponding to the current trajectory point, the lane code corresponding to the trajectory point with the same trajectory point index and grid index (grid row index and grid column index) is marked on the grid, such as Figure 5 In a feasible implementation, step S233 may include steps S2331 to S2333:

[0128] Step S2331, for each target trajectory point index in the trajectory point index, obtaining the target lane number of the lane line to which the trajectory point corresponding to the target trajectory point index belongs;

[0129] Step S2332, determining a third grid corresponding to the target trajectory point index in the first two-dimensional grid;

[0130] Step S2333: If the target lane number does not exist in the elements of the third grid, add the target lane number to the elements of the third grid.

[0131] In this embodiment, for each target trajectory point index in the trajectory point index, the target lane number of the lane line to which the trajectory point corresponding to the target trajectory point index belongs is obtained, and a third grid corresponding to the target trajectory point index is determined in the first two-dimensional grid, that is, the grid row index of the third grid is the same as the index_x of the target trajectory point index, and the grid column index is the same as the index_y of the target trajectory point index.

[0132] After obtaining the third grid, determine whether the target lane number exists in the elements of the third grid. If the target lane number does not exist in the elements of the third grid, add the target lane number to the elements of the third grid, thereby achieving the addition of the lane number to the elements of the grid in the first two-dimensional grid.

[0133] In this embodiment, after obtaining the marked first two-dimensional grid, the association relationship between each lane line is determined based on the marked first two-dimensional grid. Specifically, a first grid with multiple lane numbers in each grid of the first two-dimensional grid can be obtained, and the association relationship between each lane line is determined according to the lane number in the first grid. In a feasible implementation, step S240 may include steps S241 to S244:

[0134] Step S241, establishing a second two-dimensional grid based on the number of lane numbers corresponding to the lane numbers;

[0135] Step S242, determining a first grid in which a grid element in the first two-dimensional grid has multiple lane numbers;

[0136] Step S243, based on the elements of the first grid, updating the elements of each grid in the second two-dimensional grid, wherein the elements of the grid in the updated second two-dimensional grid are the number of times the corresponding two lane numbers belong to the same grid in the first two-dimensional grid;

[0137] Step S244: determining the association relationship between lane lines based on the updated second two-dimensional grid.

[0138] In this embodiment, after obtaining the marked first two-dimensional grid, a second two-dimensional grid is established based on the number of numbers corresponding to the lane numbers; for example, the number of numbers corresponding to the lane numbers (the number of lanes in the global map) is L, and 1, 2, ...L are respectively used as indexes of L lanes to establish a second two-dimensional grid of L*L with L rows and L columns, and the initial value of the elements of each grid in the second two-dimensional grid is 0.

[0139] After the second two-dimensional grid is established, the first grid in which the elements of the grid in the first two-dimensional grid have multiple lane numbers is obtained. Specifically, the number of elements in each grid in the first two-dimensional grid is counted. If the number of elements corresponding to a certain grid is greater than 1, it is determined that the elements of the grid have multiple lane numbers, and the grid is the first grid. Figure 5 As shown, Figure 5 In the figure, the grid jointly occupied by lane 2 (lane2) and lane 3 (lane3), the grid jointly occupied by lane 1 (lane1) and lane 2 (lane2), the grid jointly occupied by lane 1, lane 2 and lane 3, and the two grids jointly occupied by lane 6 (lane6) and lane 5 (lane5) are all first grids.

[0140] After determining the first grid in the first two-dimensional grid, based on the elements of the first grid, update the elements of each grid in the second two-dimensional grid to obtain an updated second two-dimensional grid. Specifically, for each grid in the first grid, extract the elements of the grid, combine the lane numbers laneid in the extracted elements in pairs, use each combination as a position index of a second two-dimensional grid, and add 1 to the element of the grid corresponding to the position index in the second two-dimensional grid. For example, if the elements of a grid in the first grid are the list [2,7,9], then after pairwise combination, obtain the combinations [2,7], [2,9], [7,9], add 1 to the element of the grid with index [2,7] in the second two-dimensional grid with [2,7] as the position index of the second two-dimensional grid, add 1 to the element of the grid with index [2,9] in the second two-dimensional grid with [2,9] as the position index of the second two-dimensional grid, and add 1 to the element of the grid with index [7,9] in the second two-dimensional grid with [7,9] as the position index of the second two-dimensional grid.

[0141] like Figure 6 As shown, Figure 6 What is shown is the updated second two-dimensional grid. Since the relationship between two different lanes satisfies the commutative law, that is, the relationship between lane 1 (lane1) and lane 2 (lane2) is the same as the relationship between lane 2 and lane 1, that is, the updated second two-dimensional grid is symmetrical about the main diagonal line, so only the upper right corner of the second two-dimensional grid needs to be considered.

[0142] Then, based on the updated second two-dimensional grid, the association relationship between the lane lines is determined. In a feasible implementation, step S244 may include steps S2441 to S2443:

[0143] Step S2441, for the target lane number in each lane number, obtaining the first element of each second grid corresponding to the same row of each target lane number in the updated second two-dimensional grid;

[0144] Step S2442, determining a second element in the first element that is greater than a preset threshold;

[0145] Step S2443: Determine an association relationship list corresponding to the target lane number based on the lane number of the second grid corresponding to the second element.

[0146] In this embodiment, after obtaining the updated second two-dimensional grid, for the target lane number in each lane number, the first element of each second grid corresponding to the same row of each target lane number is obtained in the updated second two-dimensional grid, such as Figure 6As shown, for a lane line with an index (lane number) of 1, the first element may include an element of a grid with a row index of 1 and a column index of 2, 3, ..., L-1, L in the second two-dimensional grid.

[0147] After obtaining the first elements, each first element is compared with a preset threshold to determine a second element in the first elements that is greater than the preset threshold. The preset threshold can be reasonably set, for example, the preset threshold can be 5.

[0148] After obtaining the second element, based on the lane number of the second grid corresponding to the second element, determine the association relationship list corresponding to the target lane number. For example, for the lane line with index 1, establish a list lane_list_1 containing lane lines with index 1, extract lanes with indexes 2, 3, ..., L respectively, and if the number of corresponding elements in the updated second two-dimensional grid is greater than the preset threshold, add this lane to lane_list_1. In this way, a lane sequence related to lane line lane with index 1, that is, the association relationship list of lane line lane1, can be obtained, such as Figure 6 As shown, when the preset threshold is 5, lane_list_1 is [1, L], and lane_list_2 is [2, 3, L-1], thereby realizing the association relationship between each lane line through the association relationship list.

[0149] In a feasible implementation, after step S2443, the lane association method may further include steps S2444 to S2445:

[0150] Step S2444, determining whether there are multiple association relationship lists to be merged that have the same lane number in the association relationship lists corresponding to the lane numbers;

[0151] Step S2445: If there are association relationship lists to be merged, the association relationship lists to be merged with the same lane number are merged to obtain a target association relationship list.

[0152] In this embodiment, after obtaining the association relationship lists corresponding to each lane number, it is determined whether there are multiple association relationship lists to be merged with the same lane number in the association relationship lists corresponding to each lane number. For example, if association relationship list 1 is [2, 4, 6, 8] and association relationship list 2 is [4, 7, 9], then association relationship list 1 and association relationship list 2 are the association relationship lists to be merged.

[0153] If there are association lists to be merged, the association lists to be merged with the same lane number are merged to obtain the target association list. For example, association list 1 is [2, 4, 6, 8] and association list 2 is [4, 7, 9], then the merged target association list is [2, 4, 6, 7, 8, 9]. The final association list includes the lists in the association list except the association list to be merged and the target association list. By merging the association lists, the accuracy of the association lists can be further improved.

[0154] In this embodiment, after obtaining the association relationship corresponding to each lane line in a preset number of continuous image frames, the lane lines are merged based on the association relationship. For example, when the association relationship between each lane line is represented by an association relationship list, the trajectory points of each lane line in each association relationship list are merged to obtain the merged lane line. For example, for the association relationship list [1415, 1359, 1513], where 1415, 1359 and 1513 represent the lane numbers laneids of the lanes, where the lane trajectory point sequence with laneid 1415 is [point1, pont2, point3, point4], the lane trajectory point sequence with laneid 1359 is [point11, pont12, point13, point14, point15, point16], and the lane trajectory point sequence with laneid 1513 is [point21, pont22, point23]. The trajectory point sequence of the merged lane line is [point1, pont2, point3, point4, point11, pont12, point13, point14, point15, point16, point21, pont22, point23], and the lane trajectory point sequence can be represented by laneid 1415.

[0155] Afterwards, the merged lane lines and the lane lines that have no associated relationship (lane lines that have not been merged) are used as global lane lines.

[0156] In this embodiment, after obtaining the global lane line, the global trajectory point coordinates corresponding to the global lane line are obtained, and a first global grid is established based on the global trajectory point coordinates. In a feasible implementation, step S320 may include steps S321 to S323:

[0157] Step S321, performing a thinning process on the trajectory point coordinates of the global lane line to obtain the global trajectory point coordinates of each global lane line;

[0158] Step S322, determining a global horizontal coordinate span and a global vertical coordinate span based on the global trajectory point coordinates;

[0159] Step S323: establishing a first global grid based on the preset grid spacing, the global horizontal coordinate span, and the global vertical coordinate span.

[0160] In this embodiment, after obtaining the global lane line, the global trajectory point coordinates corresponding to the global lane line are obtained. Specifically, the trajectory point coordinates of the global lane line are obtained first. If the global lane line is a merged lane line, the trajectory point coordinates of the global lane line include the trajectory point coordinates of all lane lines in the corresponding association relationship list. Then, the trajectory point coordinates of the global lane line are thinned to obtain the global trajectory point coordinates of each global lane line.

[0161] In a feasible implementation, step S321 may include steps S3211 to S3215:

[0162] Step S3211, based on the preset grid spacing and the coordinates of the trajectory points of the global lane lines, respectively establish a second global grid corresponding to each global lane line;

[0163] Step S3212, rounding down the trajectory point coordinates of the global lane line to obtain the first global trajectory point coordinates corresponding to each global lane line;

[0164] Step S3213, performing thinning processing on the first global trajectory point coordinates of each global lane line based on the second global grid to obtain the second global trajectory point coordinates corresponding to each global lane line;

[0165] Step S3214, rounding the second global trajectory point coordinates to obtain third global trajectory point coordinates corresponding to each global lane line;

[0166] Step S3215: reset the elements of each grid in the second global grid, and perform thinning processing on the third global trajectory point coordinates of each global lane line based on the second global grid to obtain the global trajectory point coordinates corresponding to each global lane line.

[0167] In this embodiment, after the trajectory point coordinates of the global lane line are obtained, a second global grid corresponding to each global lane line is established based on the preset grid spacing and the trajectory point coordinates of the global lane line. Specifically, in the trajectory point coordinates of each global lane line, the global horizontal coordinate maximum value, the global horizontal coordinate minimum value, the global vertical coordinate maximum value and the global vertical coordinate minimum value corresponding to each global lane line are obtained. That is, for each global lane line, in the trajectory point coordinates of the global lane line, horizontal coordinate comparison and vertical coordinate comparison are performed respectively to obtain the global horizontal coordinate maximum value, the global horizontal coordinate minimum value, the global vertical coordinate maximum value and the global vertical coordinate minimum value corresponding to the global lane line.

[0168] Next, the preset grid spacing is obtained, and based on the preset grid spacing, the global maximum value of the horizontal coordinate, the global minimum value of the horizontal coordinate, the global maximum value of the vertical coordinate and the global minimum value of the vertical coordinate, the second global grid corresponding to each global lane line is established respectively, wherein the preset grid spacing may be 1m*1m, and a basic unit of 1m*1m is a grid of the second global grid, and the elements of the grid are initialized to a first preset value, which may be 0, and the second preset value may be 1.

[0169] Specifically, for each global lane line, a second global grid corresponding to the lane line is established based on the global horizontal coordinate maximum value, global horizontal coordinate minimum value, global vertical coordinate maximum value, global vertical coordinate minimum value and preset grid spacing of the global lane line, wherein the horizontal spacing of the second global grid is the spacing between the global horizontal coordinate maximum value and the global horizontal coordinate minimum value, and the vertical spacing of the second global grid is the spacing between the global vertical coordinate maximum value and the global vertical coordinate minimum value, so that the grid row index and grid column index of each grid in the two-dimensional grid are both integers, so as to facilitate the thinning of trajectory points through the two-dimensional grid.

[0170] After establishing the second global grid, the trajectory point coordinates of the global lane line are rounded down to obtain the first global trajectory point coordinates corresponding to each global lane line; and based on the second global grid, the first global trajectory point coordinates of each global lane line are thinned out to obtain the second global trajectory point coordinates corresponding to each global lane line. In a feasible implementation, step S3213 may include steps c1 to c3:

[0171] Step c1, for each target global lane line in the global lane lines, traverse the first global trajectory point coordinates of the target global lane line in sequence to obtain the target coordinates;

[0172] Step c2, based on the second global grid, obtaining the target element of the grid corresponding to the target coordinates;

[0173] Step c3, if the target element is the first preset value, the trajectory point coordinates corresponding to the target coordinates in the trajectory point coordinates of the target global lane line are added to the second global trajectory point coordinates corresponding to the target global lane line until the traversal of each first global trajectory point coordinate is completed.

[0174] In this embodiment, after obtaining the first global trajectory point coordinates, for each target global lane line in the global lane line, the first global trajectory point coordinates of the target global lane line are traversed in sequence to obtain the target coordinates, specifically, traversing in sequence according to the order of the first global trajectory point coordinates in the target lane line.

[0175] Next, based on the second global grid, the target element of the grid corresponding to the target coordinates is obtained. Specifically, the grid corresponding to the target coordinates is determined in the second global grid, that is, the grid row and grid column indexes of the grid corresponding to the target coordinates are consistent with the two coordinate values ​​of the target coordinates, the target element of the grid corresponding to the target coordinates is obtained, and it is determined whether the target element is the first preset value.

[0176] If the target element is the second preset value, the target coordinates are discarded; if the target element is the first preset value, the trajectory point coordinates corresponding to the target coordinates in the trajectory point coordinates of the target global lane line are added to the second global trajectory point coordinates corresponding to the target global lane line, that is, the trajectory point coordinates before rounding down corresponding to the target coordinates are added to the corresponding second global trajectory point coordinates, and the target element is set to the second preset value; until the traversal of each first global trajectory point coordinate is completed.

[0177] In this embodiment, the second global trajectory point coordinates are rounded to obtain the third global trajectory point coordinates corresponding to each global lane line. Then, the elements of each grid in the second global grid are reset, and the third global trajectory point coordinates of each global lane line are thinned based on the second global grid to obtain the global trajectory point coordinates corresponding to each global lane line. Among them, the thinning process of the third global trajectory point coordinates is similar to that of the first global trajectory point coordinates, which will not be repeated here. For each global lane line, its global trajectory point coordinates are the second global trajectory point coordinates corresponding to the third global trajectory point coordinates after thinning, that is, the global trajectory point coordinates are the trajectory point coordinates before rounding.

[0178] After obtaining the global trajectory point coordinates of each global lane line, the global horizontal coordinate span and the global vertical coordinate span are determined based on the global trajectory point coordinates. In a feasible implementation, step S322 may include steps S3221 to S3226:

[0179] Step S3221, determining the maximum global horizontal coordinate, the minimum global horizontal coordinate, the maximum global vertical coordinate and the minimum global vertical coordinate in the global trajectory point coordinates;

[0180] Step S3222, respectively rounding down and rounding off the maximum global horizontal coordinate, and taking the maximum value of the rounding results as the target maximum global horizontal coordinate;

[0181] Step S3223, respectively rounding down and rounding the minimum global horizontal coordinate, and taking the minimum value of the rounding results as the target minimum global horizontal coordinate;

[0182] Step S3224, respectively rounding down and rounding the maximum global ordinate, and taking the maximum value of the rounding results as the target maximum global ordinate;

[0183] Step S3225, respectively rounding down and rounding the minimum global ordinate, and taking the minimum value of the rounding results as the target minimum global ordinate;

[0184] Step S3226: determining the global horizontal coordinate span based on the target maximum global horizontal coordinate and the target minimum global horizontal coordinate, and determining the global vertical coordinate span based on the target maximum global vertical coordinate and the target minimum global vertical coordinate.

[0185] In this embodiment, the global abscissa and the global ordinate of each global trajectory point in the global trajectory point coordinates are compared respectively to determine the maximum global abscissa, the minimum global abscissa, the maximum global ordinate and the minimum global ordinate.

[0186] Next, the maximum global horizontal coordinate is rounded down and rounded up to obtain two rounding results of the maximum global horizontal coordinate, and the maximum value of the rounding results is used as the target maximum global horizontal coordinate. If the two rounding results are equal, the target maximum global horizontal coordinate is any one of the two rounding results.

[0187] The minimum global horizontal coordinate is rounded down and rounded up respectively to obtain two rounding results of the minimum global horizontal coordinate, and the minimum value of the rounding results is used as the target minimum global horizontal coordinate. If the two rounding results are equal, the target minimum global horizontal coordinate is any one of the two rounding results.

[0188] The maximum global ordinate is rounded down and rounded to obtain two rounding results of the maximum global ordinate, and the maximum value of the rounding results is used as the target maximum global ordinate. If the two rounding results are equal, the target maximum global ordinate is any one of the two rounding results.

[0189] The minimum global ordinate is rounded down and rounded to obtain two rounding results of the minimum global ordinate, and the minimum value of the rounding results is used as the target minimum global ordinate. If the two rounding results are equal, the target minimum global ordinate is any one of the two rounding results.

[0190] Then, the global horizontal coordinate span is determined based on the target maximum global horizontal coordinate and the target minimum global horizontal coordinate, and the global vertical coordinate span is determined based on the target maximum global vertical coordinate and the target minimum global vertical coordinate. The formulas of the global horizontal coordinate span and the global vertical coordinate span are:

[0191] m=max(round(y_global_max),int(y_global_max))- min(round(y_global_min), int(y_global_min)) + 1;

[0192] n=max(round(x_global_max), int(x_global_max)) - min(round(x_global_min), int(x_global_min)) + 1;

[0193] Among them, n is the global horizontal coordinate span, m is the global vertical coordinate span, x_global_max is the maximum global horizontal coordinate in the global trajectory point coordinates, x_global_min is the minimum global horizontal coordinate in the global trajectory point coordinates, y_global_max is the maximum global vertical coordinate in the global trajectory point coordinates, y_global_min is the minimum global vertical coordinate in the global trajectory point coordinates, round(x) means rounding x to the nearest integer, int(x) means rounding x down, max(x, y) means taking the larger value of x and y, and min(x, y) means taking the smaller value of x and y.

[0194] After obtaining the global horizontal coordinate span and the global vertical coordinate span, a first global grid is established based on the preset grid spacing, the global horizontal coordinate span and the global vertical coordinate span, wherein the first global grid is a grid of m rows and n columns, and the length and width of each grid in the first global grid are both the preset grid spacing.

[0195] Next, the global lane number corresponding to the global lane line is marked in each grid of the first global grid. Specifically, each global trajectory point coordinate is rounded to obtain a fourth global trajectory point coordinate, and the global trajectory point index corresponding to each global trajectory point coordinate is determined based on the fourth global trajectory point coordinate; based on each global trajectory point index, the global lane number corresponding to the global lane line is marked in each grid of the first global grid.

[0196] Specifically, the formula for the global trajectory point index is:

[0197] index_x = int(x) - int(x_global_min);

[0198] index_y = int(y) - int(y_global_min);

[0199] or

[0200] index_x = round(x) - int(x_global_min);

[0201] index_y = round(y) - int(y_global_min);

[0202] Among them, round(x) means rounding x to the nearest integer, int(x) means rounding x downward, x_global_min means the minimum value of the horizontal coordinate in the global trajectory point coordinates, y_global_min means the minimum value of the vertical coordinate in the global trajectory point coordinates, (index_x, index_y) is the global trajectory point index corresponding to the global trajectory point coordinates (x, y).

[0203] After obtaining the global trajectory point index, the global lane number corresponding to the global lane line is marked in each grid of the first global grid based on each global trajectory point index. That is, for a grid where there is no global lane number corresponding to the current global trajectory point, the global lane code corresponding to the global trajectory point with the same global trajectory point index and global grid index (global grid row index and global grid column index) is marked in the grid.

[0204] Specifically, for each target global trajectory point index in the global trajectory point index, obtain the global lane number of the global lane line to which the global trajectory point corresponding to the target global trajectory point index belongs, and determine the grid corresponding to the target global trajectory point index in the first global grid; the row index of the grid corresponding to the target global trajectory point index is the same as the index_x of the target global trajectory point index, and the column index of the grid corresponding to the target global trajectory point index is the same as the index_y of the target global trajectory point index. If the global lane number corresponding to the target global trajectory point index does not exist in the element of the grid corresponding to the target global trajectory point index, then add the global lane number corresponding to the target global trajectory point index to the element of the grid corresponding to the target global trajectory point index.

[0205] It should be noted that if the global lane number corresponding to the target global trajectory point index exists in the element of the grid corresponding to the target global trajectory point index, the global lane number is not added to the grid corresponding to the target global trajectory point index to avoid duplication of the global lane number in the element.

[0206] In this embodiment, after marking the global lane number in the first global grid, based on the vehicle coordinates of the traffic vehicles in each image frame, the target grid corresponding to each traffic vehicle is determined in the first global grid. In a feasible implementation, step S330 may include steps S331 to S333:

[0207] Step S331, rounding the vehicle coordinates of each traffic vehicle to obtain rounded vehicle coordinates;

[0208] Step S332, determining the vehicle index corresponding to each traffic vehicle based on the rounded vehicle coordinates;

[0209] Step S333: determining a target grid corresponding to each traffic vehicle in the first global grid based on the vehicle index.

[0210] In this embodiment, after marking the global lane number in the first global grid, the vehicle coordinates of the traffic vehicles contained in each frame of a preset number of continuous image frames are obtained, the vehicle coordinates of each traffic vehicle obtained are rounded to obtain the rounded vehicle coordinates, and the vehicle index corresponding to each traffic vehicle is determined based on the rounded vehicle coordinates, wherein the formula of the vehicle index is:

[0211] index_x = int(obj_x) - int(x_global_min);

[0212] index_y = int(obj_y) - int(y_global_min);

[0213] Among them, int(x) means rounding down x, x_global_min means the minimum value of the horizontal coordinate in the global trajectory point coordinates, y_global_min means the minimum value of the vertical coordinate in the global trajectory point coordinates, and (index_x, index_y) is the vehicle index corresponding to the vehicle coordinates (obj_x, obj_y).

[0214] After obtaining the vehicle index, the target grid corresponding to each traffic vehicle is determined in the first global grid based on the vehicle index. Specifically, for each traffic vehicle, the grid whose global grid index is the vehicle index is queried in the first global grid as the target grid of the traffic vehicle. The global row index of the target grid is index_x in the vehicle index, and the global column index of the target grid is index_y in the vehicle index.

[0215] In this embodiment, after the target grid is determined, the target lane number corresponding to each vehicle is determined based on the target grid. Specifically, for each vehicle, the element of the target grid corresponding to the vehicle is obtained, and the target lane number corresponding to the vehicle is determined based on the global lane number in the element. For example, the element is a list, and the list includes the global lane number.

[0216] In a feasible implementation, step S340 may include steps S341 to S344:

[0217] Step S341, determining whether there is a first target grid whose element is a non-global lane number in the target grid;

[0218] Step S342: if the first target grid exists, determining multiple lane line segments corresponding to each global lane line based on a preset sliding window;

[0219] Step S343, based on the vehicle coordinates, determining the distances between the first traffic vehicle corresponding to the first target grid and each lane segment, and obtaining the minimum distance among the distances;

[0220] Step S344: If the minimum distance is less than a preset distance, the global lane number of the global lane line corresponding to the minimum distance is used as the first target lane number corresponding to the first traffic vehicle.

[0221] In this embodiment, after determining the target grid, elements of each target grid are obtained, and based on the elements of the target grid, it is determined whether there is a first target grid in the target grid whose elements are non-global lane numbers. For example, when establishing the first global grid, the elements of the grids in the first global grid are initialized to a first preset value of 0, then it is determined whether there is a first target grid in the target grid whose elements are the first preset value of 0.

[0222] If there is a first target grid, multiple lane segments corresponding to each global lane line are determined based on a preset sliding window. For example, taking the global lane line lane1 as an example, lane1 is a trajectory point sequence composed of several global trajectory points including point1, point2, point3, ..., pointN. Each point on lane1 can be taken one by one by sliding the window. For the trajectory point point_i, the previous point point_i-1 is taken, and point_i and point_i-1 constitute a lane segment, or the first two points point_i-1 are taken, and point_i, point_i-1, and point_i-2 constitute a lane segment to obtain multiple lane segments of the global lane line lane1. The same processing is performed on each global lane line to finally obtain multiple lane segments of each global lane line.

[0223] After obtaining multiple lane segments of each global lane line, the distance between the first traffic vehicle and each lane segment is calculated according to the vehicle coordinates and the global trajectory point coordinates contained in the lane segment, and all the obtained distances are compared to obtain the minimum distance among all the distances.

[0224] In this embodiment, after the minimum distance is obtained, it is determined whether the minimum distance is less than the preset distance. If the minimum distance is less than the preset distance, the global lane number of the global lane line corresponding to the minimum distance is used as the first target lane number corresponding to the first traffic vehicle. Specifically, the global lane line to which the lane line segment corresponding to the minimum distance belongs is obtained, and the global lane number of the global lane line is used as the first target lane number to associate the first traffic vehicle with the global lane line closest to it, establish a binding relationship between the first traffic vehicle and the lane, and improve the accuracy of the association between the vehicle and the lane.

[0225] Among them, the preset distance can be reasonably set. If the minimum distance is greater than or equal to the preset distance, it is considered that the first traffic vehicle has no lane, and the binding lane of the first traffic vehicle is determined to be a free lane.

[0226] In a feasible implementation manner, step S340 may further include steps S345-S346:

[0227] Step S345, obtaining a second target grid whose elements in the target grid are global lane numbers;

[0228] Step S346: Determine a second target lane number of the second target grid corresponding to the second traffic vehicle based on the global lane number of the second target grid.

[0229] In this embodiment, after determining the target grid, the elements of each target grid are obtained, and based on the elements of the target grid, it is determined whether there is a second target grid in the target grid whose elements are global lane numbers. For example, when establishing the first global grid, the elements of the grid in the first global grid are initialized to a first preset value of 0. When marking the global lane number corresponding to the global lane line in the grid, the elements of the grid are updated to the corresponding global lane number, and then it is determined whether there is a second target grid in the target grid whose elements are non-zero.

[0230] When a second target grid exists, a second target grid whose element in the target grid is a global lane number is obtained, and based on the global lane number of the second target grid, a second target lane number corresponding to the second traffic vehicle of the second target grid is determined.

[0231] Specifically, for each grid in the second target grid, if the element of the grid is a global lane number, the global lane number is used as the second target lane number corresponding to the second traffic vehicle of the grid; if the element of the grid is multiple global lane numbers, the first global lane number among the multiple global lane numbers can be used as the second target lane number corresponding to the second traffic vehicle, or any one of the multiple global lane numbers can be used as the second target lane number corresponding to the second traffic vehicle.

[0232] This embodiment can accurately determine the target lane number of the traffic vehicle through the global lane number in the element of the second target grid, so as to accurately establish the binding relationship between the traffic vehicle and the lane, thereby improving the accuracy of the association between the vehicle and the lane.

[0233] In a feasible implementation manner, after step S341, steps d1 to d5 may also be included:

[0234] Step d1, if there is a first target grid whose element is a non-global lane number in the target grid, a third target grid is determined in the first global grid based on a preset number of grids and the first target grid;

[0235] Step d2, obtaining the target global lane number in each element of the third target grid;

[0236] Step d3, determining multiple lane line segments of the global lane line corresponding to each target global lane number based on a preset sliding window;

[0237] Step d4, determining the distance between the first traffic vehicle and each lane segment based on the vehicle coordinates of the first traffic vehicle, and obtaining the minimum distance among the distances;

[0238] Step d5: If the minimum distance is less than a preset distance, the global lane number of the global lane line corresponding to the minimum distance is used as the first target lane number.

[0239] In this embodiment, after determining the target grid, elements of each target grid are obtained, and based on the elements of the target grid, it is determined whether there is a first target grid in the target grid whose elements are non-global lane numbers. For example, when establishing the first global grid, the elements of the grids in the first global grid are initialized to a first preset value of 0, then it is determined whether there is a first target grid in the target grid whose elements are the first preset value of 0.

[0240] If there is a first target grid whose element is a non-global lane number in the target grid, a third target grid is determined in the first global grid based on the preset number of grids and the first target grid. Specifically, a grid separated from the first target grid by the preset number of grids is first determined in the first global grid, and a grid in an area enclosed by the grid separated by the preset number of grids is used as the third target grid; Figure 7 As shown, the first target grid is the grid corresponding to the traffic vehicle agent, and the third target grid includes the first target grid and grids with a preset number of grids around the first target grid. If the preset number of grids is 1, the third target grid includes the first target grid and the grids in the 25-grid area formed by the surrounding 24 grids. If the preset number of grids is 0, the third target grid includes the first target grid and the grids in the 9-grid area formed by the surrounding 8 grids.

[0241] In this embodiment, after the third target grid is obtained, the target global lane number in the elements of each third target grid is obtained. Specifically, the elements of each third target grid are obtained, and the target global lane number is determined based on the global lane number in the lane number list corresponding to the obtained element.

[0242] After obtaining the target global lane number, multiple lane segments of the global lane line corresponding to each target global lane number are determined based on a preset sliding window. For example, taking the global lane line of the target global lane number lane1 as an example, lane1 is a trajectory point sequence composed of a number of global trajectory points including point1, point2, point3, ..., pointN. Each point on lane1 can be taken one by one using the sliding window. For the trajectory point point_i, the previous point point_i-1 is taken, and point_i and point_i-1 constitute a lane segment, or the first two points point_i-1 are taken, and point_i, point_i-1, and point_i-2 constitute a lane segment to obtain multiple lane segments of the global lane line lane1. The same processing is performed on the global lane line corresponding to each target global lane number, and finally multiple lane segments of the global lane line corresponding to each target global lane number are obtained.

[0243] After obtaining multiple lane segments corresponding to the global lane line of each target global lane number, the distance between the first traffic vehicle and each lane segment is calculated according to the vehicle coordinates and the global trajectory point coordinates contained in the lane segment, and all the obtained distances are compared to obtain the minimum distance among all distances.

[0244] In this embodiment, after the minimum distance is obtained, it is determined whether the minimum distance is less than the preset distance. If the minimum distance is less than the preset distance, the target global lane number corresponding to the minimum distance is used as the first target lane number corresponding to the first traffic vehicle. Specifically, the global lane line to which the lane line segment corresponding to the minimum distance belongs is obtained, and the target global lane number of the global lane line is used as the first target lane number, so as to associate the first traffic vehicle with the global lane line closest to it, establish a binding relationship between the first traffic vehicle and the lane, and improve the accuracy of the association between the vehicle and the lane.

[0245] Among them, the preset distance can be reasonably set. If the minimum distance is greater than or equal to the preset distance, it is considered that the first traffic vehicle has no lane, and the binding lane of the first traffic vehicle is determined to be a free lane.

[0246] It should be noted that the lane binding information includes the target lane number corresponding to the traffic vehicle and the free lane, that is, when the vehicle's lane binding is a free lane, the lane binding information is the free lane information, and the first target lane number corresponding to the first traffic vehicle is the lane binding information of the first traffic vehicle.

[0247] In this embodiment, after performing the above-mentioned processing on a preset number of continuous image frames, the lane binding information of each vehicle in each image frame of the continuous image frames can be obtained, and when the lane change of the vehicle is identified, the current image frame is selected from the continuous image frames, wherein the current image frame can be selected in sequence from the continuous image frames, and the current image frame exists between the second image frame and the third image frame, that is, there are a sufficient number of image frames before and after the current image frame in the continuous image frames so that the second image frame and the third image frame can be obtained in the continuous image frames.

[0248] In this embodiment, after determining the current image frame, the first image frame before the current image frame is obtained in the continuous image frames, that is, the first image frame is the previous frame image of the current image frame, and then, the first vehicle in the current image frame and the second vehicle in the first image frame are obtained, and the intersection between the first vehicle and the second vehicle is taken as the target vehicle.

[0249] Step S420, based on the lane binding information of each vehicle in the continuous image frames, determining whether the target vehicle meets the preset lane change detection condition;

[0250] In this embodiment, after determining the target vehicle, based on the lane binding information of each vehicle in the continuous image frames, it is determined whether the target vehicle meets the preset lane change detection condition. Specifically, in the lane binding information corresponding to each vehicle in the continuous image frames, the fourth lane binding information corresponding to the target vehicle in the current image frame and the first lane binding information corresponding to the target vehicle in the first image frame are obtained. If the fourth lane binding information is free lane information (for example, -1), or the first lane binding information is the same as the fourth lane binding information, it is determined that the target vehicle has not changed lanes, that is, the preset lane change detection condition is not met. If the fourth lane binding information is not free lane information (for example, the fourth lane binding information is a lane number), and the first lane binding information is different from the fourth lane binding information, it is determined that the target vehicle meets the preset lane change detection condition.

[0251] Step S430, if the target vehicle meets the preset lane change detection condition, acquiring a first preset number of second image frames before the first image frame and a second preset number of third image frames after the current image frame in the continuous image frames;

[0252] In this embodiment, if the target vehicle meets the preset lane change detection conditions, a first preset number of second image frames before the first image frame are obtained in the continuous image frames, and a second preset number of third image frames after the current image frame are obtained, wherein the first preset number and the second preset number can be reasonably set, for example, the first preset number is 15, 20, etc., and the second preset number is 15, 20, etc.

[0253] Step S440: determining whether the target vehicle has changed lanes based on the lane binding information, the second image frame, and the third image frame.

[0254] After acquiring the second image frame and the third image frame, determine whether the target vehicle has changed lanes based on the lane binding information, the second image frame and the third image frame. Specifically, the first lane binding information corresponding to the target vehicle in the first image frame, the second lane binding information corresponding to the target vehicle in each second image frame, the fourth lane binding information corresponding to the target vehicle in the current image frame, and the fifth lane binding information corresponding to the target vehicle in each third image frame can be obtained from the lane binding information. Based on the first lane binding information and the second lane binding information, determine the historical lane stability probability corresponding to the target vehicle; based on the fourth lane binding information and the fifth lane binding information, determine the future lane stability probability corresponding to the target vehicle; and based on the historical lane stability probability and the future lane stability probability, determine whether the target vehicle has changed lanes.

[0255] The lane determination method proposed in this embodiment obtains the first vehicle corresponding to the current image frame in the continuous image frames, and the second vehicle corresponding to the first image frame before the current image frame, and takes the intersection between the first vehicle and the second vehicle as the target vehicle; then, based on the lane binding information of each vehicle in the continuous image frames, determines whether the target vehicle meets the preset lane change detection condition; then, if the target vehicle meets the preset lane change detection condition, obtains a first preset number of second image frames before the first image frame and a second preset number of third image frames after the current image frame in the continuous image frames; then, based on the lane binding information, the second image frame and the third image frame, determines whether the target vehicle has changed lanes. When it is determined that the target vehicle meets the preset lane change detection condition through the lane binding information of the vehicle in the continuous image frames, the lane change recognition of the target vehicle is performed through a certain number of continuous image frames before and after the current image frame, which can greatly reduce the number of trajectory points of the original lane trajectory points, reduce the jitter problem between consecutive different frames, ensure the reliability of the lane trajectory, and improve the accuracy of vehicle lane change recognition.

[0256] In a feasible implementation, step S440 may include steps S441 to S443:

[0257] Step S441, determining a historical lane stability probability corresponding to the target vehicle based on the lane binding information and the second image frame;

[0258] Step S442, determining a future lane stability probability corresponding to the target vehicle based on the lane binding information and the third image frame;

[0259] Step S443: determining whether the target vehicle has changed lanes based on the historical lane stability probability and the future lane stability probability.

[0260] In this embodiment, after acquiring the second image frame and the third image frame, the historical lane stability probability corresponding to the target vehicle is determined based on the lane binding information and the second image frame. Specifically, the first lane binding information corresponding to the target vehicle in the first image frame and the second lane binding information corresponding to the target vehicle in each second image frame can be obtained from the lane binding information, and the historical lane stability probability corresponding to the target vehicle is determined based on the first lane binding information and the second lane binding information.

[0261] At the same time, based on the lane binding information and the third image frame, the future lane stability probability corresponding to the target vehicle is determined. Specifically, the fourth lane binding information corresponding to the target vehicle in the current image frame and the fifth lane binding information corresponding to the target vehicle in each third image frame can be obtained from the lane binding information. The future lane stability probability corresponding to the target vehicle is determined based on the fourth lane binding information and the fifth lane binding information.

[0262] After obtaining the historical lane stability probability and the future lane stability probability, determine whether the target vehicle has changed lanes based on the historical lane stability probability and the future lane stability probability. Specifically, it can be determined whether the historical lane stability probability is greater than a first preset probability, and whether the future lane stability probability is greater than a second preset probability; if the historical lane stability probability is greater than the first preset probability, and the future lane stability probability is greater than the second preset probability, then it is determined that the target vehicle has changed lanes.

[0263] Among them, the first preset probability and the second preset probability can be set reasonably.

[0264] The lane determination method proposed in this embodiment determines the historical lane stability probability corresponding to the target vehicle based on the lane binding information and the second image frame; then determines the future lane stability probability corresponding to the target vehicle based on the lane binding information and the third image frame; and then determines whether the target vehicle has changed lanes based on the historical lane stability probability and the future lane stability probability. Whether the vehicle has changed lanes can be accurately judged by the historical lane stability probability and the future lane stability probability, thereby further improving the accuracy of vehicle lane change recognition.

[0265] In a feasible implementation, step S441 may include steps S4441 to S4443:

[0266] Step S4441, based on the lane binding information, obtaining first lane binding information corresponding to the target vehicle in the first image frame, and obtaining second lane binding information corresponding to the target vehicle in each second image frame;

[0267] Step S4442: updating a first count value based on the first channel binding information and the second channel binding information;

[0268] Step S4443, based on the first count value and the first preset number, determine the historical lane stability probability corresponding to the target vehicle.

[0269] In this embodiment, after acquiring the second image frame and the third image frame, based on the lane binding information, the first lane binding information corresponding to the target vehicle in the first image frame is acquired, and the second lane binding information corresponding to the target vehicle in each second image frame is acquired, that is, the first lane binding information corresponding to the target vehicle is acquired from the lane binding information of each vehicle in the first image frame, and the second lane binding information corresponding to the target vehicle is acquired from the lane binding information of each vehicle in the second image frame.

[0270] After obtaining the first channel binding information and the second channel binding information, the first count value is updated based on the first channel binding information and the second channel binding information; in a feasible implementation manner, step S4442 may include steps e1 to e3:

[0271] Step e1, determining whether the first lane binding information is free lane information;

[0272] Step e2: if the first lane binding information is not free lane information, obtaining a first global lane number corresponding to the first lane binding information;

[0273] Step e3: determine a first occurrence number of the first global lane number in the second lane binding information, and update a first count value based on the first occurrence number.

[0274] In this embodiment, it is first determined whether the first lane binding information is free lane information (for example -1). If the first lane binding information is not free lane information, the first lane binding information is a lane number, and then the first global lane number corresponding to the first lane binding information is obtained.

[0275] After obtaining the first global lane number, each second lane binding information is compared with the first global lane number, and the first number of occurrences of the first global lane number in the second lane binding information is counted, and the first count value is updated based on the first number of occurrences. Specifically, the first number of occurrences is added to the first count value to obtain an updated first count value. For example, the first count value is an initial value of 0, and the first number of occurrences is 10, then the updated first count value is 10.

[0276] After the first count value is obtained, the historical lane stability probability corresponding to the target vehicle is determined based on the first count value and the first preset number. Specifically, the historical lane stability probability=the first count value / the first preset number.

[0277] In a feasible implementation manner, after step e1, steps e4 to e7 may also be included:

[0278] Step e4: if the first lane binding information is free lane information, obtaining third lane binding information of the first image frame corresponding to the previous image frame;

[0279] Step e5, if the third lane binding information is the second global lane number, when the second global lane number is the same as the fourth lane binding information corresponding to the target vehicle in the current image frame, updating the first count value;

[0280] Step e6, taking the second global lane number as the first lane binding information, taking the previous frame of image as the first image frame, and returning to execute the step of obtaining the first global lane number corresponding to the first lane binding information if the first lane binding information is not free lane information;

[0281] Step e7, if the third lane binding information is free lane information, the previous frame image is used as the first image frame, and the step of returning to obtain the third lane binding information of the first image frame corresponding to the previous frame image in the second image frame is executed.

[0282] In this embodiment, if the first lane binding information is free lane information, that is, the first lane binding information is -1, then the third lane binding information of the first image frame corresponding to the previous frame image is obtained, that is, the first image frame corresponding to the previous frame image is obtained in the continuous image frames, and the lane binding information of each vehicle in the previous frame image is obtained according to the lane binding information, and the third lane binding information of the target vehicle is queried according to the lane binding information of each vehicle in the previous frame image.

[0283] After obtaining the third lane binding information, determine whether the third lane binding information is a lane number or a free lane information. If the third lane binding information is the second global lane number, query the fourth lane binding information of the target vehicle in the lane binding information of each vehicle in the current image frame. If the second global lane number and the fourth lane binding information are the same, update the first count value, that is, add 1 to the first count value.

[0284] The second global lane number is used as the first lane binding information, the previous frame image is used as the first image frame, and the process returns to execute step e2 to update the first count value.

[0285] If the third lane binding information is free lane information, the previous frame image is used as the first image frame, and the process returns to step e4.

[0286] The lane determination method proposed in this embodiment obtains the first lane binding information corresponding to the target vehicle in the first image frame based on the lane binding information, and obtains the second lane binding information corresponding to the target vehicle in each second image frame; then updates the first count value based on the first lane binding information and the second lane binding information; then determines the historical lane stability probability corresponding to the target vehicle based on the first count value and the first preset number, and can accurately obtain the historical lane stability probability based on the first lane binding information and the second lane binding information, thereby further improving the accuracy of vehicle lane change recognition.

[0287] In a feasible implementation, step S442 may include steps S4421 to S4423:

[0288] Step S4421, obtaining the fifth lane-binding information corresponding to the target vehicle in each third image frame, and the fourth lane-binding information corresponding to the target vehicle in the current image frame;

[0289] Step S4422, determining a second occurrence number of the fourth channel-binding information in the fifth channel-binding information, and updating a second count value based on the second occurrence number;

[0290] Step S4423: determining the future lane stability probability corresponding to the target vehicle based on the second preset number and the second count value.

[0291] In this embodiment, after acquiring the second image frame and the third image frame, based on the lane binding information, the fifth lane binding information corresponding to the target vehicle in the third image frame is acquired, and the fourth lane binding information corresponding to the target vehicle in the current image frame is acquired, that is, the fifth lane binding information corresponding to the target vehicle is acquired in the lane binding information of each vehicle in the third image frame, and the fourth lane binding information corresponding to the target vehicle is acquired in the lane binding information of each vehicle in the current image frame.

[0292] After obtaining the fourth channel binding information and the fifth channel binding information, each fifth channel binding information is compared with the fourth channel binding information, and the second occurrence number of the fourth channel binding information in the fourth channel binding information is counted, and the second count value is updated based on the second occurrence number. Specifically, the second occurrence number is added to the second count value to obtain an updated second count value. For example, the second count value is an initial value of 0, and the second occurrence number is 10, then the updated second count value is 10.

[0293] After the second count value is obtained, the future lane stability probability corresponding to the target vehicle is determined based on the second count value and the second preset number. Specifically, the future lane stability probability=the second count value / the second preset number.

[0294] The lane determination method proposed in this embodiment obtains the fifth lane-binding information corresponding to the target vehicle in each third image frame, and the fourth lane-binding information corresponding to the target vehicle in the current image frame; then determines the second number of occurrences of the fourth lane-binding information in the fifth lane-binding information, and updates the second count value based on the second number of occurrences; and then determines the future lane stability probability corresponding to the target vehicle based on the second preset number and the second count value. The future lane stability probability can be accurately obtained based on the fourth lane-binding information and the fifth lane-binding information, thereby further improving the accuracy of vehicle lane change recognition.

[0295] In a feasible implementation, step S443 may include steps S4431-S4432:

[0296] Step S4431, determining whether the historical lane stability probability is greater than a first preset probability, and whether the future lane stability probability is greater than a second preset probability;

[0297] Step S4432: If the historical lane stability probability is greater than the first preset probability, and the future lane stability probability is greater than the second preset probability, it is determined that the target vehicle has changed lanes.

[0298] In this embodiment, after obtaining the historical lane stability probability and the future lane stability probability, it is determined whether the historical lane stability probability is greater than the first preset probability, and whether the future lane stability probability is greater than the second preset probability; if the historical lane stability probability is greater than the first preset probability, and the future lane stability probability is greater than the second preset probability, it is determined that the target vehicle has changed lanes.

[0299] The first preset probability and the second preset probability can be reasonably set. For example, the first preset probability is 0.6, and the second preset probability is 0.6.

[0300] In a feasible implementation, step S4432 may include steps f1 to f3:

[0301] Step f1, if the historical lane stability probability is greater than the first preset probability, and the future lane stability probability is greater than the second preset probability, acquiring a third preset number of third image frames before the previous image frame in the continuous image frames;

[0302] Step f2, determining whether the target vehicle changes lanes in each third image frame;

[0303] Step f3: If the target vehicle does not change lanes in each third image frame, it is determined that the target vehicle has changed lanes.

[0304] In this embodiment, if the historical lane stability probability is greater than the first preset probability, and the future lane stability probability is greater than the second preset probability, a third image frame of a third preset number before the previous image frame is obtained in the continuous image frames, wherein the third preset number is less than the first preset number, and the third preset number is less than the second preset number, for example, the first preset number is 15, the second preset number is 15, and the third preset number is 9.

[0305] After acquiring the third image frame, determine whether the target vehicle changes lanes in each third image frame, wherein the method for determining whether the target vehicle changes lanes in each third image frame is the same as the method for determining whether the target vehicle changes lanes in the above step (whether the target vehicle changes lanes in the current image frame), and will not be repeated here.

[0306] If the target vehicle does not change lanes in each third image frame, it is determined that the target vehicle meets the stability condition, and then it is determined that the target vehicle has changed lanes.

[0307] The lane determination method proposed in this embodiment determines whether the historical lane stability probability is greater than a first preset probability, and whether the future lane stability probability is greater than a second preset probability; then if the historical lane stability probability is greater than the first preset probability, and the future lane stability probability is greater than the second preset probability, it is determined that the target vehicle has changed lanes. This method can accurately judge whether the target vehicle has changed lanes based on the historical lane stability probability and the future lane stability probability, thereby further improving the accuracy of vehicle lane change recognition.

[0308] The lane determination device provided in the embodiment of the present application adopts the lane determination method in the above embodiment, which can solve the technical problem of how to improve the accuracy of vehicle lane change recognition. Compared with the prior art, the beneficial effects of the lane determination device provided in the embodiment of the present application are the same as the beneficial effects of the lane determination method provided in the above embodiment, and the other technical features in the lane determination device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0309] The present application provides a lane determination device, which includes: at least one processor; and 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 determination method in the above-mentioned embodiment 1.

[0310] Reference below Figure 8, which shows a schematic diagram of the structure of a lane determination device suitable for implementing an embodiment of the present application. The lane determination device in the embodiment of the present application may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 8 The lane determination device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0311] like Figure 8 As shown, the lane determination device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the lane determination device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the lane determination device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a lane determination device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or provided instead.

[0312] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0313] The lane determination device provided by the present application adopts the lane determination method in the above embodiment, which can solve the technical problem of how to improve the accuracy of vehicle lane change recognition. Compared with the prior art, the beneficial effects of the lane determination device provided by the present application are the same as the beneficial effects of the lane determination method provided by the above embodiment, and the other technical features in the lane determination device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0314] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0315] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0316] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, the computer-readable program instructions being used to execute the lane determination method in the above-mentioned embodiment.

[0317] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.

[0318] The computer-readable storage medium may be included in the lane determination device; or may exist independently without being assembled into the lane determination device.

[0319] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the lane determination device, the lane determination device: obtains the first vehicle corresponding to the current image frame in the continuous image frames, and the second vehicle corresponding to the first image frame before the current image frame, and takes the intersection between the first vehicle and the second vehicle as the target vehicle; determines whether the target vehicle meets the preset lane change detection condition based on the lane binding information of each vehicle in the continuous image frames; if the target vehicle meets the preset lane change detection condition, obtains a first preset number of second image frames before the first image frame and a second preset number of third image frames after the current image frame in the continuous image frames; and determines whether the target vehicle changes lanes based on the lane binding information, the second image frame and the third image frame.

[0320] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0321] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0322] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0323] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above lane determination method, and can solve the technical problem of how to improve the accuracy of vehicle lane change recognition. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the lane determination method provided in the above embodiment, and will not be repeated here.

[0324] An embodiment of the present application provides a computer program product, including a computer program, which implements the steps of the lane determination method as described above when executed by a processor.

[0325] The computer program product provided in this application can solve the technical problem of how to improve the accuracy of vehicle lane change recognition. Compared with the prior art, the beneficial effects of the computer program product provided in the embodiment of this application are the same as the beneficial effects of the lane determination method provided in the above embodiment, which will not be repeated here.

[0326] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A lane determination method, characterized in that: The lane determination method comprises the following steps: Acquire a first vehicle corresponding to a current image frame in the continuous image frames, and a second vehicle corresponding to a first image frame before the current image frame, and use the intersection of the first vehicle and the second vehicle as a target vehicle; Based on the lane binding information of each vehicle in the continuous image frames, determining whether the target vehicle meets the preset lane change detection condition, wherein if the fourth lane binding information of the target vehicle in the current image frame is a lane number, if the first lane binding information and the fourth lane binding information of the target vehicle in the first image frame are different, then it is determined that the target vehicle meets the preset lane change detection condition; If the target vehicle meets the preset lane change detection condition, acquiring a first preset number of second image frames before the first image frame and a second preset number of third image frames after the current image frame in the continuous image frames; Based on the lane binding information, the second image frame and the third image frame, it is determined whether the target vehicle has changed lanes.

2. The lane determination method according to claim 1, characterized in that: The determining whether the target vehicle has changed lanes based on the lane binding information, the second image frame, and the third image frame includes: Based on the lane binding information and the second image frame, determining a historical lane stability probability corresponding to the target vehicle, when a lane number exists in the first lane binding information, the historical lane stability probability is determined based on the number of occurrences of a first global lane number in the second lane binding information, the second lane binding information is the lane binding information corresponding to the target vehicle in the second image frame, and the first global lane number is the lane number corresponding to the first lane binding information; Based on the lane binding information and the third image frame, determining a future lane stability probability corresponding to the target vehicle, wherein the future lane stability probability is determined based on the number of occurrences of fourth lane binding information in fifth lane binding information, the fifth lane binding information is the lane binding information corresponding to the target vehicle in the third image frame, and the fourth lane binding information is the lane binding information corresponding to the target vehicle in the current image frame; Based on the historical lane stability probability and the future lane stability probability, it is determined whether the target vehicle has a lane change behavior.

3. The lane determination method according to claim 2, characterized in that: The determining, based on the lane binding information and the second image frame, a historical lane stability probability corresponding to the target vehicle includes: Based on the lane-binding information, first lane-binding information corresponding to the target vehicle in the first image frame is obtained, and second lane-binding information corresponding to the target vehicle in each second image frame is obtained; Based on the first lane binding information and the second lane binding information, updating a first count value, wherein the first count value is an initial value, and the updated first count value is the number of occurrences of the first global lane number in the second lane binding information; Based on the updated first count value and the first preset number, a historical lane stability probability corresponding to the target vehicle is determined.

4. The lane determination method according to claim 3, characterized in that: The updating of the first count value based on the first channel binding information and the second channel binding information includes: Determining whether the first lane binding information is free lane information; If the first lane binding information is not free lane information, obtaining a first global lane number corresponding to the first lane binding information; A first occurrence number of the first global lane number in the second lane binding information is determined, and a first count value is updated based on the first occurrence number.

5. The lane determination method according to claim 4, characterized in that: After determining whether the first lane binding information is free lane information, the method further includes: If the first lane binding information is free lane information, obtaining the third lane binding information of the first image frame corresponding to the previous image frame; If the third lane-binding information is the second global lane number, then when the second global lane number is the same as the fourth lane-binding information corresponding to the target vehicle in the current image frame, the first count value is updated; The second global lane number is used as the first lane binding information, the previous frame image is used as the first image frame, and if the first lane binding information is not free lane information, the step of obtaining the first global lane number corresponding to the first lane binding information is returned; If the third lane binding information is free lane information, the previous frame image is used as the first image frame, and the step of returning to execute obtaining the third lane binding information of the first image frame corresponding to the previous frame image in the second image frame.

6. The lane determination method according to claim 2, characterized in that: The determining, based on the lane binding information and the third image frame, a future lane stability probability corresponding to the target vehicle includes: Acquire the fifth lane-binding information corresponding to the target vehicle in each third image frame, and the fourth lane-binding information corresponding to the target vehicle in the current image frame; Determine a second occurrence number of the fourth channel-binding information in the fifth channel-binding information, and update a second count value based on the second occurrence number; Based on the second preset number and the second count value, a future lane stabilization probability corresponding to the target vehicle is determined.

7. The lane determination method according to any one of claims 2 to 6, characterized in that: The determining whether the target vehicle has a lane change behavior based on the historical lane stability probability and the future lane stability probability includes: Determining whether the historical lane stability probability is greater than a first preset probability, and whether the future lane stability probability is greater than a second preset probability; If the historical lane stability probability is greater than the first preset probability, and the future lane stability probability is greater than the second preset probability, it is determined that the target vehicle has a lane change behavior.

8. The lane determination method according to claim 7, characterized in that: If the historical lane stability probability is greater than the first preset probability, and the future lane stability probability is greater than the second preset probability, determining that the target vehicle has a lane change behavior includes: If the historical lane stability probability is greater than the first preset probability, and the future lane stability probability is greater than the second preset probability, acquiring a third preset number of third image frames before the previous image frame in the continuous image frames; Determining whether the target vehicle changes lanes in each third image frame; If the target vehicle does not change lanes in each third image frame, it is determined that the target vehicle has changed lanes.

9. A lane determination device, characterized in that: The lane determination device includes: a memory, a processor, and a lane determination program stored in the memory and executable on the processor. When the lane determination program is executed by the processor, the steps of the lane determination method according to any one of claims 1 to 8 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a lane determination program, which, when executed by a processor, implements the steps of the lane determination method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Vehicle lane change detection method and device, electronic equipment and readable storage medium

    CN116168325A