WO2018053836A1 - Paired lane line detection method and device - Google Patents

Paired lane line detection method and device Download PDF

Info

Publication number
WO2018053836A1
WO2018053836A1 PCT/CN2016/100102 CN2016100102W WO2018053836A1 WO 2018053836 A1 WO2018053836 A1 WO 2018053836A1 CN 2016100102 W CN2016100102 W CN 2016100102W WO 2018053836 A1 WO2018053836 A1 WO 2018053836A1
Authority
WO
WIPO (PCT)
Prior art keywords
classifier
distance
lines
determining
lane
Prior art date
Application number
PCT/CN2016/100102
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/100102 priority Critical patent/WO2018053836A1/en
Priority to CN201680000916.4A priority patent/CN106462755B/en
Publication of WO2018053836A1 publication Critical patent/WO2018053836A1/en

Links

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Traffic Control Systems (AREA)
  • Image Analysis (AREA)

Abstract

A paired lane line detection method and device, said method comprising: obtaining an image of a road surface in front of a vehicle; detecting whether there are two straight lines in the image of the road surface in front of the vehicle, the color of the two straight lines being different to that of the road surface in front of the vehicle in the image; when there are two straight lines in the image of the road surface in front of the vehicle, taking N points on each of the two straight lines, and respectively calculating distances between the N points taken on each of the two straight lines and a center point of the image obtained of the road surface in front of the vehicle, wherein N is an integer, and N is greater than or equal to 2; and determining whether the two straight lines are paired lane lines according to the calculated distances between the N points taken on each of the two straight lines and the center point of the image obtained of the road surface in front of the vehicle as well as a preset classifier. By means of the above method, a detection result of lane lines may be obtained faster.

Description

