WO2018053834A1 - Paired lane lines efficient detection method and device - Google Patents

Paired lane lines efficient detection method and device Download PDF

Info

Publication number
WO2018053834A1
WO2018053834A1 PCT/CN2016/100098 CN2016100098W WO2018053834A1 WO 2018053834 A1 WO2018053834 A1 WO 2018053834A1 CN 2016100098 W CN2016100098 W CN 2016100098W WO 2018053834 A1 WO2018053834 A1 WO 2018053834A1
Authority
WO
WIPO (PCT)
Prior art keywords
sample
machine model
detected
support vector
straight lines
Prior art date
Application number
PCT/CN2016/100098
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 PCT/CN2016/100098 priority Critical patent/WO2018053834A1/en
Priority to CN201680001018.0A priority patent/CN106415603B/en
Publication of WO2018053834A1 publication Critical patent/WO2018053834A1/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/24Classification techniques
    • G06F18/241Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
    • G06F18/2411Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches based on the proximity to a decision surface, e.g. support vector machines

Definitions

  • the invention belongs to the field of automatic driving, and in particular relates to an efficient detection method and device for a pair of lane lines.
  • the lane departure warning system is an auxiliary system for driving a car that causes a driver to reduce a car accident due to a lane departure by means of an alarm.
  • an early warning reminder may be issued by the lane departure warning system, which may include an alarm sound, a steering wheel vibration, or an automatic change of steering.
  • the lane line In the lane departure warning system, in order to ensure the accuracy of the warning, the lane line needs to be correctly extracted and identified.
  • the current paired lane line detection method generally needs to consume more system resources. When a higher accuracy is required, a certain calculation time is required, and real-time detection cannot be guaranteed; or, in order to improve the real-time detection, It may cause leak detection, resulting in an increase in false positive rate.
  • an embodiment of the present invention provides a method for efficiently detecting a pair of lane lines, where the method includes:
  • Whether the two straight lines are paired lane lines is determined according to the output result of the support vector machine model.
  • the sample selected on the two straight lines according to a preset spacing is obtained between the sample point and a predetermined common point
  • the distance steps include:
  • the distance between the sample point and the common point is obtained as an input vector to be detected.
  • the method further includes:
  • the determining, according to the output result of the support vector machine model, whether the two lines are paired lane lines comprises:
  • the sample is included in each N samples selected on the lane line, the N being a natural number greater than or equal to 2.
  • an embodiment of the present invention provides an efficient detection device for a pair of lane lines, the device comprising:
  • a lane line acquiring unit configured to acquire two straight lines to be detected, and select a sample point respectively selected on the two straight lines according to a preset spacing, and obtain a distance between the sample point and a predetermined common point as a waiting Detecting an input vector;
  • a support vector machine operation unit configured to acquire an output result of the support vector machine model corresponding to the input vector to be detected according to a preset support vector machine model, wherein the vector dimension in the support vector machine model is The dimensions of the input vector to be detected are the same;
  • a determining unit configured to determine, according to an output result of the support vector machine model, whether the two straight lines are paired lane lines.
  • the lane line acquiring unit includes:
  • a sample selection subunit for respectively selecting a sample point on the two straight lines according to a preset spacing
  • the common point acquisition subunit is configured to take a center point of the image as a common point, and obtain a distance between the sample point and the common point as an input vector to be detected.
  • the device further includes:
  • a sample collection unit configured to collect a plurality of pairs of lane line samples and unpaired lane line samples, and select samples on the lane line samples according to the spacing;
  • a sample input vector calculation unit for calculating between a sample point on each straight line and the common point The sample input vector x of the distance
  • the determining unit calculating unit is specifically configured to:
  • the determining unit is specifically configured to:
  • the sample includes N samples selected on each lane line, the N being a natural number greater than or equal to two.
  • two lines to be detected are acquired, and samples are selected on the two straight lines according to a preset pitch to obtain a distance between the sample points and the common points, and the sample points and the common points are obtained.
  • the input vector to be detected formed by the distance between the two is substituted into a preset support vector machine model, and the output result of the support vector machine model is obtained. According to the output result, it can be determined whether the two straight lines to be detected are formed. On the lane line.
  • FIG. 1 is a flowchart of implementing an efficient detection method for a pair of lane lines according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a training process of a support vector machine model according to an embodiment of the present invention
  • 3-4 are schematic diagrams of samples in which two straight lines are paired lane lines according to an embodiment of the present invention.
  • 5-6 are schematic diagrams of samples of two straight lines that are unpaired lane lines according to an embodiment of the present invention.
  • 7-8 are schematic diagrams of lane lines to be detected according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of an apparatus for detecting high efficiency of a pair of lane lines according to an embodiment of the present invention.
  • the method for detecting a pair of lane lines aims to overcome the prior art method for detecting a lane line.
  • a relatively complex detection algorithm is often required, resulting in a detection algorithm.
  • the detection calculation process takes a certain period of time. If the vehicle is running at a high speed, it will cause the detection result to lag, and the detection has low real-time defects.
  • a simple lane line judgment method is adopted, it is easy to cause an error in the detection result, which affects the user's judgment.
  • FIG. 1 is a flowchart showing an implementation process of an efficient detection method for a pair of lane lines according to an embodiment of the present invention, which is described in detail as follows:
  • step S101 two lines to be detected are acquired, and samples respectively selected on the two straight lines according to a preset pitch are used to obtain a distance between the sample point and a predetermined common point as an input to be detected. vector.
  • the lane-forming line in the embodiment of the present invention refers to an auxiliary line for defining a lane in which the vehicle travels. Since other marking lines may be included in addition to the lane line during the running of the vehicle, as shown in FIG. 3, in addition to the lane line, an arrow mark is included, which is composed of an arrow line and a lane line. The logo should not be recognized as a pair of lane lines.
  • the two straight lines to be detected can be obtained by identifying the image.
  • the recognition of the line may be identified according to the color in the image, such as identifying a line in which the color is white, or a line with a yellow color.
  • the preset pitch can be set according to the size of the image.
  • the 1/3 screen width is set to be the length of the pitch.
  • the size of the spacing may also be selected according to the number of samples required, and the length of the spacing may be set such that the selected sample includes the end position of the straight line.
  • the selection of the common point can be flexibly set according to the needs of the user. For example, the midpoint of the upper portion of the image may be set as the common point, or the midpoint of the lower portion of the image may be set as the common point, and the center point of the image may be set as the common point. Depending on how the common point is selected, the parameters of the support vector machine model will change accordingly. And the position of the common point selected in the training process of the weight vector is the same as the position of the common point corresponding to the two straight lines to be detected.
  • the number of values in the input vector to be detected is related to the manner in which the samples are selected. When the number of samples selected on two straight lines is larger, the number of input vectors to be detected is also larger.
  • step S102 an output result of the support vector machine model corresponding to the input vector to be detected is acquired according to a preset support vector machine model, wherein the vector dimension in the support vector machine model and the input to be detected are The dimensions of the vector are the same.
  • the dimension of the hyperplane normal vector in the support vector machine model is the same as the dimension of the input vector to be detected.
  • the support vector machine models of multiple dimensions may be preset. For example, a 4-dimensional support vector machine model, a 6-dimensional support vector machine model, and an 8-dimensional support vector machine model may be preset.
  • step S201 a plurality of pairs of lane line samples and unpaired lane line samples are collected, and samples are selected on the lane line samples according to the spacing;
  • step S202 a sample of the distance between the sample point on each straight line and the common point is calculated.
  • the dimension of the hyperplane normal vector is 4 dimensions, and the sample points collected in the paired lane line or the unpaired lane line sample are 4 (two are collected on each line), and the sample input vector is substituted.
  • FIG. 3-6 are schematic diagrams of training samples provided by an embodiment of the present invention, wherein FIG. 3 to FIG. 4 are training samples of paired lane lines, and FIG. 5 and FIG. 6 are training samples of unpaired lane lines. And four sample points are selected as sample input vectors on each training sample. It can be understood that the more the number of training samples, the more accurate the calculation of the vector w and the constant b.
  • the vector value of Fig. 3 is ⁇ 5 (CM, upper left green line length), 14 (CM, lower left green line length), 11 (CM, upper right red line length), and 10 (CM, lower right red line length).
  • the vector value of Fig. 4 is ⁇ 5 (CM, upper left green line length), 7 (CM, lower left green line length), 10 (CM, upper right red line length), and 16 (CM, lower right red line length).
  • the vector value of Fig. 5 is ⁇ 6 (CM, upper left yellow line length), 9 (CM, lower left yellow line length), 2 (CM, upper right purple line length), and 3 (CM, lower right purple line length).
  • the vector value of Fig. 6 is ⁇ 3 (CM, upper left yellow line length), 5 (CM, lower left yellow line length), 8 (CM, upper right purple line length), and 11 (CM, lower right purple line length).
  • step S103 it is determined whether the two straight lines are paired lane lines according to the output result of the support vector machine model.
  • the step of determining whether the two lines are paired lane lines according to the output result of the support vector machine model includes:
  • the detected input vectors can be detected.
  • Figure 7 and Figure 8 show the input vector to be detected.
  • the specific detection process is as follows:
  • the invention selects the sample points on the two straight lines according to the preset spacing by obtaining two straight lines to be detected, and obtains the distance between the sample points and the common points, and between the sample points and the common points
  • the input vector to be detected is substituted into a preset support vector machine model, and the output result of the support vector machine model is obtained. According to the output result, it can be determined whether the two straight lines to be detected are paired lanes. line.
  • FIG. 9 is a schematic structural diagram of a high-efficiency detecting device for a pair of lane lines according to an embodiment of the present invention, which is described in detail as follows:
  • the lane line acquiring unit 901 is configured to acquire two straight lines to be detected, and select a sample point respectively selected on the two straight lines according to a preset spacing, and obtain a distance between the sample point and a predetermined common point as The input vector to be detected;
  • the support vector machine operation unit 902 is configured to obtain an output result of the support vector machine model corresponding to the input vector to be detected according to a preset support vector machine model, where the vector dimension and the vector in the support vector machine model The dimensions of the detected input vector are the same;
  • the determining unit 903 is configured to determine whether the two straight lines are paired lane lines according to the output result of the support vector machine model.
  • the lane line acquiring unit includes:
  • a sample selection subunit for respectively selecting a sample point on the two straight lines according to a preset spacing
  • the common point acquisition subunit is configured to take a center point of the image as a common point, and obtain a distance between the sample point and the common point as an input vector to be detected.
  • the device further comprises:
  • a sample collection unit configured to collect a plurality of pairs of lane line samples and unpaired lane line samples, and select samples on the lane line samples according to the spacing;
  • a sample input vector calculation unit configured to calculate a sample input vector x formed by a distance between a sample on each straight line and the common point
  • the determining unit calculating unit is specifically configured to:
  • the sample comprises N samples selected on each lane line, the N being a natural number greater than or equal to 2.
  • the high-efficiency detecting device for the pair of lane lines in the embodiment of the present invention corresponds to the above-mentioned method for efficiently detecting the pair of lane lines, and details are not described herein again.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Multimedia (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Engineering & Computer Science (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Image Analysis (AREA)
  • Traffic Control Systems (AREA)

Abstract

An efficient detection method for paired lane lines comprises: obtaining two straight lines to be detected, and obtaining a distance between the sampling points and predetermined common points as a to-be-checked input vector according to sampling points respectively selected on the two straight lines by a preset interval; obtaining a output result of a support vector machine model corresponding to the to-be-checked input vector according to preset support vector machine models; and determining, according to the output result of the support vector machine model, whether the two lines are paired lane lines. The detection method can effectively ensure real-time judgment of paired lane lines and improve accuracy of judgment.

Description

一种成对车道线的高效检测方法和装置Efficient detection method and device for paired lane lines 技术领域Technical field
本发明属于自动驾驶领域,尤其涉及一种成对车道线的高效检测方法和装置。The invention belongs to the field of automatic driving, and in particular relates to an efficient detection method and device for a pair of lane lines.
背景技术Background technique
车道偏离预警系统是一种通过报警的方式辅助驾驶员减少汽车因车道偏离而发生交通事故的汽车驾驶的辅助系统。当车辆偏离行驶车道时,通过所述车道偏离预警系统可以发出预警提醒,所述预警提醒可包括警报音、方向盘震动或自动改变转向等。The lane departure warning system is an auxiliary system for driving a car that causes a driver to reduce a car accident due to a lane departure by means of an alarm. When the vehicle deviates from the driving lane, an early warning reminder may be issued by the lane departure warning system, which may include an alarm sound, a steering wheel vibration, or an automatic change of steering.
在车道偏离预警系统中,为了保证预警的准确度,需要对车道线进行正确的提取和识别。目前的成对车道线检测方法,一般需要消耗较多的系统资源,当需要较高的准确度时,则需要花费一定的计算时间,无法保证实时检测;或者,为了提高检测的实时性,则可能造成漏检测,导致误检率提高。In the lane departure warning system, in order to ensure the accuracy of the warning, the lane line needs to be correctly extracted and identified. The current paired lane line detection method generally needs to consume more system resources. When a higher accuracy is required, a certain calculation time is required, and real-time detection cannot be guaranteed; or, in order to improve the real-time detection, It may cause leak detection, resulting in an increase in false positive rate.
技术问题technical problem
本发明的目的在于提供一种成对车道线的高效检测方法,以解决现有技术在成对车道线检测时,不能有效地保证准确率以及实时性的问题。It is an object of the present invention to provide an efficient detection method for paired lane lines to solve the problem that the prior art cannot effectively ensure accuracy and real-time performance in paired lane line detection.
技术解决方案Technical solution
第一方面,本发明实施例提供了一种成对车道线的高效检测方法,所述方法包括: In a first aspect, an embodiment of the present invention provides a method for efficiently detecting a pair of lane lines, where the method includes:
获取待检测的两条直线,根据预先设定的间距在所述两条直线上分别选择的样点,获取所述样点与预定的公共点之间的距离作为待检测输入向量;Obtaining two straight lines to be detected, respectively selecting a sample point respectively selected on the two straight lines according to a preset spacing, and obtaining a distance between the sample point and a predetermined common point as an input vector to be detected;
根据预先设定的支持向量机模型,获取所述待检测输入向量对应的支持向量机模型的输出结果,其中,所述支持向量机模型中的向量维度与所述待检测输入向量的维度相同;Acquiring, according to a preset support vector machine model, an output result of the support vector machine model corresponding to the input vector to be detected, wherein a vector dimension in the support vector machine model is the same as a dimension of the input vector to be detected;
根据所述支持向量机模型的输出结果确定两条直线是否为成对车道线。Whether the two straight lines are paired lane lines is determined according to the output result of the support vector machine model.
结合第一方面,在第一方面的第一种可能实现方式中,所述根据预先设定的间距在所述两条直线上选择的样点,获取所述样点与预定的公共点之间的距离步骤包括:With reference to the first aspect, in a first possible implementation manner of the first aspect, the sample selected on the two straight lines according to a preset spacing is obtained between the sample point and a predetermined common point The distance steps include:
根据预先设定的间距,在所述两条直线上分别选择样点;Selecting sample points on the two straight lines according to a preset pitch;
将图像的中心点作为公共点,获取所述样点与所述公共点之间的距离作为待检测输入向量。Taking the center point of the image as a common point, the distance between the sample point and the common point is obtained as an input vector to be detected.
结合第一方面,或第一方面的第一种可能实现方式,在第一方面的第二种可能实现方式中,在所述将每条直线与预定的公共点之间的距离的和值代入预先设定的分类器步骤之前,所述方法还包括:In conjunction with the first aspect, or the first possible implementation of the first aspect, in a second possible implementation of the first aspect, the sum of the distances between each of the straight lines and the predetermined common point is substituted Before the preset classifier step, the method further includes:
采集大量的成对的车道线样本和不成对的车道线样本,根据所述间距在所述车道线样本上选择样点;Collecting a large number of paired lane line samples and unpaired lane line samples, and selecting samples on the lane line samples according to the spacing;
计算每条直线上的样点与所述公共点之间的距离构成的样本输入向量x;Calculating a sample input vector x formed by the distance between the sample point on each line and the common point;
根据所述样本输入向量计算所述支持向量机模型等式wTx+b=0的向量w,以及常数b,其中,wT表示向量w的转置,w的维度与输入向量的维度相同。Calculating a vector w of the support vector machine model equation w T x+b=0 according to the sample input vector, and a constant b, where w T represents a transpose of the vector w, and the dimension of w is the same as the dimension of the input vector .
结合第一方面的第二种可能实现方式,在第一方面的第三种可能实现方式中,所述根据所述支持向量机模型的输出结果确定两条直线是否为成对车道线步骤包括:In conjunction with the second possible implementation of the first aspect, in a third possible implementation manner of the first aspect, the determining, according to the output result of the support vector machine model, whether the two lines are paired lane lines comprises:
将所述待检测输入向量代入支持向量机模型wTx+b并计算得到支持向 量机模型的输出值,当所述输出值大于或等于1时,两条直线为成对车道线,当所述输出值小于或等于-1时,两条直线为非成对车道线。Substituting the input vector to be detected into the support vector machine model w T x+b and calculating an output value of the support vector machine model. When the output value is greater than or equal to 1, the two straight lines are paired lane lines. When the output value is less than or equal to -1, the two straight lines are unpaired lane lines.
结合第一方面,或第一方面的第一种可能实现方式,或第一方面的第三种可能实现方式,在第一方面的第四种可能实现方式中,所述样点包括在每条车道线上选择的N个样点,所述N为大于或等于2的自然数。In conjunction with the first aspect, or the first possible implementation of the first aspect, or the third possible implementation of the first aspect, in a fourth possible implementation of the first aspect, the sample is included in each N samples selected on the lane line, the N being a natural number greater than or equal to 2.
第二方面,本发明实施例提供了一种成对车道线的高效检测装置,所述装置包括:In a second aspect, an embodiment of the present invention provides an efficient detection device for a pair of lane lines, the device comprising:
车道线获取单元,用于获取待检测的两条直线,根据预先设定的间距在所述两条直线上分别选择的样点,获取所述样点与预定的公共点之间的距离作为待检测输入向量;a lane line acquiring unit, configured to acquire two straight lines to be detected, and select a sample point respectively selected on the two straight lines according to a preset spacing, and obtain a distance between the sample point and a predetermined common point as a waiting Detecting an input vector;
支持向量机运算单元,用于根据预先设定的支持向量机模型,获取所述待检测输入向量对应的支持向量机模型的输出结果,其中,所述支持向量机模型中的向量维度与所述待检测输入向量的维度相同;a support vector machine operation unit, configured to acquire an output result of the support vector machine model corresponding to the input vector to be detected according to a preset support vector machine model, wherein the vector dimension in the support vector machine model is The dimensions of the input vector to be detected are the same;
判断单元,用于根据所述支持向量机模型的输出结果确定两条直线是否为成对车道线。And a determining unit, configured to determine, according to an output result of the support vector machine model, whether the two straight lines are paired lane lines.
结合第二方面,在第二方面的第一种可能实现方式中,所述车道线获取单元包括:With reference to the second aspect, in a first possible implementation manner of the second aspect, the lane line acquiring unit includes:
样点选择子单元,用于根据预先设定的间距,在所述两条直线上分别选择样点;a sample selection subunit for respectively selecting a sample point on the two straight lines according to a preset spacing;
公共点获取子单元,用于将图像的中心点作为公共点,获取所述样点与所述公共点之间的距离作为待检测输入向量。The common point acquisition subunit is configured to take a center point of the image as a common point, and obtain a distance between the sample point and the common point as an input vector to be detected.
结合第二方面,或第二方面的第一种可能实现方式,在第二方面的第二种可能实现方式中,所述装置还包括:With reference to the second aspect, or the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the device further includes:
样本采集单元,用于采集大量的成对的车道线样本和不成对的车道线样本,根据所述间距在所述车道线样本上选择样点;a sample collection unit, configured to collect a plurality of pairs of lane line samples and unpaired lane line samples, and select samples on the lane line samples according to the spacing;
样本输入向量计算单元,用于计算每条直线上的样点与所述公共点之间的 距离构成的样本输入向量x;a sample input vector calculation unit for calculating between a sample point on each straight line and the common point The sample input vector x of the distance;
参数训练单元,用于根据所述样本输入向量计算所述支持向量机模型等式wTx+b=0的向量w,以及常数b,其中,wT表示向量w的转置,w的维度与输入向量的维度相同。a parameter training unit, configured to calculate, according to the sample input vector, a vector w of the support vector machine model equation w T x+b=0, and a constant b, where w T represents a transpose of the vector w, a dimension of w Same as the dimension of the input vector.
结合第二方面的第二种可能实现方式,在第二方面的第三种可能实现方式中,所述判断单元计算单元具体用于:With reference to the second possible implementation of the second aspect, in a third possible implementation manner of the second aspect, the determining unit calculating unit is specifically configured to:
将所述待检测输入向量代入支持向量机模型wTx+b并计算得到支持向量机模型的输出值,当所述输出值大于或等于1时,两条直线为成对车道线,当所述输出值小于或等于-1时,两条直线为非成对车道线。Substituting the input vector to be detected into the support vector machine model w T x+b and calculating an output value of the support vector machine model. When the output value is greater than or equal to 1, the two straight lines are paired lane lines. When the output value is less than or equal to -1, the two straight lines are unpaired lane lines.
结合第二方面,或第二方面的第一种可能实现方式,或第二方面的第三种可能实现方式,在第二方面的第四种可能实现方式中,所述判断单元具体用于:With reference to the second aspect, or the first possible implementation manner of the second aspect, or the third possible implementation manner of the second aspect, in the fourth possible implementation manner of the second aspect, the determining unit is specifically configured to:
所述样点包括在每条车道线上选择的N个样点,所述N为大于或等于2的自然数。The sample includes N samples selected on each lane line, the N being a natural number greater than or equal to two.
有益效果Beneficial effect
在本发明中,获取待检测的两条直线,根据预先设定的间距,在所述两条直线上选择样点,获得样点与公共点之间的距离,将所述样点与公共点之间的距离构成的待检测输入向量,代入到预先设定支持向量机模型,得到所述支持向量机模型的输出结果,根据所述输出结果,即可判断待检测的两条直线是否为成对车道线。采用本发明所述方法,只需要将获取的待检测输入向量,代入预定的支持向量机模型,即可快速的确定是否为成对车道线,既可有效地保证对成对车道线判断的实时性,又能够提高判断的准确性。In the present invention, two lines to be detected are acquired, and samples are selected on the two straight lines according to a preset pitch to obtain a distance between the sample points and the common points, and the sample points and the common points are obtained. The input vector to be detected formed by the distance between the two is substituted into a preset support vector machine model, and the output result of the support vector machine model is obtained. According to the output result, it can be determined whether the two straight lines to be detected are formed. On the lane line. By adopting the method of the invention, it is only necessary to substitute the acquired input vector to be detected into a predetermined support vector machine model, thereby quickly determining whether it is a pair of lane lines, and effectively ensuring real-time determination of paired lane lines. Sex, can improve the accuracy of judgment.
附图说明 DRAWINGS
图1是本发明实施例提供的成对车道线的高效检测方法的实现流程图;1 is a flowchart of implementing an efficient detection method for a pair of lane lines according to an embodiment of the present invention;
图2为本发明实施例提供的支持向量机模型训练流程示意图;2 is a schematic diagram of a training process of a support vector machine model according to an embodiment of the present invention;
图3-4为本发明实施例提供的两条直线为成对车道线的样本示意图;3-4 are schematic diagrams of samples in which two straight lines are paired lane lines according to an embodiment of the present invention;
图5-6为本发明实施例提供的两条直线为非成对车道线的样本示意图;5-6 are schematic diagrams of samples of two straight lines that are unpaired lane lines according to an embodiment of the present invention;
图7-8为本发明实施例提供的待检测车道线示意图;7-8 are schematic diagrams of lane lines to be detected according to an embodiment of the present invention;
图9为本发明实施例提供的成对车道线的高效检测装置的结构示意图。FIG. 9 is a schematic structural diagram of an apparatus for detecting high efficiency of a pair of lane lines according to an embodiment of the present invention.
发明的实施方式Embodiment of the invention
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明实施例所述成对车道线检测方法,目的在于克服现有技术中就成对车道线检测方法中,为了提高成对车道线的检测正确率,往往需要采用较为复杂的检测算法,导致检测计算过程需要消耗一定的时长,如果在汽车高速行驶状态下,则会造成检测结果滞后,检测的实时性较低的缺陷。而如果采用简单的车道线判断方法,则容易出现检测结果出错,影响用户判断。下面结合附图,对本发明作进一步的说明。The method for detecting a pair of lane lines according to an embodiment of the present invention aims to overcome the prior art method for detecting a lane line. In order to improve the detection rate of a pair of lane lines, a relatively complex detection algorithm is often required, resulting in a detection algorithm. The detection calculation process takes a certain period of time. If the vehicle is running at a high speed, it will cause the detection result to lag, and the detection has low real-time defects. However, if a simple lane line judgment method is adopted, it is easy to cause an error in the detection result, which affects the user's judgment. The invention will now be further described with reference to the accompanying drawings.
图1示出了本发明实施例提供的成对车道线的高效检测方法的实现流程,详述如下:FIG. 1 is a flowchart showing an implementation process of an efficient detection method for a pair of lane lines according to an embodiment of the present invention, which is described in detail as follows:
在步骤S101中,获取待检测的两条直线,根据预先设定的间距在所述两条直线上分别选择的样点,获取所述样点与预定的公共点之间的距离作为待检测输入向量。In step S101, two lines to be detected are acquired, and samples respectively selected on the two straight lines according to a preset pitch are used to obtain a distance between the sample point and a predetermined common point as an input to be detected. vector.
具体的,本发明实施例所述对成车道线,是指用于限定车辆行驶的车道的辅助线。由于在车辆行驶过程中,除了车道线以外,还可能包括其它的标识线,比如图3所示,除了车道线以外,还包括箭头标识,由箭头线和车道线构成的 标识,则不应该识别为成对车道线。Specifically, the lane-forming line in the embodiment of the present invention refers to an auxiliary line for defining a lane in which the vehicle travels. Since other marking lines may be included in addition to the lane line during the running of the vehicle, as shown in FIG. 3, in addition to the lane line, an arrow mark is included, which is composed of an arrow line and a lane line. The logo should not be recognized as a pair of lane lines.
所述待检测的两条直线,可以通过对图像进行识别获取。比如,所述直线的识别,可以根据图像中颜色进行识别,比如识别图像中颜色为白色,或者颜色为黄色的直线等。The two straight lines to be detected can be obtained by identifying the image. For example, the recognition of the line may be identified according to the color in the image, such as identifying a line in which the color is white, or a line with a yellow color.
所述预先设定的间距,可以根据图像的大小进行设定。比如根据图像的宽度,设置1/3屏幕宽度为所述间距的长度。当然,还可以根据所需要的样点的个数,选择所述间距的大小,设定所述间距的长度,使得选择的样点包括所述直线的端部位置。The preset pitch can be set according to the size of the image. For example, according to the width of the image, the 1/3 screen width is set to be the length of the pitch. Of course, the size of the spacing may also be selected according to the number of samples required, and the length of the spacing may be set such that the selected sample includes the end position of the straight line.
所述公共点的选择,可以根据用户的需要灵活设定。比如可以设定图像中的上部的中点作为所述公共点,也可以设定图像中的下部的中点作为所述公共点,还可以设定图像的中心点作为所述公共点。根据公共点的选择方式的不同,所述支持向量机模型的参数也会相应的发生改变。并且在权重向量的训练过程中选用的公共点的位置,与所述待检测的两条直线对应的公共点的位置相同。The selection of the common point can be flexibly set according to the needs of the user. For example, the midpoint of the upper portion of the image may be set as the common point, or the midpoint of the lower portion of the image may be set as the common point, and the center point of the image may be set as the common point. Depending on how the common point is selected, the parameters of the support vector machine model will change accordingly. And the position of the common point selected in the training process of the weight vector is the same as the position of the common point corresponding to the two straight lines to be detected.
所述待检测输入向量中数值的个数,与样点的选择方式相关。当在两条直线上选择的样点个数越多时,所述待检测输入向量的个数也越多。The number of values in the input vector to be detected is related to the manner in which the samples are selected. When the number of samples selected on two straight lines is larger, the number of input vectors to be detected is also larger.
在步骤S102中,根据预先设定的支持向量机模型,获取所述待检测输入向量对应的支持向量机模型的输出结果,其中,所述支持向量机模型中的向量维度与所述待检测输入向量的维度相同。In step S102, an output result of the support vector machine model corresponding to the input vector to be detected is acquired according to a preset support vector machine model, wherein the vector dimension in the support vector machine model and the input to be detected are The dimensions of the vector are the same.
所述支持向量机模型中的超平面法向量的维度,与所述待检测输入向量的维度相同。为了灵活地与不同维度的待检测输入向量相匹配,可以预先设定多个维度的所述支持向量机模型。比如,可以预先设定4维度的支持向量机模型、6维度的支持向量机模型、8维度的支持向量机模型等。The dimension of the hyperplane normal vector in the support vector machine model is the same as the dimension of the input vector to be detected. In order to flexibly match the input vectors to be detected of different dimensions, the support vector machine models of multiple dimensions may be preset. For example, a 4-dimensional support vector machine model, a 6-dimensional support vector machine model, and an 8-dimensional support vector machine model may be preset.
其中,预先设定所述支持向量机模型时,可以包括如图2所述的以下步骤:Wherein, when the support vector machine model is preset, the following steps as described in FIG. 2 may be included:
在步骤S201中,采集大量的成对的车道线样本和不成对的车道线样本,根据所述间距在所述车道线样本上选择样点;In step S201, a plurality of pairs of lane line samples and unpaired lane line samples are collected, and samples are selected on the lane line samples according to the spacing;
在步骤S202中,计算每条直线上的样点与所述公共点之间的距离构成的样 本输入向量x;In step S202, a sample of the distance between the sample point on each straight line and the common point is calculated. The input vector x;
在步骤S203中,根据所述样本输入向量计算所述支持向量机模型等式wTx+b=0的向量w,以及常数b,其中,wT表示向量w的转置,w的维度与输入向量的维度相同。In step S203, a vector w of the support vector machine model equation w T x+b=0 is calculated according to the sample input vector, and a constant b, where w T represents a transpose of the vector w, and a dimension of w The dimensions of the input vector are the same.
比如,超平面法向量的维度为4维,在成对车道线或不成对车道线样本中采集的样点为4个(在每条直线上分别采集2个),将采集的样本输入向量代入到公式wTx+b=0中,即可计算得到向量w和常数b的值。For example, the dimension of the hyperplane normal vector is 4 dimensions, and the sample points collected in the paired lane line or the unpaired lane line sample are 4 (two are collected on each line), and the sample input vector is substituted. By the formula w T x+b=0, the values of the vector w and the constant b can be calculated.
如图3-6所示为本发明实施例提供的训练样本的示意图,其中,图3-图4为成对车道线的训练样本,图5、图6为非成对车道线的训练样本,并且在每个训练样本上选择四个样点作为样本输入向量。可以理解的是,训练样本的个数越多,对于向量w和常数b的计算也会更加准确。3-6 are schematic diagrams of training samples provided by an embodiment of the present invention, wherein FIG. 3 to FIG. 4 are training samples of paired lane lines, and FIG. 5 and FIG. 6 are training samples of unpaired lane lines. And four sample points are selected as sample input vectors on each training sample. It can be understood that the more the number of training samples, the more accurate the calculation of the vector w and the constant b.
下面对图3-图6的训练过程介绍如下:The training process of Figure 3-6 is introduced as follows:
图3和图4的两对线属于“车道线”,对应两个样本输入向量:The two pairs of lines in Figures 3 and 4 belong to the "lane line" and correspond to two sample input vectors:
图3的向量值为<5(CM,左上绿线长度),14(CM,左下绿线长度),11(CM,右上红线长度),10(CM,右下红线长度)>。The vector value of Fig. 3 is <5 (CM, upper left green line length), 14 (CM, lower left green line length), 11 (CM, upper right red line length), and 10 (CM, lower right red line length).
图4的向量值为<5(CM,左上绿线长度),7(CM,左下绿线长度),10(CM,右上红线长度),16(CM,右下红线长度)>。The vector value of Fig. 4 is <5 (CM, upper left green line length), 7 (CM, lower left green line length), 10 (CM, upper right red line length), and 16 (CM, lower right red line length).
图5和图6的两对线属于“非成对车道线”,对应两个向量:The two pairs of lines in Figures 5 and 6 belong to the "unpaired lane line", corresponding to two vectors:
图5的向量值为<6(CM,左上黄线长度),9(CM,左下黄线长度),2(CM,右上紫线长度),3(CM,右下紫线长度)>。The vector value of Fig. 5 is <6 (CM, upper left yellow line length), 9 (CM, lower left yellow line length), 2 (CM, upper right purple line length), and 3 (CM, lower right purple line length).
图6的向量值为<3(CM,左上黄线长度),5(CM,左下黄线长度),8(CM,右上紫线长度),11(CM,右下紫线长度)>。The vector value of Fig. 6 is <3 (CM, upper left yellow line length), 5 (CM, lower left yellow line length), 8 (CM, upper right purple line length), and 11 (CM, lower right purple line length).
当x为成对车道线(如图3和图4)的特征向量,求解W^T*x+b>=1;当x为非成对车道线(如图5和图6)的特征向量,求解W^T*x+b<=-1。其中b为常量,W为向量,W的维度由X的维度决定,此例W的维度为4。When x is the eigenvector of the pair of lane lines (Figures 3 and 4), solve W^T*x+b>=1; when x is the eigenvector of the unpaired lane line (Figure 5 and Figure 6) , solve W^T*x+b<=-1. Where b is a constant, W is a vector, and the dimension of W is determined by the dimension of X. In this case, the dimension of W is 4.
确定W和b过程,即为支持向量机的求解。 Determine the W and b processes, which is the solution of the support vector machine.
在此例中,可求解出:当W=<0.25,0.21,-0.05,0.24>,b=-5.04时,W^T*x1+b=1,W^T*x2+b=1.02,W^T*x3+b=-1.03,W^T*x4+b=-1,其中x1、x2、x3和x4分别为图3、图4、图5和图6的向量。In this case, it can be solved: when W=<0.25, 0.21, -0.05, 0.24>, b=-5.04, W^T*x1+b=1, W^T*x2+b=1.02, W ^T*x3+b=-1.03, W^T*x4+b=-1, where x1, x2, x3, and x4 are the vectors of Figures 3, 4, 5, and 6, respectively.
落在W^T*x+b=1或W^T*x+b=-1两个超平面的数据点成为支持向量点,x1和x4就属于支持向量机W^T*x+b=0的支持向量点。The data points falling on two hyperplanes of W^T*x+b=1 or W^T*x+b=-1 become support vector points, and x1 and x4 belong to the support vector machine W^T*x+b= 0 support vector point.
在步骤S103中,根据所述支持向量机模型的输出结果确定两条直线是否为成对车道线。In step S103, it is determined whether the two straight lines are paired lane lines according to the output result of the support vector machine model.
具体的,所述根据所述支持向量机模型的输出结果确定两条直线是否为成对车道线步骤包括:Specifically, the step of determining whether the two lines are paired lane lines according to the output result of the support vector machine model includes:
将所述待检测输入向量代入支持向量机模型wTx+b并计算得到支持向量机模型的输出值,当所述输出值大于或等于1时,两条直线为成对车道线,当所述输出值小于或等于-1时,两条直线为非成对车道线。Substituting the input vector to be detected into the support vector machine model w T x+b and calculating an output value of the support vector machine model. When the output value is greater than or equal to 1, the two straight lines are paired lane lines. When the output value is less than or equal to -1, the two straight lines are unpaired lane lines.
根据预先设定的训练样本确定了支持向量机模型中的参数和向量的值后,即可对待检测输入向量进行检测。如图7和图8为待检测输入向量,具体检测过程如下:After determining the values of the parameters and vectors in the support vector machine model according to the preset training samples, the detected input vectors can be detected. Figure 7 and Figure 8 show the input vector to be detected. The specific detection process is as follows:
图7取得的待检测输入向量为:x=<7,11,8,12>。将所述待检测输入向量代入所述支持向量机模型,计算:W^T*x+b=1.5>1,得到“两条直线是成对车道线”的判定。The input vector to be detected obtained in Fig. 7 is: x=<7, 11, 8, 12>. Substituting the input vector to be detected into the support vector machine model, and calculating: W^T*x+b=1.5>1, the determination that "two straight lines are paired lane lines" is obtained.
图8中间两条线,取得对应的待检测输入向量为x=<4,7,5,7>。计算:W^T*x+b=-1.14<-1,得到“两条直线非成对车道线”的判定。In the middle two lines of Figure 8, the corresponding input vector to be detected is obtained as x=<4,7,5,7>. Calculation: W^T*x+b=-1.14<-1, the judgment of "two straight unpaired lane lines" is obtained.
本发明通过获取待检测的两条直线,根据预先设定的间距,在所述两条直线上选择样点,获得样点与公共点之间的距离,将所述样点与公共点之间的距离构成的待检测输入向量,代入到预先设定支持向量机模型,得到所述支持向量机模型的输出结果,根据所述输出结果,即可判断待检测的两条直线是否为成对车道线。采用本发明所述方法,只需要将获取的待检测输入向量,代入预定的支持向量机模型,即可快速的确定是否为成对车道线,既可有效地保证对 成对车道线判断的实时性,又能够提高判断的准确性。The invention selects the sample points on the two straight lines according to the preset spacing by obtaining two straight lines to be detected, and obtains the distance between the sample points and the common points, and between the sample points and the common points The input vector to be detected is substituted into a preset support vector machine model, and the output result of the support vector machine model is obtained. According to the output result, it can be determined whether the two straight lines to be detected are paired lanes. line. By adopting the method of the invention, it is only necessary to substitute the acquired input vector to be detected into a predetermined support vector machine model, thereby quickly determining whether it is a pair of lane lines, which can effectively ensure the pair. The real-time judgment of the paired lane lines can improve the accuracy of the judgment.
图9所示为本发明实施例提供的成对车道线的高效检测装置的结构示意图,详述如下:FIG. 9 is a schematic structural diagram of a high-efficiency detecting device for a pair of lane lines according to an embodiment of the present invention, which is described in detail as follows:
本发明实施例所述成对车道线的高效检测装置,包括:The high-efficiency detecting device for the pair of lane lines in the embodiment of the invention includes:
车道线获取单元901,用于获取待检测的两条直线,根据预先设定的间距在所述两条直线上分别选择的样点,获取所述样点与预定的公共点之间的距离作为待检测输入向量;The lane line acquiring unit 901 is configured to acquire two straight lines to be detected, and select a sample point respectively selected on the two straight lines according to a preset spacing, and obtain a distance between the sample point and a predetermined common point as The input vector to be detected;
支持向量机运算单元902,用于根据预先设定的支持向量机模型,获取所述待检测输入向量对应的支持向量机模型的输出结果,其中,所述支持向量机模型中的向量维度与所述待检测输入向量的维度相同;The support vector machine operation unit 902 is configured to obtain an output result of the support vector machine model corresponding to the input vector to be detected according to a preset support vector machine model, where the vector dimension and the vector in the support vector machine model The dimensions of the detected input vector are the same;
判断单元903,用于根据所述支持向量机模型的输出结果确定两条直线是否为成对车道线。The determining unit 903 is configured to determine whether the two straight lines are paired lane lines according to the output result of the support vector machine model.
优选的,所述车道线获取单元包括:Preferably, the lane line acquiring unit includes:
样点选择子单元,用于根据预先设定的间距,在所述两条直线上分别选择样点;a sample selection subunit for respectively selecting a sample point on the two straight lines according to a preset spacing;
公共点获取子单元,用于将图像的中心点作为公共点,获取所述样点与所述公共点之间的距离作为待检测输入向量。The common point acquisition subunit is configured to take a center point of the image as a common point, and obtain a distance between the sample point and the common point as an input vector to be detected.
优选的,所述装置还包括:Preferably, the device further comprises:
样本采集单元,用于采集大量的成对的车道线样本和不成对的车道线样本,根据所述间距在所述车道线样本上选择样点;a sample collection unit, configured to collect a plurality of pairs of lane line samples and unpaired lane line samples, and select samples on the lane line samples according to the spacing;
样本输入向量计算单元,用于计算每条直线上的样点与所述公共点之间的距离构成的样本输入向量x;a sample input vector calculation unit, configured to calculate a sample input vector x formed by a distance between a sample on each straight line and the common point;
参数训练单元,用于根据所述样本输入向量计算所述支持向量机模型等式wTx+b=0的向量w,以及常数b,其中,wT表示向量w的转置,w的维度与输入向量的维度相同。a parameter training unit, configured to calculate, according to the sample input vector, a vector w of the support vector machine model equation w T x+b=0, and a constant b, where w T represents a transpose of the vector w, a dimension of w Same as the dimension of the input vector.
优选的,所述判断单元计算单元具体用于: Preferably, the determining unit calculating unit is specifically configured to:
将所述待检测输入向量代入支持向量机模型wTx+b并计算得到支持向量机模型的输出值,当所述输出值大于或等于1时,两条直线为成对车道线,当所述输出值小于或等于-1时,两条直线为非成对车道线。Substituting the input vector to be detected into the support vector machine model w T x+b and calculating an output value of the support vector machine model. When the output value is greater than or equal to 1, the two straight lines are paired lane lines. When the output value is less than or equal to -1, the two straight lines are unpaired lane lines.
优选的,所述样点包括在每条车道线上选择的N个样点,所述N为大于或等于2的自然数。Preferably, the sample comprises N samples selected on each lane line, the N being a natural number greater than or equal to 2.
本发明实施例所述成对车道线的高效检测装置,与上述成对车道线的高效检测方法对应,在此不作重复赘述。The high-efficiency detecting device for the pair of lane lines in the embodiment of the present invention corresponds to the above-mentioned method for efficiently detecting the pair of lane lines, and details are not described herein again.
在本发明所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质 中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。 The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. Within the scope.

Claims (10)

  1. 一种成对车道线的高效检测方法,其特征在于,所述方法包括:An efficient detection method for a pair of lane lines, the method comprising:
    获取待检测的两条直线,根据预先设定的间距在所述两条直线上分别选择的样点,获取所述样点与预定的公共点之间的距离作为待检测输入向量;Obtaining two straight lines to be detected, respectively selecting a sample point respectively selected on the two straight lines according to a preset spacing, and obtaining a distance between the sample point and a predetermined common point as an input vector to be detected;
    根据预先设定的支持向量机模型,获取所述待检测输入向量对应的支持向量机模型的输出结果,其中,所述支持向量机模型中的向量维度与所述待检测输入向量的维度相同;Acquiring, according to a preset support vector machine model, an output result of the support vector machine model corresponding to the input vector to be detected, wherein a vector dimension in the support vector machine model is the same as a dimension of the input vector to be detected;
    根据所述支持向量机模型的输出结果确定两条直线是否为成对车道线。Whether the two straight lines are paired lane lines is determined according to the output result of the support vector machine model.
  2. 根据权利要求1所述方法,其特征在于,所述根据预先设定的间距在所述两条直线上选择的样点,获取所述样点与预定的公共点之间的距离作为待检测输入向量步骤包括:The method according to claim 1, wherein the sample selected on the two straight lines according to a preset pitch acquires a distance between the sample point and a predetermined common point as an input to be detected Vector steps include:
    根据预先设定的间距,在所述两条直线上分别选择样点;Selecting sample points on the two straight lines according to a preset pitch;
    将图像的中心点作为公共点,获取所述样点与所述公共点之间的距离作为待检测输入向量。Taking the center point of the image as a common point, the distance between the sample point and the common point is obtained as an input vector to be detected.
  3. 根据权利要求1或2所述方法,其特征在于,在所述将每条直线与预定的公共点之间的距离的和值代入预先设定的分类器步骤之前,所述方法还包括:The method according to claim 1 or 2, wherein before the step of substituting the sum of the distances between each of the straight lines and the predetermined common point into a predetermined classifier step, the method further comprises:
    采集大量的成对的车道线样本和不成对的车道线样本,根据所述间距在所述车道线样本上选择样点;Collecting a large number of paired lane line samples and unpaired lane line samples, and selecting samples on the lane line samples according to the spacing;
    计算每条直线上的样点与所述公共点之间的距离构成的样本输入向量x;Calculating a sample input vector x formed by the distance between the sample point on each line and the common point;
    根据所述样本输入向量计算所述支持向量机模型等式wTx+b=0的向量w,以及常数b,其中,wT表示向量w的转置,w的维度与输入向量的维度相同。 Calculating a vector w of the support vector machine model equation w T x+b=0 according to the sample input vector, and a constant b, where w T represents a transpose of the vector w, and the dimension of w is the same as the dimension of the input vector .
  4. 根据权利要求3所述方法,其特征在于,所述根据所述支持向量机模型的输出结果确定两条直线是否为成对车道线步骤包括:The method according to claim 3, wherein the step of determining whether the two straight lines are paired lane lines according to an output result of the support vector machine model comprises:
    将所述待检测输入向量代入支持向量机模型wTx+b并计算得到支持向量机模型的输出值,当所述输出值大于或等于1时,两条直线为成对车道线,当所述输出值小于或等于-1时,两条直线为非成对车道线。Substituting the input vector to be detected into the support vector machine model w T x+b and calculating an output value of the support vector machine model. When the output value is greater than or equal to 1, the two straight lines are paired lane lines. When the output value is less than or equal to -1, the two straight lines are unpaired lane lines.
  5. 根据权利要求1、2或4所述方法,其特征在于,所述样点包括在每条车道线上选择的N个样点,所述N为大于或等于2的自然数。The method of claim 1, 2 or 4 wherein said sample comprises N samples selected on each lane line, said N being a natural number greater than or equal to two.
  6. 一种成对车道线的高效检测装置,其特征在于,所述装置包括:An efficient detection device for a pair of lane lines, characterized in that the device comprises:
    车道线获取单元,用于获取待检测的两条直线,根据预先设定的间距在所述两条直线上分别选择的样点,获取所述样点与预定的公共点之间的距离作为待检测输入向量;a lane line acquiring unit, configured to acquire two straight lines to be detected, and select a sample point respectively selected on the two straight lines according to a preset spacing, and obtain a distance between the sample point and a predetermined common point as a waiting Detecting an input vector;
    支持向量机运算单元,用于根据预先设定的支持向量机模型,获取所述待检测输入向量对应的支持向量机模型的输出结果,其中,所述支持向量机模型中的向量维度与所述待检测输入向量的维度相同;a support vector machine operation unit, configured to acquire an output result of the support vector machine model corresponding to the input vector to be detected according to a preset support vector machine model, wherein the vector dimension in the support vector machine model is The dimensions of the input vector to be detected are the same;
    判断单元,用于根据所述支持向量机模型的输出结果确定两条直线是否为成对车道线。And a determining unit, configured to determine, according to an output result of the support vector machine model, whether the two straight lines are paired lane lines.
  7. 根据权利要求6所述装置,其特征在于,所述车道线获取单元包括:The device according to claim 6, wherein the lane line acquisition unit comprises:
    样点选择子单元,用于根据预先设定的间距,在所述两条直线上分别选择样点;a sample selection subunit for respectively selecting a sample point on the two straight lines according to a preset spacing;
    公共点获取子单元,用于将图像的中心点作为公共点,获取所述样点与所述公共点之间的距离作为待检测输入向量。The common point acquisition subunit is configured to take a center point of the image as a common point, and obtain a distance between the sample point and the common point as an input vector to be detected.
  8. 根据权利要求6或7所述装置,其特征在于,所述装置还包括: The device according to claim 6 or 7, wherein the device further comprises:
    样本采集单元,用于采集大量的成对的车道线样本和不成对的车道线样本,根据所述间距在所述车道线样本上选择样点;a sample collection unit, configured to collect a plurality of pairs of lane line samples and unpaired lane line samples, and select samples on the lane line samples according to the spacing;
    样本输入向量计算单元,用于计算每条直线上的样点与所述公共点之间的距离构成的样本输入向量x;a sample input vector calculation unit, configured to calculate a sample input vector x formed by a distance between a sample on each straight line and the common point;
    参数训练单元,用于根据所述样本输入向量计算所述支持向量机模型等式wTx+b=0的向量w,以及常数b,其中,wT表示向量w的转置,w的维度与输入向量的维度相同。a parameter training unit, configured to calculate, according to the sample input vector, a vector w of the support vector machine model equation w T x+b=0, and a constant b, where w T represents a transpose of the vector w, a dimension of w Same as the dimension of the input vector.
  9. 根据权利要求8所述装置,其特征在于,所述判断单元计算单元具体用于:The device according to claim 8, wherein the determining unit calculating unit is specifically configured to:
    将所述待检测输入向量代入支持向量机模型wTx+b并计算得到支持向量机模型的输出值,当所述输出值大于或等于1时,两条直线为成对车道线,当所述输出值小于或等于-1时,两条直线为非成对车道线。Substituting the input vector to be detected into the support vector machine model w T x+b and calculating an output value of the support vector machine model. When the output value is greater than or equal to 1, the two straight lines are paired lane lines. When the output value is less than or equal to -1, the two straight lines are unpaired lane lines.
  10. 根据权利要求6、7或9所述装置,其特征在于,所述样点包括在每条车道线上选择的N个样点,所述N为大于或等于2的自然数。 The apparatus according to claim 6, 7 or 9, wherein said sample comprises N sample points selected on each lane line, said N being a natural number greater than or equal to 2.
PCT/CN2016/100098 2016-09-26 2016-09-26 Paired lane lines efficient detection method and device WO2018053834A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2016/100098 WO2018053834A1 (en) 2016-09-26 2016-09-26 Paired lane lines efficient detection method and device
CN201680001018.0A CN106415603B (en) 2016-09-26 2016-09-26 A kind of efficient detection method and device of pairs of lane line

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/100098 WO2018053834A1 (en) 2016-09-26 2016-09-26 Paired lane lines efficient detection method and device

Publications (1)

Publication Number Publication Date
WO2018053834A1 true WO2018053834A1 (en) 2018-03-29

Family

ID=58087915

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/100098 WO2018053834A1 (en) 2016-09-26 2016-09-26 Paired lane lines efficient detection method and device

Country Status (2)

Country Link
CN (1) CN106415603B (en)
WO (1) WO2018053834A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106462755B (en) * 2016-09-26 2019-05-28 深圳市锐明技术股份有限公司 Pairs of method for detecting lane lines and device
WO2018053834A1 (en) * 2016-09-26 2018-03-29 深圳市锐明技术股份有限公司 Paired lane lines efficient detection method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0361914B1 (en) * 1988-09-28 1995-12-13 Honda Giken Kogyo Kabushiki Kaisha A driving way judging device and method
CN103177246A (en) * 2013-03-26 2013-06-26 北京理工大学 Dual-model lane line identification method based on dynamic area division
CN103942959A (en) * 2014-04-22 2014-07-23 深圳市宏电技术股份有限公司 Lane detection method and device
CN104008387A (en) * 2014-05-19 2014-08-27 山东科技大学 Lane line detection method based on feature point piecewise linear fitting
CN104029680A (en) * 2014-01-02 2014-09-10 上海大学 Lane departure warning system and method based on monocular camera
CN106415603A (en) * 2016-09-26 2017-02-15 深圳市锐明技术股份有限公司 High efficient detection method and apparatus of pairing lane line

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0361914B1 (en) * 1988-09-28 1995-12-13 Honda Giken Kogyo Kabushiki Kaisha A driving way judging device and method
CN103177246A (en) * 2013-03-26 2013-06-26 北京理工大学 Dual-model lane line identification method based on dynamic area division
CN104029680A (en) * 2014-01-02 2014-09-10 上海大学 Lane departure warning system and method based on monocular camera
CN103942959A (en) * 2014-04-22 2014-07-23 深圳市宏电技术股份有限公司 Lane detection method and device
CN104008387A (en) * 2014-05-19 2014-08-27 山东科技大学 Lane line detection method based on feature point piecewise linear fitting
CN106415603A (en) * 2016-09-26 2017-02-15 深圳市锐明技术股份有限公司 High efficient detection method and apparatus of pairing lane line

Also Published As

Publication number Publication date
CN106415603B (en) 2019-03-08
CN106415603A (en) 2017-02-15

Similar Documents

Publication Publication Date Title
WO2018053833A1 (en) Method and apparatus for quickly detecting paired lane lines
US11170525B2 (en) Autonomous vehicle based position detection method and apparatus, device and medium
JP5392686B2 (en) Driving support apparatus and method
WO2022037387A1 (en) Visual perception algorithm evaluation method and device
CN108388879A (en) Mesh object detection method, device and storage medium
KR102015947B1 (en) Method for extracting image of learning object for autonomous driving and apparatus thereof
WO2019196205A1 (en) Foreign language teaching evaluation information generating method and apparatus
WO2015090215A1 (en) Voice data recognition method and device for distinguishing regional accent, and server
CN104573680B (en) Image detecting method, image detection device and traffic offence detecting system
CN105426863B (en) The method and apparatus for detecting lane line
WO2015188556A1 (en) Multi-cue fusion based ticket positioning recognition method and system
EP2927871A1 (en) Method and device for calculating number of pedestrians and crowd movement directions
CN106339692B (en) A kind of fatigue driving state information determines method and system
CN111144330B (en) Deep learning-based lane line detection method, device and equipment
CN105539450B (en) A kind of automatic identifying method and device driving stroke
KR102015945B1 (en) Method for packaging learning images for atonomous vehicle and apparatus thereof
CN107424150A (en) A kind of road damage testing method and device based on convolutional neural networks
CN107729901A (en) Method for building up, device and the image processing method and system of image processing model
CN104331691A (en) Vehicle logo classifier training method, vehicle logo recognition method and device
WO2018053834A1 (en) Paired lane lines efficient detection method and device
CN109026647B (en) Hydraulic pump fault detection method and system
JP2022043238A (en) Vehicle parking detection method, system, electronic apparatus, and storage medium
US20170309040A1 (en) Method and device for positioning human eyes
CN104751109A (en) Method and device for identifying consumable
CN111178244B (en) Abnormal production scene identification method

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: 16916573

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: 16916573

Country of ref document: EP

Kind code of ref document: A1