JPH07141486A - Picture sensor for vehicle - Google Patents

Picture sensor for vehicle

Info

Publication number
JPH07141486A
JPH07141486A JP5283671A JP28367193A JPH07141486A JP H07141486 A JPH07141486 A JP H07141486A JP 5283671 A JP5283671 A JP 5283671A JP 28367193 A JP28367193 A JP 28367193A JP H07141486 A JPH07141486 A JP H07141486A
Authority
JP
Japan
Prior art keywords
width
vehicle
pitch angle
white line
image
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
JP5283671A
Other languages
Japanese (ja)
Other versions
JP3094758B2 (en
Inventor
Akihide Tachibana
彰英 橘
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toyota Motor Corp
Original Assignee
Toyota Motor Corp
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 Toyota Motor Corp filed Critical Toyota Motor Corp
Priority to JP05283671A priority Critical patent/JP3094758B2/en
Publication of JPH07141486A publication Critical patent/JPH07141486A/en
Application granted granted Critical
Publication of JP3094758B2 publication Critical patent/JP3094758B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Traffic Control Systems (AREA)
  • Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)
  • Length Measuring Devices By Optical Means (AREA)
  • Image Processing (AREA)
  • Closed-Circuit Television Systems (AREA)

Abstract

PURPOSE:To easily and accurately detect the vehicle pitch angle based on the relation between the pitch angle and the width of the white lines on the road on a picture sensor for vehicle which detects the vehicle pitch angle based on the width of the white lines on the road or traffic lens photographed by a camera fixed on the vehicle. CONSTITUTION:When the pitch angle of a vehicle is '0', the position where the white line separated by the prescribed distance is photographed, is set as Y=Ya. When a specific pitch angle occurs in the vehicle, templates with some kinds of width are set corresponding to the width of the white line on the road to be photographed at the position of Y=Ya. The comparative picture with the same size is segmented from the area of Y=Ya during the camera is picking up the image. By performing the correlation arithmetic operation by template matching, the template with the highest correlation is selected. The pitch angle to be set on the corresponding template is detected as the pitch angle of the vehicle.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、車両用画像センサに係
り、特に車両に固定したカメラにより車両前方を撮影
し、得られた撮像画像内における道路白線又は走行レー
ンの幅に基づいて、車両に生じているピッチ角を検出す
る車両用画像センサに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a vehicular image sensor, and more particularly to a vehicular front side photographed by a camera fixed to the vehicular vehicle and based on the width of a road white line or a traveling lane in the obtained picked-up image. The present invention relates to a vehicular image sensor that detects a pitch angle occurring in a vehicle.

【0002】[0002]

【従来の技術】従来より、例えば特開昭64−1560
5号公報に開示されるように、カメラにより車両前方を
撮影し、得られた撮像画像内における道路白線の状態に
基づいて車両に発生したピッチ角を推定する装置が知ら
れている。
2. Description of the Related Art Conventionally, for example, Japanese Patent Laid-Open No. 64-1560.
As disclosed in Japanese Patent Laid-Open No. 5 (1994), there is known a device that images the front of the vehicle with a camera and estimates the pitch angle generated in the vehicle based on the state of the road white line in the obtained captured image.

【0003】この装置は、カメラが車両に固定されてい
る場合、車両のピッチ角に応じてカメラの仰角が変化
し、その結果撮像画像中の白線位置がピッチ角に応じて
変化することに着目し、撮像画像内における左右白線の
消失点の座標に基づいてピッチ角を推定する手法を採用
している。
In this device, when the camera is fixed to the vehicle, the elevation angle of the camera changes according to the pitch angle of the vehicle, and as a result, the position of the white line in the captured image changes according to the pitch angle. However, a method of estimating the pitch angle based on the coordinates of the vanishing points of the left and right white lines in the captured image is adopted.

【0004】つまり、カメラを車両中央に配設した場
合、車両の左側に描かれた道路白線は撮像画像中に右上
がりの曲線(又は直線)として撮像され、車両の左側に
描かれた道路白線は、撮像画像中に左上がりの曲線(又
は直線)として撮像される。従って、撮影されたこれら
2本の白線は必ず交差する関係にあり、上記した消失点
とは、画像内におけるこれら2本の白線の交点を示す点
である。
That is, when the camera is installed in the center of the vehicle, the road white line drawn on the left side of the vehicle is imaged as a curve (or straight line) rising to the right in the captured image, and the road white line drawn on the left side of the vehicle. Is imaged as a curve (or a straight line) rising to the left in the captured image. Therefore, the two photographed white lines always have a relationship of intersecting with each other, and the vanishing point mentioned above is a point indicating an intersection of these two white lines in the image.

【0005】この場合、左右の白線それぞれについて接
線を求め、それらが交わる点を交点として把握すれば、
その交点は車両のピッチに応じて、すなわち車両が前下
がりになれば撮像画像の上方へ、また車両が前上がりに
なれば撮像画像の下方へすれぞれ移動することになり、
その座標変化を監視すれば車両のピッチ角を検出できる
ことになり、上記従来の装置は、かかる原理を用いてピ
ッチ角検出を行ものである。
In this case, if tangents are obtained for each of the left and right white lines and the points where they intersect are grasped as the points of intersection,
The intersection will move depending on the pitch of the vehicle, that is, if the vehicle is moving downwards, it will move upwards in the captured image, and if the vehicle moves upwards, it will move downwards in the captured image.
By monitoring the change in the coordinates, the pitch angle of the vehicle can be detected, and the conventional device described above performs the pitch angle detection using this principle.

【0006】[0006]

【発明が解決しようとする課題】しかし、上記従来の装
置は2本の道路白線の消失点を検出することを必須の要
件とするため、左右の白線につき少なくとも2点づつ、
計4点に付白線位置の検出を行い、それら各点につき接
線検出を行う必要があり、処理に長期を要するという問
題があった。
However, since the above-mentioned conventional apparatus has an essential requirement to detect vanishing points of two road white lines, at least two points are provided for each of the left and right white lines.
It is necessary to detect the white line position at a total of four points and to detect the tangent line at each of these points, which causes a problem that the processing takes a long time.

【0007】ここで左右の白線につき2点づつ接線検出
を行うのは、道路がカーブしている場合等において消失
点を適切に推定するためであるが、かかる処理を施した
としても、直線路における消失点とカーブにおける消失
点とを完全に整合させて把握することは困難であり、結
局ピッチ各の検出精度について改善の余地を残したもの
であった。
Two tangent lines are detected for each of the left and right white lines in order to properly estimate the vanishing point in the case where the road is curved. It is difficult to perfectly match and grasp the vanishing point in the curve and the vanishing point in the curve, and there is room for improvement in the detection accuracy of each pitch.

【0008】本発明は、上述の点に鑑みてなされたもの
であり、車両にピッチ角が生じてカメラの仰角が変化す
ると、それに伴って撮像画像内の特定領域に撮影されて
いた白線又は車線の幅が変化することに着目し、ピッチ
角“0”の場合における基準幅と現実の道路白線又は車
線幅とを比較考慮することにより車両のピッチ角を検出
することにより上記の課題を解決し得る車両用画像セン
サを提供することを目的とする。
The present invention has been made in view of the above points, and when a pitch angle occurs in a vehicle and the elevation angle of the camera changes, a white line or a lane imaged in a specific area in the captured image is accordingly recorded. Focusing on the fact that the width of the vehicle changes, the above problem is solved by detecting the pitch angle of the vehicle by comparing and considering the reference width and the actual road white line or lane width when the pitch angle is “0”. An object is to provide an obtained vehicle image sensor.

【0009】[0009]

【課題を解決するための手段】図1は、上記の目的を達
成する車両用画像センサの原理構成図を示す。すなわち
上記の目的は、図1(A)に示すように、車両前方を撮
影すべく車両に固定したカメラM1と、車両にピッチ角
が生じていない状況下で該カメラM1による撮影がなさ
れた場合に、車両から所定距離離間した位置における道
路白線又は車線が撮像画像中に占める幅を基準幅として
設定する基準幅設定手段M2と、前記カメラM1が撮影
する画像中、車両にピッチ角が生じていない状況下では
前記白線又は車線が前記基準幅で撮像される基準領域に
おいて、現実に撮影された道路白線又は車線が撮像画像
中に占める幅を検出する水平幅検出手段M3と、前記基
準幅設定手段M2が設定した基準幅に基づいて、車両に
特定のピッチ角が生じた場合に前記基準領域に撮像され
ると推定される道路白線又は車線の幅を設定するピッチ
対応幅設定手段4と、前記水平幅検出手段3が検出した
現実の幅と、前記ピッチ対応幅設定手段4がピッチ角に
対応して設定したピッチ対応幅とに基づいて車両に生じ
ているピッチ角を検出するピッチ角検出手段5とを備え
る車両用画像センサにより達成される。
FIG. 1 shows the principle configuration of an image sensor for a vehicle which achieves the above object. That is, the above-mentioned purpose is, as shown in FIG. 1 (A), when the camera M1 is fixed to the vehicle to photograph the front of the vehicle, and the image is taken by the camera M1 in a situation where no pitch angle is generated in the vehicle. In the reference width setting means M2 for setting the width of the road white line or lane in the captured image as a reference width at a position separated by a predetermined distance from the vehicle, and a pitch angle is generated in the vehicle in the image captured by the camera M1. In a reference area where the white line or the lane is imaged with the reference width in a situation where there is no such situation, the horizontal width detection means M3 that detects the width occupied by the road white line or the lane actually photographed in the captured image, and the reference width setting Based on the reference width set by the means M2, a pitch-corresponding width setting for setting the width of a road white line or lane estimated to be imaged in the reference area when a specific pitch angle occurs in the vehicle The pitch angle occurring in the vehicle is detected based on the means 4, the actual width detected by the horizontal width detecting means 3, and the pitch corresponding width set by the pitch corresponding width setting means 4 corresponding to the pitch angle. This is achieved by the vehicle image sensor including the pitch angle detecting means 5.

【0010】また、上記構成の車両用画像センサにおい
て、前記基準幅設定手段M2が異なる複数の所定距離に
対応した複数の基準幅を設定し、前記水平幅検出手段M
3が、これら複数の基準幅に対応して設定される複数の
基準領域における道路白線又は車線の幅を検出し、前記
ピッチ対応幅設定手段M4が、前記複数の基準幅に対応
する複数のピッチ対応角を設定し、前記ピッチ角検出手
段M5が、前記水平幅検出手段M3が検出した複数の幅
と、前記ピッチ対応幅設定手段M4が設定した複数のピ
ッチ対応幅とに基づいて車両に生じているピッチ角を検
出する構成は、ピッチ角の検出精度の向上を図る意味で
有効である。
Further, in the vehicular image sensor having the above structure, the reference width setting means M2 sets a plurality of reference widths corresponding to a plurality of different predetermined distances, and the horizontal width detection means M is set.
3 detects the widths of road white lines or lanes in a plurality of reference areas set corresponding to the plurality of reference widths, and the pitch corresponding width setting means M4 detects a plurality of pitches corresponding to the plurality of reference widths. A corresponding angle is set, and the pitch angle detecting means M5 causes the vehicle based on the plurality of widths detected by the horizontal width detecting means M3 and the plurality of pitch corresponding widths set by the pitch corresponding width setting means M4. The configuration for detecting the pitch angle that is present is effective in the sense of improving the pitch angle detection accuracy.

