WO2021056341A1 - Lane line fusion method, lane line fusion apparatus, vehicle, and storage medium - Google Patents

Lane line fusion method, lane line fusion apparatus, vehicle, and storage medium Download PDF

Info

Publication number
WO2021056341A1
WO2021056341A1 PCT/CN2019/108208 CN2019108208W WO2021056341A1 WO 2021056341 A1 WO2021056341 A1 WO 2021056341A1 CN 2019108208 W CN2019108208 W CN 2019108208W WO 2021056341 A1 WO2021056341 A1 WO 2021056341A1
Authority
WO
WIPO (PCT)
Prior art keywords
lane line
data
initial
historical
line data
Prior art date
Application number
PCT/CN2019/108208
Other languages
French (fr)
Chinese (zh)
Inventor
许睿
陈竞
Original Assignee
深圳市大疆创新科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to CN201980033842.8A priority Critical patent/CN112154449A/en
Priority to PCT/CN2019/108208 priority patent/WO2021056341A1/en
Publication of WO2021056341A1 publication Critical patent/WO2021056341A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/56Context or environment of the image exterior to a vehicle by using sensors mounted on the vehicle
    • G06V20/588Recognition of the road, e.g. of lane markings; Recognition of the vehicle driving pattern in relation to the road
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/25Fusion techniques