成对车道线检测方法及装置 技术领域  Paired lane line detection method and device
[0001] 本发明实施例属于图像处理领域, 尤其涉及一种成对车道线检测方法及装置。  [0001] Embodiments of the present invention belong to the field of image processing, and in particular, to a method and device for detecting a pair of lane lines.
背景技术  Background technique
[0002] 车道线检测技术是车道偏离、 碰撞预警和自动驾驶的基础技术。  [0002] Lane line detection technology is the basic technology for lane departure, collision warning and automatic driving.
[0003] 现有的车道线检测方法中, 通过获取实吋视频流, 再在实吋视频流中检测疑似 车道线, 最后再计算、 判断检测的疑似车道线是否为成对车道线, 而在计算、 判断检测的疑似车道线是否为成对车道线的过程中需要消耗相当可观的资源, 因此难以实吋得到检测结果。  [0003] In the existing lane line detection method, by acquiring a real video stream, detecting a suspect lane line in the real video stream, and finally calculating and determining whether the detected suspect lane line is a pair of lane lines, It takes a considerable amount of resources to calculate and judge whether the detected suspect lane line is a pair of lane lines, so it is difficult to obtain the detection result.
技术问题  technical problem
[0004] 本发明实施例提供了一种成对车道线检测方法及装置, 旨在解决现有方法难以 及吋得到车道线的检测结果的问题。  Embodiments of the present invention provide a method and an apparatus for detecting a pair of lane lines, which are intended to solve the problem that the existing method is difficult to obtain the detection result of the lane line.
问题的解决方案  Problem solution
技术解决方案  Technical solution
[0005] 本发明实施例是这样实现的, 一种成对车道线检测方法, 所述方法包括: [0006] 获取车辆前方路面的图片;  [0005] The embodiment of the present invention is implemented as a method for detecting a pair of lane lines, and the method includes: [0006] acquiring a picture of a road surface in front of the vehicle;
[0007] 检测所述车辆前方路面的图片中是否存在两条直线, 所述两条直线的颜色与图 片中车辆前方路面的颜色不同;  [0007] detecting whether there are two straight lines in the picture of the road surface in front of the vehicle, and the colors of the two lines are different from the colors of the road surface in front of the vehicle in the picture;
[0008] 在所述车辆前方路面的图片中存在两条直线吋, 在所述两条直线上各取 N个点[0008] There are two straight lines in the picture of the road surface in front of the vehicle, and N points are taken on the two lines
, 并分别计算在所述两条直线上各取的 N个点与获取的车辆前方路面的图片的中 心点的距离, N为整数, N大于或等于 2; And respectively calculating the distance between the N points taken on the two straight lines and the center point of the acquired picture of the road surface in front of the vehicle, where N is an integer and N is greater than or equal to 2;
[0009] 根据计算的在所述两条直线上各取的 N个点与获取的车辆前方路面的图片的中 心点的距离以及预设的分类器判断所述两条直线是否为成对车道线。 [0009] determining whether the two straight lines are paired lane lines according to the calculated distance between the N points taken on the two straight lines and the center point of the acquired picture of the road surface in front of the vehicle and the preset classifier .
[0010] 本发明实施例的另一目的在于提供一种成对车道线检测装置, 所述装置包括: [0011] 图片获取单元, 用于获取车辆前方路面的图片; [0010] Another object of the embodiments of the present invention is to provide a pair of lane line detecting devices, where the apparatus includes: [0011] a picture acquiring unit, configured to acquire a picture of a road surface in front of the vehicle;
[0012] 直线检测单元, 用于检测所述车辆前方路面的图片中是否存在两条直线, 所述 两条直线的颜色与图片中车辆前方路面的颜色不同; [0012] a line detecting unit, configured to detect whether there are two straight lines in the picture of the road surface in front of the vehicle, The color of the two lines is different from the color of the road ahead of the vehicle in the picture;
[0013] 距离计算单元, 用于在所述车辆前方路面的图片中存在两条直线吋, 在所述两 条直线上各取 N个点, 并分别计算在所述两条直线上各取的 N个点与获取的车辆 前方路面的图片的中心点的距离, N为整数, N大于或等于 2;  [0013] a distance calculating unit, configured to have two straight lines 图片 in the picture of the road surface in front of the vehicle, take N points on the two straight lines, and calculate respectively on each of the two straight lines The distance between the N points and the center point of the picture of the road surface in front of the acquired vehicle, N is an integer, and N is greater than or equal to 2;
[0014] 成对车道线判断单元, 用于根据计算的在所述两条直线上各取的 N个点与获取 的车辆前方路面的图片的中心点的距离以及预设的分类器判断所述两条直线是 否为成对车道线。  [0014] a pair of lane line determining unit, configured to determine, according to the calculated distance between each of the N points taken on the two straight lines and the center point of the acquired picture of the road surface in front of the vehicle, and a preset classifier Whether the two lines are pairs of lane lines.
发明的有益效果  Advantageous effects of the invention
有益效果  Beneficial effect
[0015] 在本发明实施例中, 由于根据计算的在所述两条直线上各取的 N个点与获取的 车辆前方路面的图片的中心点的距离判断所述两条直线是否为成对车道线, 而 两点之间的距离计算较简单, 因此能够快速得到计算结果, 并且, 利用预设的 分类器能够根据得到的计算结果准确、 快速地得到两条车道线是否为成对车道 线的判定结果。  [0015] In the embodiment of the present invention, whether the two straight lines are paired is determined according to the calculated distance between the N points taken on the two straight lines and the center point of the acquired picture of the road surface in front of the vehicle. The lane line, and the distance between the two points is relatively simple to calculate, so the calculation result can be quickly obtained, and the preset classifier can accurately and quickly obtain whether the two lane lines are paired lane lines according to the obtained calculation result. The result of the judgment.
对附图的简要说明  Brief description of the drawing
附图说明  DRAWINGS
[0016] 图 1是本发明第一实施例提供的一种成对车道线检测方法的流程图;  1 is a flowchart of a method for detecting a pair of lane lines according to a first embodiment of the present invention;
[0017] 图 2是本发明第一实施例提供的一种在两条直线上分别取 2个点, 并与图片的中 心连接的示意图; 2 is a schematic diagram showing two points on two straight lines and connected to the center of the picture according to the first embodiment of the present invention;
[0018] 图 3是本发明第一实施例提供的另一种在两条直线上分别取 2个点, 并与图片的 中心连接的示意图;  3 is a schematic view showing another method of taking two points on two straight lines and connecting with the center of the picture according to the first embodiment of the present invention;
[0019] 图 4是本发明第二实施例提供的一种成对车道线检测装置的结构图。  4 is a structural diagram of a pair of lane line detecting devices according to a second embodiment of the present invention.
本发明的实施方式 Embodiments of the invention
[0020] 为了使本发明的目的、 技术方案及优点更加清楚明白, 以下结合附图及实施例 , 对本发明进行进一步详细说明。 应当理解, 此处所描述的具体实施例仅仅用 以解释本发明, 并不用于限定本发明。 [0021] 本发明实施例中, 获取车辆前方路面的图片, 检测所述车辆前方路面的图片中 是否存在两条直线, 在所述车辆前方路面的图片中存在两条直线吋, 在所述两 条直线上各取 N个点, 并分别计算在所述两条直线上各取的 N个点与获取的车辆 前方路面的图片的中心点的距离, 根据计算的在所述两条直线上各取的 N个点与 获取的车辆前方路面的图片的中心点的距离以及预设的分类器判断所述两条直 线是否为成对车道线。 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. [0021] In the embodiment of the present invention, a picture of the road surface in front of the vehicle is acquired, and two lines are detected in the picture of the road surface in front of the vehicle, and two straight lines are present in the picture of the road surface in front of the vehicle. N points are respectively taken on the straight line, and the distances between the N points taken on the two straight lines and the center point of the acquired picture of the road surface in front of the vehicle are respectively calculated, according to the calculated two straight lines The distance between the N points taken and the center point of the acquired picture of the road surface in front of the vehicle and the preset classifier determine whether the two lines are paired lane lines.
[0022] 为了说明本发明所述的技术方案, 下面通过具体实施例来进行说明。  [0022] In order to explain the technical solution described in the present invention, the following description will be made by way of specific embodiments.
[0023] 实施例一:  [0023] Embodiment 1:
[0024] 图 1示出了本发明第一实施例提供的一种成对车道线检测方法的流程图, 详述 如下:  [0024] FIG. 1 is a flow chart showing a method for detecting a pair of lane lines according to a first embodiment of the present invention, which is described in detail as follows:
[0025] 步骤 Sl l, 获取车辆前方路面的图片。  [0025] Step Sl l, obtaining a picture of the road surface in front of the vehicle.
[0026] 具体地, 通过车辆监测仪等拍摄车辆前方路面, 以获取车辆前方路面对应的图 片。 当然, 为了提高后续的车道线检测速度, 可在获取车辆前方道路的图片后 , 对获取的图片进行预处理, 比如, 将彩色图片转换为灰度图片等, 以降低图 片本身占用的内存空间。  Specifically, the road surface in front of the vehicle is photographed by a vehicle monitor or the like to acquire a picture corresponding to the road surface in front of the vehicle. Of course, in order to improve the subsequent lane line detection speed, the acquired picture may be preprocessed after acquiring the picture of the road ahead of the vehicle, for example, converting the color picture into a gray picture, etc., to reduce the memory space occupied by the picture itself.
[0027] 步骤 S12, 检测所述车辆前方路面的图片中是否存在两条直线, 所述两条直线 的颜色与图片中车辆前方路面的颜色不同。  [0027] Step S12: detecting whether there are two straight lines in the picture of the road surface ahead of the vehicle, and the colors of the two lines are different from the colors of the road surface in front of the vehicle in the picture.
[0028] 其中, 这里的两条直线在路面上具有一定的宽度, 例如路面常见的车道线在路 面占据的宽度。 两条直线的颜色与路面的颜色不同, 以达到提醒用户的目的, 由于路面的颜色通常为灰色或黑色, 因此, 为了提高区分度, 两条直线的颜色 通常为白色。  [0028] Wherein the two straight lines here have a certain width on the road surface, for example, the width occupied by the common lane line on the road surface. The color of the two lines is different from the color of the road surface to remind the user. Since the color of the road surface is usually gray or black, in order to improve the discrimination, the color of the two lines is usually white.
[0029] 具体地, 检测获取的车辆前方路面的图片是否存在 2种及 2种以上的颜色, 若存 在, 则检测占据获取的车辆前方路面的图片面积较少的颜色对应的区域是否分 别形成两条直线。 需要指出的是, 这里的直线不一定是连续的实线, 也可以为 连续的虚线, 即一条直线中有存在多个线段。  [0029] Specifically, it is detected whether two or more types of colors of the acquired road surface on the road ahead of the vehicle are present, and if so, whether the area corresponding to the color occupying the road surface of the road ahead of the acquired vehicle is detected to form two Straight line. It should be pointed out that the straight line here is not necessarily a continuous solid line, but also a continuous dotted line, that is, there are multiple line segments in a straight line.
[0030] 步骤 S13, 在所述车辆前方路面的图片中存在两条直线吋, 在所述两条直线上 各取 N个点, 并分别计算在所述两条直线上各取的 N个点与获取的车辆前方路面 的图片的中心点的距离, N为整数, N大于或等于 2。 [0031] 其中, 在每条直线上所取的点之间具有一定的距离, 可选地, 在两条直线上各 取 N个点之间的间隔对应相等。 具体地, 车辆前方路面的图片的中心点不一定为 两条直线之间的中心点, 如图 2所示。 当车辆前方路面的图片为矩形吋, 车辆前 方路面的图片的中心点即为矩形区域的中心点, 即矩形区域的两条对角线的交 点。 [0030] Step S13, there are two straight lines 图片 in the picture of the road surface in front of the vehicle, N points are taken on the two straight lines, and N points respectively taken on the two straight lines are respectively calculated. The distance from the center point of the picture of the road surface in front of the acquired vehicle, N is an integer, and N is greater than or equal to 2. [0031] wherein there is a certain distance between the points taken on each straight line, and optionally, the intervals between the N points on the two straight lines are correspondingly equal. Specifically, the center point of the picture of the road surface in front of the vehicle is not necessarily the center point between the two lines, as shown in FIG. When the picture on the road surface in front of the vehicle is a rectangle, the center point of the picture on the road surface in front of the vehicle is the center point of the rectangular area, that is, the intersection of the two diagonal lines of the rectangular area.
[0032] 以图 3为例, 图中的 0点为图片的中心点, 分别在两条直线上取 2个点: 在左边 的直线上取 A点和 B点, 在右边的直线上取 C点和 D点, 分别计算直线 AO (左上 侧线) 、 BO (左下侧线) 、 CO (右上侧线) 以及 DO (右下侧线) 的距离。  [0032] Taking FIG. 3 as an example, the 0 point in the figure is the center point of the picture, and two points are taken on two straight lines: A point and B point are taken on the left line, and C is taken on the right line. Point and D point, calculate the distance between the line AO (upper left line), BO (lower left line), CO (upper right line), and DO (lower right line).
[0033] 步骤 S14, 根据计算的在所述两条直线上各取的 N个点与获取的车辆前方路面 的图片的中心点的距离以及预设的分类器判断所述两条直线是否为成对车道线  [0033] Step S14, determining whether the two straight lines are formed according to the calculated distance between the N points taken on the two straight lines and the center point of the acquired picture of the road surface in front of the vehicle and the preset classifier. Lane line
[0034] 具体地, 当获取的车辆前方路面的图片的中心点也为两条直线之间的中心点吋 , 可直接通过比较计算的在所述两条直线上各取的 N个点与获取的车辆前方路面 的图片的中心点的距离是否相等, 以及将 N个点中的任一个点与获取的车辆前方 路面的图片的中心点的距离与预设的车道线宽度比较, 再根据比较结果判断两 条直线是否为成对车道线, 但是当获取的车辆前方路面的图片的中心点不为两 条直线之间的中心点吋, 上述判断结果极可能是错误的。 [0034] Specifically, when the acquired center point of the picture of the road surface in front of the vehicle is also the center point 两条 between the two straight lines, the N points and the obtained points on the two straight lines can be directly obtained through comparison and calculation. Whether the distances of the center points of the pictures of the road ahead of the vehicle are equal, and comparing the distance between any one of the N points and the center point of the picture of the road surface ahead of the vehicle with the preset lane line width, and then according to the comparison result It is judged whether the two straight lines are paired lane lines, but when the center point of the picture of the road surface ahead of the acquired vehicle is not the center point between the two straight lines, the above judgment result is likely to be erroneous.
[0035] 可选地, 为了提高车道线检测结果的准确性, 所述步骤 S14具体包括: [0035] Optionally, in order to improve the accuracy of the detection result of the lane line, the step S14 specifically includes:
[0036] Al、 将在所述两条直线上各取的 N个点与获取的车辆前方路面的图片的中心点 的距离分成两组, 并分别计算每一组的距离和。 例如, 为了便于分组, 可设置 N 为偶数。 [0036] Al, dividing the distances of the N points taken on the two straight lines from the center point of the acquired picture of the road surface in front of the vehicle into two groups, and calculating the distance sum of each group separately. For example, to facilitate grouping, you can set N to an even number.
[0037] A2、 计算两组的距离和的比值, 将所述两组的距离和的比值替换预设的分类器 中的未知变量, 得到一计算结果。  [0037] A2. Calculating the ratio of the distance sums of the two groups, and replacing the ratio of the distance sums of the two groups with the unknown variables in the preset classifier to obtain a calculation result.
[0038] A3、 根据所述计算结果判断所述两条直线是否为成对车道线。 [0038] A3. Determine, according to the calculation result, whether the two straight lines are paired lane lines.
[0039] 具体地, 当该计算结果与预设的标识成对车道线的结果相同吋, 则判定两条直 线为成对车道线, 否则, 判定两条直线不为成对车道线。 [0039] Specifically, when the calculation result is the same as the preset result of identifying the pair of lane lines, it is determined that the two straight lines are paired lane lines, otherwise, it is determined that the two lines are not paired lane lines.
[0040] 可选地, 当 N=2吋, 在两条直线上各取的 2个点与获取的车辆前方路面的图片 的中心点的连线形成 4条线: 左上线、 左下线、 右上线及右下线, 此吋, 所述 A1 具体包括: [0040] Optionally, when N=2吋, the two points taken on the two straight lines form a line with the line connecting the center point of the picture of the road surface in front of the vehicle: upper left line, lower left line, right Up and down lines, this line, the A1 Specifically include:
[0041] Al l、 将左上线与右上线分为上侧点组, 计算所述上侧点组的距离和。  [0041] Al l, dividing the upper left line and the upper right line into upper side point groups, and calculating the distance sum of the upper side point groups.
[0042] A12、 将左下线与右下线分为下侧点组, 计算所述下侧点组的距离和。 [0042] A12. Divide the lower left line and the lower right line into lower side point groups, and calculate a distance sum of the lower side point groups.
[0043] 对应地, 所述 A2具体包括: 计算所述下侧点组的距离和与所述上侧点组的距离 和的比值, 将所述两组的距离和的比值替换预设的分类器中的未知变量, 得到 一计算结果。 Correspondingly, the A2 specifically includes: calculating a ratio of a distance of the lower side point group and a distance sum of the upper side point group, and replacing the ratio of the distance sum of the two groups with a preset classification. The unknown variable in the device gets a calculation result.
[0044] 可选地, 本发明实施例中的预设的分类器通过以下方式确定:  [0044] Optionally, the preset classifier in the embodiment of the present invention is determined by:
[0045] Bl、 获取包含成对车道线和非成对车道线的样本图像。 其中, 获取的样本图像 应包括大量的成对车道线和非成对车道线的图像。  [0045] Bl, acquiring a sample image including a pair of lane lines and an unpaired lane line. Wherein, the acquired sample image should include a large number of images of paired lane lines and unpaired lane lines.
[0046] B2、 在每条车道线上各取 N个点, 并分别计算在每条车道线上各取的 N个点与 样本图像的中心点的距离, N为整数, N大于或等于 2。 需要指出的是, 在取点吋[0046] B2, taking N points on each lane line, and calculating the distance between each of the N points taken on each lane line and the center point of the sample image, where N is an integer and N is greater than or equal to 2 . It should be pointed out that
, 每天车道线上的取点间隔保持对应相等。 , the spacing of the points on the daily lane line remains equal.
[0047] B3、 将同一样本图像中的每条车道线上各取的 N个点与样本图像的中心点的距 离分为两组, 并分别计算每一组的距离和。 [0047] B3. Divide the distances between the N points taken on each lane line in the same sample image and the center point of the sample image into two groups, and calculate the distance sum of each group separately.
[0048] B4、 计算两组的距离和的比值作为样本比值。 例如, 在 N=2吋, 可将下侧点组 的距离和与上侧点组的距离和的比值作为样本比值。 [0048] B4. Calculate a ratio of distance sums of the two groups as a sample ratio. For example, at N = 2 吋, the ratio of the distance of the lower point group to the distance sum with the upper point group can be used as the sample ratio.
[0049] B5、 根据所述样本比值确定分类器。 [0049] B5. Determine a classifier according to the sample ratio.
[0050] 进一步地, 通过 Adaboost迭代算法确定分类器。 Adaboost的核心思想是在初始 的权重数据分布下训练得到一个弱分类器 (2类分类器) , 之后通过这个弱分类 器判断准确率, 对那些错判 (即原本标签是 1的因计算得到的 0, 或者相反情况)的 样本的加大权重, 而对于分类正确的样本, 降低其权重, 这样被分错的样本就 被突出出来, 下次训练就会更多考虑这些被错分的样本, 因此得到一个新的样 本分布 (样本权重都被更新了)。 在新的分布下, 再进行训练得到一个弱分类器, 周而复始得到 N个检测能力一般的弱检测器。 再通过一定算法把这些检测能力一 般的分类器融合起来, 从而得到一个分类能力很强的强分类器。  [0050] Further, the classifier is determined by an Adaboost iterative algorithm. The core idea of Adaboost is to train a weak classifier (class 2 classifier) under the initial weight data distribution, and then use this weak classifier to judge the accuracy rate. For those wrong judgments (that is, the original label is 1 0, or vice versa, the weight of the sample is increased, and for the sample with the correct classification, the weight is reduced, so that the sample that is misclassified is highlighted, and the sample that is misclassified will be considered more in the next training. So get a new sample distribution (sample weights have been updated). Under the new distribution, training is performed to obtain a weak classifier, and N weak detectors with general detection capabilities are obtained. Then, through a certain algorithm, the general classifiers of these detection capabilities are combined to obtain a strong classifier with strong classification ability.
[0051] 可选地, 所述 B5具体包括: [0051] Optionally, the B5 specifically includes:
[0052] B501、 根据所述样本比值设置用于判断两条车道线是否为成对车道线的第一分 类阈值。 [0053] B502、 根据所述第一分类阈值确定第一基本分类器。 [0052] B501. Set a first classification threshold for determining whether the two lane lines are paired lane lines according to the sample ratio. [0053] B502. Determine a first basic classifier according to the first classification threshold.
[0054] B503、 根据所述第一分类阈值、 预设的与样本比值对应的第一权值、 所述样本 比值对应的两条车道线是否为成对车道线的结论确定第一基本分类器的误差率  [0054] B503, determining, according to the first classification threshold, a preset first weight corresponding to the sample ratio, and whether the two lane lines corresponding to the sample ratio are paired lane lines, determining the first basic classifier Error rate
[0055] B504、 根据所述第一基本分类器的误差率确定第一基本分类器的系数, 根据所 述第一基本分类器的系数以及所述第一基本分类器确定第一弱分类器。 [0055] B504. Determine a coefficient of the first basic classifier according to an error rate of the first basic classifier, and determine a first weak classifier according to the coefficient of the first basic classifier and the first basic classifier.
[0056] B505、 判断所述第一弱分类器的误分类点个数是否为 0。  [0056] B505. Determine whether the number of misclassification points of the first weak classifier is 0.
[0057] B506、 在所述第一基本分类器的误分类点不为 0吋, 根据预设的与样本比值对 应的第一权值、 第一弱分类器的系数、 所述样本比值对应的两条车道线是否为 成对车道线的结论以及第一基本分类器确定第一规范化因子。  [0057] B506, the misclassification point of the first basic classifier is not 0, according to a preset first weight corresponding to the sample ratio, a coefficient of the first weak classifier, and the sample ratio The conclusion of whether the two lane lines are paired lane lines and the first basic classifier determine the first normalization factor.
[0058] B507、 根据所述第一规范化因子调整所述预设的与样本比值对应的第一权值, 得到与样本比值对应的第二权值。  [0058] B507. Adjust the preset first weight corresponding to the sample ratio according to the first normalization factor, and obtain a second weight corresponding to the sample ratio.
[0059] B508、 根据所述样本比值设置用于判断两条车道线是否为成对车道线的第二分 类阈值。  [0059] B508. Set a second classification threshold for determining whether the two lane lines are paired lane lines according to the sample ratio.
[0060] B509、 根据所述第二分类阈值确定第二基本分类器。  [0060] B509. Determine a second basic classifier according to the second classification threshold.
[0061] B510、 根据所述第二分类阈值、 与样本比值对应的第二权值、 所述样本比值对 应的两条车道线是否为成对车道线的结论确定所述第二基本分类器的误差率。  [0061] B510, determining, according to the second classification threshold, the second weight corresponding to the sample ratio, and whether the two lane lines corresponding to the sample ratio are paired lane lines, determining the second basic classifier Error rate.
[0062] B511、 根据所述第二基本分类器的误差率确定第二基本分类器的系数, 所述第 二弱分类器根据所述第一基本分类器的系数、 所述第一基本分类器、 所述第二 基本分类器的系数以及所述第二基本分类器确定。 [0062] B511. Determine a coefficient of the second basic classifier according to an error rate of the second basic classifier, where the second weak classifier is based on a coefficient of the first basic classifier, the first basic classifier The coefficients of the second basic classifier and the second basic classifier are determined.
[0063] B512、 判断所述第二弱分类器的误分类点个数是否为 0, 若为 0, 则将第二弱分 类器作为最终分类器, 否则, 继续确定新的弱分类器, 直到确定的新的弱分类 器的误分类点个数为 0。 [0063] B512, determining whether the number of misclassification points of the second weak classifier is 0, if it is 0, using the second weak classifier as a final classifier, otherwise, continuing to determine a new weak classifier, until The number of misclassification points of the determined new weak classifier is zero.
[0064] 为了更清楚地描述如何确定分类器的过程, 下面以一具体应用例进行说明: [0065] 在该例子中, 在每条车道线上各取 2个点, 假设得到的下侧点组的距离和与所 述上侧点组的距离和的比值如表 1所示: [0064] In order to more clearly describe how to determine the process of the classifier, a specific application example will be described below: [0065] In this example, two points are taken on each lane line, and the resulting lower point is assumed. The ratio of the distance of the group and the distance sum with the upper point group is shown in Table 1:
[0066] 表 1 : [0066] Table 1:
[] [表 1] [] [Table 1]
Figure imgf000009_0001
Figure imgf000009_0001
[0067]  [0067]
[0068] (1) 首先求解第一弱分类器 sign[fl(x)]: [0068] (1) First solve the first weak classifier sign[fl(x)] :
[0069] 预设的与样本比值对应的第一权值分布如下:  [0069] The preset first weight distribution corresponding to the sample ratio is as follows:
[0070] D1 = (W11, W12, W13, W14, W15)  [0070] D1 = (W11, W12, W13, W14, W15)
[0071] Wli = 0.2; i= 1, 2, 3, 4, 5  [0071] Wli = 0.2; i= 1, 2, 3, 4, 5
[0072] 根据表 1可知, 当用于判断两条车道线是否为成对车道线的第一分类阈值取 1.43 吋, 分类误差率最低, 此吋, 第一基本分类器 G1为:  [0072] According to Table 1, when the first classification threshold for determining whether the two lane lines are paired lane lines is 1.43 吋, the classification error rate is the lowest, and then, the first basic classifier G1 is:
[0073] Gl(x)= 1, x> 1.43; Gl(x)=-1, x< 1.43  Gl(x)= 1, x> 1.43; Gl(x)=-1, x< 1.43
[0074] 结合表 1可知, 第一基本分类器 G1 有一个错误分类结果 (即对序号为 4的结 果为错误的分类) , 该错误分类的数据权值分布就是 Gl(x)在训练数据集上的误 差率 (即第一基本分类器的误差率) : el = P(Gl(xi) !=yi) = 0.2。  [0074] As can be seen from Table 1, the first basic classifier G1 has an error classification result (ie, the classification result is wrong for the sequence number 4), and the data weight distribution of the error classification is Gl(x) in the training data set. The error rate above (ie the error rate of the first basic classifier): el = P(Gl(xi) !=yi) = 0.2.
[0075] Gl(x)的系数通过下式确定: al = l/21n((l-el)/el) = 1η2 = 0.6931。  [0075] The coefficient of Gl(x) is determined by the following equation: al = l/21n((l-el)/el) = 1η2 = 0.6931.
[0076] 则第一弱分类器为: sign[fl(x)] = ln2Gl(x)。  [0076] Then the first weak classifier is: sign[fl(x)] = ln2Gl(x).
[0077] (2) 求解第二弱分类器 sign[f2(x)]: [0077] (2) Solving the second weak classifier sign[f2(x)] :
[0078] 由于第一基本分类器 Gl (x) 有一个错误分类结果, 则根据第一弱分类器的公 式可知, 该第一弱分类器在训练数据集 (即表 1对应的数据集) 上也有一个误分 类点, 此吋, 需要通过以下方式确定第一规范化因子:  [0078] Since the first basic classifier G1(x) has an error classification result, according to the formula of the first weak classifier, the first weak classifier is in the training data set (ie, the data set corresponding to Table 1). There is also a misclassification point. Therefore, the first normalization factor needs to be determined by:
[0079] 第一规范化因子 Zl = Wll* exp(-al * yl * Gl(xl)) + W12* exp(-al * y2 * Gl(x2))[0079] The first normalization factor Zl = Wll* exp(-al * yl * Gl(xl)) + W12* exp(-al * y2 * Gl(x2))
+ W13* exp(-al * y3 * Gl(x3)) + W14* exp(-al * y4 * Gl(x4)) + W15* exp(-al * y5+ W13* exp(-al * y3 * Gl(x3)) + W14* exp(-al * y4 * Gl(x4)) + W15* exp(-al * y5
* Gl(x5)) = 0.8。 * Gl(x5)) = 0.8.
[0080] 根据第一规范化因子调整第一权值, 得到的第二权值分布如下:  [0080] adjusting the first weight according to the first normalization factor, and the obtained second weight distribution is as follows:
[0081] D2 = (W21, W22, W23, W24, W25)  [0081] D2 = (W21, W22, W23, W24, W25)
[0082] W2i = wli/Zl * exp(-al*yi*Gl(Xi)), i= l, 2, 3, 4, 5 [0083] D2 = (0.125, 0.125, 0.125, 0. 5, 0.125) W2i = wli/Zl * exp(-al*yi*Gl(Xi)), i= l, 2, 3, 4, 5 D2 = (0.125, 0.125, 0.125, 0. 5, 0.125)
[0084] 结合表 1的数据, 设置用于判断两条车道线是否为成对车道线的第二分类阈值 [0084] In combination with the data of Table 1, a second classification threshold for determining whether two lane lines are paired lane lines is set
, 当该第二分类阈值取 1.55吋, 分类误差率最低, 第二基本分类器 G2为: When the second classification threshold is 1.55吋, the classification error rate is the lowest, and the second basic classifier G2 is:
[0085] G2(x)= 1 , x > 1.55; G2(x)= -1 , x < 1.55 G2(x)= 1 , x > 1.55; G2(x)= -1 , x < 1.55
[0086] 第二基本分类器 G2(x)有两个错误分类结果 (即表 1的序号 2、 3对应的结果) , 两个错误分类的数据权值分布和就是 G2(x)在训练数据集上的误差率: e2 = P(Gl(xi) != yi) = 0.125 + 0.125 = 0.25。  [0086] The second basic classifier G2(x) has two misclassification results (ie, the results corresponding to the sequence numbers 2 and 3 of Table 1), and the data weight distributions of the two misclassifications are G2(x) in the training data. The error rate on the set: e2 = P(Gl(xi) != yi) = 0.125 + 0.125 = 0.25.
[0087] G2(x)的系数: a2 = l/21n((l-e2)/e2) =1η3 1/3= 0.5493。 [0087] The coefficient of G2(x): a2 = l/21n((l-e2)/e2) =1η3 1/3 = 0.5493.
[0088] 则第二弱分类器 sign[f2(x)]= al * Gl(x) + a2 * G2(x) = ln2 * Gl(x) + In * G2(x) = [0088] Then the second weak classifier sign[f2(x)]= al * Gl(x) + a2 * G2(x) = ln2 * Gl(x) + In * G2(x) =
0.6931 * Gl(x) + 0.5493 * G2(x)。 0.6931 * Gl(x) + 0.5493 * G2(x).
[0089] 根据第二弱分类器 sign[f2(x)]的公式可知, sign[f2(x)]在训练数据集上有误分类 点个数为 0 (当" sign[f2(X)]"的计算结果大于 -1且小于 0吋, 对该" sign[f2(X)]"取整 后为 -1, 同理, 当 "sign[f2(x)]"的计算结果大于 0且小于 1吋, 对该 "sign[f2(x)]"取 整后为 1) 。 [0089] According to the formula of the second weak classifier sign[f2(x)], sign[f2(x)] has 0 misclassification points on the training data set (when "sign[f2( X )] "The calculation result is greater than -1 and less than 0吋, and the "sign[f2( X )]" is rounded to -1. Similarly, when the calculation result of "sign[f2(x)]" is greater than 0 and less than 1吋, the "sign[f2(x)]" is rounded to 1).
[0090] 当然, 若假设判断出第二弱分类器的误分类点个数不为 0, 则需要确定新的弱 分类器 (第三分类器、 第四分类器等等) , 直到确定的新的弱分类器的误分类 点个数为 0。  [0090] Of course, if it is determined that the number of misclassification points of the second weak classifier is not 0, it is necessary to determine a new weak classifier (third classifier, fourth classifier, etc.) until the determined new The number of misclassification points of the weak classifier is zero.
[0091] 在确定新的弱分类器 (第三分类器) 之前, 需要确定第二规范化因子 Z2 =  [0091] Before determining the new weak classifier (third classifier), it is necessary to determine the second normalization factor Z2 =
W21* exp(-al * yl * G2(xl)) + W22* exp(-al * y2 * G2(x2)) + W23* exp(-al * y3 * G2(x3)) + W24* exp(-al * y4 * G2(x4)) + W25* exp(-al * y5 * G2(x5)) = 1/2 * ln3 1/3 W21* exp(-al * yl * G2(xl)) + W22* exp(-al * y2 * G2(x2)) + W23* exp(-al * y3 * G2(x3)) + W24* exp(- Al * y4 * G2(x4)) + W25* exp(-al * y5 * G2(x5)) = 1/2 * ln3 1/3
[0092] 根据第二规范化因子更新训练数据的权值分布如下: [0092] The weight distribution of the training data updated according to the second normalization factor is as follows:
[0093] D3 = (W31 , W32, W33 , W34, W35) [0093] D3 = (W31, W32, W33, W34, W35)
[0094] W3i = w2i/Z2 * exp(-a2*yi*G2(Xi)) , i = l, 2, 3, 4, 5 W3i = w2i/Z2 * exp(-a2*yi*G2(Xi)) , i = l, 2, 3, 4, 5
[0095] D3 = (l/12, 1/4, 1/4, 1/3 , 01/12) [0095] D3 = (l/12, 1/4, 1/4, 1/3, 01/12)
[0096] 在步骤 S14中, 根据预设的分类器能够快速判断所述两条直线是否为成对车道 线, 例如, 假设预设的分类器为第二弱分类器 sign[f2(x)]= al * Gl(x) + a2 * G2(x) = 1η2 * Gl(x) + In * G2(x) = 0.6931 * Gl(x) + 0.5493 * G2(x) , 当判断出下侧点组 的距离和与所述上侧点组的距离和的比值为 1.4403吋, 代入 sign[f2(x)], [0096] In step S14, according to the preset classifier, it can quickly determine whether the two lines are paired lane lines, for example, assuming that the preset classifier is the second weak classifier sign[f2(x)] = al * Gl(x) + a2 * G2(x) = 1η2 * Gl(x) + In * G2(x) = 0.6931 * Gl(x) + 0.5493 * G2(x) , when the lower point group is judged The distance between the distance and the distance from the upper point group is 1.4403吋, which is substituted into sign[f2(x)],
[0097] sign[0.6931 * Gl( 1.4403) + 0.5493 * G2( 1.4403)] = sign[0.6931 * 1 + 0.5493 * (-1)]Sign[0.697 * Gl( 1.4403) + 0.5493 * G2( 1.4403)] = sign[0.6931 * 1 + 0.5493 * (-1)]
= 1, 得到"两条直线为成对车道线"的判定。 = 1, get the judgment that "two lines are paired lane lines".
[0098] 当判断出下侧点组的距离和与所述上侧点组的距离和的比值为 1.1666吋, 代入 s ign[f2(x)] , [0098] When it is determined that the ratio of the distance of the lower side point group and the distance sum of the upper side point group is 1.1666 吋, substituting s ign[f2(x)],
[0099] G(x) = sign[0.6931 * Gl(1.1666) + 0.5493 * G2(1.1666)] = sign[0.6931 * (-1) + 0.5493 * (-1)] = -1, 得到"两条直线为非成对车道线"的判定。  [0099] G(x) = sign[0.6931 * Gl(1.1666) + 0.5493 * G2(1.1666)] = sign[0.6931 * (-1) + 0.5493 * (-1)] = -1, get "two lines The judgment of the unpaired lane line.
[0100] 本发明第一实施例中, 获取车辆前方路面的图片, 检测所述车辆前方路面的图 片中是否存在两条直线, 在所述车辆前方路面的图片中存在两条直线吋, 在所 述两条直线上各取 N个点, 并分别计算在所述两条直线上各取的 N个点与获取的 车辆前方路面的图片的中心点的距离, 根据计算的在所述两条直线上各取的 N个 点与获取的车辆前方路面的图片的中心点的距离以及预设的分类器判断所述两 条直线是否为成对车道线。 由于根据计算的在所述两条直线上各取的 N个点与获 取的车辆前方路面的图片的中心点的距离判断所述两条直线是否为成对车道线 , 而两点之间的距离计算较简单, 因此能够快速得到计算结果, 并且, 利用预 设的分类器能够根据得到的计算结果准确、 快速地得到两条车道线是否为成对 车道线的判定结果。  [0100] In the first embodiment of the present invention, a picture of the road surface in front of the vehicle is acquired, and two lines are detected in the picture on the road surface in front of the vehicle, and two straight lines are present in the picture on the road surface in front of the vehicle. N points are taken on each of the two straight lines, and the distances between the N points taken on the two straight lines and the center point of the acquired picture of the road surface in front of the vehicle are respectively calculated, according to the calculated two straight lines The distance between each of the N points taken and the center point of the acquired picture of the road surface in front of the vehicle and the preset classifier determine whether the two lines are paired lane lines. It is determined whether the two straight lines are paired lane lines and the distance between the two points is determined according to the calculated distance between the N points taken on the two straight lines and the center point of the acquired picture of the road surface in front of the vehicle. The calculation is relatively simple, so that the calculation result can be obtained quickly, and the preset classifier can accurately and quickly obtain the determination result of whether the two lane lines are paired lane lines according to the obtained calculation result.
[0101] 应理解, 在本发明实施例中, 上述各过程的序号的大小并不意味着执行顺序的 先后, 各过程的执行顺序应以其功能和内在逻辑确定, 而不应对本发明实施例 的实施过程构成任何限定。  It should be understood that, in the embodiment of the present invention, the size of the sequence numbers of the foregoing processes does not mean the order of execution sequence, and the execution order of each process should be determined by its function and internal logic, and should not be taken to the embodiment of the present invention. The implementation process constitutes any limitation.
[0102] 实施例二:  Embodiment 2:
[0103] 图 4示出了本发明第二实施例提供的一种成对车道线检测装置的结构图, 该成 对车道线检测装置可用于各种智能终端中, 该智能终端包括手机、 车载设备等 。 为了便于说明, 仅示出了与本发明实施例相关的部分。  4 is a structural diagram of a pair of lane line detecting devices according to a second embodiment of the present invention. The paired lane line detecting device can be used in various smart terminals, including a mobile phone and a vehicle. Equipment, etc. For the convenience of description, only parts related to the embodiment of the present invention are shown.
[0104] 该成对车道线检测装置包括: 图片获取单元 41、 直线检测单元 42、 距离计算单 元 43、 成对车道线判断单元 44。 其中:  The paired lane line detecting device includes: a picture acquiring unit 41, a line detecting unit 42, a distance calculating unit 43, and a pair of lane line determining unit 44. among them:
[0105] 图片获取单元 41, 用于获取车辆前方路面的图片。  [0105] The picture obtaining unit 41 is configured to acquire a picture of the road surface in front of the vehicle.
[0106] 具体地, 通过车辆监测仪等拍摄车辆前方路面, 以获取车辆前方路面对应的图 片。 当然, 为了提高后续的车道线检测速度, 可在获取车辆前方道路的图片后 , 对获取的图片进行预处理, 比如, 将彩色图片转换为灰度图片等, 以降低图 片本身占用的内存空间。 [0106] Specifically, the road surface in front of the vehicle is photographed by a vehicle monitor or the like to obtain a map corresponding to the road surface in front of the vehicle. Film. Of course, in order to improve the subsequent lane line detection speed, the acquired picture may be preprocessed after acquiring the picture of the road ahead of the vehicle, for example, converting the color picture into a gray picture, etc., to reduce the memory space occupied by the picture itself.
[0107] 直线检测单元 42, 用于检测所述车辆前方路面的图片中是否存在两条直线, 所 述两条直线的颜色与图片中车辆前方路面的颜色不同。  [0107] The line detecting unit 42 is configured to detect whether there are two straight lines in the picture of the road surface in front of the vehicle, and the colors of the two lines are different from the colors of the road surface in front of the vehicle in the picture.
[0108] 其中, 这里的两条直线在路面上具有一定的宽度, 例如路面常见的车道线在路 面占据的宽度。 两条直线的颜色与路面的颜色不同, 以达到提醒用户的目的, 由于路面的颜色通常为灰色或黑色, 因此, 为了提高区分度, 两条直线的颜色 通常为白色。 [0108] Wherein the two straight lines here have a certain width on the road surface, for example, the width occupied by the common lane line on the road surface. The color of the two lines is different from the color of the road surface to remind the user. Since the color of the road surface is usually gray or black, in order to improve the discrimination, the color of the two lines is usually white.
[0109] 具体地, 检测获取的车辆前方路面的图片是否存在 2种及 2种以上的颜色, 若存 在, 则检测占据获取的车辆前方路面的图片面积较少的颜色对应的区域是否分 别形成两条直线。 需要指出的是, 这里的直线不一定是连续的实线, 也可以为 连续的虚线, 即一条直线中有存在多个线段。  Specifically, it is detected whether two or more types of colors of the acquired road surface on the road ahead of the vehicle are present, and if so, whether the area corresponding to the color occupying the road surface of the road ahead of the acquired vehicle is detected is formed separately. Straight line. It should be pointed out that the straight line here is not necessarily a continuous solid line, but also a continuous dotted line, that is, there are multiple line segments in a straight line.
[0110] 距离计算单元 43, 用于在所述车辆前方路面的图片中存在两条直线吋, 在所述 两条直线上各取 N个点, 并分别计算在所述两条直线上各取的 N个点与获取的车 辆前方路面的图片的中心点的距离, N为整数, N大于或等于 2。  [0110] The distance calculating unit 43 is configured to have two straight lines in the picture of the road surface in front of the vehicle, and take N points on the two straight lines, and calculate respectively on the two straight lines. The distance between the N points and the center point of the picture of the road surface in front of the acquired vehicle, N is an integer, and N is greater than or equal to 2.
[0111] 可选地, 车辆前方路面的图片的中心点不一定为两条直线之间的中心点。  [0111] Optionally, the center point of the picture of the road surface ahead of the vehicle is not necessarily the center point between the two lines.
[0112] 成对车道线判断单元 44, 用于根据计算的在所述两条直线上各取的 N个点与获 取的车辆前方路面的图片的中心点的距离以及预设的分类器判断所述两条直线 是否为成对车道线。  [0112] The paired lane line determining unit 44 is configured to determine, according to the calculated distance between the N points taken on the two straight lines and the center point of the acquired picture of the road surface in front of the vehicle, and a preset classifier Whether the two lines are paired lane lines.
[0113] 可选地, 所述成对车道线判断单元 44包括:  [0113] Optionally, the pair of lane line determining unit 44 includes:
[0114] 距离和计算模块, 用于将在所述两条直线上各取的 N个点与获取的车辆前方路 面的图片的中心点的距离分成两组, 并分别计算每一组的距离和。  [0114] a distance and calculation module, configured to divide the distances of the N points taken on the two straight lines from the center point of the acquired picture of the road surface in front of the vehicle into two groups, and calculate the distance and the distance of each group respectively. .
[0115] 分类器计算结果确定模块, 用于计算两组的距离和的比值, 将所述两组的距离 和的比值替换预设的分类器中的未知变量, 得到一计算结果。  [0115] The classifier calculation result determining module is configured to calculate a ratio of the distance sums of the two groups, and replace the ratio of the distances of the two groups with the unknown variable in the preset classifier to obtain a calculation result.
[0116] 分类器计算结果比较模块, 用于根据所述计算结果判断所述两条直线是否为成 对车道线。  [0116] The classifier calculation result comparison module is configured to determine, according to the calculation result, whether the two straight lines are paired lane lines.
[0117] 可选地, 当 N=2吋, 在两条直线上各取的 2个点与获取的车辆前方路面的图片 的中心点的连线形成 4条线: 左上线、 左下线、 右上线及右下线, 此吋, 所述距 离和计算模块包括: [0117] Optionally, when N=2吋, two points taken on two straight lines and a picture of the road surface in front of the acquired vehicle The line connecting the center points forms 4 lines: the upper left line, the lower left line, the upper right line, and the lower right line. Here, the distance and calculation module includes:
[0118] 上侧点组的距离和计算模块, 用于将左上线与右上线分为上侧点组, 计算所述 上侧点组的距离和。  [0118] The distance and calculation module of the upper side point group is configured to divide the upper left line and the upper right line into upper side point groups, and calculate the distance sum of the upper side point groups.
[0119] 下侧点组的距离和计算模块, 用于将左下线与右下线分为下侧点组, 计算所述 下侧点组的距离和。  [0119] The distance and calculation module of the lower point group is configured to divide the lower left line and the lower right line into lower side point groups, and calculate the distance sum of the lower side point groups.
[0120] 对应地, 所述分类器计算结果确定模块具体用于计算所述下侧点组的距离和与 所述上侧点组的距离和的比值, 将所述两组的距离和的比值替换预设的分类器 中的未知变量, 得到一计算结果。  Correspondingly, the classifier calculation result determining module is specifically configured to calculate a ratio of a distance between the lower side point group and a distance sum of the upper side point group, and a ratio of the distance sums of the two groups Replace the unknown variable in the preset classifier to get a calculation result.
[0121] 可选地, 所述成对车道线检测装置通过以下单元确定预设的分类器: [0121] Optionally, the paired lane line detecting device determines a preset classifier by using the following unit:
[0122] 样本图像获取单元, 用于获取包含成对车道线和非成对车道线的样本图像。 [0122] The sample image obtaining unit is configured to acquire a sample image including a pair of lane lines and an unpaired lane line.
[0123] 距离数据获取单元, 用于在每条车道线上各取 N个点, 并分别计算在每条车道 线上各取的 N个点与样本图像的中心点的距离, N为整数, N大于或等于 2。 [0123] The distance data acquiring unit is configured to take N points on each lane line, and calculate a distance between each of the N points taken on each lane line and the center point of the sample image, where N is an integer. N is greater than or equal to 2.
[0124] 不同组的距离和计算单元, 用于将同一样本图像中的每条车道线上各取的 N个 点与样本图像的中心点的距离分为两组, 并分别计算每一组的距离和。 [0124] different sets of distance and calculation units are used to divide the distances of N points taken on each lane line in the same sample image from the center point of the sample image into two groups, and calculate each group separately. Distance and.
[0125] 样本比值计算单元, 用于计算两组的距离和的比值作为样本比值。  [0125] A sample ratio calculating unit is configured to calculate a ratio of distance sums of the two groups as a sample ratio.
[0126] 分类器确定单元, 用于根据所述样本比值确定分类器。 [0126] A classifier determining unit, configured to determine a classifier according to the sample ratio.
[0127] 当通过 Adaboost迭代算法确定分类器吋, 所述分类器确定单元包括: [0127] When the classifier 确定 is determined by an Adaboost iterative algorithm, the classifier determining unit includes:
[0128] 第一弱分类器确定模块, 用于根据所述样本比值设置用于判断两条车道线是否 为成对车道线的第一分类阈值。 根据所述第一分类阈值确定第一基本分类器。 根据所述第一分类阈值、 预设的与样本比值对应的第一权值、 所述样本比值对 应的两条车道线是否为成对车道线的结论确定第一基本分类器的误差率。 根据 所述第一基本分类器的误差率确定第一基本分类器的系数, 根据所述第一基本 分类器的系数以及所述第一基本分类器确定第一弱分类器。 [0128] The first weak classifier determining module is configured to set, according to the sample ratio, a first classification threshold for determining whether the two lane lines are paired lane lines. Determining a first basic classifier based on the first classification threshold. And determining, according to the first classification threshold, the preset first weight corresponding to the sample ratio, and whether the two lane lines corresponding to the sample ratio are paired lane lines, determining an error rate of the first basic classifier. A coefficient of the first basic classifier is determined according to an error rate of the first basic classifier, and a first weak classifier is determined according to a coefficient of the first basic classifier and the first basic classifier.
[0129] 第一弱分类器的误分类点个数判断模块, 用于判断所述第一弱分类器的误分类 点个数是否为 0。 [0129] The misclassification point number judging module of the first weak classifier is configured to determine whether the number of misclassification points of the first weak classifier is 0.
[0130] 第一规范化因子确定模块, 用于在所述第一基本分类器的误分类点不为 0吋, 根据预设的与样本比值对应的第一权值、 第一弱分类器的系数、 所述样本比值 对应的两条车道线是否为成对车道线的结论以及第一基本分类器确定第一规范 化因子。 [0130] The first normalization factor determining module is configured to: when the misclassification point of the first basic classifier is not 0, according to the preset first weight corresponding to the sample ratio, the coefficient of the first weak classifier Sample ratio The conclusion of whether the corresponding two lane lines are paired lane lines and the first basic classifier determine the first normalization factor.
[0131] 第二弱分类器确定模块, 用于根据所述第一规范化因子调整所述预设的与样本 比值对应的第一权值, 得到与样本比值对应的第二权值。 根据所述样本比值设 置用于判断两条车道线是否为成对车道线的第二分类阈值。 根据所述第二分类 阈值确定第二基本分类器。 根据所述第二分类阈值、 与样本比值对应的第二权 值、 所述样本比值对应的两条车道线是否为成对车道线的结论确定所述第二基 本分类器的误差率。 根据所述第二基本分类器的误差率确定第二基本分类器的 系数, 根据所述第一基本分类器的系数、 所述第一基本分类器、 所述第二基本 分类器的系数以及所述第二基本分类器确定第二弱分类器。  [0131] The second weak classifier determining module is configured to adjust the preset first weight corresponding to the sample ratio according to the first normalization factor to obtain a second weight corresponding to the sample ratio. A second classification threshold for determining whether the two lane lines are paired lane lines is set based on the sample ratio. A second basic classifier is determined based on the second classification threshold. And determining, according to the second classification threshold, the second weight corresponding to the sample ratio, and whether the two lane lines corresponding to the sample ratio are paired lane lines, determining an error rate of the second basic classifier. Determining coefficients of the second basic classifier according to an error rate of the second basic classifier, according to coefficients of the first basic classifier, coefficients of the first basic classifier, the second basic classifier, and The second basic classifier determines the second weak classifier.
[0132] 第二弱分类器的误分类点个数判断模块, 用于判断所述第二弱分类器的误分类 点个数是否为 0, 若为 0, 则将第二弱分类器作为最终分类器, 否则, 继续确定 新的弱分类器, 直到确定的新的弱分类器的误分类点个数为 0。  [0132] The misclassification point number judging module of the second weak classifier is configured to determine whether the number of misclassification points of the second weak classifier is 0, and if it is 0, the second weak classifier is used as a final The classifier, otherwise, continues to determine the new weak classifier until the determined number of misclassification points for the new weak classifier is zero.
[0133] 本发明第二实施例中, 由于根据计算的在所述两条直线上各取的 N个点与获取 的车辆前方路面的图片的中心点的距离判断所述两条直线是否为成对车道线, 而两点之间的距离计算较简单, 因此能够快速得到计算结果, 并且, 利用预设 的分类器能够根据得到的计算结果准确、 快速地得到两条车道线是否为成对车 道线的判定结果。  [0133] In the second embodiment of the present invention, it is determined whether the two straight lines are formed due to the calculated distance between the N points taken on the two straight lines and the center point of the acquired picture of the road surface in front of the vehicle. For the lane line, the distance between the two points is relatively simple to calculate, so the calculation result can be quickly obtained, and the preset classifier can accurately and quickly obtain whether the two lane lines are paired lanes according to the obtained calculation result. The result of the line determination.
[0134] 本领域普通技术人员可以意识到, 结合本文中所公幵的实施例描述的各示例的 单元及算法步骤, 能够以电子硬件、 或者计算机软件和电子硬件的结合来实现 。 这些功能究竟以硬件还是软件方式来执行, 取决于技术方案的特定应用和设 计约束条件。 专业技术人员可以对每个特定的应用来使用不同方法来实现所描 述的功能, 但是这种实现不应认为超出本发明的范围。  [0134] Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
[0135] 所属领域的技术人员可以清楚地了解到, 为描述的方便和简洁, 上述描述的系 统、 装置和单元的具体工作过程, 可以参考前述方法实施例中的对应过程, 在 此不再赘述。  [0135] It is to be understood by those skilled in the art that, for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above may refer to the corresponding process in the foregoing method embodiments, and details are not described herein again. .
[0136] 在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统、 装置和方法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示意性的, 例如, 所述单元的划分, 仅仅为一种逻辑功能划分, 实际实现吋可以有另外的 划分方式, 例如多个单元或组件可以结合或者可以集成到另一个系统, 或一些 特征可以忽略, 或不执行。 另一点, 所显示或讨论的相互之间的耦合或直接耦 合或通信连接可以是通过一些接口, 装置或单元的间接耦合或通信连接, 可以 是电性, 机械或其它的形式。 [0136] In the several embodiments provided by the present application, it should be understood that the disclosed system, 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, and the actual implementation may have another division manner, for example, multiple units or components may be combined or may be integrated into another system, or some features may be ignored, or not. carried out. 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.
[0137] 所述作为分离部件说明的单元可以是或者也可以不是物理上分幵的, 作为单元 显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者也可 以分布到多个网络单元上。 可以根据实际的需要选择其中的部分或者全部单元 来实现本实施例方案的目的。  [0137] The unit described as a separate component may or may not be physically distributed, and the component displayed as a unit may or may not be a physical unit, that is, may be located in one place, or may be distributed to multiple On the network unit. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
[0138] 另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元中, 也可 以是各个单元单独物理存在, 也可以两个或两个以上单元集成在一个单元中。  [0138] 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.
[0139] 所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用吋, 可 以存储在一个计算机可读取存储介质中。 基于这样的理解, 本发明的技术方案 本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产 品的形式体现出来, 该计算机软件产品存储在一个存储介质中, 包括若干指令 用以使得一台计算机设备 (可以是个人计算机, 服务器, 或者网络设备等) 执 行本发明各个实施例所述方法的全部或部分步骤。 而前述的存储介质包括: U盘 、 移动硬盘、 只读存储器 (ROM, Read-Only  [0139] The functions, if implemented in the form of software functional units and sold or used as separate products, 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 a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including The instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a USB flash drive, a removable hard disk, a read only memory (ROM, Read-Only)
Memory) 、 随机存取存储器 (RAM, Random Access Memory) 、 磁碟或者光盘 等各种可以存储程序代码的介质。  Memory, random access memory (RAM), disk or optical disk, and other media that can store program code.
[0140] 以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到变化 或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围应所述 以权利要求的保护范围为准。 The above description is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or within the technical scope disclosed by the present invention. Alternatives are intended to be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims.

Claims

权利要求书 Claim
[权利要求 1] 一种成对车道线检测方法, 其特征在于, 所述方法包括:  [Claim 1] A method for detecting a pair of lane lines, the method comprising:
获取车辆前方路面的图片;  Obtain a picture of the road surface in front of the vehicle;
检测所述车辆前方路面的图片中是否存在两条直线, 所述两条直线的 颜色与图片中车辆前方路面的颜色不同;  Detecting whether there are two straight lines in the picture of the road surface in front of the vehicle, and the colors of the two lines are different from the colors of the road surface in front of the vehicle in the picture;
在所述车辆前方路面的图片中存在两条直线吋, 在所述两条直线上各 取 N个点, 并分别计算在所述两条直线上各取的 N个点与获取的车辆 前方路面的图片的中心点的距离, N为整数, N大于或等于 2;  There are two straight lines in the picture of the road surface in front of the vehicle, N points are taken on the two straight lines, and N points taken on the two straight lines and the obtained road surface in front of the vehicle are respectively calculated. The distance from the center point of the picture, N is an integer, N is greater than or equal to 2;
根据计算的在所述两条直线上各取的 N个点与获取的车辆前方路面的 图片的中心点的距离以及预设的分类器判断所述两条直线是否为成对 车道线。  According to the calculated distance between the N points taken on the two straight lines and the center point of the acquired picture of the road surface in front of the vehicle and the preset classifier, it is judged whether the two straight lines are paired lane lines.
[权利要求 2] 根据权利要求 1所述的方法, 其特征在于, 所述根据计算的在所述两 条直线上各取的 N个点与获取的车辆前方路面的图片的中心点的距离 以及预设的分类器判断所述两条直线是否为成对车道线, 具体包括: 将在所述两条直线上各取的 N个点与获取的车辆前方路面的图片的中 心点的距离分成两组, 并分别计算每一组的距离和;  [Claim 2] The method according to claim 1, wherein the calculated distances between the N points taken on the two straight lines and the center point of the acquired picture of the road surface in front of the vehicle and The preset classifier determines whether the two straight lines are paired lane lines, and specifically includes: dividing the distance between the N points taken on the two straight lines and the center point of the acquired picture of the road surface in front of the vehicle into two Group, and calculate the distance sum of each group separately;
计算两组的距离和的比值, 将所述两组的距离和的比值替换预设的分 类器中的未知变量, 得到一计算结果;  Calculating the ratio of the distances of the two groups, and replacing the ratio of the distances of the two groups with the unknown variables in the preset classifier to obtain a calculation result;
根据所述计算结果判断所述两条直线是否为成对车道线。  Whether the two straight lines are paired lane lines is determined according to the calculation result.
[权利要求 3] 根据权利要求 2所述的方法, 其特征在于, 当 N=2吋, 在两条直线上 各取的 2个点与获取的车辆前方路面的图片的中心点的连线形成 4条线 : 左上线、 左下线、 右上线及右下线, 此吋, 所述将在所述两条直线 上各取的 N个点与获取的车辆前方路面的图片的中心点的距离分成两 组, 并分别计算每一组的距离和, 具体包括:  [Claim 3] The method according to claim 2, wherein, when N = 2 吋, the two points taken on the two straight lines are connected with the line connecting the center points of the pictures of the road surface in front of the vehicle. 4 lines: the upper left line, the lower left line, the upper right line, and the lower right line, where the distance between the N points taken on the two straight lines and the center point of the acquired picture of the road surface in front of the vehicle is divided into Two groups, and calculate the distance and the distance of each group separately, including:
将左上线与右上线分为上侧点组, 计算所述上侧点组的距离和; 将左下线与右下线分为下侧点组, 计算所述下侧点组的距离和; 对应地, 所述计算两组的距离和的比值, 将所述两组的距离和的比值 替换预设的分类器中的未知变量, 得到一计算结果, 具体包括: 计算所述下侧点组的距离和与所述上侧点组的距离和的比值, 将所述 两组的距离和的比值替换预设的分类器中的未知变量, 得到一计算结 果。 The upper left line and the upper right line are divided into an upper point group, and the distance between the upper side point group is calculated; the lower left line and the lower right line are divided into lower side point groups, and the distance between the lower side point group is calculated; And calculating the ratio of the sum of the distances of the two groups, and replacing the ratio of the distances of the two groups with the unknown variables in the preset classifier to obtain a calculation result, which specifically includes: Calculating a ratio of the distance of the lower side point group and the distance sum of the upper side point group, and replacing the ratio of the distance sums of the two groups with the unknown variable in the preset classifier to obtain a calculation result.
[权利要求 4] 根据权利要求 2或 3所述的方法, 其特征在于, 所述预设的分类器通过 以下方式确定:  [Claim 4] The method according to claim 2 or 3, wherein the preset classifier is determined by:
获取包含成对车道线和非成对车道线的样本图像; 在每条车道线上各取 N个点, 并分别计算在每条车道线上各取的 N个 点与样本图像的中心点的距离, N为整数, N大于或等于 2;  Obtaining a sample image including a pair of lane lines and an unpaired lane line; taking N points on each lane line, and respectively calculating N points taken on each lane line and a center point of the sample image Distance, N is an integer, N is greater than or equal to 2;
将同一样本图像中的每条车道线上各取的 N个点与样本图像的中心点 的距离分为两组, 并分别计算每一组的距离和; 计算两组的距离和的比值作为样本比值; 根据所述样本比值确定分类器。  The distance between the N points taken on each lane line in the same sample image and the center point of the sample image is divided into two groups, and the distance sum of each group is calculated respectively; the ratio of the distance sum of the two groups is calculated as a sample Ratio; determining the classifier based on the sample ratio.
[权利要求 5] 根据权利要求 4所述的方法, 其特征在于, 所述根据所述样本比值确 定分类器, 具体包括: [Claim 5] The method according to claim 4, wherein the determining the classifier according to the sample ratio comprises:
根据所述样本比值设置用于判断两条车道线是否为成对车道线的第一 分类阈值;  Setting a first classification threshold for determining whether the two lane lines are paired lane lines according to the sample ratio;
根据所述第一分类阈值确定第一基本分类器;  Determining, according to the first classification threshold, a first basic classifier;
根据所述第一分类阈值、 预设的与样本比值对应的第一权值、 所述样 本比值对应的两条车道线是否为成对车道线的结论确定第一基本分类 器的误差率;  Determining an error rate of the first basic classifier according to the first classification threshold, the preset first weight corresponding to the sample ratio, and whether the two lane lines corresponding to the sample ratio are paired lane lines;
根据所述第一基本分类器的误差率确定第一基本分类器的系数, 根据 所述第一基本分类器的系数以及所述第一基本分类器确定第一弱分类 器;  Determining a coefficient of the first basic classifier according to an error rate of the first basic classifier, determining a first weak classifier according to the coefficient of the first basic classifier and the first basic classifier;
判断所述第一弱分类器的误分类点个数是否为 0;  Determining whether the number of misclassification points of the first weak classifier is 0;
在所述第一基本分类器的误分类点不为 0吋, 根据预设的与样本比值 对应的第一权值、 第一弱分类器的系数、 所述样本比值对应的两条车 道线是否为成对车道线的结论以及第一基本分类器确定第一规范化因 子; 根据所述第一规范化因子调整所述预设的与样本比值对应的第一权值 , 得到与样本比值对应的第二权值; If the misclassification point of the first basic classifier is not 0, according to the preset first weight corresponding to the sample ratio, the coefficient of the first weak classifier, and the two lane lines corresponding to the sample ratio Determining a first normalization factor for the conclusion of the pair of lane lines and the first basic classifier; Adjusting the preset first weight corresponding to the sample ratio according to the first normalization factor, to obtain a second weight corresponding to the sample ratio;
根据所述样本比值设置用于判断两条车道线是否为成对车道线的第二 分类阈值;  Setting a second classification threshold for determining whether the two lane lines are paired lane lines according to the sample ratio;
根据所述第二分类阈值确定第二基本分类器;  Determining a second basic classifier according to the second classification threshold;
根据所述第二分类阈值、 与样本比值对应的第二权值、 所述样本比值 对应的两条车道线是否为成对车道线的结论确定所述第二基本分类器 的误差率;  Determining an error rate of the second basic classifier according to the second classification threshold, the second weight corresponding to the sample ratio, and whether the two lane lines corresponding to the sample ratio are paired lane lines;
根据所述第二基本分类器的误差率确定第二基本分类器的系数, 根据 所述第一基本分类器的系数、 所述第一基本分类器、 所述第二基本分 类器的系数以及所述第二基本分类器确定第二弱分类器;  Determining coefficients of the second basic classifier according to an error rate of the second basic classifier, according to coefficients of the first basic classifier, coefficients of the first basic classifier, the second basic classifier, and Describe a second basic classifier to determine a second weak classifier;
判断所述第二弱分类器的误分类点个数是否为 0, 若为 0, 则将第二弱 分类器作为最终分类器, 否则, 继续确定新的弱分类器, 直到确定的 新的弱分类器的误分类点个数为 0。  Determining whether the number of misclassification points of the second weak classifier is 0. If it is 0, the second weak classifier is used as the final classifier. Otherwise, the new weak classifier is continuously determined until the determined new weak class is determined. The number of misclassification points of the classifier is zero.
[权利要求 6] —种成对车道线检测装置, 其特征在于, 所述装置包括: [Claim 6] A paired lane line detecting device, wherein the device comprises:
图片获取单元, 用于获取车辆前方路面的图片; 直线检测单元, 用于检测所述车辆前方路面的图片中是否存在两条直 线, 所述两条直线的颜色与图片中车辆前方路面的颜色不同; 距离计算单元, 用于在所述车辆前方路面的图片中存在两条直线吋, 在所述两条直线上各取 N个点, 并分别计算在所述两条直线上各取的 N个点与获取的车辆前方路面的图片的中心点的距离, N为整数, N 大于或等于 2;  a picture obtaining unit, configured to obtain a picture of a road surface in front of the vehicle; a line detecting unit, configured to detect whether there are two straight lines in the picture of the road surface in front of the vehicle, and the colors of the two lines are different from the color of the road surface in front of the vehicle in the picture a distance calculating unit, configured to have two straight lines 图片 in the picture of the road surface in front of the vehicle, take N points on the two straight lines, and calculate N pieces respectively on the two straight lines The distance between the point and the center point of the picture of the road surface in front of the vehicle, where N is an integer and N is greater than or equal to 2;
成对车道线判断单元, 用于根据计算的在所述两条直线上各取的 N个 点与获取的车辆前方路面的图片的中心点的距离以及预设的分类器判 断所述两条直线是否为成对车道线。  a pair of lane line determining unit, configured to determine the two straight lines according to the calculated distance between the N points taken on the two straight lines and the center point of the acquired picture of the road surface in front of the vehicle, and a preset classifier Whether it is a pair of lane lines.
[权利要求 7] 根据权利要求 6所述的装置, 其特征在于, 所述成对车道线判断单元 包括: [Claim 7] The device according to claim 6, wherein the pair of lane line determining units comprises:
距离和计算模块, 用于将在所述两条直线上各取的 N个点与获取的车 辆前方路面的图片的中心点的距离分成两组, 并分别计算每一组的距 离和; a distance and calculation module for N points taken on the two straight lines and the acquired vehicle The distance between the center points of the pictures of the road ahead is divided into two groups, and the distance sum of each group is calculated separately;
分类器计算结果确定模块, 用于计算两组的距离和的比值, 将所述两 组的距离和的比值替换预设的分类器中的未知变量, 得到一计算结果 分类器计算结果比较模块, 用于根据所述计算结果判断所述两条直线 是否为成对车道线。  a classifier calculation result determining module, configured to calculate a ratio of the distance sums of the two groups, and replacing the ratio of the distances of the two groups with the unknown variables in the preset classifier, to obtain a calculation result classifier calculation result comparison module, And determining whether the two straight lines are paired lane lines according to the calculation result.
[权利要求 8] 根据权利要求 7所述的装置, 其特征在于, 当 N=2吋, 在两条直线上 各取的 2个点与获取的车辆前方路面的图片的中心点的连线形成 4条线 : 左上线、 左下线、 右上线及右下线, 此吋, 所述距离和计算模块包 括:  [Claim 8] The apparatus according to claim 7, wherein when N = 2 吋, the two points taken on the two straight lines are connected with the line connecting the center points of the pictures of the road surface in front of the vehicle. 4 lines: the upper left line, the lower left line, the upper right line, and the lower right line. Here, the distance and calculation module includes:
上侧点组的距离和计算模块, 用于将左上线与右上线分为上侧点组, 计算所述上侧点组的距离和;  a distance and calculation module of the upper side point group, configured to divide the upper left line and the upper right line into an upper side point group, and calculate a distance sum of the upper side point group;
下侧点组的距离和计算模块, 用于将左下线与右下线分为下侧点组, 计算所述下侧点组的距离和;  a distance and calculation module of the lower point group, configured to divide the lower left line and the lower right line into lower side point groups, and calculate a distance between the lower side point groups;
对应地, 所述分类器计算结果确定模块具体用于计算所述下侧点组的 距离和与所述上侧点组的距离和的比值, 将所述两组的距离和的比值 替换预设的分类器中的未知变量, 得到一计算结果。  Correspondingly, the classifier calculation result determining module is specifically configured to calculate a ratio of a distance between the lower side point group and a distance sum of the upper side point group, and replace the ratio of the distance sum of the two groups to a preset The unknown variable in the classifier gets a calculation result.
[权利要求 9] 根据权利要求 7或 8所述的装置, 其特征在于, 所述装置包括: [Claim 9] The device according to claim 7 or 8, wherein the device comprises:
样本图像获取单元, 用于获取包含成对车道线和非成对车道线的样本 图像;  a sample image obtaining unit, configured to acquire a sample image including a pair of lane lines and an unpaired lane line;
距离数据获取单元, 用于在每条车道线上各取 N个点, 并分别计算在 每条车道线上各取的 N个点与样本图像的中心点的距离, N为整数, N大于或等于 2;  The distance data acquisition unit is configured to take N points on each lane line, and calculate the distance between each of the N points taken on each lane line and the center point of the sample image, where N is an integer and N is greater than or Equal to 2;
不同组的距离和计算单元, 用于将同一样本图像中的每条车道线上各 取的 N个点与样本图像的中心点的距离分为两组, 并分别计算每一组 的距离和;  Different sets of distances and calculation units are used to divide the distances of N points taken on each lane line in the same sample image from the center point of the sample image into two groups, and calculate the distance sum of each group separately;
样本比值计算单元, 用于计算两组的距离和的比值作为样本比值; 分类器确定单元, 用于根据所述样本比值确定分类器。 a sample ratio calculating unit, configured to calculate a ratio of distance sums of the two groups as a sample ratio; A classifier determining unit, configured to determine a classifier according to the sample ratio.
[权利要求 10] 根据权利要求 9所述的装置, 其特征在于, 所述分类器确定单元包括 第一弱分类器确定模块, 用于根据所述样本比值设置用于判断两条车 道线是否为成对车道线的第一分类阈值; 根据所述第一分类阈值确定 第一基本分类器; 根据所述第一分类阈值、 预设的与样本比值对应的 第一权值、 所述样本比值对应的两条车道线是否为成对车道线的结论 确定第一基本分类器的误差率; 根据所述第一基本分类器的误差率确 定第一基本分类器的系数, 根据所述第一基本分类器的系数以及所述 第一基本分类器确定第一弱分类器; [Claim 10] The device according to claim 9, wherein the classifier determining unit includes a first weak classifier determining module, configured to determine, according to the sample ratio, whether two lane lines are a first classification threshold of the pair of lane lines; determining, according to the first classification threshold, a first basic classifier; corresponding to the first classification threshold, the preset first weight corresponding to the sample ratio, and the sample ratio Determining an error rate of the first basic classifier based on whether the two lane lines are pairs of lane lines; determining coefficients of the first basic classifier according to an error rate of the first basic classifier, according to the first basic classification The coefficient of the device and the first basic classifier determine the first weak classifier;
第一弱分类器的误分类点个数判断模块, 用于判断所述第一弱分类器 的误分类点个数是否为 0;  a misclassification point number judging module of the first weak classifier, configured to determine whether the number of misclassification points of the first weak classifier is 0;
第一规范化因子确定模块, 用于在所述第一基本分类器的误分类点不 为 0吋, 根据预设的与样本比值对应的第一权值、 第一弱分类器的系 数、 所述样本比值对应的两条车道线是否为成对车道线的结论以及第 一基本分类器确定第一规范化因子;  a first normalization factor determining module, configured to: when the misclassification point of the first basic classifier is not 0, according to a preset first weight corresponding to the sample ratio, a coefficient of the first weak classifier, Whether the two lane lines corresponding to the sample ratio are the pair of lane lines and the first basic classifier determines the first normalization factor;
第二弱分类器确定模块, 用于根据所述第一规范化因子调整所述预设 的与样本比值对应的第一权值, 得到与样本比值对应的第二权值; 根 据所述样本比值设置用于判断两条车道线是否为成对车道线的第二分 类阈值; 根据所述第二分类阈值确定第二基本分类器; 根据所述第二 分类阈值、 与样本比值对应的第二权值、 所述样本比值对应的两条车 道线是否为成对车道线的结论确定所述第二基本分类器的误差率; 根 据所述第二基本分类器的误差率确定第二基本分类器的系数, 根据所 述第一基本分类器的系数、 所述第一基本分类器、 所述第二基本分类 器的系数以及所述第二基本分类器确定第二弱分类器;  a second weak classifier determining module, configured to adjust the preset first weight corresponding to the sample ratio according to the first normalization factor, to obtain a second weight corresponding to the sample ratio; and set according to the sample ratio a second classification threshold for determining whether the two lane lines are a pair of lane lines; determining a second basic classifier according to the second classification threshold; and determining a second weight according to the second classification threshold and the sample ratio Determining, by a conclusion of whether the two lane lines corresponding to the sample ratio are paired lane lines, determining an error rate of the second basic classifier; determining a coefficient of the second basic classifier according to an error rate of the second basic classifier Determining, according to the coefficients of the first basic classifier, the first basic classifier, the coefficients of the second basic classifier, and the second basic classifier, a second weak classifier;
第二弱分类器的误分类点个数判断模块, 用于判断所述第二弱分类器 的误分类点个数是否为 0, 若为 0, 则将第二弱分类器作为最终分类器 , 否则, 继续确定新的弱分类器, 直到确定的新的弱分类器的误分类 点个数为 0。 a misclassification point number judging module of the second weak classifier, configured to determine whether the number of misclassification points of the second weak classifier is 0, and if 0, use the second weak classifier as a final classifier, Otherwise, continue to determine the new weak classifier until the identified new weak classifier misclassification The number of points is 0.
PCT/CN2016/100102 2016-09-26 2016-09-26 Paired lane line detection method and device WO2018053836A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2016/100102 WO2018053836A1 (en) 2016-09-26 2016-09-26 Paired lane line detection method and device
CN201680000916.4A CN106462755B (en) 2016-09-26 2016-09-26 Pairs of method for detecting lane lines and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/100102 WO2018053836A1 (en) 2016-09-26 2016-09-26 Paired lane line detection method and device

Publications (1)

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

Family

ID=58215742

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/100102 WO2018053836A1 (en) 2016-09-26 2016-09-26 Paired lane line detection method and device

Country Status (2)

Country Link
CN (1) CN106462755B (en)
WO (1) WO2018053836A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106886217B (en) * 2017-02-24 2020-09-08 深圳中智卫安机器人技术有限公司 Autonomous navigation control method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102663356A (en) * 2012-03-28 2012-09-12 柳州博实唯汽车科技有限公司 Method for extraction and deviation warning of lane line
CN104008387A (en) * 2014-05-19 2014-08-27 山东科技大学 Lane line detection method based on feature point piecewise linear fitting
CN105809149A (en) * 2016-03-31 2016-07-27 电子科技大学 Lane line detection method based on straight lines with maximum length
CN106415603A (en) * 2016-09-26 2017-02-15 深圳市锐明技术股份有限公司 High efficient detection method and apparatus of pairing lane line
CN106415602A (en) * 2016-08-25 2017-02-15 深圳市锐明技术股份有限公司 Method and device for detecting paired lane lines
CN106462757A (en) * 2016-09-26 2017-02-22 深圳市锐明技术股份有限公司 Quick detection method and quick detection apparatus for paired lane line

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101470807A (en) * 2007-12-26 2009-07-01 河海大学常州校区 Accurate detection method for highroad lane marker line
CN102722705B (en) * 2012-06-12 2014-04-30 武汉大学 Method for detecting multi-lane line on basis of random sample consensus (RANSAC) algorithm
CN103605977B (en) * 2013-11-05 2017-01-18 奇瑞汽车股份有限公司 Extracting method of lane line and device thereof
CN104408460B (en) * 2014-09-17 2017-08-11 电子科技大学 A kind of lane detection and tracking detection method
CN104700072B (en) * 2015-02-06 2018-01-19 中国科学院合肥物质科学研究院 Recognition methods based on lane line historical frames
CN105718916A (en) * 2016-01-27 2016-06-29 大连楼兰科技股份有限公司 Lane line detection method based on Hough transform

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102663356A (en) * 2012-03-28 2012-09-12 柳州博实唯汽车科技有限公司 Method for extraction and deviation warning of lane line
CN104008387A (en) * 2014-05-19 2014-08-27 山东科技大学 Lane line detection method based on feature point piecewise linear fitting
CN105809149A (en) * 2016-03-31 2016-07-27 电子科技大学 Lane line detection method based on straight lines with maximum length
CN106415602A (en) * 2016-08-25 2017-02-15 深圳市锐明技术股份有限公司 Method and device for detecting paired lane lines
CN106415603A (en) * 2016-09-26 2017-02-15 深圳市锐明技术股份有限公司 High efficient detection method and apparatus of pairing lane line
CN106462757A (en) * 2016-09-26 2017-02-22 深圳市锐明技术股份有限公司 Quick detection method and quick detection apparatus for paired lane line

Also Published As

Publication number Publication date
CN106462755A (en) 2017-02-22
CN106462755B (en) 2019-05-28

Similar Documents

Publication Publication Date Title
CN107169421B (en) Automobile driving scene target detection method based on deep convolutional neural network
US10580164B2 (en) Automatic camera calibration
WO2019228211A1 (en) Lane-line-based intelligent driving control method and apparatus, and electronic device
US10025998B1 (en) Object detection using candidate object alignment
CN103488973B (en) Vehicle brand recognition methods and system based on image
WO2019169532A1 (en) License plate recognition method and cloud system
KR101848019B1 (en) Method and Apparatus for Detecting Vehicle License Plate by Detecting Vehicle Area
Ding et al. An adaptive road ROI determination algorithm for lane detection
Han et al. Real‐time license plate detection in high‐resolution videos using fastest available cascade classifier and core patterns
CN104376297A (en) Detection method and device for linear indication signs on road
CN111160249A (en) Multi-class target detection method of optical remote sensing image based on cross-scale feature fusion
CN104766042A (en) Method and apparatus for and recognizing traffic sign board
CN105989334B (en) Road detection method based on monocular vision
CN110781917B (en) Method and device for detecting repeated image, electronic equipment and readable storage medium
CN105740751A (en) Object detection and identification method and system
CN110544268A (en) Multi-target tracking method based on structured light and SiamMask network
Asgarian Dehkordi et al. Vehicle type recognition based on dimension estimation and bag of word classification
CN108830184A (en) Black eye recognition methods and device
KR101787292B1 (en) Method for Improving Performance of Line Recognition Rate Using Image
CN109829401A (en) Traffic sign recognition method and device based on double capture apparatus
Karungaru et al. Road traffic signs recognition using genetic algorithms and neural networks
Hua et al. Traffic lights detection and recognition method using deep learning with improved YOLOv5 for autonomous vehicle in ROS2
WO2018053836A1 (en) Paired lane line detection method and device
CN106778765B (en) License plate recognition method and device
WO2018027500A1 (en) Lane line detection method and device

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

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

Country of ref document: EP

Kind code of ref document: A1