【0011】更に、車両前方を撮影すべく車両に固定し
たカメラM1と、車両にピッチ角が生じていない状況下
で該カメラによる撮影がなされた場合に、車両から所定
距離離間した位置における道路白線又は車線が撮像画像
中に占める幅を基準幅として設定する基準幅設定手段M
2と、前記カメラM1が撮影する画像中、車両にピッチ
角が生じていない状況下では前記白線又は車線が前記基
準幅で撮像される基準領域、及び該基準領域の上下に設
定した複数の領域において、現実に撮影された道路白線
又は車線が撮像画像中に占める幅を検出する複数水平幅
検出手段M6と、該複数水平幅検出手段M6により検出
した現実の幅と、前記基準幅設定手段M2が設定した基
準幅とに基づいて車両に生じているピッチ角を検出する
ピッチ角検出手段M7とを備える車両用画像センサも有
効である。
Further, a camera M1 fixed to the vehicle to photograph the front of the vehicle, and a road white line at a position separated from the vehicle by a predetermined distance when the camera M1 photographs the vehicle in a situation where no pitch angle is generated. Alternatively, reference width setting means M for setting the width occupied by the lane in the captured image as the reference width.
2, and in the image captured by the camera M1, a reference area in which the white line or the lane is imaged with the reference width and a plurality of areas set above and below the reference area in a situation where the vehicle does not have a pitch angle. A plurality of horizontal width detecting means M6 for detecting the width occupied by a road white line or a lane actually photographed in the captured image, an actual width detected by the plurality of horizontal width detecting means M6, and the reference width setting means M2. A vehicle image sensor including a pitch angle detecting means M7 for detecting a pitch angle occurring in the vehicle based on the reference width set by is also effective.

【0012】[0012]

【作用】本発明に係る車両用画像センサにおいて、前記
カメラM1は車両前方の道路白線及び車線を撮影する。
この際、前記カメラM1の仰角は車両のピッチ角に応じ
て変化し、車両が前下がりにピッチした場合は車両から
所定距離離間した位置の道路白線及び車線は撮像画像の
上方へ移動し、車両が前上がりにピッチした場合は撮像
画像の下方へ移動する。
In the vehicular image sensor according to the present invention, the camera M1 photographs road white lines and lanes in front of the vehicle.
At this time, the elevation angle of the camera M1 changes according to the pitch angle of the vehicle, and when the vehicle pitches forward and downward, the road white line and the lane at a position separated from the vehicle by a predetermined distance move upward in the captured image, If is pitched forward and upward, it moves downward in the captured image.

【0013】この場合、道路白線の幅及び車線の幅は、
車両から離間するほど狭く撮影され、前記水平幅検出手
段M3が監視る前記基準領域における道路白線の幅、及
び車線の幅は、車両が前下がりにピッチした場合は広
く、前上がりにピッチした場合は狭く、それぞれピッチ
角に応じて変化する。
In this case, the width of the road white line and the width of the lane are
The width of the road white line and the width of the lane in the reference area monitored by the horizontal width detection means M3 are wider when the vehicle pitches downward to the front and wider when the vehicle pitches upward to the front. Are narrow and change depending on the pitch angle.

【0014】一方、前記基準幅設定手段M2は、車両が
ピッチしていない状態で前記基準領域に撮像されるであ
ろう道路白線又は車線の幅を基準幅として設定し、前記
ピッチ幅設定手段M4は、この基準幅に基づいて、車両
にピッチが生じた際に前記基準領域に撮像されるであろ
う道路白線又は車線の幅を、ピッチ角に対応させて設定
する。
On the other hand, the reference width setting means M2 sets the width of a road white line or a lane that will be imaged in the reference area when the vehicle is not pitching, as the reference width, and the pitch width setting means M4. Based on this reference width, sets the width of the road white line or lane that will be imaged in the reference area when a pitch occurs in the vehicle in association with the pitch angle.

【0015】そして、前記ピッチ角検出手段M5は、前
記水平幅検出手段M3が検出した前記基準領域における
道路白線又は車線幅と、前記ピッチ対応幅設定手段M4
が検出したピッチ対応幅とを対応させることにより車両
に生じたピッチ角を検出する。
Then, the pitch angle detecting means M5 and the road width or lane width in the reference area detected by the horizontal width detecting means M3 and the pitch corresponding width setting means M4.
The pitch angle generated in the vehicle is detected by associating with the pitch corresponding width detected by.

【0016】また、前記基準幅設定手段M2、水平幅検
出手段M3、ピッチ対応幅設定手段M4、及びピッチ角
検出手段M5が、それぞれ車両から所定距離離間した異
なる複数の位置における道路白線又は車線の幅に基づい
て上記手法によるピッチ角検出を行う場合、単一の位置
における道路白線又は車線の幅に基づいてピッチ角検出
を行う場合に比べて高い検出精度が得られる。
Further, the reference width setting means M2, the horizontal width detecting means M3, the pitch corresponding width setting means M4, and the pitch angle detecting means M5 respectively detect the road white line or the lane at a plurality of different positions separated by a predetermined distance from the vehicle. When the pitch angle is detected based on the width by the above method, higher detection accuracy can be obtained than when the pitch angle is detected based on the width of the road white line or the lane at a single position.

【0017】ところで、前記複数水平幅検出手段M6
は、前記カメラM1の撮影した画像中前記基準領域に加
えてその上下の複数の領域についても道路白線幅又は車
線幅の検出を行う。従って、車両が前下がり又は前上が
りにピッチした場合、ピッチが生じていなければ前記基
準領域に撮像されるべき道路白線及び車線が前記基準領
域の上部又は下部領域に移行して、当該領域における道
路白線幅、又は車線幅として検出される。
By the way, the plural horizontal width detecting means M6
Detects the road white line width or lane width not only in the reference region in the image captured by the camera M1, but also in a plurality of regions above and below the reference region. Therefore, when the vehicle pitches forward or downward, if the pitch does not occur, the road white lines and lanes to be imaged in the reference area shift to the upper or lower area of the reference area, and the road in the area is changed. It is detected as the white line width or the lane width.

【0018】そして、前記ピッチ角検出手段M7は、前
記複数水平幅検出手段M6が検出した複数の水平幅のう
ち前記基準幅設定手段M2の設定した基準幅と対応する
ものを判定し、車両から所定距離離間した位置の白線及
び車線が当該水平幅の検出された領域に撮影されている
ことを認識すると共に、撮像画像内における当該領域の
位置に基づいてピッチ角を検出する。
Then, the pitch angle detecting means M7 determines which one of the plurality of horizontal widths detected by the plurality of horizontal width detecting means M6 corresponds to the reference width set by the reference width setting means M2, and then from the vehicle. While recognizing that the white line and the lane at positions separated by a predetermined distance are photographed in the detected area of the horizontal width, the pitch angle is detected based on the position of the area in the captured image.

【0019】[0019]

【実施例】図2は、本発明の一実施例である道路白線検
出装置の全体構成を表すブロック図を示す。同図におい
てカメラ10は、前記したカメラM1に相当し、A/D
変換装置12を介して画像フレームメモリ14に接続さ
れている。これにより、カメラ10によって得られた1
画面分の画像は、ディジタルデータとして画像フレーム
メモリ14に記憶される。
FIG. 2 is a block diagram showing the overall structure of a road white line detecting apparatus according to an embodiment of the present invention. In the figure, the camera 10 corresponds to the above-mentioned camera M1, and is an A / D
It is connected to the image frame memory 14 via the conversion device 12. This gives the 1 obtained by the camera 10.
The image for the screen is stored in the image frame memory 14 as digital data.

【0020】画像フレームメモリ14には、前記した基
準幅設定手段M2,水平幅検出手段M3,ピッチ対応幅
設定手段M4,ピッチ角検出手段M5,M7,複数水平
幅検出手段M6を実現するCPU16が接続されてい
る。このCPU16は、画像フレームメモリ14の所定
の部分の画像データを読みだし、相関演算装置18を用
いて、また後述するプログラムを実行して各種の演算処
理を行うことで、これらの機能を実現する本実施例の要
部である。
In the image frame memory 14, a CPU 16 for realizing the above-mentioned reference width setting means M2, horizontal width detecting means M3, pitch corresponding width setting means M4, pitch angle detecting means M5, M7, and plural horizontal width detecting means M6 is provided. It is connected. The CPU 16 realizes these functions by reading out image data of a predetermined portion of the image frame memory 14 and using the correlation calculation device 18 and executing a program described later to perform various calculation processes. It is an essential part of this embodiment.

【0021】相関演算装置18には、CPU16が設定
したテンプレートに係るデータと、CPU16が画像フ
レームメモリ14の画像データから切り出した比較画像
のデータとが供給される。そして、相関演算装置18
は、これらのデータに基づいてテンプレートマッチング
による相関演算を行う。
Data relating to the template set by the CPU 16 and data of the comparative image cut out from the image data of the image frame memory 14 by the CPU 16 are supplied to the correlation calculation device 18. Then, the correlation calculation device 18
Performs the correlation calculation by template matching based on these data.

【0022】以下、図3を参照して、テンプレートマッ
チングによる相関演算の手法について簡単に説明する。
The correlation calculation method by template matching will be briefly described below with reference to FIG.

【0023】図3(A)は、テンプレートマッチングに
用いるm×n画素のテンプレートを、図3(B)は、テ
ンプレート内の画像が一部に撮像された撮像画像を示
す。テンプレートマッチングを行う場合、先ず図3
(B)に示す撮像画像中に大まかにサーチウィンドウ
(S)を設定する。そして、このサーチウィンドウの中
からテンプレートと同サイズの画像を比較画像(C)と
して切り出し、対応する各画素の輝度の差を求め、その
絶対値の総和を相関値Dとして求める。
FIG. 3A shows a template of m × n pixels used for template matching, and FIG. 3B shows a picked-up image in which a part of the image in the template is picked up. When performing template matching, first see FIG.
A search window (S) is roughly set in the captured image shown in (B). Then, an image of the same size as the template is cut out from this search window as a comparison image (C), the difference in luminance between the corresponding pixels is obtained, and the sum of the absolute values thereof is obtained as the correlation value D.

【0024】この場合、図3(A),(B)に示すよう
にテンプレート内の画像と比較画像とが一致していない
場合には相関値Dが大きく、テンプレート内の画像と比
較画像とが完全に一致した場合には、相関値D=“0”
となる。
In this case, as shown in FIGS. 3A and 3B, when the image in the template and the comparison image do not match, the correlation value D is large, and the image in the template and the comparison image are When the values match completely, the correlation value D = “0”
Becomes

【0025】従って、設定されたサーチウィンドウ内で
順番に1画素づつずらして比較画像を設定し、それぞれ
の比較画像につきテンプレートとの相関値Dを求めた場
合、相関値Dが最小となる位置が最も相関の高い比較画
像を切り出すことのできる位置となるはずである。従っ
て、その位置をテンプレート画像の存在位置として特定
することができる。
Therefore, when the comparison image is set by shifting one pixel in order within the set search window and the correlation value D with the template is obtained for each comparison image, the position where the correlation value D becomes the minimum is found. It should be a position where the comparative image with the highest correlation can be cut out. Therefore, the position can be specified as the existing position of the template image.

【0026】このように、テンプレートマッチングによ
る相関演算は、サーチウィンドウ内からテンプレートに
近似する画像を検出するのに有効な手法である。尚、本
実施例の車両用画像センサは、かかる原理を利用して、
撮像画像内において道路白線の幅がテンプレートの幅と
等しくなる座標を検出し、これに基づいて車両のピッチ
角を検出するものである。
As described above, the correlation calculation by template matching is an effective method for detecting an image close to the template from within the search window. The vehicle image sensor of the present embodiment utilizes the above principle,
Coordinates in which the width of the road white line is equal to the width of the template in the captured image are detected, and the pitch angle of the vehicle is detected based on the coordinates.

【0027】そして、CPU16は、このようにして検
出したピッチ角をピッチ角出力装置20を介して図示し
ない所定の車両制御装置に出力する。尚、画像フレーム
メモリ14の出力側には、D/A変換装置22を介して
CRT24が接続されており、画像フレームメモリ14
に記憶されている画像は、逐次CRT24に表示され
る。
Then, the CPU 16 outputs the pitch angle thus detected to a predetermined vehicle control device (not shown) via the pitch angle output device 20. A CRT 24 is connected to the output side of the image frame memory 14 via the D / A converter 22.
The images stored in the CRT 24 are sequentially displayed on the CRT 24.

【0028】以下、本実施例の車両用画像センサにおい
て車両のピッチ角を検出すべくCPU16が実行する処
理の内容について説明する。
The contents of the processing executed by the CPU 16 to detect the pitch angle of the vehicle in the vehicle image sensor of this embodiment will be described below.