Definitions

  • This application relates to the field of vehicle assisted driving and automatic driving, and in particular to a lane line fusion method, a lane line fusion device, a vehicle, and a storage medium.
  • Lane line detection is one of the main functions that assisted driving (ADAS) and autonomous driving technologies need to achieve. Based on the detected lane lines, a movable platform, such as a vehicle's driving plan, can be planned to ensure safe and reliable driving.
  • the existing lane line detection method is mainly based on the environment image around the current vehicle, and cannot integrate the historical lane line detected at the previous time to optimize the current lane line, and cannot better cope with the driving scene with bifurcated intersections. Therefore, the existing lane line detection has poor versatility and insufficient accuracy.
  • this manual provides a lane line fusion method, a lane line fusion device, a vehicle and a storage medium, which are designed to solve the problem that the existing lane line detection cannot better deal with driving scenarios with bifurcated intersections, and its versatility is poor , Technical problems such as insufficient accuracy.
  • this specification provides a lane line detection method, including:
  • the fitting optimization includes: performing fitting optimization according to the initial lane line data and historical lane line data in the historical lane line set to obtain a target lane line set, and the fitting optimization is used to make the target lane
  • the line set includes lane lines that are not parallel to each other.
  • this specification provides a lane line detection device, including a sensor and a processor
  • the sensor is used to obtain an image of the environment around the movable platform
  • the processor is configured to implement the following steps:
  • the fitting optimization includes: performing fitting optimization according to the initial lane line data and historical lane line data in the historical lane line set to obtain a target lane line set, and the fitting optimization is used to make the target lane
  • the line set includes lane lines that are not parallel to each other.
  • this specification provides a vehicle, including:
  • the above-mentioned lane line detection device is used to determine the lane line
  • this specification provides a computer-readable storage medium that stores a computer program, and when the computer program is executed by a processor, the processor implements the aforementioned lane-line fusion method.
  • the embodiment of this specification provides a lane line fusion method, a lane line fusion device, a vehicle, and a storage medium.
  • a number of initial lane line data is determined through the environment image around the movable platform, and then a set of initial lane line data and historical lane line set
  • the corresponding historical lane line data in the corresponding historical lane line data is fitted and optimized, and several target lane lines are obtained. Since the fitting optimization incorporates the historical detection data of the lane line, the lane line detection can be independent of the assumption of the geometric parallelism of the lane line and the assumption of the parallel road surface, which can be applied to the scene of the road including the bifurcation, which improves the versatility and detection accuracy. .
  • FIG. 1 is a schematic flowchart of a method for detecting lane lines according to an embodiment of this specification
  • Fig. 2 is a schematic diagram of a lane line detection scene in an embodiment
  • Figure 3 is a schematic diagram of determining local lane lines in a local map through connected domain analysis
  • Fig. 4 is a schematic diagram of a sub-process of obtaining a target lane line set by fitting optimization in Fig. 1;
  • Fig. 5 is a schematic diagram of a sub-process of the initial lane line data corresponding to the target lane line obtained by the fitting optimization in Fig. 4;
  • Fig. 6 is a schematic block diagram of a remote control device according to an embodiment of the present specification.
  • Fig. 7 is a schematic block diagram of a movable platform provided by an embodiment of the present specification.
  • FIG. 1 is a schematic flowchart of a lane line detection method according to an embodiment of the present specification.
  • the lane line detection method can be applied to a lane line detection device, which can be mounted on a movable platform and has a data connection with the movable platform.
  • the movable platform may be some mobile devices that can drive on public transportation roads, such as autonomous vehicles.
  • the lane line detection device may also be an auxiliary driving device that has a data connection with the movable platform.
  • the lane line detection device can be built into a movable platform, such as a system in which the movable platform is integrated into the movable platform, or can be externally connected to the movable platform, such as an auxiliary driving device connected to the outside of the movable platform.
  • the lane line detection method can be applied to the lane line detection scene as shown in FIG. 2, wherein the movable platform 10 may be a vehicle driving on a public transportation road.
  • the lane line detection device 100 is built in the movable platform 10, and one or more sensors 101 are also arranged on the movable platform 10, and the lane line detection device 100 can obtain the environment image of the movable platform 10 through the sensor 101.
  • the sensor 101 includes a vision sensor for acquiring an image of the environment around the movable platform.
  • the senor 101 can be arranged in the front, rear and/or roof of the movable platform 10, and one or more sensors 101 arranged in the movable platform 10 can be arranged in the same position or in different positions. It is not limited in the embodiment of the present invention.
  • the lane line detection method of this embodiment includes steps S110 to S120.
  • S110 Acquire an environment image around the movable platform, and obtain an initial lane line set of the movable platform according to the environment image.
  • a sensor mounted on the movable platform collects a preset range of environment images around the movable platform in real time or according to a preset period, and constructs a local map of the environment where the movable platform is located based on the environment images.
  • an image in front of the movable platform is acquired through a sensor mounted on the movable platform, or called a front view, and the lane line image points in the front view are identified based on the image model. It can also combine the pose information of the movable platform and the 3D environment information to convert the lane line image points to a local map in the world coordinate system to obtain a local map of the environment in which the movable platform is located, and determine that the lane line image point is in the local area. The location point of the corresponding lane line on the map.
  • a convolutional neural network (Convolutional Neural Networks, CNN) may be used to perform preliminary lane line detection on the front view to obtain lane line image points.
  • a visual inertial navigation system (such as Visual-Inertial Navigation System, VINS) may be used to obtain the pose information of the movable platform, such as the current vehicle body position and pose information.
  • VINS Visual-Inertial Navigation System
  • the binocular stereo matching algorithm SGBM may be used to determine the 3D environment perception information around the movable platform, that is, the 3D environment information.
  • an initial lane line set may be determined in the local map, and the initial lane line set includes multiple initial lane line data.
  • the connected domain analysis is performed based on the lane line position points in the local map to obtain the local lane line set corresponding to the local map.
  • the initial lane line data included in the initial lane line set may be determined according to the lane line position points recorded in the local map.
  • the local map may be a grid map in the world coordinate system, the grid corresponding to the lane line position point is a lane line grid, and each lane line grid includes a semantic information, and the semantic information is used for
  • the grid representing the lane line is the grid corresponding to the position point of the lane line.
  • each lane line grid in the local map can be analyzed and processed to obtain the local lane line set corresponding to the local map.
  • the local lane line set includes at least one local lane line, which is then determined from the local lane line set An initial lane line set is generated, and the initial lane line set includes at least one initial lane line data.
  • the connected domain analysis processing of each lane line grid in the local map can be performed based on the semantic information of each lane line grid to obtain the local lane line set corresponding to the local map, and based on the preset optimization algorithm and The weight value of each local lane line in the local lane line set is optimized to determine the initial lane line to obtain the initial lane line set. Wherein, the weight value of the local lane line is determined according to the characteristic information of the lane line.
  • each lane line may be determined from the local map according to the semantic information of each lane line grid.
  • Grid and extract the connected domain of each lane line grid, determine the connected domain label of the lane line grid in a small area according to the semantic information of each lane line grid, and perform lane based on the connected domain label corresponding to each lane line grid
  • Line fitting determines one or more local lane lines corresponding to the lane line position points in a small area, and so on, can determine all the local lane lines in the local map, so as to obtain the local lane line set corresponding to the local map.
  • the lane line grids belonging to the same lane line correspond to the same connected domain label
  • the connected domain label is associated with the semantic information of the lane line grid.
  • the semantic information of the lane line grid G1 is used to indicate that the image point corresponding to the lane line grid G1 belongs to the lane line A
  • the semantic information of the lane line grid G2 is used to indicate that the image point corresponding to the lane line grid G2 is also Belonging to lane line A
  • the lane line grid G1 and lane line grid G2 correspond to the same connected domain label.
  • Figure 3 shows a schematic diagram of determining local lane lines in a local map through connected domain analysis.
  • each grid represents an image point, and the number in the grid represents the connected domain label corresponding to each grid.
  • a grid with a connected component label of 0 may be a grid of local lane lines that does not belong to a lane line
  • a grid with a connected component label of not 0 may be a grid of lane lines that may belong to a lane line.
  • the grid with the connected domain label of 1 is the image point belonging to the A lane line in the local map; the image point with the connected domain label 2 is the image point corresponding to the B lane line in the local map, where the A lane line and the B
  • the lane lines are two different lane lines.
  • a small-scale grid can be selected from the local map according to the image detection window of the preset size, and determined based on the semantic information of each grid
  • the connected component label of each grid in the image detection window is displayed, where the connected component label corresponding to the non-lane line grid is 0, and the connected component label of the lane line grid is determined by the corresponding semantic information. Since the grids in the same connected component correspond to the same connected component label, the connected components of the image detection window can be determined based on the characteristics of whether the connected component labels are the same, that is, the grids included in each connected component are determined.
  • the preset size of the image detection window may be 3 ⁇ 3 or 5 ⁇ 5, for example.
  • the grid corresponding to each connected domain can be fitted according to the optimal solution algorithm to obtain the local lane line corresponding to each connected domain, and so on, the image detection can be determined
  • At least one initial lane line can be optimally determined based on the weighted maximum clique algorithm and the weight value of each local lane line in the local lane line set.
  • One initial lane line is filtered to obtain the initial lane line set.
  • the feature information of each local lane line in the local lane line set is analyzed to obtain the weight value of each local lane line, and then based on preset optimization algorithms, such as the weighted maximum clique algorithm and the weight of each local lane line Value, the optimization determines at least one initial lane line, and the initial lane line set is obtained.
  • preset optimization algorithms such as the weighted maximum clique algorithm and the weight of each local lane line Value
  • the weight value of the local lane line is determined according to the feature information of the lane line.
  • the feature information of the lane line includes: the geometric feature and/or color feature of the lane line, and the geometric feature includes the length feature and the width feature. And any one or more of the parallel features between lane lines.
  • the corresponding relationship between the geometric and color features of the lane line and the hypothetical score can be established in advance.
  • the corresponding relationship between the geometric feature, the color feature and the hypothetical score of the lane line may be as shown in Table 1. It can be seen that each local lane line can determine its own corresponding hypothetical score sum through the corresponding relationship shown in Table 1, and the hypothetical score sum is the weight value corresponding to the local lane line.
  • the hypothetical score corresponding to each feature dimension in Table 1 is only an example, which is mainly used to illustrate the principle of determining the weight value of a local lane line through the feature information of the lane line, and it cannot be a limitation to the embodiment of the present invention.
  • the feature information of each local lane line can be analyzed, and the weight value of each local lane line can be determined according to the pre-established correspondence relationship between the geometric feature, color feature and the hypothetical score of the lane line. Further, based on the weighted maximum clique algorithm, at least one local lane line with the highest weight value among the local lane lines is solved, that is, at least one initial lane line.
  • filtering processing may be performed on at least one initial lane line to obtain an initial lane line set.
  • post-processing may be performed based on the preset a priori information for the initial lane line, so as to filter all the initial lane lines of the at least one initial lane line, and the wrong lanes in all the initial lane lines The line is filtered out, and the initial lane line set is obtained.
  • the preset a priori information for the initial lane line is a preset range or a preset value set based on the national standard of the lane line, and the a priori information specifically includes length information and width information, etc., assuming that the country The standard lane line length is 1.5 meters, and the length information included in the a priori information for the initial lane line can be set to be a part of the length less than the standard lane line length, such as the range of 10 cm to 15 cm, etc.; assuming national standards If the width of the lane line is 15 cm, the width information included in the prior information can be set to a range of 13 cm to 17 cm. Correspondingly, the wrong lane line is the lane line that does not meet the preset prior information.
  • the initial lane line selected from the set of local lane lines can be considered as the lane line most consistent with the actual lane line.
  • the historical lane line data in the historical lane line set and the initial lane line data in the initial lane line set can be fitted and optimized to obtain the target lane line set.
  • the current lane line detection results can be combined with the historical lane line detection results in time sequence and space, which is beneficial to improve the accuracy of the lane line detection results.
  • the initial lane line data filtered in the initial lane line set and the historical lane line data in the historical lane line set are fitted and optimized to obtain the target lane line set to complete the detection of the lane line.
  • the initial lane line set is determined from the local map, it is possible to query whether there is a historical lane line set in the storage area.
  • the historical lane line set does not exist, it can be determined that the current lane line detection is the first lane line detection, and the historical lane line set is determined according to the initial lane line set obtained this time, and the determined historical lane line The set is stored in the storage area to facilitate subsequent fitting optimization with the new initial lane line set. If there is a historical lane line set, the historical lane line data in the historical lane line set and the initial lane line data in the initial lane line set can be fitted and optimized to obtain the target lane line set.
  • the fitting optimization is used to make the target lane line set include lane lines that are not parallel to each other.
  • the fitting optimization can be independent of the assumption of lane line geometric parallelism and road surface parallelism, and can be applied to roads including bifurcations.
  • the fitting optimization based on the initial lane line data and the historical lane line data in the historical lane line set to obtain the target lane line set includes: based on over-fitting constraint conditions and parallel constraint conditions, Fitting optimization is performed according to the initial lane line data and the historical lane line data in the historical lane line set to obtain the target lane line set.
  • the initial lane line data to be fitted is determined from the initial lane line set, and the historical lane line matching the initial lane line data is determined from the historical lane line set, and the initial lane line data to be fitted Is any one of the initial lane line set.
  • the target historical lane line matching the initial lane line data is determined.
  • the lane to which each initial lane line belongs can be determined based on the semantic information of the lane line grid constituting the initial lane line, and then index information is added to each initial lane line data, and each index information indicates the lane to which the initial lane line data belongs.
  • the process is performed according to the over-fitting constraint condition and the parallel constraint condition based on the initial lane line data and the historical lane line data. Fitting optimization to obtain the target lane line corresponding to the initial lane line data.
  • each initial lane line data in the initial lane line set in turn as the initial lane line to be fitted, and determine the target lane line corresponding to each initial lane line data; obtain the target lane line set according to at least one target lane line; Combine the constraints and the parallel constraints so that the target lane line set includes lane lines that are not parallel to each other.
  • the initial lane line data and the historical lane line data are fitted and optimized through a lane model including an over-fitting constraint condition and a parallel constraint condition.
  • the mathematical function corresponding to the lane model can be composed of three parts.
  • the first part is the least squares model based on solving the lane line position points corresponding to the initial lane line data and the target lane line obtained by fitting optimization.
  • the second part is the smoothing term of the curve (corresponding to the preset conditions of overfitting), you can use the integration of the third derivative square of the curve equation as a smoothing constraint, mainly to prevent overfitting;
  • the third part is the weak parallel constraint item (corresponding to the parallel constraint condition), which is mainly used to constrain the parallel state between two adjacent lane lines.
  • f i (t) is used to represent the curve equation of the target lane line obtained by fitting and optimizing the initial lane line data of the i-th initial lane line.
  • the curve equation of the target lane line is described by a fifth-degree polynomial, and the specific ones are:
  • T i represents the polynomial basis vector
  • t represents the first coordinate of the lane line position point on the local map
  • C i represents the fitting coefficient data, which is the quantity to be solved
  • T represents the transposition of the matrix
  • the first part of the lane model is used to solve the minimum error between the lane line position point corresponding to the initial lane line data and the curve equation corresponding to the target lane line obtained by fitting optimization.
  • the second part of the lane model is the smoothing term of the curve (corresponding to the over-fitting preset condition), and the integral of the third derivative square of the curve equation can be used as a smoothing constraint.
  • the third part of the lane model is the weak parallel constraint item (corresponding to the parallel constraint condition), which is mainly used to constrain the parallel state between two adjacent lane lines. For example, it is used to constrain the parallel state between the i-th initial lane line and the i+1-th initial lane line.
  • the first part, second part, and third part of the lane model can be processed according to the fifth-order polynomial description form of the target lane line curve equation, and the part of the processing result that is not related to the fitting coefficient data C i It is expressed as a constant, so that a lane model in the matrix form of the fitting coefficient data C i can be obtained, such as an objective function in the matrix form.
  • the objective function of the fitting optimization is expressed as obtaining the fitting coefficient data of the curve equations of two adjacent target lanes, so that the minimum value of the sum of the first part, the second part and the third part of the lane model .
  • the fitting coefficient data of the curve equations of two adjacent target lanes can be obtained.
  • the optimal curve equations of the two adjacent target lane lines can be obtained, for example, the target lane obtained by fitting corresponding to the i-th initial lane line and the i+1-th initial lane line The curve equation of the line.
  • the preservation of historical observation information can be achieved by constructing an accumulation sum for the accumulation part of the polynomial basis vector T i and the fitting coefficient data C i on both sides of the equal sign of the equation.
  • the cumulative sum of the polynomial basis vector T i is the first aggregate data A i
  • the cumulative sum of the polynomial basis vector T i and the fitting coefficient data C i is the second aggregate data B i .
  • the first aggregated data A i and the second aggregated data B i are obtained by accumulating the time series of historical observations.
  • the first aggregated data Ai and the second aggregated data contain more historical observations, which can prevent, for example, the loss of effective observations caused by sliding windows, which reduces the robustness of lane line detection.
  • the amount of data is only determined by the order of the lane curve equation and the number of segments of the curve.
  • the historical lane line data is obtained by accumulating historical initial lane line data according to a preset fusion rule.
  • the current time such as the polynomial basis vector and fitting coefficient data at the n+1th time
  • the first aggregated data Ai and the second aggregated data B i at the nth time can be solved at the current Fitting coefficients of the curve equation of the optimized target lane line at all times.
  • the increment of the cumulative sum is determined according to the current time, such as the polynomial basis vector and the fitting coefficient data at the n+1th time, and the newly determined increment is correspondingly added to the first aggregate data A i ,
  • the second aggregated data B i realizes that the initial lane line data is compressed to the historical lane line data to obtain updated historical lane line data.
  • the initial lane line data and historical lane line data are processed through a preset data structure.
  • the initial lane line data and historical lane line data can be processed by accumulating the increment determined by the polynomial basis vector and the fitting coefficient data.
  • the preset data structure has a certain amount of calculation.
  • the increment at each time and the accumulation of the first aggregated data and the second aggregated data have the same amount of calculation, which will not increase with the accumulation of historical observation data, and the solution is based on the first aggregated data and the second aggregated data. The amount of calculation for calculating the coefficients of the curve equation will not increase with the accumulation of historical observation data.
  • performing fitting optimization based on the initial lane line data and historical lane line data in the historical lane line set to obtain the target lane line set includes step S121 to step S123.
  • S121 Determine historical lane line data matching the initial lane line data from the set of historical lane lines.
  • the historical lane line data matching the initial lane line data is determined.
  • the historical lane line data corresponding to the i-th lane line in the historical lane line set matches the initial lane line data.
  • S122 Perform fitting optimization on the initial lane line data and the historical lane line data based on the over-fitting constraint condition and the parallel constraint condition, to obtain the target lane line corresponding to the initial lane line data.
  • the historical lane line data corresponding to the i-th lane line includes first aggregated data A i and second aggregated data B i .
  • the initial lane line data and historical lane line data are fitted and optimized based on the over-fitting constraint condition and the parallel constraint condition to obtain the target lane corresponding to the initial lane line data Line, including step S1221 to step S1222.
  • the initial lane line data at time n+1 includes several lane line position points, so that the first incremental data used for superimposing on the first aggregated data and the second incremental data used for superimposing on the second aggregated data can be determined. Incremental data.
  • the lane line position point on the map may be represented by a first coordinate value and a second coordinate value.
  • the first coordinate axis corresponding to the first coordinate value is a coordinate axis parallel to the left and right direction of the vehicle
  • the second coordinate value corresponds to
  • the second coordinate axis of is a coordinate axis parallel to the traveling direction of the vehicle.
  • the determining the first incremental data according to the initial lane line data includes: determining the first incremental data according to the first coordinate value of the initial lane line on the local map, the The local map is determined according to the environment where the movable platform is located.
  • the determining the second incremental data according to the initial lane line data includes: according to the first coordinate value of the initial lane line on the local map and the initial lane line on the local map.
  • the second coordinate value determines the second incremental data.
  • the determining the target lane line corresponding to the initial lane line data according to the first incremental data, the second incremental data, the first aggregated data, and the second aggregated data includes: according to the The first incremental data, the second incremental data, the first aggregated data, and the second aggregated data determine the polynomial coefficients corresponding to the initial lane line data; determine the target lane line corresponding to the initial lane line data according to the polynomial coefficients .
  • a target lane line set is formed by at least one of the target lane lines.
  • the target lane line set is formed according to the two nearest target lane lines on both sides of the vehicle, or the target lane line set is formed according to the nearest target lane line on the left side of the vehicle, or the target lane line is formed according to the nearest target lane line on the right side of the vehicle Line set, or all target lane lines fitted in the sensor field of view form a target lane line set.
  • a corresponding number of lane lines in the optimized and target lane line set can be fitted later.
  • the lane model is fitting the initial lane line and the target historical lane line, the parallel state constraint is added between the two adjacent lane lines. Therefore, for complex lane detection scenes, such as branch road scenes, urban scenes, etc., the accuracy of lane line detection can be better guaranteed, so that it can be better applied to multiple lane line scenes, and the versatility is improved.
  • the target lane lines in the target lane line set may be combined to obtain at least one lane, and the lane center line of the lane is generated to facilitate the driving of the movable platform.
  • the target lane lines may be combined according to attribute information, such as geometric characteristics and/or color characteristics of the lanes, and the geometric characteristics include any one or more of length characteristics, width characteristics, and parallel characteristics between lanes.
  • the lane line detection method further includes: updating the historical lane line data according to the initial lane line data, and the updated historical lane line data has the same amount of data as the historical lane line data before the update.
  • the updating the historical lane line data according to the initial lane line data includes: accumulating the first incremental data to the first aggregated data, and accumulating the second incremental data To the second aggregated data.
  • the initial lane line data is compressed to the historical lane line data, and the updated historical lane line data is obtained.
  • the updated historical lane line data has the same amount of data as the historical lane line data before the update, which can avoid the increase of the fusion accumulated observations and increase the calculation complexity, so that the calculation amount of the fitting optimization is constrained The purpose of living.
  • the lane line detection method determines a number of initial lane line data through the environment image around the movable platform, and then performs fitting optimization based on the initial lane line data and the corresponding historical lane line data in the historical lane line set, Get a number of target lines. Since the fitting optimization incorporates the historical detection data of the lane line, the lane line detection can be independent of the assumption of the geometric parallelism of the lane line and the assumption of the parallel road surface, which can be applied to the scene of the road including the bifurcation, which improves the versatility and detection accuracy. .
  • FIG. 6 is a schematic block diagram of a lane line detection device 100 provided in an embodiment of this specification.
  • the lane line detection device 100 includes a sensor 101 and a processor 102.
  • the sensor 101 may include, for example, a visual sensor for acquiring an image of the environment around the movable platform.
  • the processor 102 may be a micro-controller unit (MCU), a central processing unit (Central Processing Unit, CPU), a digital signal processor (Digital Signal Processor, DSP), or the like.
  • MCU micro-controller unit
  • CPU Central Processing Unit
  • DSP Digital Signal Processor
  • the lane line detection device 100 further includes a memory 103, which may include, for example, a Flash chip, a read-only memory (ROM, Read-Only Memory) disk, an optical disk, a U disk, or a mobile hard disk.
  • a memory 103 which may include, for example, a Flash chip, a read-only memory (ROM, Read-Only Memory) disk, an optical disk, a U disk, or a mobile hard disk.
  • the processor 102 is configured to run a computer program stored in the memory 103, and implement the aforementioned lane line detection method when the computer program is executed.
  • the processor is configured to run a computer program stored in the memory 103, and implement the following steps when the computer program is executed:
  • the fitting optimization includes: performing fitting optimization according to the initial lane line data and historical lane line data in the historical lane line set to obtain a target lane line set, and the fitting optimization is used to make the target lane
  • the line set includes lane lines that are not parallel to each other.
  • the processor implements the fitting optimization based on the initial lane line data and the historical lane line data in the historical lane line set to obtain the target lane line set, it realizes:
  • fitting optimization is performed according to the initial lane line data and the historical lane line data in the historical lane line set to obtain the target lane line set.
  • the initial lane line data and historical lane line data are processed through a preset data structure, wherein the preset data structure has a certain amount of calculation.
  • the historical lane line data is obtained by accumulating historical initial lane line data according to a preset fusion rule.
  • the processor implements the fitting optimization based on the initial lane line data and the historical lane line data in the historical lane line set to obtain the target lane line set, it realizes:
  • At least one target lane line forms a target lane line set.
  • the historical lane line data includes first aggregated data and second aggregated data
  • the processor realizes that the initial lane line data and historical lane line data are fitted and optimized based on the over-fitting constraint condition and the parallel constraint condition, and the target lane line corresponding to the initial lane line data is obtained, the realization :
  • the target corresponding to the initial lane line data is determined according to the first incremental data, the second incremental data, the first aggregated data, and the second aggregated data Lane line.
  • the processor realizes the determination of the target lane line corresponding to the initial lane line data, it realizes:
  • the target lane line corresponding to the initial lane line data is determined according to the polynomial coefficient.
  • processor further implements:
  • the historical lane line data is updated according to the initial lane line data, and the updated historical lane line data has the same amount of data as the historical lane line data before the update.
  • the processor when the processor implements the updating of the historical lane line data according to the initial lane line data, it implements:
  • the second incremental data is accumulated to the second aggregated data.
  • the processor realizes that the first incremental data is determined according to the initial lane line data, it realizes:
  • the first incremental data is determined according to the first coordinate value of the initial lane line on the local map, and the local map is determined according to the environment where the movable platform is located.
  • the processor realizes that the second incremental data is determined according to the initial lane line data, it realizes:
  • the second incremental data is determined according to the first coordinate value of the initial lane line on the local map and the second coordinate value of the initial lane line on the local map.
  • FIG. 7 is a schematic block diagram of a movable platform 200 according to an embodiment of the present specification.
  • the movable platform 200 includes the aforementioned lane line detection device 100 for determining the lane line.
  • the movable platform 200 also includes a movement component 210 for driving.
  • the movable platform 200 may be a vehicle, for example, a passenger vehicle, a cargo vehicle, an unmanned vehicle, etc., such as a manual driving vehicle or an autonomous driving vehicle.
  • the embodiments of this specification also provide a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor realizes the lane markings provided in the above-mentioned embodiments. Steps of the detection method.
  • the computer-readable storage medium may be an internal storage unit of the lane line detection device described in any of the foregoing embodiments, for example, the hard disk or memory of the lane line detection device.
  • the computer-readable storage medium may also be an external storage device of the lane line detection device, such as a plug-in hard disk equipped on the lane line detection device, a smart memory card (Smart Media Card, SMC), a secure digital ( Secure Digital, SD card, Flash Card, etc.
  • the lane line fusion device, the movable platform, and the storage medium provided in the above-mentioned embodiments of this specification determine a number of initial lane line data based on the environment image around the movable platform, and then according to the corresponding history in the set of the initial lane line data and the historical lane line
  • the lane line data is fitted and optimized, and several target lane lines are obtained. Since the fitting optimization incorporates the historical detection data of the lane line, the lane line detection can be independent of the assumption of the geometric parallelism of the lane line and the assumption of the parallel road surface, which can be applied to the scene of the road including the bifurcation, which improves the versatility and detection accuracy. .

Abstract

A lane line fusion method and apparatus, and a vehicle and a storage medium. The lane line fusion method comprises: acquiring an image of the environment around a movable platform, and obtaining an initial lane line set of the movable platform according to the environmental image (S110); and performing fitting optimization on initial lane line data in the initial lane line set to obtain a target lane line set, with the fitting optimization comprising: performing fitting optimization according to the initial lane line data and historical lane line data in a historical lane line set to obtain the target lane line set (S120), wherein the target lane line set comprises lane lines that are not parallel to one another.

Description

车道线融合方法、车道线融合装置、车辆和存储介质Lane line fusion method, lane line fusion device, vehicle and storage medium 技术领域Technical field
本申请涉及车辆辅助驾驶和自动驾驶领域,尤其涉及一种车道线融合方法、车道线融合装置、车辆和存储介质。This application relates to the field of vehicle assisted driving and automatic driving, and in particular to a lane line fusion method, a lane line fusion device, a vehicle, and a storage medium.
背景技术Background technique
车道线检测是辅助驾驶(ADAS)和自动驾驶技术需要实现的主要功能之一,基于检测得到的车道线可以规划可移动平台,如车辆的行驶计划,保障行驶安全可靠。现有的车道线检测方法主要基于当前车辆周围的环境图像,无法综合之前时刻检测的历史车道线对当前车道线进行优化,无法较好的应对具有分叉路口的行驶场景。因此现有的车道线检测通用性较差,准确度不够高。Lane line detection is one of the main functions that assisted driving (ADAS) and autonomous driving technologies need to achieve. Based on the detected lane lines, a movable platform, such as a vehicle's driving plan, can be planned to ensure safe and reliable driving. The existing lane line detection method is mainly based on the environment image around the current vehicle, and cannot integrate the historical lane line detected at the previous time to optimize the current lane line, and cannot better cope with the driving scene with bifurcated intersections. Therefore, the existing lane line detection has poor versatility and insufficient accuracy.
发明内容Summary of the invention
基于此,本说明书提供了一种车道线融合方法、车道线融合装置、车辆和存储介质,旨在解决现有的车道线检测无法较好的应对具有分叉路口的行驶场景,通用性较差,准确度不够高等技术问题。Based on this, this manual provides a lane line fusion method, a lane line fusion device, a vehicle and a storage medium, which are designed to solve the problem that the existing lane line detection cannot better deal with driving scenarios with bifurcated intersections, and its versatility is poor , Technical problems such as insufficient accuracy.
第一方面,本说明书提供了一种车道线检测方法,包括:In the first aspect, this specification provides a lane line detection method, including:
获取可移动平台周围的环境图像,并根据所述环境图像得到所述可移动平台的初始车道线集合;Acquiring an image of the environment around the movable platform, and obtaining an initial lane line set of the movable platform according to the environment image;
对所述初始车道线集合中的初始车道线数据进行拟合优化,得到目标车道线集合;Fitting and optimizing the initial lane line data in the initial lane line set to obtain a target lane line set;
其中,所述拟合优化包括:根据所述初始车道线数据和历史车道线集合中的历史车道线数据进行拟合优化,得到目标车道线集合,所述拟合优化用于使得所述目标车道线集合包括相互不平行的车道线。Wherein, the fitting optimization includes: performing fitting optimization according to the initial lane line data and historical lane line data in the historical lane line set to obtain a target lane line set, and the fitting optimization is used to make the target lane The line set includes lane lines that are not parallel to each other.
第二方面,本说明书提供了一种车道线检测装置,包括传感器和处理器;In the second aspect, this specification provides a lane line detection device, including a sensor and a processor;
所述传感器用于获取可移动平台周围的环境图像;The sensor is used to obtain an image of the environment around the movable platform;
所述处理器,用于实现如下步骤:The processor is configured to implement the following steps:
获取可移动平台周围的环境图像,并根据所述环境图像得到所述可移动平台的初始车道线集合;Acquiring an image of the environment around the movable platform, and obtaining an initial lane line set of the movable platform according to the environment image;
对所述初始车道线集合中的初始车道线数据进行拟合优化,得到目标车道线集合;Fitting and optimizing the initial lane line data in the initial lane line set to obtain a target lane line set;
其中,所述拟合优化包括:根据所述初始车道线数据和历史车道线集合中的历史车道线数据进行拟合优化,得到目标车道线集合,所述拟合优化用于使得所述目标车道线集合包括相互不平行的车道线。Wherein, the fitting optimization includes: performing fitting optimization according to the initial lane line data and historical lane line data in the historical lane line set to obtain a target lane line set, and the fitting optimization is used to make the target lane The line set includes lane lines that are not parallel to each other.
第三方面,本说明书提供了一种车辆,包括:In the third aspect, this specification provides a vehicle, including:
上述的车道线检测装置,用于确定车道线;The above-mentioned lane line detection device is used to determine the lane line;
运动组件,用于行驶。Sports components for driving.
第四方面,本说明书提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时使所述处理器实现上述的车道线融合方法。In a fourth aspect, this specification provides a computer-readable storage medium that stores a computer program, and when the computer program is executed by a processor, the processor implements the aforementioned lane-line fusion method.
本说明书实施例提供了一种车道线融合方法、车道线融合装置、车辆和存储介质,通过可移动平台周围的环境图像确定若干初始车道线数据,然后根据若干初始车道线数据和历史车道线集合中相应的历史车道线数据进行拟合优化,得到若干目标道线。由于拟合优化融合了车道线的历史检测数据,使得车道线检测可以不依赖车道线几何平行假设和路面平行假设,从而可以适用于道路包括分岔路口的场景,提高了通用性和检测准确度。The embodiment of this specification provides a lane line fusion method, a lane line fusion device, a vehicle, and a storage medium. A number of initial lane line data is determined through the environment image around the movable platform, and then a set of initial lane line data and historical lane line set The corresponding historical lane line data in the corresponding historical lane line data is fitted and optimized, and several target lane lines are obtained. Since the fitting optimization incorporates the historical detection data of the lane line, the lane line detection can be independent of the assumption of the geometric parallelism of the lane line and the assumption of the parallel road surface, which can be applied to the scene of the road including the bifurcation, which improves the versatility and detection accuracy. .
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本说明书的公开内容。It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the disclosure of this specification.
附图说明Description of the drawings
为了更清楚地说明本说明书实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本说明书的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of this specification more clearly, the following will briefly introduce the drawings used in the description of the embodiments. Obviously, the drawings in the following description are some embodiments of this specification. Ordinary technicians can obtain other drawings based on these drawings without creative work.
图1是本说明书一实施例提供的一种车道线检测方法的流程示意图;FIG. 1 is a schematic flowchart of a method for detecting lane lines according to an embodiment of this specification;
图2是一种实施方式中车道线检测场景的示意图;Fig. 2 is a schematic diagram of a lane line detection scene in an embodiment;
图3是通过连通域分析确定局部地图中局部车道线的示意图;Figure 3 is a schematic diagram of determining local lane lines in a local map through connected domain analysis;
图4是图1中拟合优化得到目标车道线集合的子流程示意图;Fig. 4 is a schematic diagram of a sub-process of obtaining a target lane line set by fitting optimization in Fig. 1;
图5是图4中拟合优化得到初始车道线数据对应目标车道线的子流程示意图;Fig. 5 is a schematic diagram of a sub-process of the initial lane line data corresponding to the target lane line obtained by the fitting optimization in Fig. 4;
图6是本说明书一实施例提供的一种遥控装置的示意性框图;Fig. 6 is a schematic block diagram of a remote control device according to an embodiment of the present specification;
图7是本说明书一实施例提供的一种可移动平台的示意性框图。Fig. 7 is a schematic block diagram of a movable platform provided by an embodiment of the present specification.
具体实施方式detailed description
下面将结合本说明书实施例中的附图,对本说明书实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本说明书一部分实施例,而不是全部的实施例。基于本说明书中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本说明书保护的范围。The technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by a person of ordinary skill in the art without creative work shall fall within the protection scope of this specification.
附图中所示的流程图仅是示例说明,不是必须包括所有的内容和操作/步骤,也不是必须按所描述的顺序执行。例如,有的操作/步骤还可以分解、组合或部分合并,因此实际执行的顺序有可能根据实际情况改变。The flowchart shown in the drawings is only an example, and does not necessarily include all contents and operations/steps, nor does it have to be executed in the described order. For example, some operations/steps can also be decomposed, combined or partially combined, so the actual execution order may be changed according to actual conditions.
下面结合附图,对本说明书的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。Hereinafter, some embodiments of this specification will be described in detail with reference to the drawings. In the case of no conflict, the following embodiments and features in the embodiments can be combined with each other.
请参阅图1,图1是本说明书一实施例提供的一种车道线检测方法的流程示意图。Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a lane line detection method according to an embodiment of the present specification.
所述车道线检测方法可以应用在车道线检测装置,该车道线检测装置可以搭载于可移动平台,并与可移动平台存在数据连接。其中,该可移动平台可以为一些能够行驶在公共交通道路上的移动装置,例如自动驾驶车辆。该车道线检测装置也可以为与可移动平台存在数据连接的辅助驾驶装置。The lane line detection method can be applied to a lane line detection device, which can be mounted on a movable platform and has a data connection with the movable platform. Among them, the movable platform may be some mobile devices that can drive on public transportation roads, such as autonomous vehicles. The lane line detection device may also be an auxiliary driving device that has a data connection with the movable platform.
该车道线检测装置可以内置于可移动平台,如可移动平台整合于可移动平台中的系统等,也可以与可移动平台存在外部连接,如连接于可移动平台外部的辅助驾驶装置。The lane line detection device can be built into a movable platform, such as a system in which the movable platform is integrated into the movable platform, or can be externally connected to the movable platform, such as an auxiliary driving device connected to the outside of the movable platform.
在一些实施方式中,所述车道线检测方法可应用在如图2所示的车道线检测场景中,其中,可移动平台10可以是一辆行驶在公共交通道路上的车辆,车 道线检测装置100内置于可移动平台10,该可移动平台10上还安置有一个或者多个传感器101,车道线检测装置100可以通过传感器101获取可移动平台10的环境图像。例如,传感器101包括视觉传感器,用于获取可移动平台周围的环境图像。In some embodiments, the lane line detection method can be applied to the lane line detection scene as shown in FIG. 2, wherein the movable platform 10 may be a vehicle driving on a public transportation road. The lane line detection device 100 is built in the movable platform 10, and one or more sensors 101 are also arranged on the movable platform 10, and the lane line detection device 100 can obtain the environment image of the movable platform 10 through the sensor 101. For example, the sensor 101 includes a vision sensor for acquiring an image of the environment around the movable platform.
其中,所述传感器101可安置在可移动平台10的前方、后方和/或车顶等位置,可移动平台10中安置的一个或多个传感器101可以安置在相同位置,也可安置在不同位置,在本发明实施例中不做限定。Wherein, the sensor 101 can be arranged in the front, rear and/or roof of the movable platform 10, and one or more sensors 101 arranged in the movable platform 10 can be arranged in the same position or in different positions. It is not limited in the embodiment of the present invention.
如图1所示,本实施例车道线检测方法包括步骤S110至步骤S120。As shown in FIG. 1, the lane line detection method of this embodiment includes steps S110 to S120.
S110、获取可移动平台周围的环境图像,并根据所述环境图像得到所述可移动平台的初始车道线集合。S110: Acquire an environment image around the movable platform, and obtain an initial lane line set of the movable platform according to the environment image.
示例性的,可移动平台搭载的传感器实时或者按照预设周期采集可移动平台周围预设范围的环境图像,并基于该环境图像构造可移动平台所处环境的局部地图。Exemplarily, a sensor mounted on the movable platform collects a preset range of environment images around the movable platform in real time or according to a preset period, and constructs a local map of the environment where the movable platform is located based on the environment images.
示例性的,通过可移动平台搭载的传感器获取可移动平台前方的图像,或称为前视图,并基于图像模型识别前视图中的车道线图像点。还可以结合可移动平台的位姿信息和3D环境信息将车道线图像点转换到世界坐标系下的局部地图,以得到可移动平台所处环境的局部地图,并确定该车道线图像点在局部地图中对应的车道线位置点。Exemplarily, an image in front of the movable platform is acquired through a sensor mounted on the movable platform, or called a front view, and the lane line image points in the front view are identified based on the image model. It can also combine the pose information of the movable platform and the 3D environment information to convert the lane line image points to a local map in the world coordinate system to obtain a local map of the environment in which the movable platform is located, and determine that the lane line image point is in the local area. The location point of the corresponding lane line on the map.
示例性的,可采用卷积神经网络(Convolutional Neural Networks,CNN)对前视图作初步的车道线检测得到车道线图像点。Exemplarily, a convolutional neural network (Convolutional Neural Networks, CNN) may be used to perform preliminary lane line detection on the front view to obtain lane line image points.
示例性的,可以通过视觉惯性导航系统(如Visual-Inertial Navigation System,VINS)获取可移动平台的位姿信息,如当前车体位置姿态信息。Exemplarily, a visual inertial navigation system (such as Visual-Inertial Navigation System, VINS) may be used to obtain the pose information of the movable platform, such as the current vehicle body position and pose information.
示例性的,可以通过双目立体匹配算法SGBM确定可移动平台周围的3D环境感知信息,即3D环境信息。Exemplarily, the binocular stereo matching algorithm SGBM may be used to determine the 3D environment perception information around the movable platform, that is, the 3D environment information.
在一些实施方式中,在确定局部地图中的车道线位置点之后,可以在局部地图中确定出初始车道线集合,该初始车道线集合包括多个初始车道线数据。In some embodiments, after determining the lane line position points in the local map, an initial lane line set may be determined in the local map, and the initial lane line set includes multiple initial lane line data.
示例性的,基于局部地图中的车道线位置点进行连通域分析,得到局部地图对应的局部车道线集合。Exemplarily, the connected domain analysis is performed based on the lane line position points in the local map to obtain the local lane line set corresponding to the local map.
示例性的,初始车道线集合中包括的初始车道线数据可以是根据局部地图中记录的车道线位置点确定的。在一些实施方式中,局部地图可以为在世界坐 标系下的网格地图,该车道线位置点对应的网格为车道线网格,每个车道线网格包括一个语义信息,该语义信息用于表征车道线网格为车道线位置点对应的网格。针对这种情况,可以对局部地图中的各个车道线网格进行分析处理,得到局部地图对应的局部车道线集合,该局部车道线集合包括至少一个局部车道线,进而从局部车道线集合中确定出初始车道线集合,该初始车道线集合包括至少一个初始车道线数据。Exemplarily, the initial lane line data included in the initial lane line set may be determined according to the lane line position points recorded in the local map. In some embodiments, the local map may be a grid map in the world coordinate system, the grid corresponding to the lane line position point is a lane line grid, and each lane line grid includes a semantic information, and the semantic information is used for The grid representing the lane line is the grid corresponding to the position point of the lane line. In view of this situation, each lane line grid in the local map can be analyzed and processed to obtain the local lane line set corresponding to the local map. The local lane line set includes at least one local lane line, which is then determined from the local lane line set An initial lane line set is generated, and the initial lane line set includes at least one initial lane line data.
在一些实施方式中,可以基于各个车道线网格的语义信息对局部地图中的各个车道线网格进行连通域分析处理,得到局部地图对应的局部车道线集合,并基于预设的优化算法和局部车道线集合中各局部车道线的权重值,优化确定出初始车道线,得到初始车道线集合。其中,该局部车道线的权重值是根据车道线的特征信息确定的。In some embodiments, the connected domain analysis processing of each lane line grid in the local map can be performed based on the semantic information of each lane line grid to obtain the local lane line set corresponding to the local map, and based on the preset optimization algorithm and The weight value of each local lane line in the local lane line set is optimized to determine the initial lane line to obtain the initial lane line set. Wherein, the weight value of the local lane line is determined according to the characteristic information of the lane line.
示例性的,基于各个车道线网格的语义信息对局部地图中的各个车道线网格进行连通域分析处理时,可以首先根据各个车道线网格的语义信息从局部地图中确定出各个车道线网格,并对各个车道线网格进行连通域提取,根据各个车道线网格的语义信息确定小范围内车道线网格的连通域标签,基于各车道线网格对应的连通域标签进行车道线拟合,确定出小范围内车道线位置点对应的一条或多条局部车道线,以此类推,可确定出局部地图中的所有局部车道线,从而得到局部地图对应的局部车道线集合。Exemplarily, when performing connected domain analysis processing on each lane line grid in the local map based on the semantic information of each lane line grid, each lane line may be determined from the local map according to the semantic information of each lane line grid. Grid, and extract the connected domain of each lane line grid, determine the connected domain label of the lane line grid in a small area according to the semantic information of each lane line grid, and perform lane based on the connected domain label corresponding to each lane line grid Line fitting determines one or more local lane lines corresponding to the lane line position points in a small area, and so on, can determine all the local lane lines in the local map, so as to obtain the local lane line set corresponding to the local map.
其中,属于同一车道线的车道线网格对应相同的连通域标签,该连通域标签与车道线网格的语义信息关联。例如,车道线网格G1的语义信息用于指示该车道线网格G1对应的图像点属于车道线A,车道线网格G2的语义信息用于指示该车道线网格G2对应的图像点也属于车道线A,那么该车道线网格G1和车道线网格G2对应相同的连通域标签。Wherein, the lane line grids belonging to the same lane line correspond to the same connected domain label, and the connected domain label is associated with the semantic information of the lane line grid. For example, the semantic information of the lane line grid G1 is used to indicate that the image point corresponding to the lane line grid G1 belongs to the lane line A, and the semantic information of the lane line grid G2 is used to indicate that the image point corresponding to the lane line grid G2 is also Belonging to lane line A, then the lane line grid G1 and lane line grid G2 correspond to the same connected domain label.
如图3所示为通过连通域分析确定局部地图中局部车道线的示意图。如图所示,每一个网格表示一个图像点,网格中的数字表示各网格对应的连通域标签。其中,连通域标签为0的网格可能为局部车道线中不属于车道线的网格,连通域标签不为0的为可能属于车道线的车道线网格。连通域标签为1的网格为局部地图中属于A车道线的图像点;连通域标签为2的图像点为局部地图中属于B车道线对应的图像点,其中,该A车道线和该B车道线为不相同的两条车道线。Figure 3 shows a schematic diagram of determining local lane lines in a local map through connected domain analysis. As shown in the figure, each grid represents an image point, and the number in the grid represents the connected domain label corresponding to each grid. Among them, a grid with a connected component label of 0 may be a grid of local lane lines that does not belong to a lane line, and a grid with a connected component label of not 0 may be a grid of lane lines that may belong to a lane line. The grid with the connected domain label of 1 is the image point belonging to the A lane line in the local map; the image point with the connected domain label 2 is the image point corresponding to the B lane line in the local map, where the A lane line and the B The lane lines are two different lane lines.
示例性的,在对局部地图中的车道线网格进行连通域分析处理时,可按照预设尺寸的图像检测窗口从局部地图中选取小范围的网格,并基于各个网格的语义信息确定出处于该图像检测窗口内的各网格的连通域标签,其中,非车道线网格对应的连通域标签为0,车道线网格的连通域标签由对应的语义信息确定。由于处于相同连通域的网格对应有相同的连通域标签,所以基于连通域标签是否相同的特性可确定出图像检测窗口的各连通域,即确定每个连通域包括的网格,其中,所述图像检测窗口的预设尺寸例如可以是3×3或者5×5。Exemplarily, when the connected domain analysis processing is performed on the lane line grid in the local map, a small-scale grid can be selected from the local map according to the image detection window of the preset size, and determined based on the semantic information of each grid The connected component label of each grid in the image detection window is displayed, where the connected component label corresponding to the non-lane line grid is 0, and the connected component label of the lane line grid is determined by the corresponding semantic information. Since the grids in the same connected component correspond to the same connected component label, the connected components of the image detection window can be determined based on the characteristics of whether the connected component labels are the same, that is, the grids included in each connected component are determined. The preset size of the image detection window may be 3×3 or 5×5, for example.
在确定每个连通域包括的各网格后,可对各连通域对应的网格按照最优解算法进行拟合,得到各连通域对应的局部车道线,以此类推,可确定出图像检测窗口在局部地图中位于不同位置时包括的车道线对应的局部车道线,从而可确定出局部地图中的所有局部车道线,以得到局部车道线集合。After determining each grid included in each connected domain, the grid corresponding to each connected domain can be fitted according to the optimal solution algorithm to obtain the local lane line corresponding to each connected domain, and so on, the image detection can be determined The local lane lines corresponding to the lane lines included when the window is located at different positions in the local map, so that all the local lane lines in the local map can be determined to obtain a set of local lane lines.
举例来说,如果从局部车道线中选取的位于图像检测窗口中的网格对应的连通域标签如图3所示,可将连通域标签为1的所有车道线网格按照最优解算法拟合出一条局部车道线,如图中的501,将连通域标签为2的所有车道线网格按照最优解算法拟合出一条局部车道线,如图中的502,以此类推,可将处于该图像检测窗口中的所有车道线网格拟合成多条局部车道线,从而可确定出局部地图中的所有局部车道线。For example, if the connected component label corresponding to the grid in the image detection window selected from the local lane line is shown in Figure 3, all the lane line grids with the connected component label of 1 can be modeled according to the optimal solution algorithm. Combine a local lane line, such as 501 in the figure, fit all the lane line grids with the connected domain label 2 according to the optimal solution algorithm to fit a local lane line, such as 502 in the figure, and so on. All the lane lines in the image detection window are grid-fitted into multiple local lane lines, so that all the local lane lines in the local map can be determined.
示例性的,在确定出局部地图对应的局部车道线集合之后,可以基于带权最大团算法和局部车道线集合中各局部车道线的权重值,优化确定出至少一条初始车道线,并对至少一条初始车道线进行过滤处理,得到初始车道线集合。Exemplarily, after the local lane line set corresponding to the local map is determined, at least one initial lane line can be optimally determined based on the weighted maximum clique algorithm and the weight value of each local lane line in the local lane line set. One initial lane line is filtered to obtain the initial lane line set.
示例性的,对局部车道线集合中各局部车道线的特征信息进行分析,以得到各局部车道线的权重值,进而基于预设优化算法,如带权最大团算法和各局部车道线的权重值,优化确定出至少一条初始车道线,得到初始车道线集合。Exemplarily, the feature information of each local lane line in the local lane line set is analyzed to obtain the weight value of each local lane line, and then based on preset optimization algorithms, such as the weighted maximum clique algorithm and the weight of each local lane line Value, the optimization determines at least one initial lane line, and the initial lane line set is obtained.
其中,局部车道线的权重值是根据车道线的特征信息确定的,在一个实施例中,车道线的特征信息包括:车道线的几何特征和/或颜色特征,几何特征包括长度特征、宽度特征以及车道线之间的平行特征中的任意一种或多种。Wherein, the weight value of the local lane line is determined according to the feature information of the lane line. In one embodiment, the feature information of the lane line includes: the geometric feature and/or color feature of the lane line, and the geometric feature includes the length feature and the width feature. And any one or more of the parallel features between lane lines.
作为一种可行的实施例方式,可以预先建立车道线的几何特征、颜色特征与假设分值的对应关系,一个车道线对应的假设分值总和越高,那么该车道线为实际车道线的可能性越大。示例性地,该车道线的几何特征、颜色特征与假设分值的对应关系可以如表1所示。可以看出,每一个局部车道线均可以通过 该表1所示的对应关系,确定出自身对应的假设分值总和,该假设分值总和即为该局部车道线对应的权重值。As a feasible embodiment, the corresponding relationship between the geometric and color features of the lane line and the hypothetical score can be established in advance. The higher the sum of the hypothetical scores corresponding to a lane line, then the possibility that the lane line is the actual lane line The greater the sex. Exemplarily, the corresponding relationship between the geometric feature, the color feature and the hypothetical score of the lane line may be as shown in Table 1. It can be seen that each local lane line can determine its own corresponding hypothetical score sum through the corresponding relationship shown in Table 1, and the hypothetical score sum is the weight value corresponding to the local lane line.
表1 车道线特征信息的分值Table 1 Scores of lane line feature information
Figure PCTCN2019108208-appb-000001
Figure PCTCN2019108208-appb-000001
其中,表1中各个特征维度对应的假设分值仅为一种示例,主要用于说明通过车道线的特征信息确定局部车道线权重值的原理,不能成为对本发明实施例的限定。Among them, the hypothetical score corresponding to each feature dimension in Table 1 is only an example, which is mainly used to illustrate the principle of determining the weight value of a local lane line through the feature information of the lane line, and it cannot be a limitation to the embodiment of the present invention.
在一个实施例中,可以解析各个局部车道线的特征信息,并根据预先建立的车道线的几何特征、颜色特征与假设分值的对应关系,确定出各个局部车道线的权重值。进一步地,基于带权最大团算法,解出局部车道线中权重值最高的至少一条局部车道线,即至少一条初始车道线。In one embodiment, the feature information of each local lane line can be analyzed, and the weight value of each local lane line can be determined according to the pre-established correspondence relationship between the geometric feature, color feature and the hypothetical score of the lane line. Further, based on the weighted maximum clique algorithm, at least one local lane line with the highest weight value among the local lane lines is solved, that is, at least one initial lane line.
进一步地,可以对至少一条初始车道线进行过滤处理,得到初始车道线集合。在一个实施例中,可基于预设的针对初始车道线的先验信息进行后处理,以实现对上述至少一条初始车道线的所有初始车道线进行过滤,将该所有初始车道线中的错误车道线滤除,得到初始车道线集合。Further, filtering processing may be performed on at least one initial lane line to obtain an initial lane line set. In one embodiment, post-processing may be performed based on the preset a priori information for the initial lane line, so as to filter all the initial lane lines of the at least one initial lane line, and the wrong lanes in all the initial lane lines The line is filtered out, and the initial lane line set is obtained.
其中,所述预设的针对初始车道线的先验信息是基于车道线的国家标准设定的一个预设范围或者预设值,所述先验信息具体包括长度信息以及宽度信息等,假设国家标准的车道线长度为1.5米,则该针对初始车道线的先验信息包括的长度信息可以设定为小于标准车道线长度的部分长度,例如10厘米至15厘米的范围等等;假设国家标准的车道线宽度为15厘米,则该先验信息包括的宽度信息可以设定为13厘米至17厘米的范围等。对应的,该错误车道线为不 满足该预设的先验信息的车道线。Wherein, the preset a priori information for the initial lane line is a preset range or a preset value set based on the national standard of the lane line, and the a priori information specifically includes length information and width information, etc., assuming that the country The standard lane line length is 1.5 meters, and the length information included in the a priori information for the initial lane line can be set to be a part of the length less than the standard lane line length, such as the range of 10 cm to 15 cm, etc.; assuming national standards If the width of the lane line is 15 cm, the width information included in the prior information can be set to a range of 13 cm to 17 cm. Correspondingly, the wrong lane line is the lane line that does not meet the preset prior information.
从局部车道线集合中筛选出的初始车道线可以认为是和实际车道线最相符的车道线。The initial lane line selected from the set of local lane lines can be considered as the lane line most consistent with the actual lane line.
S120、对所述初始车道线集合中的初始车道线数据进行拟合优化,得到目标车道线集合,其中,所述拟合优化包括:根据所述初始车道线数据和历史车道线集合中的历史车道线数据进行拟合优化,得到目标车道线集合。S120. Perform fitting optimization on the initial lane line data in the initial lane line set to obtain a target lane line set, where the fitting optimization includes: according to the initial lane line data and the history in the historical lane line set The lane line data is fitted and optimized to obtain the target lane line set.
具体的,在从局部地图中确定出初始车道线集合之后,可以对历史车道线集合中的历史车道线数据和初始车道线集合中的初始车道线数据进行拟合优化,得到目标车道线集合。可以将当前的车道线检测结果与历史车道线检测结果进行时序和空间上的融合,有利于提高车道线检测结果的准确度。Specifically, after the initial lane line set is determined from the local map, the historical lane line data in the historical lane line set and the initial lane line data in the initial lane line set can be fitted and optimized to obtain the target lane line set. The current lane line detection results can be combined with the historical lane line detection results in time sequence and space, which is beneficial to improve the accuracy of the lane line detection results.
示例性的,将初始车道线集合中过滤后的初始车道线数据与历史车道线集合中的历史车道线数据进行拟合优化,得到目标车道线集合,以完成对车道线的检测。Exemplarily, the initial lane line data filtered in the initial lane line set and the historical lane line data in the historical lane line set are fitted and optimized to obtain the target lane line set to complete the detection of the lane line.
在一些实施方式中,在从局部地图中确定出初始车道线集合之后,可以查询存储区域中是否存在历史车道线集合。In some embodiments, after the initial lane line set is determined from the local map, it is possible to query whether there is a historical lane line set in the storage area.
示例性的,若不存在该历史车道线集合,则可以确定本次车道线检测为首次车道线检测,并根据本次获得的初始车道线集合确定历史车道线集合,并将确定的历史车道线集合存储在存储区域中,以便于后续与新的初始车道线集合进行拟合优化。若存在历史车道线集合,则可以对历史车道线集合中的历史车道线数据和初始车道线集合中的初始车道线数据进行拟合优化,得到目标车道线集合。Exemplarily, if the historical lane line set does not exist, it can be determined that the current lane line detection is the first lane line detection, and the historical lane line set is determined according to the initial lane line set obtained this time, and the determined historical lane line The set is stored in the storage area to facilitate subsequent fitting optimization with the new initial lane line set. If there is a historical lane line set, the historical lane line data in the historical lane line set and the initial lane line data in the initial lane line set can be fitted and optimized to obtain the target lane line set.
在一些实施方式中,所述拟合优化用于使得所述目标车道线集合包括相互不平行的车道线。In some embodiments, the fitting optimization is used to make the target lane line set include lane lines that are not parallel to each other.
通过将初始车道线数据和历史车道线集合中的历史车道线数据进行拟合优化,使得所述拟合优化可以不依赖车道线几何平行假设和路面平行假设,可以适用于道路包括分岔路口的场景,如图2所示,道路包括相互不平行的车道线,提高了车道线检测方法的通用性。By fitting and optimizing the initial lane line data and the historical lane line data in the historical lane line collection, the fitting optimization can be independent of the assumption of lane line geometric parallelism and road surface parallelism, and can be applied to roads including bifurcations. The scene, as shown in Figure 2, the road includes lane lines that are not parallel to each other, which improves the versatility of the lane line detection method.
在一些实施方式中,所述根据所述初始车道线数据和历史车道线集合中的历史车道线数据进行拟合优化,得到目标车道线集合,包括:基于过拟合约束条件和平行约束条件,根据所述初始车道线数据和历史车道线集合中的历史车 道线数据进行拟合优化,得到目标车道线集合。In some embodiments, the fitting optimization based on the initial lane line data and the historical lane line data in the historical lane line set to obtain the target lane line set includes: based on over-fitting constraint conditions and parallel constraint conditions, Fitting optimization is performed according to the initial lane line data and the historical lane line data in the historical lane line set to obtain the target lane line set.
示例性的,从初始车道线集合中确定出待拟合的初始车道线数据,并从历史车道线集合中确定出与该初始车道线数据匹配的历史车道线,待拟合的初始车道线数据为所述初始车道线集合中的任一个。Exemplarily, the initial lane line data to be fitted is determined from the initial lane line set, and the historical lane line matching the initial lane line data is determined from the historical lane line set, and the initial lane line data to be fitted Is any one of the initial lane line set.
示例性的,通过将待拟合的初始车道线数据的索引信息与历史车道线集合中的历史车道线数据的索引信息进行匹配,确定与该初始车道线数据匹配的目标历史车道线。Exemplarily, by matching the index information of the initial lane line data to be fitted with the index information of the historical lane line data in the historical lane line set, the target historical lane line matching the initial lane line data is determined.
例如,可以基于组成初始车道线的车道线网格的语义信息确定各个初始车道线所属的车道,进而对各个初始车道线数据添加索引信息,每个索引信息指示了初始车道线数据所属的车道。For example, the lane to which each initial lane line belongs can be determined based on the semantic information of the lane line grid constituting the initial lane line, and then index information is added to each initial lane line data, and each index information indicates the lane to which the initial lane line data belongs.
从历史车道线集合中确定出与待拟合的初始车道线匹配的历史车道线之后,根据基于过拟合约束条件和平行约束条件,根据所述初始车道线数据和所述历史车道线数据进行拟合优化,得到该初始车道线数据对应的目标车道线。After the historical lane line matching the initial lane line to be fitted is determined from the historical lane line set, the process is performed according to the over-fitting constraint condition and the parallel constraint condition based on the initial lane line data and the historical lane line data. Fitting optimization to obtain the target lane line corresponding to the initial lane line data.
依次确定初始车道线集合中的各初始车道线数据为待拟合的初始车道线,并确定各初始车道线数据对应的目标车道线;根据至少一个目标车道线得到目标车道线集合;由于过拟合约束条件和平行约束条件,使得目标车道线集合包括相互不平行的车道线。Determine each initial lane line data in the initial lane line set in turn as the initial lane line to be fitted, and determine the target lane line corresponding to each initial lane line data; obtain the target lane line set according to at least one target lane line; Combine the constraints and the parallel constraints so that the target lane line set includes lane lines that are not parallel to each other.
在一些实施方式中,通过包括过拟合约束条件和平行约束条件的车道模型对初始车道线数据和所述历史车道线数据进行拟合优化。In some embodiments, the initial lane line data and the historical lane line data are fitted and optimized through a lane model including an over-fitting constraint condition and a parallel constraint condition.
示例性的,车道模型对应的数学函数可以由三部分组成,第一部分为基础的最小二乘模型,用于求解初始车道线数据对应的车道线位置点与拟合优化得到的目标车道线对应的曲线方程之间的最小误差;第二部分为曲线的平滑项(对应过拟合预设条件),可以使用对曲线方程的三阶导数平方进行积分作为平滑约束,主要用于防止过拟合;第三部分为弱平行约束项(对应平行约束条件),主要用于对相邻两车道线间的平行状态进行约束。Exemplarily, the mathematical function corresponding to the lane model can be composed of three parts. The first part is the least squares model based on solving the lane line position points corresponding to the initial lane line data and the target lane line obtained by fitting optimization. The minimum error between the curve equations; the second part is the smoothing term of the curve (corresponding to the preset conditions of overfitting), you can use the integration of the third derivative square of the curve equation as a smoothing constraint, mainly to prevent overfitting; The third part is the weak parallel constraint item (corresponding to the parallel constraint condition), which is mainly used to constrain the parallel state between two adjacent lane lines.
示例性的,以f i(t)表示第i条初始车道线的初始车道线数据进行拟合优化得到的目标车道线的曲线方程。 Exemplarily, f i (t) is used to represent the curve equation of the target lane line obtained by fitting and optimizing the initial lane line data of the i-th initial lane line.
示例性的,目标车道线的曲线方程以五次多项式描述,具体的有:Exemplarily, the curve equation of the target lane line is described by a fifth-degree polynomial, and the specific ones are:
f i(t)=T iC i,其中,T i=(1,t,t 2,...,t 5)且C i=(c 0,c 1,c 2,...,c 5) T f i (t) = T i C i , where T i = (1,t,t 2 ,...,t 5 ) and C i =(c 0 ,c 1 ,c 2 ,...,c 5 ) T
式中,T i表示多项式基向量,t表示车道线位置点在局部地图上的第一坐标, C i表示拟合系数数据,为需要求解的量,上标T表示矩阵的转置;从而,拟合优化得到的目标车道线对应的曲线方程表示如下: In the formula, T i represents the polynomial basis vector, t represents the first coordinate of the lane line position point on the local map, C i represents the fitting coefficient data, which is the quantity to be solved, and the superscript T represents the transposition of the matrix; thus, The curve equation corresponding to the target lane line obtained by fitting optimization is expressed as follows:
f i(t)=T iC i=c 0+c 1×t+c 2×t 2+c 3×t 3+c 4×t 4+c 5×t 5 f i (t)=T i C i =c 0 +c 1 ×t+c 2 ×t 2 +c 3 ×t 3 +c 4 ×t 4 +c 5 ×t 5
车道模型的第一部分为用于求解初始车道线数据对应的车道线位置点与拟合优化得到的目标车道线对应的曲线方程之间的最小误差。The first part of the lane model is used to solve the minimum error between the lane line position point corresponding to the initial lane line data and the curve equation corresponding to the target lane line obtained by fitting optimization.
车道模型的第二部分为曲线的平滑项(对应过拟合预设条件),可以使用对曲线方程的三阶导数平方进行积分作为平滑约束。The second part of the lane model is the smoothing term of the curve (corresponding to the over-fitting preset condition), and the integral of the third derivative square of the curve equation can be used as a smoothing constraint.
车道模型的第三部分为弱平行约束项(对应平行约束条件),主要用于对相邻两车道线间的平行状态进行约束。例如用于对第i条初始车道线和第i+1条初始车道线间的平行状态进行约束。The third part of the lane model is the weak parallel constraint item (corresponding to the parallel constraint condition), which is mainly used to constrain the parallel state between two adjacent lane lines. For example, it is used to constrain the parallel state between the i-th initial lane line and the i+1-th initial lane line.
示例性的,可以根据目标车道线曲线方程的五次多项式描述形式,对车道模型的第一部分、第二部分和第三部分进行处理,并将处理结果中与拟合系数数据C i无关的部分以常量表示,从而可以得到关于拟合系数数据C i的矩阵形式的车道模型,如矩阵形式的目标函数。 Exemplarily, the first part, second part, and third part of the lane model can be processed according to the fifth-order polynomial description form of the target lane line curve equation, and the part of the processing result that is not related to the fitting coefficient data C i It is expressed as a constant, so that a lane model in the matrix form of the fitting coefficient data C i can be obtained, such as an objective function in the matrix form.
在一些实施方式中,拟合优化的目标函数表示为求取相邻两个目标车道线曲线方程的拟合系数数据,使得车道模型的第一部分、第二部分和第三部分之和的最小值。In some embodiments, the objective function of the fitting optimization is expressed as obtaining the fitting coefficient data of the curve equations of two adjacent target lanes, so that the minimum value of the sum of the first part, the second part and the third part of the lane model .
示例性的,对矩阵形式的目标函数求导,并令导数为0,可以得到关于相邻两个目标车道线曲线方程的拟合系数数据的等式。Exemplarily, by taking the derivative of the objective function in the form of a matrix, and setting the derivative to 0, an equation for the fitting coefficient data of the curve equations of two adjacent target lane lines can be obtained.
根据该等式可以得到相邻两个目标车道线曲线方程的拟合系数数据。根据求取的拟合系数数据,进而可以得到相邻两个目标车道线的最优曲线方程,例如得到第i条初始车道线和第i+1条初始车道线对应的拟合得到的目标车道线的曲线方程。According to this equation, the fitting coefficient data of the curve equations of two adjacent target lanes can be obtained. According to the obtained fitting coefficient data, the optimal curve equations of the two adjacent target lane lines can be obtained, for example, the target lane obtained by fitting corresponding to the i-th initial lane line and the i+1-th initial lane line The curve equation of the line.
示例性的,通过对该等式等号两边的关于多项式基向量T i和拟合系数数据C i的累加部分构造累加和可以实现保留历史观测信息。 Exemplarily, the preservation of historical observation information can be achieved by constructing an accumulation sum for the accumulation part of the polynomial basis vector T i and the fitting coefficient data C i on both sides of the equal sign of the equation.
示例性的,关于多项式基向量T i的累加和为第一聚合数据A i,关于多项式基向量T i和拟合系数数据C i的累加和为第二聚合数据B iExemplarily, the cumulative sum of the polynomial basis vector T i is the first aggregate data A i , and the cumulative sum of the polynomial basis vector T i and the fitting coefficient data C i is the second aggregate data B i .
根据对历史观测的时序累加得到第一聚合数据A i和第二聚合数据B i。第一聚合数据A i和第二聚合数据包含了更多的历史观测,可以防止例如滑动窗口造成的有效观测丢失而使车道线检测的鲁棒性降低。 The first aggregated data A i and the second aggregated data B i are obtained by accumulating the time series of historical observations. The first aggregated data Ai and the second aggregated data contain more historical observations, which can prevent, for example, the loss of effective observations caused by sliding windows, which reduces the robustness of lane line detection.
同时,虽然第一聚合数据A i和第二聚合数据B i是对观测的时序累加获得,但是其数据量只和车道线曲线方程的阶数和曲线的分段数决定。 At the same time, although the first aggregated data A i and the second aggregated data B i are obtained by accumulating the time series of observations, the amount of data is only determined by the order of the lane curve equation and the number of segments of the curve.
示例性的,所述历史车道线数据由历史的初始车道线数据根据预设融合规则累加得到。Exemplarily, the historical lane line data is obtained by accumulating historical initial lane line data according to a preset fusion rule.
可以理解的,所述历史车道线数据具有相同的数据量。It is understandable that the historical lane line data has the same amount of data.
在一些实施方式中,根据当前时刻,如第n+1时刻的多项式基向量和拟合系数数据确定,以及第n时刻的第一聚合数据A i和第二聚合数据B i可以解算处当前时刻拟合优化的目标车道线的曲线方程的拟合系数。 In some embodiments, it is determined according to the current time, such as the polynomial basis vector and fitting coefficient data at the n+1th time, and the first aggregated data Ai and the second aggregated data B i at the nth time can be solved at the current Fitting coefficients of the curve equation of the optimized target lane line at all times.
在一些实施方式中,根据当前时刻,如第n+1时刻的多项式基向量和拟合系数数据确定累加和的增量,并将新确定的增量相应的累加至第一聚合数据A i、第二聚合数据B i,实现将初始车道线数据压缩至历史车道线数据,得到更新的历史车道线数据。 In some embodiments, the increment of the cumulative sum is determined according to the current time, such as the polynomial basis vector and the fitting coefficient data at the n+1th time, and the newly determined increment is correspondingly added to the first aggregate data A i , The second aggregated data B i realizes that the initial lane line data is compressed to the historical lane line data to obtain updated historical lane line data.
可以理解的,所述初始车道线数据和历史车道线数据通过预设的数据结构进行处理。例如通过对由多项式基向量和拟合系数数据确定的增量的累加实现对初始车道线数据和历史车道线数据的处理。其中,所述预设的数据结构具有确定的计算量。例如各时刻的增量和历史的第一聚合数据、第二聚合数据的累加均具有相同的计算量不会随着历史观测数据的积累而增加,以及根据第一聚合数据和第二聚合数据解算曲线方程系数的计算量也不会随着历史观测数据的积累而增加。It is understandable that the initial lane line data and historical lane line data are processed through a preset data structure. For example, the initial lane line data and historical lane line data can be processed by accumulating the increment determined by the polynomial basis vector and the fitting coefficient data. Wherein, the preset data structure has a certain amount of calculation. For example, the increment at each time and the accumulation of the first aggregated data and the second aggregated data have the same amount of calculation, which will not increase with the accumulation of historical observation data, and the solution is based on the first aggregated data and the second aggregated data. The amount of calculation for calculating the coefficients of the curve equation will not increase with the accumulation of historical observation data.
在一些实施方式中,如图4所示,所述根据所述初始车道线数据和历史车道线集合中的历史车道线数据进行拟合优化,得到目标车道线集合,包括步骤S121至步骤S123。In some embodiments, as shown in FIG. 4, performing fitting optimization based on the initial lane line data and historical lane line data in the historical lane line set to obtain the target lane line set includes step S121 to step S123.
S121、从所述历史车道线集合中确定与所述初始车道线数据匹配的历史车道线数据。S121: Determine historical lane line data matching the initial lane line data from the set of historical lane lines.
示例性的,通过将所示初始车道线数据的索引信息与历史车道线集合中的历史车道线数据的索引信息进行匹配,确定与该初始车道线数据匹配的历史车道线数据。Exemplarily, by matching the index information of the initial lane line data shown with the index information of the historical lane line data in the historical lane line set, the historical lane line data matching the initial lane line data is determined.
示例性的,若某初始车道线数据对应于第i条车道线,则所述历史车道线集合中与该第i条车道线对应的历史车道线数据与所述初始车道线数据匹配。Exemplarily, if a certain initial lane line data corresponds to the i-th lane line, the historical lane line data corresponding to the i-th lane line in the historical lane line set matches the initial lane line data.
S122、基于过拟合约束条件和平行约束条件,对所述初始车道线数据和历 史车道线数据进行拟合优化,得到所述初始车道线数据对应的目标车道线。S122: Perform fitting optimization on the initial lane line data and the historical lane line data based on the over-fitting constraint condition and the parallel constraint condition, to obtain the target lane line corresponding to the initial lane line data.
示例性的,所述第i条车道线对应的历史车道线数据包括第一聚合数据A i和第二聚合数据B iExemplarily, the historical lane line data corresponding to the i-th lane line includes first aggregated data A i and second aggregated data B i .
具体的,如图5所示,所述基于过拟合约束条件和平行约束条件,对所述初始车道线数据和历史车道线数据进行拟合优化,得到所述初始车道线数据对应的目标车道线,包括步骤S1221至步骤S1222。Specifically, as shown in FIG. 5, the initial lane line data and historical lane line data are fitted and optimized based on the over-fitting constraint condition and the parallel constraint condition to obtain the target lane corresponding to the initial lane line data Line, including step S1221 to step S1222.
S1221、根据所述初始车道线数据确定第一增量数据和第二增量数据。S1221. Determine the first incremental data and the second incremental data according to the initial lane line data.
示例性的,第n+1时刻的初始车道线数据包括若干车道线位置点,从而可以确定用于叠加至第一聚合数据的第一增量数据和用于叠加至第二聚合数据的第二增量数据。Exemplarily, the initial lane line data at time n+1 includes several lane line position points, so that the first incremental data used for superimposing on the first aggregated data and the second incremental data used for superimposing on the second aggregated data can be determined. Incremental data.
示例性的,车道线位置点在地图上可以以第一坐标值和第二坐标值表示,例如第一坐标值对应的第一坐标轴为平行于车辆左右方向的坐标轴,第二坐标值对应的第二坐标轴为平行于车辆行驶方向的坐标轴。Exemplarily, the lane line position point on the map may be represented by a first coordinate value and a second coordinate value. For example, the first coordinate axis corresponding to the first coordinate value is a coordinate axis parallel to the left and right direction of the vehicle, and the second coordinate value corresponds to The second coordinate axis of is a coordinate axis parallel to the traveling direction of the vehicle.
在一些实施方式中,所述根据所述初始车道线数据确定第一增量数据,包括:根据所述初始车道线在局部地图上的第一坐标值确定所述第一增量数据,所述局部地图是根据所述可移动平台所处的环境确定的。In some embodiments, the determining the first incremental data according to the initial lane line data includes: determining the first incremental data according to the first coordinate value of the initial lane line on the local map, the The local map is determined according to the environment where the movable platform is located.
在一些实施方式中,所述根据所述初始车道线数据确定第二增量数据,包括:根据所述初始车道线在局部地图上的第一坐标值和所述初始车道线在局部地图上的第二坐标值确定所述第二增量数据。In some embodiments, the determining the second incremental data according to the initial lane line data includes: according to the first coordinate value of the initial lane line on the local map and the initial lane line on the local map. The second coordinate value determines the second incremental data.
S1222、基于根据过拟合约束条件和平行约束条件确定的等式,根据所述第一增量数据、第二增量数据、第一聚合数据和第二聚合数据确定所述初始车道线数据对应的目标车道线。S1222, based on the equation determined according to the over-fitting constraint condition and the parallel constraint condition, determine the corresponding initial lane line data according to the first incremental data, the second incremental data, the first aggregated data, and the second aggregated data Target lane line.
在一些实施方式中,所述根据所述第一增量数据、第二增量数据、第一聚合数据和第二聚合数据确定所述初始车道线数据对应的目标车道线,包括:根据所述第一增量数据、第二增量数据、第一聚合数据和第二聚合数据确定所述初始车道线数据对应的多项式系数;根据所述多项式系数确定所述初始车道线数据对应的目标车道线。In some embodiments, the determining the target lane line corresponding to the initial lane line data according to the first incremental data, the second incremental data, the first aggregated data, and the second aggregated data includes: according to the The first incremental data, the second incremental data, the first aggregated data, and the second aggregated data determine the polynomial coefficients corresponding to the initial lane line data; determine the target lane line corresponding to the initial lane line data according to the polynomial coefficients .
具体的,拟合得到的第i条车道线对应的曲线方程表示如下:Specifically, the curve equation corresponding to the i-th lane line obtained by fitting is expressed as follows:
f i(t)=T iC i=c 0+c 1×t+c 2×t 2+c 3×t 3+c 4×t 4+c 5×t 5 f i (t)=T i C i =c 0 +c 1 ×t+c 2 ×t 2 +c 3 ×t 3 +c 4 ×t 4 +c 5 ×t 5
S123、由至少一个所述目标车道线组成目标车道线集合。S123: A target lane line set is formed by at least one of the target lane lines.
示例性的,根据车辆两侧最近的两个目标车道线组成目标车道线集合,或者根据车辆左侧最近的目标车道线组成目标车道线集合,或者根据车辆右侧最近的目标车道线组成目标车道线集合,或者将传感器视野内拟合得到的所有目标车道线组成目标车道线集合。相应的,后续可以拟合优化和目标车道线集合中相应数目的车道线。Exemplarily, the target lane line set is formed according to the two nearest target lane lines on both sides of the vehicle, or the target lane line set is formed according to the nearest target lane line on the left side of the vehicle, or the target lane line is formed according to the nearest target lane line on the right side of the vehicle Line set, or all target lane lines fitted in the sensor field of view form a target lane line set. Correspondingly, a corresponding number of lane lines in the optimized and target lane line set can be fitted later.
由于车道模型进行初始车道线和目标历史车道线的拟合时在相邻两车道线间增加了平行状态的约束。因此,对于复杂的车道检测场景,如分岔路场景、城区场景等,均可以更好的保证车道线检测的准确性,从而能够更好地适用于多种车道线场景,提升了通用性。Because the lane model is fitting the initial lane line and the target historical lane line, the parallel state constraint is added between the two adjacent lane lines. Therefore, for complex lane detection scenes, such as branch road scenes, urban scenes, etc., the accuracy of lane line detection can be better guaranteed, so that it can be better applied to multiple lane line scenes, and the versatility is improved.
示例性的,得到目标车道线集合之后,可以对目标车道线集合中的目标车道线进行组合,得到至少一个车道,并生成车道的车道中心线,以便于辅助可移动平台行驶。例如可以根据属性信息,如车道的几何特征和/或颜色特征等对目标车道线进行组合,该几何特征包括长度特征、宽度特征以及车道之间的平行特征中的任意一种或多种。Exemplarily, after the target lane line set is obtained, the target lane lines in the target lane line set may be combined to obtain at least one lane, and the lane center line of the lane is generated to facilitate the driving of the movable platform. For example, the target lane lines may be combined according to attribute information, such as geometric characteristics and/or color characteristics of the lanes, and the geometric characteristics include any one or more of length characteristics, width characteristics, and parallel characteristics between lanes.
在一些实施方式中,车道线检测方法还包括:根据所述初始车道线数据更新所述历史车道线数据,更新后的历史车道线数据与更新前的历史车道线数据具有相同的数据量。In some embodiments, the lane line detection method further includes: updating the historical lane line data according to the initial lane line data, and the updated historical lane line data has the same amount of data as the historical lane line data before the update.
示例性的,所述根据所述初始车道线数据更新所述历史车道线数据,包括:将所述第一增量数据累加至所述第一聚合数据,以及将所述第二增量数据累加至所述第二聚合数据。实现将初始车道线数据压缩至历史车道线数据,得到更新的历史车道线数据。且更新后的历史车道线数据与更新前的历史车道线数据具有相同的数据量,可以做到不受融合累积的观测量增加而增加计算复杂度,达到了使拟合优化的计算量被约束住的目的。Exemplarily, the updating the historical lane line data according to the initial lane line data includes: accumulating the first incremental data to the first aggregated data, and accumulating the second incremental data To the second aggregated data. The initial lane line data is compressed to the historical lane line data, and the updated historical lane line data is obtained. In addition, the updated historical lane line data has the same amount of data as the historical lane line data before the update, which can avoid the increase of the fusion accumulated observations and increase the calculation complexity, so that the calculation amount of the fitting optimization is constrained The purpose of living.
本说明书实施例提供的车道线检测方法,通过可移动平台周围的环境图像确定若干初始车道线数据,然后根据若干初始车道线数据和历史车道线集合中相应的历史车道线数据进行拟合优化,得到若干目标道线。由于拟合优化融合了车道线的历史检测数据,使得车道线检测可以不依赖车道线几何平行假设和路面平行假设,从而可以适用于道路包括分岔路口的场景,提高了通用性和检测准确度。The lane line detection method provided by the embodiment of this specification determines a number of initial lane line data through the environment image around the movable platform, and then performs fitting optimization based on the initial lane line data and the corresponding historical lane line data in the historical lane line set, Get a number of target lines. Since the fitting optimization incorporates the historical detection data of the lane line, the lane line detection can be independent of the assumption of the geometric parallelism of the lane line and the assumption of the parallel road surface, which can be applied to the scene of the road including the bifurcation, which improves the versatility and detection accuracy. .
请结合上述实施例参阅图6,图6是本说明书一实施例提供的车道线检测 装置100的示意性框图。该车道线检测装置100包括传感器101和处理器102,传感器101例如可以包括视觉传感器,用于获取可移动平台周围的环境图像。Please refer to FIG. 6 in conjunction with the foregoing embodiment. FIG. 6 is a schematic block diagram of a lane line detection device 100 provided in an embodiment of this specification. The lane line detection device 100 includes a sensor 101 and a processor 102. The sensor 101 may include, for example, a visual sensor for acquiring an image of the environment around the movable platform.
具体地,处理器102可以是微控制单元(Micro-controller Unit,MCU)、中央处理单元(Central Processing Unit,CPU)或数字信号处理器(Digital Signal Processor,DSP)等。Specifically, the processor 102 may be a micro-controller unit (MCU), a central processing unit (Central Processing Unit, CPU), a digital signal processor (Digital Signal Processor, DSP), or the like.
示例性的,车道线检测装置100还包括存储器103,例如可以包括Flash芯片、只读存储器(ROM,Read-Only Memory)磁盘、光盘、U盘或移动硬盘等。Exemplarily, the lane line detection device 100 further includes a memory 103, which may include, for example, a Flash chip, a read-only memory (ROM, Read-Only Memory) disk, an optical disk, a U disk, or a mobile hard disk.
其中,所述处理器102用于运行存储在存储器103中的计算机程序,并在执行所述计算机程序时实现前述的车道线检测方法。Wherein, the processor 102 is configured to run a computer program stored in the memory 103, and implement the aforementioned lane line detection method when the computer program is executed.
示例性的,所述处理器用于运行存储在存储器103中的计算机程序,并在执行所述计算机程序时实现如下步骤:Exemplarily, the processor is configured to run a computer program stored in the memory 103, and implement the following steps when the computer program is executed:
获取可移动平台周围的环境图像,并根据所述环境图像得到所述可移动平台的初始车道线集合;Acquiring an image of the environment around the movable platform, and obtaining an initial lane line set of the movable platform according to the environment image;
对所述初始车道线集合中的初始车道线数据进行拟合优化,得到目标车道线集合;Fitting and optimizing the initial lane line data in the initial lane line set to obtain a target lane line set;
其中,所述拟合优化包括:根据所述初始车道线数据和历史车道线集合中的历史车道线数据进行拟合优化,得到目标车道线集合,所述拟合优化用于使得所述目标车道线集合包括相互不平行的车道线。Wherein, the fitting optimization includes: performing fitting optimization according to the initial lane line data and historical lane line data in the historical lane line set to obtain a target lane line set, and the fitting optimization is used to make the target lane The line set includes lane lines that are not parallel to each other.
示例性的,所述处理器实现所述根据所述初始车道线数据和历史车道线集合中的历史车道线数据进行拟合优化,得到目标车道线集合时,实现:Exemplarily, when the processor implements the fitting optimization based on the initial lane line data and the historical lane line data in the historical lane line set to obtain the target lane line set, it realizes:
基于过拟合约束条件和平行约束条件,根据所述初始车道线数据和历史车道线集合中的历史车道线数据进行拟合优化,得到目标车道线集合。Based on the over-fitting constraint condition and the parallel constraint condition, fitting optimization is performed according to the initial lane line data and the historical lane line data in the historical lane line set to obtain the target lane line set.
示例性的,所述初始车道线数据和历史车道线数据通过预设的数据结构进行处理,其中,所述预设的数据结构具有确定的计算量。Exemplarily, the initial lane line data and historical lane line data are processed through a preset data structure, wherein the preset data structure has a certain amount of calculation.
示例性的,所述历史车道线数据由历史的初始车道线数据根据预设融合规则累加得到。Exemplarily, the historical lane line data is obtained by accumulating historical initial lane line data according to a preset fusion rule.
示例性的,所述处理器实现所述根据所述初始车道线数据和历史车道线集合中的历史车道线数据进行拟合优化,得到目标车道线集合时,实现:Exemplarily, when the processor implements the fitting optimization based on the initial lane line data and the historical lane line data in the historical lane line set to obtain the target lane line set, it realizes:
从所述历史车道线集合中确定与所述初始车道线数据匹配的历史车道线数据;Determining historical lane line data matching the initial lane line data from the historical lane line set;
基于过拟合约束条件和平行约束条件,对所述初始车道线数据和历史车道线数据进行拟合优化,得到所述初始车道线数据对应的目标车道线;Fitting and optimizing the initial lane line data and historical lane line data based on the over-fitting constraint condition and the parallel constraint condition to obtain the target lane line corresponding to the initial lane line data;
由至少一个所述目标车道线组成目标车道线集合。At least one target lane line forms a target lane line set.
示例性的,所述历史车道线数据包括第一聚合数据和第二聚合数据;Exemplarily, the historical lane line data includes first aggregated data and second aggregated data;
所述处理器实现所述基于过拟合约束条件和平行约束条件,对所述初始车道线数据和历史车道线数据进行拟合优化,得到所述初始车道线数据对应的目标车道线时,实现:When the processor realizes that the initial lane line data and historical lane line data are fitted and optimized based on the over-fitting constraint condition and the parallel constraint condition, and the target lane line corresponding to the initial lane line data is obtained, the realization :
根据所述初始车道线数据确定第一增量数据和第二增量数据;Determining the first incremental data and the second incremental data according to the initial lane line data;
基于根据过拟合约束条件和平行约束条件确定的等式,根据所述第一增量数据、第二增量数据、第一聚合数据和第二聚合数据确定所述初始车道线数据对应的目标车道线。Based on the equation determined according to the over-fitting constraint condition and the parallel constraint condition, the target corresponding to the initial lane line data is determined according to the first incremental data, the second incremental data, the first aggregated data, and the second aggregated data Lane line.
示例性的,所述处理器实现所述确定所述初始车道线数据对应的目标车道线时,实现:Exemplarily, when the processor realizes the determination of the target lane line corresponding to the initial lane line data, it realizes:
确定所述初始车道线数据对应的多项式系数;Determining the polynomial coefficients corresponding to the initial lane line data;
根据所述多项式系数确定所述初始车道线数据对应的目标车道线。The target lane line corresponding to the initial lane line data is determined according to the polynomial coefficient.
示例性的,所述处理器还实现:Exemplarily, the processor further implements:
根据所述初始车道线数据更新所述历史车道线数据,更新后的历史车道线数据与更新前的历史车道线数据具有相同的数据量。The historical lane line data is updated according to the initial lane line data, and the updated historical lane line data has the same amount of data as the historical lane line data before the update.
示例性的,所述处理器实现所述根据所述初始车道线数据更新所述历史车道线数据时,实现:Exemplarily, when the processor implements the updating of the historical lane line data according to the initial lane line data, it implements:
将所述第一增量数据累加至所述第一聚合数据;Accumulating the first incremental data to the first aggregated data;
将所述第二增量数据累加至所述第二聚合数据。The second incremental data is accumulated to the second aggregated data.
示例性的,所述处理器实现所述根据所述初始车道线数据确定第一增量数据时,实现:Exemplarily, when the processor realizes that the first incremental data is determined according to the initial lane line data, it realizes:
根据所述初始车道线在局部地图上的第一坐标值确定所述第一增量数据,所述局部地图是根据所述可移动平台所处的环境确定的。The first incremental data is determined according to the first coordinate value of the initial lane line on the local map, and the local map is determined according to the environment where the movable platform is located.
示例性的,所述处理器实现所述根据所述初始车道线数据确定第二增量数据时,实现:Exemplarily, when the processor realizes that the second incremental data is determined according to the initial lane line data, it realizes:
根据所述初始车道线在局部地图上的第一坐标值和所述初始车道线在局部地图上的第二坐标值确定所述第二增量数据。The second incremental data is determined according to the first coordinate value of the initial lane line on the local map and the second coordinate value of the initial lane line on the local map.
本说明书实施例提供的车道线检测装置的具体原理和实现方式均与前述实施例的车道线检测方法类似,此处不再赘述。The specific principle and implementation of the lane line detection device provided in the embodiment of this specification are similar to the lane line detection method in the foregoing embodiment, and will not be repeated here.
请结合上述实施例参阅图7,图7是本说明书一实施例提供的可移动平台200的示意性框图。Please refer to FIG. 7 in conjunction with the foregoing embodiment. FIG. 7 is a schematic block diagram of a movable platform 200 according to an embodiment of the present specification.
如图7所示,可移动平台200包括前述的车道线检测装置100,用于确定车道线。可移动平台200还包括运动组件210,用于行驶。As shown in FIG. 7, the movable platform 200 includes the aforementioned lane line detection device 100 for determining the lane line. The movable platform 200 also includes a movement component 210 for driving.
在一些实施方式中,可移动平台200可以为车辆,例如可以为载人车辆、载货车辆、无人车辆等,如人工驾驶车辆或自动驾驶车辆。In some embodiments, the movable platform 200 may be a vehicle, for example, a passenger vehicle, a cargo vehicle, an unmanned vehicle, etc., such as a manual driving vehicle or an autonomous driving vehicle.
本说明书实施例提供的可移动平台的具体原理和实现方式均与前述实施例的车道线检测方法类似,此处不再赘述。The specific principles and implementation of the movable platform provided in the embodiment of this specification are similar to the lane line detection method of the foregoing embodiment, and will not be repeated here.
本说明书的实施例中还提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时使所述处理器实现上述实施例提供的车道线检测方法的步骤。The embodiments of this specification also provide a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor realizes the lane markings provided in the above-mentioned embodiments. Steps of the detection method.
其中,所述计算机可读存储介质可以是前述任一实施例所述的车道线检测装置的内部存储单元,例如所述车道线检测装置的硬盘或内存。所述计算机可读存储介质也可以是所述车道线检测装置的外部存储设备,例如所述车道线检测装置上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。Wherein, the computer-readable storage medium may be an internal storage unit of the lane line detection device described in any of the foregoing embodiments, for example, the hard disk or memory of the lane line detection device. The computer-readable storage medium may also be an external storage device of the lane line detection device, such as a plug-in hard disk equipped on the lane line detection device, a smart memory card (Smart Media Card, SMC), a secure digital ( Secure Digital, SD card, Flash Card, etc.
本说明书上述实施例提供的车道线融合装置、可移动平台和存储介质,通过可移动平台周围的环境图像确定若干初始车道线数据,然后根据若干初始车道线数据和历史车道线集合中相应的历史车道线数据进行拟合优化,得到若干目标道线。由于拟合优化融合了车道线的历史检测数据,使得车道线检测可以不依赖车道线几何平行假设和路面平行假设,从而可以适用于道路包括分岔路口的场景,提高了通用性和检测准确度。The lane line fusion device, the movable platform, and the storage medium provided in the above-mentioned embodiments of this specification determine a number of initial lane line data based on the environment image around the movable platform, and then according to the corresponding history in the set of the initial lane line data and the historical lane line The lane line data is fitted and optimized, and several target lane lines are obtained. Since the fitting optimization incorporates the historical detection data of the lane line, the lane line detection can be independent of the assumption of the geometric parallelism of the lane line and the assumption of the parallel road surface, which can be applied to the scene of the road including the bifurcation, which improves the versatility and detection accuracy. .
应当理解,在此本说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本说明书。It should be understood that the terms used in this specification are only for the purpose of describing specific embodiments and are not intended to limit the specification.
还应当理解,在本说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be understood that the term "and/or" used in this specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.
以上所述,仅为本说明书的具体实施方式,但本说明书的保护范围并不局 限于此,任何熟悉本技术领域的技术人员在本说明书揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本说明书的保护范围之内。因此,本说明书的保护范围应以权利要求的保护范围为准。The above are only specific implementations of this specification, but the protection scope of this specification is not limited to this. Any person skilled in the art can easily think of various equivalents within the technical scope disclosed in this specification. Modifications or replacements, these modifications or replacements shall be covered within the protection scope of this manual. Therefore, the protection scope of this specification should be subject to the protection scope of the claims.

Claims (24)

  1. 一种车道线检测方法,其特征在于,包括:A method for detecting lane lines, which is characterized in that it comprises:
    获取可移动平台周围的环境图像,并根据所述环境图像得到所述可移动平台的初始车道线集合;Acquiring an image of the environment around the movable platform, and obtaining an initial lane line set of the movable platform according to the environment image;
    对所述初始车道线集合中的初始车道线数据进行拟合优化,得到目标车道线集合;Fitting and optimizing the initial lane line data in the initial lane line set to obtain a target lane line set;
    其中,所述拟合优化包括:根据所述初始车道线数据和历史车道线集合中的历史车道线数据进行拟合优化,得到目标车道线集合,所述拟合优化用于使得所述目标车道线集合包括相互不平行的车道线。Wherein, the fitting optimization includes: performing fitting optimization according to the initial lane line data and historical lane line data in the historical lane line set to obtain a target lane line set, and the fitting optimization is used to make the target lane The line set includes lane lines that are not parallel to each other.
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述初始车道线数据和历史车道线集合中的历史车道线数据进行拟合优化,得到目标车道线集合,包括:The method according to claim 1, wherein the step of performing fitting optimization based on the initial lane line data and historical lane line data in the historical lane line set to obtain the target lane line set comprises:
    基于过拟合约束条件和平行约束条件,根据所述初始车道线数据和历史车道线集合中的历史车道线数据进行拟合优化,得到目标车道线集合。Based on the over-fitting constraint condition and the parallel constraint condition, fitting optimization is performed according to the initial lane line data and the historical lane line data in the historical lane line set to obtain the target lane line set.
  3. 根据权利要求1所述的方法,其特征在于,所述初始车道线数据和历史车道线数据通过预设的数据结构进行处理,其中,所述预设的数据结构具有确定的计算量。The method according to claim 1, wherein the initial lane line data and historical lane line data are processed through a preset data structure, wherein the preset data structure has a certain amount of calculation.
  4. 根据权利要求3所述的方法,其特征在于,所述历史车道线数据由历史的初始车道线数据根据预设融合规则累加得到。The method according to claim 3, wherein the historical lane line data is obtained by accumulating historical initial lane line data according to a preset fusion rule.
  5. 根据权利要求1所述的方法,其特征在于,所述根据所述初始车道线数据和历史车道线集合中的历史车道线数据进行拟合优化,得到目标车道线集合,包括:The method according to claim 1, wherein the step of performing fitting optimization based on the initial lane line data and historical lane line data in the historical lane line set to obtain the target lane line set comprises:
    从所述历史车道线集合中确定与所述初始车道线数据匹配的历史车道线数据;Determining historical lane line data matching the initial lane line data from the historical lane line set;
    基于过拟合约束条件和平行约束条件,对所述初始车道线数据和历史车道线数据进行拟合优化,得到所述初始车道线数据对应的目标车道线;Fitting and optimizing the initial lane line data and historical lane line data based on the over-fitting constraint condition and the parallel constraint condition to obtain the target lane line corresponding to the initial lane line data;
    由至少一个所述目标车道线组成目标车道线集合。At least one target lane line forms a target lane line set.
  6. 根据权利要求5所述的方法,其特征在于,所述历史车道线数据包括第 一聚合数据和第二聚合数据;The method according to claim 5, wherein the historical lane line data includes first aggregated data and second aggregated data;
    所述基于过拟合约束条件和平行约束条件,对所述初始车道线数据和历史车道线数据进行拟合优化,得到所述初始车道线数据对应的目标车道线,包括:The fitting and optimizing the initial lane line data and the historical lane line data based on the over-fitting constraint condition and the parallel constraint condition to obtain the target lane line corresponding to the initial lane line data includes:
    根据所述初始车道线数据确定第一增量数据和第二增量数据;Determining the first incremental data and the second incremental data according to the initial lane line data;
    基于根据过拟合约束条件和平行约束条件确定的等式,根据所述第一增量数据、第二增量数据、第一聚合数据和第二聚合数据确定所述初始车道线数据对应的目标车道线。Based on the equation determined according to the over-fitting constraint condition and the parallel constraint condition, the target corresponding to the initial lane line data is determined according to the first incremental data, the second incremental data, the first aggregated data, and the second aggregated data Lane line.
  7. 根据权利要求6所述的方法,其特征在于,所述确定所述初始车道线数据对应的目标车道线,包括:The method according to claim 6, wherein the determining the target lane line corresponding to the initial lane line data comprises:
    确定所述初始车道线数据对应的多项式系数;Determining the polynomial coefficients corresponding to the initial lane line data;
    根据所述多项式系数确定所述初始车道线数据对应的目标车道线。The target lane line corresponding to the initial lane line data is determined according to the polynomial coefficient.
  8. 根据权利要求6所述的方法,其特征在于,所述方法还包括:The method according to claim 6, wherein the method further comprises:
    根据所述初始车道线数据更新所述历史车道线数据,更新后的历史车道线数据与更新前的历史车道线数据具有相同的数据量。The historical lane line data is updated according to the initial lane line data, and the updated historical lane line data has the same amount of data as the historical lane line data before the update.
  9. 根据权利要求8所述的方法,其特征在于,所述根据所述初始车道线数据更新所述历史车道线数据,包括:The method according to claim 8, wherein the updating the historical lane line data according to the initial lane line data comprises:
    将所述第一增量数据累加至所述第一聚合数据;Accumulating the first incremental data to the first aggregated data;
    将所述第二增量数据累加至所述第二聚合数据。The second incremental data is accumulated to the second aggregated data.
  10. 根据权利要求6-9中任一项所述的方法,其特征在于,所述根据所述初始车道线数据确定第一增量数据,包括:The method according to any one of claims 6-9, wherein the determining the first incremental data according to the initial lane line data comprises:
    根据所述初始车道线在局部地图上的第一坐标值确定所述第一增量数据,所述局部地图是根据所述可移动平台所处的环境确定的。The first incremental data is determined according to the first coordinate value of the initial lane line on the local map, and the local map is determined according to the environment where the movable platform is located.
  11. 根据权利要求10所述的方法,其特征在于,所述根据所述初始车道线数据确定第二增量数据,包括:The method according to claim 10, wherein the determining the second incremental data according to the initial lane line data comprises:
    根据所述初始车道线在局部地图上的第一坐标值和所述初始车道线在局部地图上的第二坐标值确定所述第二增量数据。The second incremental data is determined according to the first coordinate value of the initial lane line on the local map and the second coordinate value of the initial lane line on the local map.
  12. 一种车道线检测装置,其特征在于,包括传感器和处理器;A lane line detection device, which is characterized in that it comprises a sensor and a processor;
    所述传感器用于获取可移动平台周围的环境图像;The sensor is used to obtain an image of the environment around the movable platform;
    所述处理器,用于实现如下步骤:The processor is configured to implement the following steps:
    获取可移动平台周围的环境图像,并根据所述环境图像得到所述可移动平 台的初始车道线集合;Acquiring an image of the environment around the movable platform, and obtaining an initial lane line set of the movable platform according to the environment image;
    对所述初始车道线集合中的初始车道线数据进行拟合优化,得到目标车道线集合;Fitting and optimizing the initial lane line data in the initial lane line set to obtain a target lane line set;
    其中,所述拟合优化包括:根据所述初始车道线数据和历史车道线集合中的历史车道线数据进行拟合优化,得到目标车道线集合,所述拟合优化用于使得所述目标车道线集合包括相互不平行的车道线。Wherein, the fitting optimization includes: performing fitting optimization according to the initial lane line data and historical lane line data in the historical lane line set to obtain a target lane line set, and the fitting optimization is used to make the target lane The line set includes lane lines that are not parallel to each other.
  13. 根据权利要求12所述的装置,其特征在于,所述处理器实现所述根据所述初始车道线数据和历史车道线集合中的历史车道线数据进行拟合优化,得到目标车道线集合时,实现:The device according to claim 12, wherein the processor implements the fitting optimization based on the initial lane line data and the historical lane line data in the historical lane line set to obtain the target lane line set, achieve:
    基于过拟合约束条件和平行约束条件,根据所述初始车道线数据和历史车道线集合中的历史车道线数据进行拟合优化,得到目标车道线集合。Based on the over-fitting constraint condition and the parallel constraint condition, fitting optimization is performed according to the initial lane line data and the historical lane line data in the historical lane line set to obtain the target lane line set.
  14. 根据权利要求12所述的装置,其特征在于,所述初始车道线数据和历史车道线数据通过预设的数据结构进行处理,其中,所述预设的数据结构具有确定的计算量。The device according to claim 12, wherein the initial lane line data and historical lane line data are processed through a preset data structure, wherein the preset data structure has a certain amount of calculation.
  15. 根据权利要求14所述的装置,其特征在于,所述历史车道线数据由历史的初始车道线数据根据预设融合规则累加得到。The device according to claim 14, wherein the historical lane line data is obtained by accumulating historical initial lane line data according to a preset fusion rule.
  16. 根据权利要求12所述的装置,其特征在于,所述处理器实现所述根据所述初始车道线数据和历史车道线集合中的历史车道线数据进行拟合优化,得到目标车道线集合时,实现:The device according to claim 12, wherein the processor implements the fitting optimization based on the initial lane line data and the historical lane line data in the historical lane line set to obtain the target lane line set, achieve:
    从所述历史车道线集合中确定与所述初始车道线数据匹配的历史车道线数据;Determining historical lane line data matching the initial lane line data from the historical lane line set;
    基于过拟合约束条件和平行约束条件,对所述初始车道线数据和历史车道线数据进行拟合优化,得到所述初始车道线数据对应的目标车道线;Fitting and optimizing the initial lane line data and historical lane line data based on the over-fitting constraint condition and the parallel constraint condition to obtain the target lane line corresponding to the initial lane line data;
    由至少一个所述目标车道线组成目标车道线集合。At least one target lane line forms a target lane line set.
  17. 根据权利要求16所述的装置,其特征在于,所述历史车道线数据包括第一聚合数据和第二聚合数据;The device according to claim 16, wherein the historical lane line data comprises first aggregated data and second aggregated data;
    所述处理器实现所述基于过拟合约束条件和平行约束条件,对所述初始车道线数据和历史车道线数据进行拟合优化,得到所述初始车道线数据对应的目标车道线时,实现:When the processor realizes that the initial lane line data and historical lane line data are fitted and optimized based on the over-fitting constraint condition and the parallel constraint condition, and the target lane line corresponding to the initial lane line data is obtained, the realization :
    根据所述初始车道线数据确定第一增量数据和第二增量数据;Determining the first incremental data and the second incremental data according to the initial lane line data;
    基于根据过拟合约束条件和平行约束条件确定的等式,根据所述第一增量数据、第二增量数据、第一聚合数据和第二聚合数据确定所述初始车道线数据对应的目标车道线。Based on the equation determined according to the over-fitting constraint condition and the parallel constraint condition, the target corresponding to the initial lane line data is determined according to the first incremental data, the second incremental data, the first aggregated data, and the second aggregated data Lane line.
  18. 根据权利要求17所述的装置,其特征在于,所述处理器实现所述确定所述初始车道线数据对应的目标车道线时,实现:The apparatus according to claim 17, wherein when the processor implements the determination of the target lane line corresponding to the initial lane line data, it implements:
    确定所述初始车道线数据对应的多项式系数;Determining the polynomial coefficients corresponding to the initial lane line data;
    根据所述多项式系数确定所述初始车道线数据对应的目标车道线。The target lane line corresponding to the initial lane line data is determined according to the polynomial coefficient.
  19. 根据权利要求17所述的装置,其特征在于,所述处理器还实现:The device according to claim 17, wherein the processor further implements:
    根据所述初始车道线数据更新所述历史车道线数据,更新后的历史车道线数据与更新前的历史车道线数据具有相同的数据量。The historical lane line data is updated according to the initial lane line data, and the updated historical lane line data has the same amount of data as the historical lane line data before the update.
  20. 根据权利要求19所述的装置,其特征在于,所述处理器实现所述根据所述初始车道线数据更新所述历史车道线数据时,实现:The apparatus according to claim 19, wherein when the processor implements the updating of the historical lane line data according to the initial lane line data, it implements:
    将所述第一增量数据累加至所述第一聚合数据;Accumulating the first incremental data to the first aggregated data;
    将所述第二增量数据累加至所述第二聚合数据。The second incremental data is accumulated to the second aggregated data.
  21. 根据权利要求17-20中任一项所述的装置,其特征在于,所述处理器实现所述根据所述初始车道线数据确定第一增量数据时,实现:The device according to any one of claims 17-20, wherein when the processor realizes that the first incremental data is determined according to the initial lane line data, it realizes:
    根据所述初始车道线在局部地图上的第一坐标值确定所述第一增量数据,所述局部地图是根据所述可移动平台所处的环境确定的。The first incremental data is determined according to the first coordinate value of the initial lane line on the local map, and the local map is determined according to the environment where the movable platform is located.
  22. 根据权利要求21所述的装置,其特征在于,所述处理器实现所述根据所述初始车道线数据确定第二增量数据时,实现:The device according to claim 21, wherein when the processor realizes that the second incremental data is determined according to the initial lane line data, it realizes:
    根据所述初始车道线在局部地图上的第一坐标值和所述初始车道线在局部地图上的第二坐标值确定所述第二增量数据。The second incremental data is determined according to the first coordinate value of the initial lane line on the local map and the second coordinate value of the initial lane line on the local map.
  23. 一种车辆,其特征在于,包括:A vehicle, characterized in that it comprises:
    如权利要求12-22中任一项所述的车道线检测装置,用于确定车道线;The lane line detection device according to any one of claims 12-22, which is used to determine the lane line;
    运动组件,用于行驶。Sports components for driving.
  24. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时使所述处理器实现如权利要求1-11中任一项所述的车道线融合方法。A computer-readable storage medium, characterized in that, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor realizes as described in any one of claims 1-11. The lane line fusion method described.
PCT/CN2019/108208 2019-09-26 2019-09-26 Lane line fusion method, lane line fusion apparatus, vehicle, and storage medium WO2021056341A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201980033842.8A CN112154449A (en) 2019-09-26 2019-09-26 Lane line fusion method, lane line fusion device, vehicle, and storage medium
PCT/CN2019/108208 WO2021056341A1 (en) 2019-09-26 2019-09-26 Lane line fusion method, lane line fusion apparatus, vehicle, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/108208 WO2021056341A1 (en) 2019-09-26 2019-09-26 Lane line fusion method, lane line fusion apparatus, vehicle, and storage medium

Publications (1)

Publication Number Publication Date
WO2021056341A1 true WO2021056341A1 (en) 2021-04-01

Family

ID=73891977

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/108208 WO2021056341A1 (en) 2019-09-26 2019-09-26 Lane line fusion method, lane line fusion apparatus, vehicle, and storage medium

Country Status (2)

Country Link
CN (1) CN112154449A (en)
WO (1) WO2021056341A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114413927A (en) * 2022-01-20 2022-04-29 智道网联科技(北京)有限公司 Lane line fitting method, electronic device, and storage medium
CN115422316A (en) * 2022-11-02 2022-12-02 高德软件有限公司 Lane line data processing method and device, electronic device and storage medium
CN116580373A (en) * 2023-07-11 2023-08-11 广汽埃安新能源汽车股份有限公司 Lane line optimization method and device, electronic equipment and storage medium
CN117433512A (en) * 2023-12-20 2024-01-23 福龙马城服机器人科技有限公司 Low-cost lane line real-time positioning and map building method for road sweeper

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112507977B (en) * 2021-01-21 2021-12-07 国汽智控(北京)科技有限公司 Lane line positioning method and device and electronic equipment
CN113378719B (en) * 2021-06-11 2024-04-05 北京清维如风科技有限公司 Lane line identification method, lane line identification device, computer equipment and storage medium
CN114842448B (en) * 2022-05-11 2023-03-24 禾多科技(北京)有限公司 Three-dimensional lane line generation method and device, electronic device and computer readable medium
CN115272182B (en) * 2022-06-23 2023-05-26 禾多科技(北京)有限公司 Lane line detection method, lane line detection device, electronic equipment and computer readable medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150086789A (en) * 2014-01-20 2015-07-29 한국전자통신연구원 Vision based lane recognition apparatus
CN105260713A (en) * 2015-10-09 2016-01-20 东方网力科技股份有限公司 Method and device for detecting lane line
CN106529493A (en) * 2016-11-22 2017-03-22 北京联合大学 Robust multi-lane line detection method based on perspective drawing
CN109359602A (en) * 2018-10-22 2019-02-19 长沙智能驾驶研究院有限公司 Method for detecting lane lines and device
CN110097025A (en) * 2019-05-13 2019-08-06 奇瑞汽车股份有限公司 Detection method, device and the storage medium of lane line
US10423840B1 (en) * 2019-01-31 2019-09-24 StradVision, Inc. Post-processing method and device for detecting lanes to plan the drive path of autonomous vehicle by using segmentation score map and clustering map

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150086789A (en) * 2014-01-20 2015-07-29 한국전자통신연구원 Vision based lane recognition apparatus
CN105260713A (en) * 2015-10-09 2016-01-20 东方网力科技股份有限公司 Method and device for detecting lane line
CN106529493A (en) * 2016-11-22 2017-03-22 北京联合大学 Robust multi-lane line detection method based on perspective drawing
CN109359602A (en) * 2018-10-22 2019-02-19 长沙智能驾驶研究院有限公司 Method for detecting lane lines and device
US10423840B1 (en) * 2019-01-31 2019-09-24 StradVision, Inc. Post-processing method and device for detecting lanes to plan the drive path of autonomous vehicle by using segmentation score map and clustering map
CN110097025A (en) * 2019-05-13 2019-08-06 奇瑞汽车股份有限公司 Detection method, device and the storage medium of lane line

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114413927A (en) * 2022-01-20 2022-04-29 智道网联科技(北京)有限公司 Lane line fitting method, electronic device, and storage medium
CN114413927B (en) * 2022-01-20 2024-02-13 智道网联科技(北京)有限公司 Lane line fitting method, electronic device and storage medium
CN115422316A (en) * 2022-11-02 2022-12-02 高德软件有限公司 Lane line data processing method and device, electronic device and storage medium
CN115422316B (en) * 2022-11-02 2023-01-13 高德软件有限公司 Lane line data processing method and device, electronic device and storage medium
CN116580373A (en) * 2023-07-11 2023-08-11 广汽埃安新能源汽车股份有限公司 Lane line optimization method and device, electronic equipment and storage medium
CN116580373B (en) * 2023-07-11 2023-09-26 广汽埃安新能源汽车股份有限公司 Lane line optimization method and device, electronic equipment and storage medium
CN117433512A (en) * 2023-12-20 2024-01-23 福龙马城服机器人科技有限公司 Low-cost lane line real-time positioning and map building method for road sweeper
CN117433512B (en) * 2023-12-20 2024-03-08 福龙马城服机器人科技有限公司 Low-cost lane line real-time positioning and map building method for road sweeper

Also Published As

Publication number Publication date
CN112154449A (en) 2020-12-29

Similar Documents

Publication Publication Date Title
WO2021056341A1 (en) Lane line fusion method, lane line fusion apparatus, vehicle, and storage medium
CN105667518B (en) The method and device of lane detection
EP4152204A1 (en) Lane line detection method, and related apparatus
Kong et al. Vanishing point detection for road detection
JP6997211B2 (en) Methods and devices for reducing midpoints in polygons
WO2016210227A1 (en) Aligning 3d point clouds using loop closures
CN108615246B (en) Method for improving robustness of visual odometer system and reducing calculation consumption of algorithm
CN105313774B (en) Vehicle parking assistance device and its method of operation
CN106981082A (en) Vehicle-mounted camera scaling method, device and mobile unit
WO2020220182A1 (en) Lane line detection method and apparatus, control device, and storage medium
CN111209770A (en) Lane line identification method and device
CN110587597A (en) SLAM closed loop detection method and detection system based on laser radar
WO2022062480A1 (en) Positioning method and positioning apparatus of mobile device
CN113903011A (en) Semantic map construction and positioning method suitable for indoor parking lot
CN110503009A (en) Lane line tracking and Related product
CN110263844B (en) Method for online learning and real-time estimation of road surface state
Cudrano et al. Advances in centerline estimation for autonomous lateral control
WO2021017211A1 (en) Vehicle positioning method and device employing visual sensing, and vehicle-mounted terminal
WO2019073024A1 (en) Lane sensing method
CN110992424B (en) Positioning method and system based on binocular vision
CN115564865A (en) Construction method and system of crowdsourcing high-precision map, electronic equipment and vehicle
CN114387576A (en) Lane line identification method, system, medium, device and information processing terminal
CN110864670B (en) Method and system for acquiring position of target obstacle
WO2021063756A1 (en) Improved trajectory estimation based on ground truth
CN116772858A (en) Vehicle positioning method, device, positioning equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19947084

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19947084

Country of ref document: EP

Kind code of ref document: A1