【0029】図4は、かかる機能を実現し、前記請求項
1記載の発明を実現すべくCPU16が実行するメイン
ルーチンの一例のフローチャートである。つまり、図4
に示すルーチンは、図5(A)に示すように車両からの
距離が短い位置の道路白線ほど幅が太く撮影され、例え
ばY=Yaの位置(ピッチ角“0”の際に車両からa
(m) の位置に相当)の道路白線の幅Waに着目した場
合、ピッチ角に応じてWaが変化することを利用してピ
ッチ角検出を行うルーチンである。
FIG. 4 is a flow chart of an example of a main routine executed by the CPU 16 to realize such a function and to implement the invention described in claim 1. That is, FIG.
In the routine shown in FIG. 5A, as the road white line at a position where the distance from the vehicle is short, the width is photographed thicker, as shown in FIG. 5A, for example, at the position Y = Ya (when the pitch angle is “0”,
When the width Wa of the road white line (corresponding to the position (m)) is focused, it is a routine for detecting the pitch angle by utilizing the fact that Wa changes according to the pitch angle.

【0030】より具体的には、CPU16に接続した記
憶装置に、図5(B)に示す如くピッチ角と白線幅とを
対応させた数画素(以下m画素とする)×1画素からな
る数種のテンプレートTnを記憶させておくことで前記
した基準幅設定手段M2、及びピッチ対応幅設定手段M
4を実現し、撮像画像内Y=Yaの位置に設定したサー
チウィンドウ内に検出される道路白線の幅と最も相関の
高いテンプレートTnを捜し出すことでピッチ角検出を
行うものである。
More specifically, in the storage device connected to the CPU 16, as shown in FIG. 5B, the number of pixels (corresponding to m pixels) × 1 pixel in which the pitch angle and the white line width are associated with each other. By storing the seed template Tn, the reference width setting means M2 and the pitch corresponding width setting means M described above are stored.
4 is realized and the pitch angle is detected by searching for the template Tn having the highest correlation with the width of the road white line detected in the search window set at the position Y = Ya in the captured image.

【0031】ここで、図4に示すルーチンが起動する
と、先ずステップ100においてイニシャル処理が実行
される。このイニシャル処理は、Y=Yaの位置に設定
したサーチウィンドウ内から道路白線の存在する位置の
X座標Xaを検出するステップで、図6に示すイニシャ
ル処理ルーチンによって実現される。
When the routine shown in FIG. 4 is started, the initial process is first executed in step 100. This initial processing is a step of detecting the X coordinate Xa of the position where the road white line exists from within the search window set at the position Y = Ya, and is implemented by the initial processing routine shown in FIG.

【0032】イニシャル処理により道路白線の位置(X
a,Ya)を特定できたら、次にステップ200におい
て白線幅検出処理を行い、特定した位置における道路白
線の幅Waを検出する。尚、本ステップは、前記した水
平幅検出手段M3に相当し、後述の如く図7に示す白線
幅検出処理ルーチンによって実現される。
The position of the road white line (X
a, Ya), the white line width detection process is performed in step 200 to detect the width Wa of the road white line at the specified position. This step corresponds to the horizontal width detecting means M3 described above, and is realized by the white line width detection processing routine shown in FIG. 7 as described later.

【0033】また、ステップ300は、このようにして
検出した(Xa,Ya)における白線幅Waを、図5
(B)に示す如く予め設定しておいたマップに照らし、
現在車両に生じているピッチ角を検出するステップであ
る。本ステップは、前記したピッチ角検出手段M5に相
当し、具体的には図9に示すピッチ角検出ルーチンによ
って実現される。
In step 300, the white line width Wa at (Xa, Ya) detected in this way is shown in FIG.
In light of the preset map as shown in (B),
This is a step of detecting the pitch angle currently occurring in the vehicle. This step corresponds to the pitch angle detection means M5 described above, and is specifically realized by the pitch angle detection routine shown in FIG.

【0034】尚、図4に示すルーチンにおいては、上述
の如く前記基準幅設定手段M2、ピッチ対応幅設定手段
M4を、図5(B)に示すテンプレートTnとそれに対
応するピッチ角とを記憶する記憶装置によって実現して
いるが、車両が基準状態であるときに撮像された画像に
基づいて道路白線幅を学習する機能を設けて前記基準幅
設定手段M2を、その学習値に基づいてピッチ角に対応
する白線幅を適宜演算する機能を設けて前記ピッチ対応
幅設定手段M4をそれぞれ実現する構成としてもよい。
In the routine shown in FIG. 4, the reference width setting means M2 and the pitch corresponding width setting means M4 store the template Tn shown in FIG. 5 (B) and the pitch angle corresponding thereto as described above. Although implemented by a storage device, the reference width setting means M2 is provided with a function for learning the road white line width based on an image taken when the vehicle is in the reference state, and the pitch angle is determined based on the learned value. The pitch corresponding width setting means M4 may be realized by providing a function of appropriately calculating the width of the white line.

【0035】以下、上記各ステップ100〜300を実
現するサブルーチンの内容について詳細に説明する。
The contents of the subroutine for realizing the above steps 100 to 300 will be described in detail below.

【0036】図6に示すイニシャル処理ルーチンが起動
すると、先ずステップ102において記憶装置内に記憶
されているテンプレートTnから、標準的な道路白線の
幅に対応したテンプレートTiを選択する。
When the initial processing routine shown in FIG. 6 is started, first, in step 102, a template Ti corresponding to the width of a standard road white line is selected from the templates Tn stored in the storage device.

【0037】次にステップ104では、テンプレートマ
ッチングによる相関演算を開始すべく初期値の設定を行
う。ここでは、テンプレートマッチングを実行するに際
して切り出す比較画像の初期座標(x,y)を画像中央
の座標(Xf/2,Ya)に、最も低い相関値Dx,y
(最も高い相関が得られた位置での相関値Dに相当)を
記憶するDbufを上限値10000に、またDbuf
の得られた位置のX座標を記憶するXbufを0にそれ
ぞれ設定する。
Next, at step 104, initial values are set to start the correlation calculation by template matching. Here, the initial coordinates (x, y) of the comparison image cut out when executing the template matching are set to the coordinates (Xf / 2, Ya) at the center of the image, and the lowest correlation value Dx, y.
Dbuf for storing (corresponding to the correlation value D at the position where the highest correlation is obtained) is set to the upper limit value 10000, and Dbuf
Xbuf that stores the X coordinate of the obtained position of is set to 0, respectively.

【0038】かかる処理を終えたら、ステップ106へ
進んで、左側端部の座標が(x,y)に設定されたm×
1画素の比較画像とテンプレートTiとの相関値Dx,
yを、対応する各画素の輝度差の絶対値の総和として求
める。
When this processing is completed, the routine proceeds to step 106, where the coordinates of the left end portion are set to (x, y) m ×.
Correlation value Dx between the comparison image of one pixel and the template Ti,
y is obtained as the total sum of the absolute values of the brightness differences of the corresponding pixels.

【0039】そして、ステップ108では、現在Dbu
fに記憶されている値と今回計算したDx,yの値とを
比較し、Dx,y<Dbufが成立しているかを見る。
ここで上記条件が成立するのは、今回最も高い相関が得
られた場合であり、この場合はステップ110へ進んで
履歴を更新すべくDbuf,Xbufを今回の値Dx,
y、及びXに書き換える処理を行う。一方、上記ステッ
プ108において条件不成立とされた場合は、相関値の
履歴を書き換える必要がないためそのままステップ11
2へと進む。
Then, in step 108, the current Dbu
The value stored in f and the value of Dx, y calculated this time are compared to see if Dx, y <Dbuf holds.
The above condition is satisfied when the highest correlation is obtained this time. In this case, the process proceeds to step 110 and Dbuf, Xbuf are set to the current value Dx, to update the history.
Processing for rewriting y and X is performed. On the other hand, if the condition is not satisfied in step 108, it is not necessary to rewrite the history of the correlation value, and therefore, step 11 is performed as it is.
Go to 2.

【0040】ステップ112では、比較画像を新たに1
画素づらして切り出すべく、その左側端部のX座標値x
をデクリメントする。ステップ114は、このようにし
てデクリメントされたxが“0”に達しているか、すな
わち撮像画像の中央から開始した比較画像の走査が撮像
画像の左端に達したかを判別する。ここで、x=“0”
が不成立であれば上記ステップ106へ戻り、以後x=
“0”が成立するまで繰り返し上記ステップ106〜1
4の処理を実行する。
In step 112, the comparison image is newly set to 1
X-coordinate value x of the left end of the pixel to cut out
Decrement. In step 114, it is determined whether x thus decremented has reached "0", that is, whether the scanning of the comparative image started from the center of the captured image has reached the left end of the captured image. Where x = "0"
Is not established, the process returns to step 106, and x =
Repeat the above steps 106 to 1 until "0" is established.
Process 4 is executed.

【0041】この結果、上記ステップ114においてx
=“0”が成立すると判別された時点では、必ず撮像画
像中央x=Xf/2から左端x=0までの間で最も高い
相関が得られた位置での相関値Dx,yがDbufに、
その際のxがXbufに記憶されていることになる。ス
テップ116は、これらXbuf,Dbufの値をそれ
ぞれXa,Daとして出力するステップであり、この処
理を実行して本ルーチンが終了する。
As a result, in step 114, x
At the time when it is determined that = "0" holds, the correlation value Dx, y at the position where the highest correlation is obtained from the center x = Xf / 2 of the captured image to the left end x = 0 is always Dbuf,
The x at that time is stored in Xbuf. Step 116 is a step of outputting the values of these Xbuf and Dbuf as Xa and Da, respectively, and this processing is executed and this routine ends.

【0042】図7に示す白線幅検出処理ルーチンは、こ
のようにして特定されたXaを左端とする比較画像に対
して最も高い相関の得られるテンプレートTnを探し出
すことにより(Xa,Ya)に撮影されている道路白線
の幅を検出する実現するルーチンである。
The white line width detection processing routine shown in FIG. 7 takes an image (Xa, Ya) by searching for the template Tn having the highest correlation with the comparative image having Xa thus specified as the left end. It is a routine that realizes the width of the road white line being displayed.

【0043】すなわち、図7に示すルーチンが起動する
と、先ずステップ202において初期値設定が行われ、
比較画像の位置を特定すべくX=Xa,Y=Yaなる設
定を行う。また、上記イニシャル処理ルーチンにおいて
選択したテンプレートTiにおける白線幅(白線の画素
数)Wiをテンプレートの番号としてKに代入する。
That is, when the routine shown in FIG. 7 is started, initial values are set in step 202,
In order to specify the position of the comparative image, the settings X = Xa and Y = Ya are set. Further, the white line width (the number of white line pixels) Wi in the template Ti selected in the initial processing routine is substituted into K as the template number.

【0044】かかる初期設定を終えたら、ステップ20
4においてflagの値を見る。このflagは、白線
検出処理の実行状況を表すフラグであり、本ルーチン起
動直後には“0”にクリアされている。従って、今回が
初回の処理であるとすれば、ステップ204においてf
lag=“0”が判別され、以後ステップ206へ進む
ことになる。
After completing the initial setting, step 20
See the value of flag in 4. This flag is a flag indicating the execution status of the white line detection processing, and is cleared to "0" immediately after the start of this routine. Therefore, if this time is the first processing, in step 204, f
It is determined that lag = “0”, and thereafter the process proceeds to step 206.

【0045】ステップ206は、相関計算を行うテンプ
レートの番号Jを演算するステップであり、ここでは白
線幅Wiから1を減じた数をテンプレート番号Jとして
設定する。上記イニシャル処理ルーチンにおいて相関値
計算に用いたテンプレートより、1画素幅の狭いテンプ
レートで相関計算を実行するためである。
In step 206, the template number J for correlation calculation is calculated. Here, the number obtained by subtracting 1 from the white line width Wi is set as the template number J. This is because the correlation calculation is executed with a template that is narrower by one pixel than the template used for calculating the correlation value in the initial processing routine.

【0046】ステップ208は、上述の如く設定された
テンプレート番号Jのテンプレートによって相関計算を
行うステップである。ここで、本実施例においては、図
8に示す相関計算ルーチンによってその計算が行われ
る。
Step 208 is a step of performing the correlation calculation using the template of the template number J set as described above. Here, in this embodiment, the calculation is performed by the correlation calculation routine shown in FIG.

【0047】図8に示す相関計算ルーチンにおいては、
ルーチンが起動すると先ずステップ250においてテン
プレートTJの選択を行う。ここでテンプレートTJと
は、テンプレート番号Jのテンプレートである。
In the correlation calculation routine shown in FIG.
When the routine is activated, first, in step 250, the template TJ is selected. Here, the template TJ is the template with the template number J.

【0048】次に、ステップ252においては、相関計
算に際して必要な初期値の設定を行う。この相関計算ル
ーチンにおいては、上記イニシャル処理ルーチンにおい
て白線の位置として特定されたXaを中心とする所定幅
Wの領域を探索領域としており、本ステップでは、比較
画像の走査開始位置を特定すべくX=Xa+W,Y=Y
aなる初期設定を行う。また、相関計算の過程において
最小の相関値Dx,yを格納するDbufには上限値1
0000を、その際のX座標を格納するXbufには
“0”をそれぞれ代入する。
Next, at step 252, the initial values required for the correlation calculation are set. In this correlation calculation routine, an area having a predetermined width W centered on Xa specified as the position of the white line in the initial processing routine is set as the search area. In this step, X is set to specify the scanning start position of the comparison image. = Xa + W, Y = Y
The initial setting "a" is performed. Also, in the process of correlation calculation, the upper limit value 1 is set to Dbuf that stores the minimum correlation value Dx, y.
0000 and "0" are assigned to the Xbuf that stores the X coordinate at that time.

【0049】ステップ254は、このようにして設定し
た比較画像とテンプレートTJの対応する画素の輝度差
より相関値Dx,yを計算するステップであり、ステッ
プ256は、Dx,yの最小値が更新された場合に限り
Dbuf,Xbufの書換えを行うステップである。ま
た、ステップ258は、比較画像を1画素だけ移動させ
るべくそのX座標値xをデクリメントするステップであ
る。
In step 254, the correlation value Dx, y is calculated from the difference in brightness between the corresponding pixel of the comparison image and the template TJ set in this way, and in step 256, the minimum value of Dx, y is updated. This is a step of rewriting Dbuf and Xbuf only when the above is performed. Further, step 258 is a step of decrementing the X coordinate value x of the comparative image so as to move it by one pixel.

【0050】そして、ステップ262は、デクリメント
した結果x<Xa−Wが成立するに至ったかを判別する
ステップであり、本ステップの条件が成立すると判別さ
れるまで、上記ステップ254〜260の処理が繰り返
し実行され、x<Xa−Wが成立すると判別されたら、
以後ステップ264の処理を実行して本ルーチンが終了
する。
Then, step 262 is a step of determining whether or not the result of decrementing, x <Xa-W, has been established, and the processing of steps 254 to 260 is performed until it is determined that the condition of this step is established. If it is determined that x <Xa-W is satisfied by repeated execution,
After that, the processing of step 264 is executed, and this routine ends.

【0051】この場合、上記ステップ262の条件が成
立するのは、x=Xa+Wからx=Xa−Wに渡る比較
画像の走査が終了したことを意味する。従って、この時
点でDbufにはその間に計算された最小の相関値D
x,yの値が、またXbufにはその際のxが格納され
ているはずである。ステップ264は、このDbuf、
及びXbufをテンプレート番号JのテンプレートTJ
における相関値DJ、その際のX座標XJとして出力す
るステップである。
In this case, the condition of step 262 is satisfied when the scanning of the comparison image from x = Xa + W to x = Xa-W is completed. Therefore, at this point, Dbuf has the smallest correlation value D calculated in the meantime.
The values of x and y should be stored in Xbuf, and x at that time should be stored in Xbuf. In step 264, this Dbuf,
And Xbuf are the template TJ of the template number J
Is a step of outputting as the correlation value DJ in X and the X coordinate XJ at that time.

【0052】ここで図7中ステップ208が初めて実行
される場合は、J=Wi−1として図8に示す相関計算
ルーチンが実行され、その結果DWi−1、XWi−1
が計算されることになる。
When step 208 in FIG. 7 is executed for the first time, the correlation calculation routine shown in FIG. 8 is executed with J = Wi-1, and as a result, DWi-1 and XWi-1.
Will be calculated.

【0053】ステップ210は、現在の相関計算に用い
たテンプレートの番号Jが、上記イニシャル処理ルーチ
ンにおいて用いたテンプレートの番号K=Wiに対して
Wi+1となっているかを判別するステップである。今
回が初回の処理であるとすれば、上述の如くJ=Wi−
1であり、J≧Wi+1は不成立となる。従って、この
場合はステップ212を経て更に上記ステップ208の
処理が行われることになる。
Step 210 is a step of determining whether the template number J used in the current correlation calculation is Wi + 1 with respect to the template number K = Wi used in the initial processing routine. If this is the first processing, J = Wi− as described above.
1 and J ≧ Wi + 1 is not established. Therefore, in this case, the process of step 208 is further performed after step 212.

【0054】ここで、ステップ212は、Jをインクリ
メントするステップである。従って、前回J=Wi−1
であった場合、J=Wiに書き換えられ、ステップ20
8ではテンプレート番号J=Wiのテンプレートについ
ての相関計算が行われ、以後ステップ210においてJ
≧Wi+1が成立するまで繰り返しステップ208〜2
12の処理が行われる。
Here, step 212 is a step of incrementing J. Therefore, last time J = Wi-1
If it is, it is rewritten to J = Wi and step 20
8, the correlation calculation is performed for the template with the template number J = Wi, and thereafter in step 210, J
Repeat steps 208 to 2 until ≧ Wi + 1 holds.
Twelve processes are performed.

【0055】つまり、ステップ210において条件成立
と判別されるのは、J=Wi−1,Wi,Wi+1につ
いて相関値DJ,X座標XJの演算が行われた場合であ
り、これら隣接する3つのテンプレートについての相関
計算が終了したら、以後ステップ214の処理が行われ
ることになる。
That is, in step 210, it is determined that the conditions are satisfied when the correlation value DJ and the X coordinate XJ are calculated for J = Wi-1, Wi, Wi + 1, and these three adjacent templates are used. When the correlation calculation of is completed, the process of step 214 is performed thereafter.

【0056】ステップ214は、上述の如く演算したJ
=Wi−1,Wi,Wi+1について相関値DJのうち
Wiについての相関値DWiが最小であるかを判別する
ステップである。ここでDWiが最小である場合には、
上記3つのテンプレートのうちTiが最も高い相関の得
られるテンプレートであると判断することができる。
In step 214, J calculated as described above is used.
= Wi−1, Wi, Wi + 1 is a step of determining whether the correlation value DWi for Wi is the smallest among the correlation values DJ. Here, if DWi is the minimum,
It can be determined that Ti has the highest correlation among the three templates.

【0057】このため、かかる条件が成立した場合に
は、ステップ216へ進んで、Wiの値をそのまま白線
幅Wiとして把握し、ステップ218においてflag
に“0”をセットし、更にステップ220においてW
i,Xi,Diを出力して今回の処理を終了する。尚、
ここでXi,Diは、それぞれWiに対応して得られる
比較画像のX座標、及びその比較画像について得られた
相関値(最小相関値に相当する)である。
Therefore, when such a condition is satisfied, the routine proceeds to step 216, the value of Wi is grasped as it is as the white line width Wi, and the flag is flagged at step 218.
Is set to "0", and in step 220 W
i, Xi, and Di are output, and the processing of this time is ended. still,
Here, Xi and Di are the X coordinate of the comparative image obtained corresponding to Wi and the correlation value (corresponding to the minimum correlation value) obtained for the comparative image.

【0058】一方、ステップ214においてDWiが最
小の値ではないと判別された場合は、ステップ222へ
進み、上記ステップ210において計算したDWi−1
とDWi+1とにつきDWi−1<DWi+1が成立す
るかを判別する。つまり、いずれの相関値が小さいかを
判別することにより、テンプレートTi−1,Ti+1
の何れが比較画像に対して高い相関を示すかを判別す
る。
On the other hand, if it is determined in step 214 that DWi is not the minimum value, the process proceeds to step 222, and DWi-1 calculated in step 210 above.
And DWi + 1, it is determined whether or not DWi-1 <DWi + 1 holds. In other words, by determining which correlation value is smaller, the template Ti-1, Ti + 1
Which of the two has a higher correlation with the comparison image is determined.

【0059】ここで、DWi−1<DWi+1が成立す
るのは、テンプレートTi−1の方が高い相関が得られ
ている場合であり、この場合はかかる状況を表示すべく
ステップ224へ進んでflagに“1”をセットす
る。一方、上記条件が不成立の場合は、テンプレートT
i+1の方が高い相関を得ることができる場合であり、
この場合はステップ226へ進んでかかる状況を表示す
べくflagに“2”をセットする。
Here, DWi-1 <DWi + 1 holds when the template Ti-1 has a higher correlation. In this case, the process proceeds to step 224 to display such a situation, and the flag is flagged. Set “1” to. On the other hand, if the above conditions are not satisfied, the template T
i + 1 is the case where a higher correlation can be obtained,
In this case, the process proceeds to step 226 and "2" is set to the flag to display such a situation.

【0060】これら何れかの処理を終えたら、再び上記
ステップ204の処理を行う。今回は、flag=
“0”ではないから条件不成立と判別され、これに続い
てステップ228の処理が実行される。このステップ2
28はflagに“1”がセットされているかを見るス
テップであり、flag=“1”である場合は以後ステ
ップ230以降の処理が実行される。
Upon completion of any of these processes, the process of step 204 is performed again. This time, flag =
Since it is not "0", it is determined that the condition is not satisfied, and subsequently, the process of step 228 is executed. This step 2
Reference numeral 28 is a step for checking whether "1" is set in the flag, and when flag = "1", the processing from step 230 onward is executed thereafter.

【0061】flag=“1”になるのは、上記イニシ
ャル処理ルーチンにおいて選択したテンプレートTiに
対して、Y=Ya領域に撮影されている道路白線の幅が
狭い場合である。この場合、テンプレートTi−1が最
も高い相関の得られるテンプレートであるとは限らず、
より幅の狭いテンプレートTi−2,TI−3,・・の
方が高い相関の得られる場合もある。
The flag becomes "1" when the width of the road white line photographed in the Y = Ya area is narrow with respect to the template Ti selected in the initial processing routine. In this case, the template Ti-1 is not always the template with the highest correlation,
In some cases, the narrower template Ti-2, TI-3, ... Has a higher correlation.

【0062】そこでステップ230以降の処理が実行さ
れる場合、先ずステップ230においてJ=Wi−2な
る書換えを行い、ステップ232においてはこのJ=W
i−2のテンプレートについて相関値DJの演算を行
う。尚、相関値DJの演算は、上記ステップ208と同
様に図8に示す相関計算ルーチンによる。
Therefore, when the processing from step 230 onward is executed, first, rewriting J = Wi-2 is performed in step 230, and this J = W in step 232.
The correlation value DJ is calculated for the i-2 template. The correlation value DJ is calculated by the correlation calculation routine shown in FIG.

【0063】そして、J=Wi−2についての相関値D
Jが計算できたら、ステップ234においてDJ<DJ
+1(上記ステップ210において計算したDWi−
1)が成立しているかを判別する。ここで、DJ<DJ
+1が成立するのは、J=Wi−1のテンプレートより
J=Wi−2のテンプレートの方が更に高い相関の得ら
れる場合である。従って、この場合はさらに幅の狭いテ
ンプレートについて相関値を計算すべくステップ236
でJから1を減じて上記ステップ232、234の処理
を行う。
Then, the correlation value D for J = Wi-2
When J is calculated, in step 234, DJ <DJ
+1 (DWi− calculated in step 210 above)
It is determined whether 1) is established. Where DJ <DJ
+1 holds when the template with J = Wi-2 has a higher correlation than the template with J = Wi-1. Therefore, in this case, step 236 is performed to calculate the correlation value for the narrower template.
Then, 1 is subtracted from J and the processing of steps 232 and 234 is performed.

【0064】一方、DJ<DJ+1が不成立となるの
は、最新の相関値計算に用いたテンプレートTJより前
回の相関値計算に用いたテンプレートTJ+1の方がよ
り高い相関を得ることができる場合、すなわちTJ+1
が撮影された道路白線に対して最も高い相関を得ること
ができる場合である。
On the other hand, DJ <DJ + 1 is not satisfied when the template TJ + 1 used in the previous correlation value calculation can obtain a higher correlation than the template TJ used in the latest correlation value calculation, that is, TJ + 1
This is the case where the highest correlation can be obtained with respect to the captured road white line.

【0065】従って、かかる判定がなされた場合には、
ステップ238において道路白線の幅を表すWiにJ+
1を代入し、以後上記ステップ218、220の処理を
実行して今回の処理を終了する。
Therefore, when such a determination is made,
In step 238, J + is added to Wi representing the width of the road white line.
1 is substituted, and the processing of steps 218 and 220 is executed thereafter, and the processing of this time is ended.

【0066】これに対して、flagに“2”がセット
されており上記ステップ228においてflag=
“1”が不成立であると判別された場合は、ステップ2
40に進みJ=Wi+2なる処理が実行される。fla
gに“2”がセットされるのは、イニシャル処理ルーチ
ンにおいて使用したテンプレートTiより幅の広いテン
プレートがより高い相関を確保できる場合であり、Ti
+1,Ti+2,・・について相関値DJを比較するた
めである。
On the other hand, "2" is set in the flag, and flag =
If it is determined that “1” is not established, step 2
In step 40, the process of J = Wi + 2 is executed. fla
“2” is set in g when a template wider than the template Ti used in the initial processing routine can secure a higher correlation.
This is to compare the correlation values DJ for +1, Ti + 2, ...

【0067】つまり、上記ステップ240の処理を終え
たら、次にステップ242においてJ=Wi+2につい
て相関計算を行い、ステップ244においてDJ−1<
DJの成立性について判別を行う。そして、上記条件が
不成立の場合、すなわち新たに計算したDJが、それよ
り幅狭いテンプレートTJ−1に対して得られた相関値
DJ−1以下である場合は、ステップ246において、
更にテンプレートの幅を広げるべくJに1を加算して上
記ステップ242以降の処理を繰り返し実行する。
That is, after the processing of step 240 is completed, the correlation calculation is performed for J = Wi + 2 in step 242, and DJ-1 <in step 244.
A determination is made as to the feasibility of DJ. If the above condition is not satisfied, that is, if the newly calculated DJ is less than or equal to the correlation value DJ-1 obtained for the narrower template TJ-1, then in step 246,
To further widen the width of the template, 1 is added to J, and the processing from step 242 above is repeated.

【0068】また、ステップ244の条件が成立すると
判別された場合は、前回相関計算を行ったテンプレート
TJ−1が最も高い相関の得られるテンプレートである
と判断することができ、この場合はステップ248にお
いて道路白線の幅WiにJ−1を代入し、以後上記ステ
ップ218、220の処理を実行して今回の処理を終了
する。
If it is determined that the condition of step 244 is satisfied, it is possible to determine that the template TJ-1 for which the correlation calculation has been performed last time is the template with the highest correlation, and in this case, step 248. In J, J-1 is substituted for the width Wi of the road white line, and the processes of steps 218 and 220 are executed thereafter, and the process of this time is ended.

【0069】このように、本実施例の車両用画像センサ
においては、CPU16が白線幅検出処理、すなわち図
7に示す白線幅検出ルーチンを実行することにより、カ
メラ10によって撮影された画像中、Y=Yaの領域に
撮影された道路白線の幅と最も高い相関の得られるテン
プレートTnが検出され、そのテンプレートTnのにお
いて白線幅として設定されている値を白線幅Wiとして
得ることができる。ここで、本実施例においては、上記
図5(B)に示すように、テンプレートTnそれぞれに
ついてピッチ角がさせてあり、上述の如く撮像画像中Y
=Yaの領域における白線幅WaがWiであることが判
明したら、図9に示すプッチ角検出ルーチンが起動し、
図5(B)に示すマップを検索することで得られたWa
(=Wi)に対応するピッチ角の特定が行われる。
As described above, in the vehicle image sensor of this embodiment, the CPU 16 executes the white line width detection processing, that is, the white line width detection routine shown in FIG. The template Tn having the highest correlation with the width of the road white line photographed in the region of = Ya is detected, and the value set as the white line width in the template Tn can be obtained as the white line width Wi. Here, in the present embodiment, as shown in FIG. 5B, the pitch angle is set for each template Tn, and Y in the captured image is set as described above.
When the white line width Wa in the region of = Ya is found to be Wi, the Pucci angle detection routine shown in FIG. 9 is started,
Wa obtained by searching the map shown in FIG.
The pitch angle corresponding to (= Wi) is specified.

【0070】このように、本実施例の車両用画像センサ
においては、道路に描かれた左右の白線の消失点を求め
ることなく、撮影された道路白線幅の変化に基づいてピ
ッチ角の検出を行うことができる。このため、従来の装
置に比べて処理内容が簡単化され、実行速度の高速化が
図れると共に、カーブ等においても検出誤差が強調され
ることがなく、ピッチ角の検出精度について著しい向上
を図ることができる。
As described above, in the vehicular image sensor of this embodiment, the pitch angle is detected based on the change in the photographed road white line width without obtaining the vanishing points of the left and right white lines drawn on the road. It can be carried out. For this reason, the processing contents are simplified and the execution speed is increased as compared with the conventional device, and the detection error is not emphasized even in the curve etc., and the pitch angle detection accuracy is significantly improved. You can

【0071】ところで、上記図4に示すメインルーチン
は、撮像画像中Y=Yaの領域に撮影される道路白線の
幅が車両のピッチ角に応じて変化することに着目し、道
路白線の幅Waの変化を検出することでピッチ角を検出
するものである。従って、道路白線の幅Waが撮像画像
内で変化しない程度の微小変化は検出することができな
い。
In the main routine shown in FIG. 4, attention is paid to the fact that the width of the road white line photographed in the area Y = Ya in the picked-up image changes according to the pitch angle of the vehicle. The pitch angle is detected by detecting the change in. Therefore, it is impossible to detect a minute change in which the width Wa of the road white line does not change in the captured image.

【0072】一方、図10(A)に示すように、Y=Y
aの点に加えてY=Yb,Ycについても注視すること
とすると、各点におけるWaをピッチ角に対応させて表
示した図10(B)に示すように、Y=Yaの点につい
てはWaが変化しない領域であっても(例えば図10
(B)中、ピッチ角−2°〜1°)、Y=Yb,Ycの
点ではWaが変化する場合がある。
On the other hand, as shown in FIG. 10 (A), Y = Y
Assuming that Y = Yb and Yc are also watched in addition to the point a, as shown in FIG. 10B in which Wa at each point is displayed in correspondence with the pitch angle, the point Wa = Ya is Wa. Even if the area does not change (for example, in FIG.
In (B), Wa may change at a point of Y = Yb, Yc at a pitch angle of −2 ° to 1 °.

【0073】従って、Y=Ya,Yb,Ycの3点につ
いての道路白線幅Wa,Wb,Wcを組み合わせて考慮
することとすれば、単一の点に注視する構成では検出で
きない微小なピッチ角をも検出することが可能となる。
Therefore, if the road white line widths Wa, Wb, and Wc for three points of Y = Ya, Yb, and Yc are considered in combination, a minute pitch angle that cannot be detected by a configuration in which a single point is focused. Can also be detected.

【0074】図10は、かかる点に着目し、前記請求項
2記載の発明を実現すべくCPU16が実行するメイン
ルーチンのフローチャートを示す。
Focusing on this point, FIG. 10 shows a flowchart of a main routine executed by the CPU 16 in order to realize the invention described in claim 2.

【0075】すなわち、図10に示すルーチンが起動す
ると、先ずステップ100aにおいて上記図4中、ステ
ップ100に相当するイニシャル処理を実行する。次い
で、ステップ100b,100cにおいて、Y=Yb,
Ycの点についてのイニシャル処理を実行する。これに
より、それぞれの領域において道路白線が撮影されてい
る位置のX座標値Xa,Xb,Xcを検出する。
That is, when the routine shown in FIG. 10 is started, first, at step 100a, an initial process corresponding to step 100 in FIG. 4 is executed. Then, in steps 100b and 100c, Y = Yb,
The initial process for the point of Yc is executed. As a result, the X coordinate values Xa, Xb, Xc of the position where the road white line is photographed in each area are detected.

【0076】そして、これらの値Xa,Xb,Xcを基
に、ステップ200a,200b,200cにおいて、
上記図4中ステップ200に相当する白線幅検出処理を
実行する。これにより、図10(B)に示すマップを参
照するために必要なデータ、すなわちY=Ya,Yb,
Ycについての道路白線幅Wa,Wb,Wcが得られ
る。
Then, based on these values Xa, Xb, Xc, in steps 200a, 200b, 200c,
The white line width detection process corresponding to step 200 in FIG. 4 is executed. As a result, the data necessary to refer to the map shown in FIG. 10B, that is, Y = Ya, Yb,
Road white line widths Wa, Wb, and Wc for Yc are obtained.

【0077】ステップ310は、これらY=Ya,Y
b,Ycについての道路白線幅Wa,Wb,Wcに基づ
いて車両のピッチ角を検出するステップであり、図12
に示すピッチ角検出ルーチンによって実現される。すな
わち、ピッチ角検出ルーチンにおいては、上記ステップ
200a〜200cにおい得られたWa,Wb,Wcで
図10(B)に示すマップ検索が行われ(ステップ31
2)、その結果がピッチ角として出力される。このよう
にしてピッチ角の検出を終えたら、以後上記ステップ2
00a以降の処理を繰り返し実行してピッチ角の検出処
理を継続する。
In step 310, these Y = Ya, Y
12 is a step of detecting the pitch angle of the vehicle based on the road white line widths Wa, Wb, and Wc for b and Yc.
This is realized by the pitch angle detection routine shown in. That is, in the pitch angle detection routine, the map search shown in FIG. 10B is performed using Wa, Wb, and Wc obtained in steps 200a to 200c (step 31).
2), the result is output as the pitch angle. When the detection of the pitch angle is completed in this way, the above step 2
The processing after 00a is repeatedly executed to continue the pitch angle detection processing.

【0078】この場合、上記図4に示すルーチンが実行
される場合に比べて微小なピッチ角変化をも検出するこ
とができ、ピッチ角の検出精度を更に向上させることが
できる。
In this case, a minute pitch angle change can be detected as compared with the case where the routine shown in FIG. 4 is executed, and the pitch angle detection accuracy can be further improved.

【0079】ところで、本実施例の車両用画像センサの
如く車両前方の道路白線を認識する装置においては、道
路白線をガイドラインとする自動操縦への適用が可能で
ある。この場合、車両用画像センサによって検出すべき
データは、車両から所定距離離間した位置における道路
白線の位置であり、撮像画像内における道路白線のX座
標を捕らえることができれば、かかる要求は満たされる
ことになる。
By the way, the device for recognizing the road white line in front of the vehicle, such as the vehicle image sensor of this embodiment, can be applied to the automatic steering using the road white line as a guideline. In this case, the data to be detected by the vehicular image sensor is the position of the road white line at a position separated from the vehicle by a predetermined distance, and if the X coordinate of the road white line in the captured image can be captured, this request is satisfied. become.

【0080】しかし、カメラ10はあくまでも車両に固
定された部材であり、走行中に車両にピッチが生ずる以
上、所定距離離間した位置の道路白線が撮影される位置
は一定ではなく、単に特定のY座標領域において白線位
置を探索したのでは所定距離離間した位置の道路白線を
監視していることにはならない。
However, the camera 10 is a member that is fixed to the vehicle to the last, and since the vehicle pitches during traveling, the positions where the road white lines at the positions separated by a predetermined distance are photographed are not constant, but simply a specific Y value. Searching for the white line position in the coordinate area does not mean that the road white line at a position separated by a predetermined distance is monitored.

【0081】この場合、上記実施例に示す如く車両のピ
ッチ角を検出することができれば、検出したピッチ角を
基に種々の補正を施し、撮像画像中における道路白線の
位置がピッチ角に応じて上下に移動するにもかかわら
ず、所定距離離間した位置における道路白線が、撮像画
像中如何なる座標に撮影されているかを特定することが
できる。つまり、上記実施例に示す車両用画像センサ
は、道路白線をガイドラインとする自動操縦を実現する
際に特に有効な装置である。
In this case, if the pitch angle of the vehicle can be detected as shown in the above embodiment, various corrections are made based on the detected pitch angle, and the position of the road white line in the picked-up image corresponds to the pitch angle. Despite moving up and down, it is possible to specify at what coordinate the road white line at a position separated by a predetermined distance is captured in the captured image. That is, the vehicular image sensor shown in the above-mentioned embodiment is a particularly effective device when realizing automatic piloting using the road white line as a guideline.

【0082】ところで、図13(A)に示すように車両
がピッチ角“0”の定常状態にある場合に、車両から所
定距離離間した位置における道路白線が、撮像画像中Y
=Yaの位置に、幅Waで撮像されているとする。この
状態で車両に適当なピッチが生じ、撮像画像が図13
(B)に示す如く道路白線が全体として撮像画像中上方
に移行したとすると、Y=Yaの位置にはWaより太い
道路白線が撮像され、幅Waの道路白線は、Y=Yaよ
り上方のY=Ydの位置に撮影される場合が生ずる。
By the way, as shown in FIG. 13 (A), when the vehicle is in a steady state with a pitch angle of "0", the road white line at a position separated from the vehicle by a predetermined distance is Y in the captured image.
It is assumed that an image having a width Wa is captured at a position of = Ya. In this state, an appropriate pitch is generated in the vehicle, and the captured image is shown in FIG.
If the road white line as a whole shifts upward in the captured image as shown in (B), a road white line thicker than Wa is imaged at a position of Y = Ya, and a road white line of width Wa is above Y = Ya. There are cases where the image is taken at the position of Y = Yd.

【0083】この際、道路白線の幅は実際には変化して
いないことから、車両から所定距離離間した位置の道路
白線は、撮像画像内にWaの幅で撮影されているはずで
あることに鑑みれば、図13(B)に示す状態において
は、Y=Ydの位置に撮影された道路白線が、車両から
所定距離離間した位置の道路白線であるとみなすことが
できる。
At this time, since the width of the road white line has not actually changed, it is supposed that the road white line at a position separated from the vehicle by a predetermined distance should be photographed with the width Wa in the captured image. Considering this, in the state shown in FIG. 13B, the road white line captured at the position Y = Yd can be regarded as the road white line at a position separated from the vehicle by a predetermined distance.

【0084】つまり、図13に示すように撮像画像中複
数の点(Y=Ya〜Ye)について予め道路白線の幅を
監視し、その中でWaと最も近似する位置を検出する処
理を行った場合、検出された位置のY座標に基づいて車
両ピッチ角を検出することができると共に、ピッチ角を
検出するまでもなく車両から所定距離離間した位置にお
ける道路白線が撮像画像中いかなる位置に撮影されてい
るかを検出することができ、処理の高速化に有利であ
る。
That is, as shown in FIG. 13, the width of the road white line is monitored in advance for a plurality of points (Y = Ya to Ye) in the picked-up image, and the processing for detecting the position closest to Wa is performed. In this case, the vehicle pitch angle can be detected based on the Y coordinate of the detected position, and the road white line at a position separated by a predetermined distance from the vehicle is captured at any position in the captured image without detecting the pitch angle. Can be detected, which is advantageous for speeding up the process.

【0085】図14は、かかる原理に基づいてピッチ角
検出を実行すべくCPU16が実行するメインルーチン
の一例のフローチャートであり、CPU16が本ルーチ
ンを実行することにより前記請求項3記載の発明が実現
されることになる。
FIG. 14 is a flow chart of an example of a main routine executed by the CPU 16 to execute the pitch angle detection based on such a principle. The CPU 16 executes this routine to realize the invention of claim 3. Will be done.

【0086】図14に示すルーチンが起動すると、先ず
ステップ400において白線幅の学習が行われる。この
ステップ400は、本実施例において前記した基準幅設
定手段M2を実現するステップであり、図15に示す白
線幅学習ルーチンによって実現される。
When the routine shown in FIG. 14 is started, the white line width is first learned in step 400. This step 400 is a step for realizing the reference width setting means M2 described above in the present embodiment, and is realized by the white line width learning routine shown in FIG.

【0087】すなわち、ステップ400の実行指令が生
ずると、図15に示すルーチンが起動し、ステップ40
2において車速の微分値が“0”であるか否かの判別が
行われる。ここで車速の微分値が“0”とならないの
は、車両が加減速状態にある場合である。従って、かか
る条件が成立する場合には、前後方向にピッチが生じて
いると推定でき、その場合は再びステップ402の処理
を実行する。
That is, when the execution command of step 400 is generated, the routine shown in FIG.
At 2, it is determined whether or not the differential value of the vehicle speed is "0". Here, the differential value of the vehicle speed does not become "0" when the vehicle is in the acceleration / deceleration state. Therefore, when such a condition is satisfied, it can be estimated that a pitch occurs in the front-rear direction, and in that case, the process of step 402 is executed again.

【0088】一方、車速の微分値が“0”であると判別
された場合は、車両がピッチ角“0”の状態にあると予
測できるため、白線幅の学習を進行させるべくステップ
404へ進む。
On the other hand, when it is determined that the differential value of the vehicle speed is "0", it can be predicted that the vehicle is in the state of the pitch angle "0", and therefore the process proceeds to step 404 in order to proceed the learning of the white line width. .

【0089】このステップ404は、操舵角が“0”で
あるかを見るステップである。ここで操舵角=“0”で
ない、すなわち車両が旋回中であると判別された場合
は、車両にロールが生じていることが予測されるため最
初から白線学習の条件成立を確認すべく上記ステップ4
02へ戻る。
This step 404 is a step for checking whether the steering angle is "0". If it is determined that the steering angle is not “0”, that is, the vehicle is turning, it is predicted that the vehicle is rolling, so the above steps are performed from the beginning to confirm that the white line learning condition is satisfied. Four
Return to 02.

【0090】これに対して操舵角=“0”が検出された
場合は、車両が定常直進走行中であり、その姿勢が安定
していると予測できるため、道路白線の幅を学習すべく
ステップ406へ進む。
On the other hand, when the steering angle = "0" is detected, it can be predicted that the vehicle is traveling straight ahead and its posture is stable. Therefore, it is necessary to learn the width of the road white line. Proceed to 406.

【0091】ステップ406は、上記図4中ステップ2
00と同様の手法、すなわち図7に示す白線幅検出ルー
チンによって撮像画像中Y=Yaの領域におけるん白線
幅を検出するステップである。この場合、車両にピッチ
角が生じていないため、Y=Yaの領域で検出した白線
幅はそのまま車両から所定距離離間した位置の道路白線
の幅として扱うことができる。
Step 406 is step 2 in FIG.
00, that is, the step of detecting the white line width in the area Y = Ya in the captured image by the white line width detection routine shown in FIG. In this case, since the vehicle does not have a pitch angle, the width of the white line detected in the region of Y = Ya can be treated as it is as the width of the road white line at a position separated from the vehicle by a predetermined distance.

【0092】そこで、上記ステップ406の処理を終え
たら、ステップ408へ進んで、今回検出した道路白線
の幅Waを定常時の所定距離離間した位置の道路白線の
幅Wrとして記憶して本ルーチンを終了する。
Therefore, when the processing of the above step 406 is completed, the routine proceeds to step 408, where the width Wa of the road white line detected this time is stored as the width Wr of the road white line at the position separated by the predetermined distance in the steady state, and this routine is executed. finish.

【0093】尚、本ルーチンを実行する代わりに、上記
図4、図11に示すルーチンと同様基準となる道路白線
幅Waを記憶しておくことも可能である。しかし、本白
線幅学習ルーチンを実行することにより基準となる白線
幅を設定する構成を採用する場合には、道路上に描かれ
ている白線の幅が変動した場合にも適切な検出精度を維
持できるという効果を得ることができる。
Instead of executing this routine, it is possible to store the reference road white line width Wa as in the routines shown in FIGS. 4 and 11. However, if the configuration that sets the reference white line width by executing this white line width learning routine is adopted, appropriate detection accuracy is maintained even if the width of the white line drawn on the road changes. The effect that it can be obtained can be obtained.

【0094】このようにして定常時における道路白線の
基準幅Wrを学習したら、次にステップ500a〜50
0eにおいて、順番にY=Ya〜Yeの位置についての
イニシャル処理を実行する。これらのイニシャル処理
は、図16に示すイニシャル処理ルーチンによって実現
され、これによりY=Ya〜Yeの領域における白線の
X座標が検出される。
In this way, when the reference width Wr of the road white line in the steady state is learned, the next steps 500a-50
At 0e, the initial processing for the positions of Y = Ya to Ye is sequentially executed. These initial processes are realized by the initial process routine shown in FIG. 16, whereby the X coordinate of the white line in the area of Y = Ya to Ye is detected.

【0095】つまり、上記した白線幅の学習が終了する
と、図16に示すルーチンが起動し、先ずステップ50
2において幅WrのテンプレートTWrの選定が行われ
る。そして、そのテンプレートTWrを用いてテンプレ
ートマッチングによる相関計算を行うべくステップ50
4において必要な初期値設定を行う。
That is, when the learning of the white line width is completed, the routine shown in FIG.
In 2, the template TWr having the width Wr is selected. Then, in order to perform correlation calculation by template matching using the template TWr, step 50
In step 4, necessary initial value setting is performed.

【0096】ここで、本ルーチンにおいては、比較画像
を撮像画像の中央から走査させる構成としており、走査
開始座標(X,Y)には(Xf/2,Yi)を設定す
る。尚、今回の処理が上記図14中ステップ500aに
相当する場合はYiにはYaを、以後ステップ500b
〜500eに相当する場合にはYiにそれぞれYb〜Y
eを代入する。そして、最小相関値を記憶するDbuf
に上限値10000、最小相関値が実現される位置のX
座標を記憶するXbufに“0”を代入してステップ5
06へ進む。
In this routine, the comparative image is scanned from the center of the picked-up image, and (Xf / 2, Yi) is set as the scanning start coordinate (X, Y). If the processing this time corresponds to step 500a in FIG. 14, Ya is set for Yi, and then step 500b.
˜500e, Yi to Yb to Y, respectively.
Substitute e. Then, Dbuf that stores the minimum correlation value
At the position where the upper limit value of 10000 and the minimum correlation value are realized
Substituting "0" into Xbuf that stores the coordinates, step 5
Proceed to 06.

【0097】ステップ506〜514は、上記図6に示
すステップ106〜114と同様の処理であり、比較画
像を1画素づつ画像左端に向けて走査しつつ最小相関値
を検出し、その値をDbufに、その際のX座標をXb
ufに記憶するステップである。
Steps 506 to 514 are the same as steps 106 to 114 shown in FIG. 6 above. The minimum correlation value is detected while scanning the comparison image pixel by pixel toward the left end of the image, and that value is Dbuf. And the X coordinate at that time is Xb
This is the step of storing in uf.

【0098】そして、比較画像の走査を終えたら、ステ
ップ516へ進み、Y=Yiの領域において最小相関値
が得られた位置のX座標、すなわち白線位置Xiとし
て、Xbufに記憶されている値を出力する。この結
果、ステップ500a〜500eの処理が終了した時点
で、それぞれの領域における白線位置Xa〜Xeが検出
されていることになる。
When the scanning of the comparative image is completed, the process proceeds to step 516, where the X coordinate of the position where the minimum correlation value is obtained in the region of Y = Yi, that is, the value stored in Xbuf as the white line position Xi. Output. As a result, the white line positions Xa to Xe in the respective areas are detected at the time when the processing of steps 500a to 500e is completed.

【0099】かかる処理を終えたら、図14に示すよう
にステップ200a〜200eにおいて白線幅検出処理
を行う。これらのステップ200a〜200eは、上記
図7に示す白線幅検出ルーチンによって実現され、それ
ぞれ上記の如く検出したXa〜Xeを中心座標として±
Wの幅を白線幅検出領域としてテンプレートマッチング
による相関計算を行い、それぞれの領域における白線幅
Wa〜Weの検出を行う。
After this processing is completed, white line width detection processing is performed in steps 200a to 200e as shown in FIG. These steps 200a to 200e are realized by the white line width detection routine shown in FIG. 7, and Xa to Xe detected as described above are used as the central coordinates ±.
Correlation calculation by template matching is performed with the width of W as the white line width detection region, and the white line widths Wa to We in each region are detected.

【0100】これらの処理を行うことにより、上記図1
3に示す如く撮像画像中に任意に設定したY=Ya〜Y
eの領域において、道路白線が現実に如何なる幅で撮影
されているかが検出されることになる。この意味で、本
実施例においては上記ステップ200a〜200eが前
記した複数水平幅検出手段M6を実現している。
By performing these processes, the above-mentioned FIG.
3, Y = Ya to Y set arbitrarily in the captured image.
In the area e, it is detected what width the road white line is actually photographed. In this sense, in this embodiment, the steps 200a to 200e realize the plural horizontal width detecting means M6.

【0101】ステップ600では、このようにして検出
されたWa〜Weのうち、白線幅の学 習値として得ら
れたWrに対して最も近似するものを選択し、その幅の
白線が検出された位置を車両から所定距離離間した位置
の道路白線の位置として出力する白線データ出力処理を
実行する。
In step 600, among Wa to We detected in this way, the one that most approximates Wr obtained as the learning value of the white line width is selected, and the white line of that width is detected. A white line data output process is executed to output the position as the position of the road white line at a position separated from the vehicle by a predetermined distance.

【0102】この処理は、図17に示す白線データ出力
処理ルーチンによって実現される。図17に示すルーチ
ンにおいては、ステップ602において先ずWa〜We
の中から最もWrに近似する白線が検出された領域Yi
を、車両前方より所定距離離間した位置の道路白線が撮
影されている領域として特定する。
This processing is realized by the white line data output processing routine shown in FIG. In the routine shown in FIG. 17, first in Step 602, Wa to We are set.
Area Yi in which the white line closest to Wr is detected
Is specified as a region where the road white line at a position separated from the front of the vehicle by a predetermined distance is photographed.

【0103】次にステップ604において、Yiにおい
て白線が検出された位置Xiの出力処理を行う。この場
合、例えばXiを車両の操舵データとして自動操縦用の
制御装置に出力することとすれば、ピッチ角を演算する
までもなく車両と所定距離離間した位置における道路白
線との位置関係が特定できることとなり、自動操縦に要
する操舵データの特定に要する時間が上記図4、図11
に示すルーチンを実行する場合に比べて短縮することが
できるという効果を奏する。
Next, at step 604, output processing is performed at the position Xi where the white line is detected in Yi. In this case, for example, if Xi is output to the control device for automatic steering as the steering data of the vehicle, the positional relationship between the vehicle and the road white line at a position separated by a predetermined distance can be specified without calculating the pitch angle. Therefore, the time required to identify the steering data required for automatic piloting is shown in FIGS.
This has the effect of being able to shorten the time as compared with the case of executing the routine shown in FIG.

【0104】図14中ステップ700は、このようにし
て特定されたYi、又はWa〜Weに基づいてピッチ角
を検出するステップである。この場合、ピッチ角に応じ
てYiが上下することから、例えばYiとして選択され
る領域とピッチ角とを関係付けるマップを設定しておけ
ば、図18に示すようにYiで当該マップを検索する
(ステップ702)ことによりピッチ角を検出すること
ができる。
Step 700 in FIG. 14 is a step for detecting the pitch angle based on Yi or Wa to We thus specified. In this case, since Yi moves up and down according to the pitch angle, for example, if a map relating the area selected as Yi and the pitch angle is set, the map is searched by Yi as shown in FIG. By (step 702), the pitch angle can be detected.

【0105】また、上記ステップ200a〜200eの
処理は、上記図11に示すルーチンと同様に、撮像画像
中複数の領域を注視して白線幅を検出しているに他なら
ないから、上記図10(B)においてYa〜Ycについ
て設定したと同様のマップをYa〜Yeにつき設定し、
図19に示すようにWa〜Weで当該マップを検索して
ピッチ角を検出する構成としてもよい。
Further, as in the routine shown in FIG. 11, the processing of steps 200a to 200e is nothing but detecting the white line width by gazing at a plurality of regions in the picked-up image. The same map as that set for Ya to Yc in B) is set for Ya to Ye,
As shown in FIG. 19, a configuration may be used in which the pitch angle is detected by searching the map with Wa to We.

【0106】このように、本実施例の車両用画像センサ
によれば、ピッチ角を求めるまでもなく車両前方より所
定距離離間した位置における道路白線の位置と車両との
位置関係を特定することができ、その処理の高速化に有
利であると共に、上記図4、図11に示すルーチンと同
様に車両に発生したピッチ角を精度良く検出することが
できるという効果を有するももである。
As described above, according to the vehicle image sensor of the present embodiment, it is possible to specify the positional relationship between the vehicle and the position of the road white line at a position separated from the front of the vehicle by a predetermined distance without obtaining the pitch angle. This is advantageous in increasing the processing speed, and has the effect that the pitch angle generated in the vehicle can be detected with high accuracy as in the routines shown in FIGS. 4 and 11.

【0107】尚、上記各実施例においては、道路に描か
れている白線の幅に着目して車両のピッチ角を検出する
構成としていうが、左右の白線の間の幅、すなわち車線
の幅に着目してピッチ幅を検出する構成としてもよい。
この場合、車線幅は白線幅に比べて幅が広く、ピッチ角
に応じて生じる変化量も大きいことから、より高度な検
出精度を確保することができる。
In each of the above embodiments, the pitch angle of the vehicle is detected by focusing on the width of the white line drawn on the road. However, the width between the left and right white lines, that is, the width of the lane The pitch width may be detected by focusing attention.
In this case, the lane width is wider than the white line width, and the amount of change generated according to the pitch angle is large, so that higher detection accuracy can be ensured.

【0108】[0108]

【発明の効果】上述の如く、請求項1記載の発明によれ
ば、車両前方の道路白線、又は車線の幅が車両のピッチ
角に応じて変化することに着目してピッチ角を検出する
構成であるため、従来の装置の如く道路白線の消失点を
求める必要がなく、処理の高速化が実現できる。また、
本発明に係る車両用画像センサによれば、道路がカーブ
しても、それにより道路白線幅及び車線幅が変化しない
以上、カーブの影響でピッチ角の検出精度が悪化するこ
とがなく、かかる観点からも従来の装置に比べて優れた
効果を発揮し得るという特長を有している。
As described above, according to the first aspect of the invention, the pitch angle is detected by focusing on the fact that the width of the road white line in front of the vehicle or the width of the lane changes according to the pitch angle of the vehicle. Therefore, it is not necessary to obtain the vanishing point of the road white line as in the conventional device, and the processing speed can be increased. Also,
According to the vehicle image sensor of the present invention, even if the road curves, the road white line width and the lane width do not change, so that the accuracy of the pitch angle detection does not deteriorate due to the influence of the curve. Therefore, it has a feature that it can exert an excellent effect as compared with the conventional device.

【0109】また、請求項2記載の発明によれば、車両
前方の複数の位置について請求項1記載の発明によるピ
ッチ角検出が行われるため、単一の位置に着目したので
は撮像画像上に現れない程度の微小なピッチ角変化をも
検出することが可能となる。すなわち、本発明に係る車
両用画像センサは、上記請求項1記載の発明に比べて更
に高い検出精度でピッチ角を検出できるという効果を有
している。
Further, according to the invention of claim 2, the pitch angle detection according to the invention of claim 1 is performed at a plurality of positions in front of the vehicle. It is possible to detect a minute pitch angle change that does not appear. That is, the vehicular image sensor according to the present invention has the effect of being able to detect the pitch angle with higher detection accuracy than the invention according to claim 1 above.

【0110】一方、請求項3記載の発明によれば、前記
複数水平幅検出手段が、前記カメラの撮影した画像中複
数の領域について道路白線又は車線の幅を検出すること
から、前記ピッチ角検出手段は、検出された複数の水平
幅になかから前記基準幅設定手段により設定された道路
白線又は車線の基準幅と適合するものを見つけ出すだけ
で車両から所定距離離間した位置の道路白線又は車線が
撮影されている領域を特定することができる。
On the other hand, according to the third aspect of the present invention, the plural horizontal width detecting means detects the width of the road white line or the lane for a plurality of regions in the image photographed by the camera. Means, the road white line or the lane at a position separated by a predetermined distance from the vehicle only by finding one that matches the reference width of the road white line or the lane set by the reference width setting means from among the plurality of detected horizontal widths. The area being photographed can be specified.

【0111】従って、ピッチ角検出手段が、特定された
領域に基づいてピッチ角を検出することで上記した請求
項1記載の発明と同様に、精度良く、迅速にピッチ角検
出を行うことができる。更に、上述の如く車両から所定
距離離間した位置の道路白線又は車線が撮影されている
領域が特定されることから、この領域を継続して監視す
ることとすれば、車両のピッチ角に関わらず車両から所
定距離離間した位置の道路白線、又は車線の様子を継続
的に監視することができるという特長をも有している。
Therefore, the pitch angle detecting means detects the pitch angle based on the specified region, so that the pitch angle can be detected accurately and promptly, as in the case of the above-mentioned invention. . Further, as described above, since the area where the road white line or the lane at a position separated from the vehicle by a predetermined distance is photographed is specified, if this area is continuously monitored, regardless of the pitch angle of the vehicle. It also has the feature of being able to continuously monitor the state of the road white line or lane at a position that is a predetermined distance away from the vehicle.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明に係る車両用画像センサの原理図であ
る。
FIG. 1 is a principle diagram of an image sensor for a vehicle according to the present invention.

【図2】本発明に係る車両用画像センサの一実施例の全
体構成を表すブロック構成図である。
FIG. 2 is a block diagram showing the overall configuration of an embodiment of a vehicle image sensor according to the present invention.

【図3】テンプレートマッチングによる相関計算の原理
を説明するための図である。
FIG. 3 is a diagram for explaining the principle of correlation calculation by template matching.

【図4】本実施例の車両用画像センサにおいてCPUが
実行するメインルーチンの一例のフローチャートであ
る。
FIG. 4 is a flowchart of an example of a main routine executed by a CPU in the vehicle image sensor according to the present embodiment.

【図5】本実施例の車両用画像センサにおける白線幅検
出手法を説明するための図である。
FIG. 5 is a diagram for explaining a white line width detection method in the vehicle image sensor according to the present embodiment.

【図6】本実施例の車両用画像センサにおいてCPUが
実行するイニシャル処理ルーチンの一例のフローチャー
トである。
FIG. 6 is a flowchart of an example of an initial processing routine executed by a CPU in the vehicle image sensor according to the present embodiment.

【図7】本実施例の車両用画像センサにおいてCPUが
実行する白線幅検出処理ルーチンの一例のフローチャー
トである。
FIG. 7 is a flowchart of an example of a white line width detection processing routine executed by a CPU in the vehicle image sensor according to the present embodiment.

【図8】本実施例の車両用画像センサにおいてCPUが
実行する相関計算ルーチンの一例のフローチャートであ
る。
FIG. 8 is a flowchart of an example of a correlation calculation routine executed by a CPU in the vehicle image sensor of this embodiment.

【図9】本実施例の車両用画像センサにおいてCPUが
実行するピッチ角検出ルーチンの一例のフローチャート
である。
FIG. 9 is a flowchart of an example of a pitch angle detection routine executed by a CPU in the vehicle image sensor according to the present embodiment.

【図10】本実施例の車両用画像センサにおけるピッチ
角検出手法を説明するための図である。
FIG. 10 is a diagram for explaining a pitch angle detecting method in the vehicle image sensor of the present embodiment.

【図11】本実施例の車両用画像センサにおいてCPU
が実行するメインルーチンの第2の例のフローチャート
である。
FIG. 11 is a CPU of the vehicle image sensor according to the present embodiment.
6 is a flowchart of a second example of a main routine executed by the.

【図12】本実施例の車両用画像センサにおいてCPU
が実行するピッチ角検出ルーチンの第2の例のフローチ
ャートである。
FIG. 12 is a CPU in the vehicular image sensor of this embodiment.
5 is a flowchart of a second example of a pitch angle detection routine executed by the.

【図13】撮像画像中における道路白線の幅とピッチ角
との関係を表す図である。
FIG. 13 is a diagram illustrating a relationship between a width of a road white line and a pitch angle in a captured image.

【図14】本実施例の車両用画像センサにおいてCPU
が実行するメインルーチンの第3の例のフローチャート
である。
FIG. 14 is a CPU in the vehicular image sensor of this embodiment.
11 is a flowchart of a third example of a main routine executed by.

【図15】本実施例の車両用画像センサにおいてCPU
が実行する白線幅学習ルーチンの一例のフローチャート
である。
FIG. 15 is a CPU of the vehicle image sensor according to the present embodiment.
5 is a flow chart of an example of a white line width learning routine executed by.

【図16】本実施例の車両用画像センサにおいてCPU
が実行するイニシャル処理ルーチンの第2の例のフロー
チャートである。
FIG. 16 is a CPU of the vehicle image sensor according to the present embodiment.
8 is a flowchart of a second example of an initial processing routine executed by the.

【図17】本実施例の車両用画像センサにおいてCPU
が実行する白線データ出力処理ルーチンの一例のフロー
チャートである。
FIG. 17 is a CPU in the vehicular image sensor of the present embodiment.
5 is a flow chart of an example of a white line data output processing routine executed by.

【図18】本実施例の車両用画像センサにおいてCPU
が実行するピッチ角検出ルーチンの第3の例のフローチ
ャートである。
FIG. 18 is a CPU in the vehicular image sensor of the present embodiment.
9 is a flowchart of a third example of a pitch angle detection routine executed by the.

【図19】本実施例の車両用画像センサにおいてCPU
が実行するピッチ角検出ルーチンの第4の例のフローチ
ャートである。
FIG. 19 is a CPU in the vehicular image sensor of the present embodiment.
9 is a flowchart of a fourth example of a pitch angle detection routine executed by.

【符号の説明】[Explanation of symbols]

M1,10 カメラ M2 基準幅設定手段 M3 水平幅検出手段 M4 ピッチ対応幅設定手段 M5,M7 ピッチ角検出手段 M6 複数水平幅検出手段 16 CPU 18 相関演算装置 M1, 10 camera M2 reference width setting means M3 horizontal width detecting means M4 pitch corresponding width setting means M5, M7 pitch angle detecting means M6 plural horizontal width detecting means 16 CPU 18 correlation calculation device

フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 H04N 7/18 C Continuation of front page (51) Int.Cl. 6 Identification code Office reference number FI Technical display area H04N 7/18 C

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 車両前方を撮影すべく車両に固定したカ
メラと、 車両にピッチ角が生じていない状況下で該カメラによる
撮影がなされた場合に、車両から所定距離離間した位置
における道路白線又は車線が撮像画像中に占める幅を基
準幅として設定する基準幅設定手段と、 前記カメラが撮影する画像中、車両にピッチ角が生じて
いない状況下では前記白線又は車線が前記基準幅で撮像
される基準領域において、現実に撮影された道路白線又
は車線が撮像画像中に占める幅を検出する水平幅検出手
段と、 前記基準幅設定手段が設定した基準幅に基づいて、車両
に特定のピッチ角が生じた場合に前記基準領域に撮像さ
れると推定される道路白線又は車線の幅を設定するピッ
チ対応幅設定手段と、 前記水平幅検出手段が検出した現実の幅と、前記ピッチ
対応幅設定手段がピッチ角に対応して設定したピッチ対
応幅とに基づいて車両に生じているピッチ角を検出する
ピッチ角検出手段とを備えることを特徴とする車両用画
像センサ。
1. A camera fixed to the vehicle to photograph the front of the vehicle, and a road white line or a road white line at a position separated from the vehicle by a predetermined distance when the image is photographed by the camera in a situation where the vehicle does not have a pitch angle. Reference width setting means for setting a width occupied by a lane in a captured image as a reference width, and in the image captured by the camera, the white line or the lane is captured with the reference width in a situation where no pitch angle is generated in the vehicle. Based on the reference width set by the reference width setting means, the horizontal width detection means for detecting the width occupied by the actually photographed road white line or lane in the captured image in the reference area If a width corresponding to a road white line or a lane estimated to be imaged in the reference area is set, a width corresponding to a pitch corresponding to the width, an actual width detected by the horizontal width detecting means, and Vehicular image sensor, characterized in that the pitch corresponding width setting means comprises a pitch angle detecting means for detecting a pitch angle that occurs in the vehicle based on the pitch corresponding width set in response to the pitch angle.
【請求項2】 前記基準幅設定手段は、異なる複数の所
定距離に対応した複数の基準幅を設定し、 前記水平幅検出手段は、これら複数の基準幅に対応して
設定される複数の基準領域における道路白線又は車線の
幅を検出し、 前記ピッチ対応幅設定手段は、前記複数の基準幅に対応
する複数のピッチ対応角を設定し、 前記ピッチ角検出手段は、前記水平幅検出手段が検出し
た複数の幅と、前記ピッチ対応幅設定手段が設定した複
数のピッチ対応幅とに基づいて車両に生じているピッチ
角を検出することを特徴とする請求項1記載の車両用画
像センサ。
2. The reference width setting means sets a plurality of reference widths corresponding to a plurality of different predetermined distances, and the horizontal width detection means sets a plurality of reference widths set corresponding to the plurality of reference widths. Detecting the width of a road white line or a lane in a region, the pitch corresponding width setting means sets a plurality of pitch corresponding angles corresponding to the plurality of reference widths, the pitch angle detecting means, the horizontal width detecting means 2. The vehicle image sensor according to claim 1, wherein the pitch angle occurring in the vehicle is detected based on the plurality of detected widths and the plurality of pitch corresponding widths set by the pitch corresponding width setting means.
【請求項3】 車両前方を撮影すべく車両に固定したカ
メラと、 車両にピッチ角が生じていない状況下で該カメラによる
撮影がなされた場合に、車両から所定距離離間した位置
における道路白線又は車線が撮像画像中に占める幅を基
準幅として設定する基準幅設定手段と、 前記カメラが撮影する画像中、車両にピッチ角が生じて
いない状況下では前記白線又は車線が前記基準幅で撮像
される基準領域、及び該基準領域の上下に設定した複数
の領域において、現実に撮影された道路白線又は車線が
撮像画像中に占める幅を検出する複数水平幅検出手段
と、 該水平幅検出手段により検出した現実の幅と、前記基準
幅設定手段が設定した基準幅とに基づいて車両に生じて
いるピッチ角を検出するピッチ角検出手段とを備えるこ
とを特徴とする車両用画像センサ。
3. A camera fixed to the vehicle so as to photograph the front of the vehicle, and a road white line at a position separated from the vehicle by a predetermined distance when the image is photographed by the camera under the condition that the vehicle does not have a pitch angle. Reference width setting means for setting a width occupied by a lane in a captured image as a reference width, and in the image captured by the camera, the white line or the lane is captured with the reference width in a situation where no pitch angle is generated in the vehicle. A plurality of horizontal width detection means for detecting the width occupied by a road white line or a lane actually photographed in a captured image in a reference area and a plurality of areas set above and below the reference area; A vehicle characterized by comprising pitch angle detecting means for detecting a pitch angle occurring in the vehicle based on the detected actual width and the reference width set by the reference width setting means. Image sensor.
JP05283671A 1993-11-12 1993-11-12 Image sensors for vehicles Expired - Fee Related JP3094758B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP05283671A JP3094758B2 (en) 1993-11-12 1993-11-12 Image sensors for vehicles

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP05283671A JP3094758B2 (en) 1993-11-12 1993-11-12 Image sensors for vehicles

Publications (2)

Publication Number Publication Date
JPH07141486A true JPH07141486A (en) 1995-06-02
JP3094758B2 JP3094758B2 (en) 2000-10-03

Family

ID=17668561

Family Applications (1)

Application Number Title Priority Date Filing Date
JP05283671A Expired - Fee Related JP3094758B2 (en) 1993-11-12 1993-11-12 Image sensors for vehicles

Country Status (1)

Country Link
JP (1) JP3094758B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007240422A (en) * 2006-03-10 2007-09-20 Fujitsu Ten Ltd Depression angle calculator, depression angle calculation method, depression angle calculation program, and image processor
WO2014021421A1 (en) * 2012-08-03 2014-02-06 クラリオン株式会社 Camera parameter computation device, navigation system, and camera parameter computation method
KR20140082030A (en) * 2012-12-21 2014-07-02 주식회사 만도 Tire abnormality detecting apparatus and the method thereof

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007240422A (en) * 2006-03-10 2007-09-20 Fujitsu Ten Ltd Depression angle calculator, depression angle calculation method, depression angle calculation program, and image processor
WO2014021421A1 (en) * 2012-08-03 2014-02-06 クラリオン株式会社 Camera parameter computation device, navigation system, and camera parameter computation method
JP2014032118A (en) * 2012-08-03 2014-02-20 Clarion Co Ltd Camera parameter calculation device, navigation system, and camera parameter calculation method
CN104520675A (en) * 2012-08-03 2015-04-15 歌乐株式会社 Camera parameter computation device, navigation system, and camera parameter computation method
EP2881710A4 (en) * 2012-08-03 2016-10-12 Clarion Co Ltd Camera parameter computation device, navigation system, and camera parameter computation method
US9948853B2 (en) 2012-08-03 2018-04-17 Clarion Co., Ltd. Camera parameter calculation device, navigation system and camera parameter calculation method
KR20140082030A (en) * 2012-12-21 2014-07-02 주식회사 만도 Tire abnormality detecting apparatus and the method thereof

Also Published As

Publication number Publication date
JP3094758B2 (en) 2000-10-03

Similar Documents

Publication Publication Date Title
US7317474B2 (en) Obstacle detection apparatus and method
JPH04209100A (en) Running control apparatus
JP2002197469A (en) Device for detecting traffic lane
JP2000357233A (en) Body recognition device
JPH1040499A (en) Outside recognizing device for vehicle
JP2917681B2 (en) Road shape measurement device
JPH11296660A (en) Road white line detector
JPH1144533A (en) Preceding vehicle detector
JP3094758B2 (en) Image sensors for vehicles
JP3345995B2 (en) Road white line detector
JP3146807B2 (en) Road white line detector
JP2006153768A (en) Position detection system and its correction method
JP2004185425A (en) Lane mark recognition method and device
JPH0725286A (en) Preceding vehicle recognizing method
JPH09243326A (en) Road white line recognition system
JP2833248B2 (en) Line detector
JP2006155400A (en) Image extraction device
WO2018174123A1 (en) Object detection device, traffic management system, method and program for controlling object detection device
JP2002163641A (en) Image processor for vehicle
JP2737902B2 (en) Driving route determination processing method for image type unmanned vehicles
JPH09126759A (en) Range finding method by on-vehicle camera and range finder using the camera
JPH117534A (en) Road white line detection device
JPH01265399A (en) Road recognizing device for vehicle
JPH06119594A (en) Guide line detector
JPH065909B2 (en) Automatic tracking device in camera

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070804

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080804

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080804

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090804

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees