JPH04167007A - Line detection device - Google Patents

Line detection device

Info

Publication number
JPH04167007A
JPH04167007A JP2294774A JP29477490A JPH04167007A JP H04167007 A JPH04167007 A JP H04167007A JP 2294774 A JP2294774 A JP 2294774A JP 29477490 A JP29477490 A JP 29477490A JP H04167007 A JPH04167007 A JP H04167007A
Authority
JP
Japan
Prior art keywords
line
white line
detected
detection
value
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.)
Pending
Application number
JP2294774A
Other languages
Japanese (ja)
Inventor
Masahiro Mio
昌宏 美尾
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 JP2294774A priority Critical patent/JPH04167007A/en
Publication of JPH04167007A publication Critical patent/JPH04167007A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent a line along which this vehicle travels from being missed by estimating a line position to be detected from a past line position and selecting a line which is close to the estimated position. CONSTITUTION:An image of each time obtained by a camera 10 is processed to detect the line and at least the last line position and line immediately before the last line are stored in a line position storage means 30. Then a CPU 26 estimate the position of the line to be detected this time from the variation state of the line positions which are stored and selects the line which is the closest to the predicted position. Consequently, even when there are plural lines in the image obtained by the camera 10, the line along which this vehicle travels can accurately be selected.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、車両の自動運転等のために、道路に沿って設
けられたガイドラインを検出するライン検出装置に関す
る。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a line detection device for detecting guidelines provided along a road for automatic driving of vehicles and the like.

[従来の技術] 従来より、運転者の負担を軽くするために、各種の運転
制御装置が車両に搭載されている。この中でハンドル操
作も自動的に行う自動運転か研究されており、通常の自
動車においても自動運転ができるような機構を搭載する
ことが検討されている。
[Prior Art] Conventionally, various driving control devices have been installed in vehicles in order to reduce the burden on drivers. Among these, research is being conducted into autonomous driving, which also automatically handles steering wheel operations, and consideration is being given to equipping regular cars with mechanisms that would enable autonomous driving.

この自動運転のためには、車両の走路(道路)に対する
位置を常時把握し、車両が走路に沿って走行するように
制御しなければならない。
In order to achieve this automatic driving, it is necessary to constantly know the position of the vehicle with respect to the road (road) and control the vehicle so that it travels along the road.

そして、この走路の検出の方法として走路に沿って形成
されている白線をテレビカメラによって撮影し、この白
線の位置から車両の走路に対する位置を検出することが
提案されている。
As a method for detecting this running route, it has been proposed to photograph a white line formed along the running route using a television camera, and detecting the position of the vehicle with respect to the running route from the position of this white line.

道路には、通常センターライン、車線を分割するライン
等が設けられており、自動運転のための位置検出を、白
線検出によって行えば、道路側における設備を非常に簡
単なものとできると考えられる。
Roads usually have center lines, lane dividing lines, etc., and it is thought that if position detection for autonomous driving is performed by white line detection, the equipment on the road side can be made very simple. .

例えば、特開昭63−40913号公報には、車両に搭
載したCCDカメラを用いて、前方の白線を検出する方
法が開示されている。すなわち、この例においては、C
CDカメラによって得られた路面の輝度が所定値以上の
部分を白線と判定する。通常の道路はアスファルト等の
黒い部分に白線か形成されており、白線の部分の輝度は
その他の部分より十分大きいため、これによって白線が
検出できる。
For example, Japanese Unexamined Patent Publication No. 63-40913 discloses a method of detecting a white line in front of the vehicle using a CCD camera mounted on a vehicle. That is, in this example, C
A portion where the brightness of the road surface obtained by the CD camera is equal to or higher than a predetermined value is determined to be a white line. On ordinary roads, white lines are formed on black parts such as asphalt, and the brightness of the white line parts is sufficiently higher than other parts, so that the white lines can be detected.

[発明が解決しようとする課題] しかしながら、車両の走行においては、車両の姿勢が大
きく変化する場合もある。そして、このよな場合に、従
来の装置では、白線か視野から外れ、これを見失ってし
まう場合かある。
[Problems to be Solved by the Invention] However, when the vehicle is running, the attitude of the vehicle may change significantly. In such cases, with conventional devices, the white line may move out of the field of view and be lost.

これを解消するためには、CCDカメラの視野を広げる
ことが考えられる。しかし、視野角を広げると、複数の
車線を有する道路において、複数の白線か視野に入るこ
とになる。すなわち、−車線の幅を約3.7mとすれば
、4m幅の路面を視野とすれば2本の白線が写り、8m
幅の路面を視野とすれば3本の白線が写ることになる。
In order to solve this problem, it is conceivable to widen the field of view of the CCD camera. However, if the viewing angle is widened, multiple white lines will come into view on a road with multiple lanes. In other words, if the width of the negative lane is approximately 3.7m, two white lines will be visible if the field of view is 4m wide, and the width of the 8m lane will be approximately 3.7m.
If you look at the width of the road surface, you will see three white lines.

そこで、複数の白線の中から自車両か沿うべき白線を常
に判別することが必要となる。
Therefore, it is necessary to always determine which white line the vehicle should follow from among a plurality of white lines.

本発明は上記課題に鑑みなされたものであり、自車両の
沿うべき白線を効果的に判別できるライン検出装置を提
供することを目的とする。
The present invention has been made in view of the above problems, and it is an object of the present invention to provide a line detection device that can effectively determine the white line that the vehicle should follow.

[課題を解決するための手段] 本発明に係るライン検出装置は、所定範囲の道路の画像
を繰返し出力するカメラと、このカメラから出力される
一回毎の画像を処理しガイドラインを検出するライン検
出手段と、このライン検出手段によって検出されたライ
ン位置により内容か順次更新されるとともに少なくとも
前回前々回のライン位置を記憶するライン位置記憶手段
と、このライン位置記憶手段に記憶されている複数のラ
イン位置の変化状態から今回検出のライン位置を予測す
るライン位置T−側手段と、このライン位置予測手段に
よって得られた予測位置に最も近い検出ラインを選択す
るライン選択手段と、を釘することを特徴とする。
[Means for Solving the Problems] A line detection device according to the present invention includes a camera that repeatedly outputs images of a road in a predetermined range, and a line that processes each image output from this camera to detect a guideline. a detection means, a line position storage means whose contents are sequentially updated according to the line position detected by the line detection means and which stores at least the line position from the previous time, and a plurality of lines stored in the line position storage means. A line position T-side means for predicting the currently detected line position from the state of position change, and a line selection means for selecting the detection line closest to the predicted position obtained by this line position predicting means. Features.

[作用] 本発明に係るライン検出装置においては、そして、カメ
ラで得られた一回毎の画像を処理して、ラインを検出す
るが、ライン位置記憶手段に少なくとも前回、前々回の
ライン位置を記憶しておく。
[Function] In the line detection device according to the present invention, the line is detected by processing each image obtained by the camera, and the line position storage means stores at least the previous line position and the line position before the previous time. I'll keep it.

そして、記憶されているライン位置の変化状態から今回
検出されるラインの位置を予測し、この予測位置に最も
近いラインを選択する。
Then, the position of the currently detected line is predicted from the stored change state of the line position, and the line closest to this predicted position is selected.

従って、カメラで得られた画像中にラインが複数ある場
合においても、自車両が沿うべきラインを適確に選択す
ることができる。
Therefore, even if there are multiple lines in the image obtained by the camera, it is possible to accurately select the line that the vehicle should follow.

[実施例〕 以下、本発明に係るライン検出装置について、図面に基
づいて説明する。
[Example] Hereinafter, a line detection device according to the present invention will be described based on the drawings.

第1図は本発明に係るライン検出装置の構成を示すブロ
ック図てあり、CCDカメラ10を有している。このC
CDカメラ10はレンズ12、絞り14からなる光学系
と、−次元に配置された光電変換素子を有するCCDリ
ニアセンサ16からなっている。そして、そのCCDカ
メラ10は、車両の前方の画像を得ることかできる位置
に取り付けられ、CCDリニアセンサ16から出力され
る各光電素子毎の輝度に関する情報をシリアル信号とし
て出力する。
FIG. 1 is a block diagram showing the configuration of a line detection device according to the present invention, which includes a CCD camera 10. As shown in FIG. This C
The CD camera 10 includes an optical system including a lens 12 and an aperture 14, and a CCD linear sensor 16 having a photoelectric conversion element arranged in the negative dimension. The CCD camera 10 is mounted at a position where it can obtain an image of the front of the vehicle, and outputs information regarding the brightness of each photoelectric element output from the CCD linear sensor 16 as a serial signal.

そして、このCCDカメラ10には、白線検出ECU2
0が接続されている。この白線検出ECU20はCCD
カメラ10から人力される信号を増幅すると共に波形を
なまらせるアンプ22、AD変換器24、CPU26、
CPUの動作についてのプログラムを記憶するROM2
8、CPU26の処理の際に記憶エリアとして使用する
RAM30、入出力動作のための110部32からなっ
ている。そして、この白線検出ECU20によって検出
された白線についての情報が車両制御ECLT40に供
給され、この車両制御ECU40か車両の操舵等を制御
し、検出した白線に沿った車両の走行か行われるよう制
御する。
This CCD camera 10 includes a white line detection ECU 2.
0 is connected. This white line detection ECU 20 is a CCD
An amplifier 22 that amplifies the signal manually input from the camera 10 and blunts the waveform, an AD converter 24, a CPU 26,
ROM2 that stores programs related to CPU operation
8, a RAM 30 used as a storage area during processing by the CPU 26, and a 110 section 32 for input/output operations. Information about the white line detected by the white line detection ECU 20 is then supplied to the vehicle control ECLT 40, which controls the steering etc. of the vehicle so that the vehicle runs along the detected white line. .

次に、CCDカメラ10における白線検出の機構につい
て第2図に基づいて説明する。
Next, the white line detection mechanism in the CCD camera 10 will be explained based on FIG. 2.

CCDカメラ10は、そのレンズ12の前方L1の距離
の画像を取り込むように車両に設置されている。そして
、レンズ12の焦点距離はfてあり、レンズ12の後方
L2の距離にあるCCDリニアセンサ16において結像
するようになっている。そこで、CCDリニアセンサ1
6の横幅Wにおいて検出できる前方の画像の幅はWとな
る。
The CCD camera 10 is installed in the vehicle so as to capture an image at a distance L1 in front of the lens 12. The focal length of the lens 12 is f, and an image is formed on the CCD linear sensor 16 located at a distance L2 behind the lens 12. Therefore, CCD linear sensor 1
The width of the front image that can be detected at the width W of 6 is W.

そこで、レンズ12の前方Llにおいて、白線かその中
心線よりXずれた位置にあれば、CCDリニアセンサ1
6において、この白線が結像される位置は、一義的に決
定される。そして、このCCDリニアセンサ16の幅W
における素子数をNとし、CCDリニアセンサ16にお
ける中心からの素子数をIとすれば、白線の中心からの
距離Xは次のように示されることとなる。
Therefore, if the front Ll of the lens 12 is located at a position shifted by X from the white line or its center line, the CCD linear sensor 1
In step 6, the position where this white line is imaged is uniquely determined. The width W of this CCD linear sensor 16 is
If the number of elements in the CCD linear sensor 16 is N, and the number of elements from the center of the CCD linear sensor 16 is I, then the distance X from the center of the white line is expressed as follows.

ます、凸レンズ公式より、 1/Ll  +1/L2 −1/f であり、その倍率より、 W−w−L1/L2 である。From the convex lens formula, 1/Ll +1/L2 -1/f And from that magnification, W-w-L1/L2 It is.

このため、 W−w・ (LL +f)/f となり、 x  −(W/N)   争  (N/2−’I)とな
る。
Therefore, W−w・(LL +f)/f, and x −(W/N) conflict (N/2−′I).

そこで、白線がCCDリニアセンサ16における何番目
の素子において検出されるかを検出すれば、白線の位置
Xを検出することができる。
Therefore, by detecting which element in the CCD linear sensor 16 the white line is detected, the position X of the white line can be detected.

次に、上述のような原理を利用した、白線検出ECU2
0におけるCCDカメラ10からの信号処理(白線検出
)について説明する。
Next, we will develop a white line detection ECU 2 using the principle described above.
The signal processing (white line detection) from the CCD camera 10 in 0 will be explained.

第3図は白線検出処理の全体動作を説明するフローチャ
ートであり、まず、CCDカメラ10における露光量が
所定範囲に収まるよう露光制御を行う(Sl)。そして
、所定の露光制御が行われたCCDカメラ10からの各
素子毎の輝度信号がシリアルデータとして出ノjされる
ため、これをAD変換器24においてデジタルデータに
変換する(S2)。ここで、CCDカメラ10からのデ
ータの出力はCCDCCリニアセンサ16水平出力シフ
トレジスタに供給されるクロック比よって決定されてい
るため、このAD変換器24におけるクロック周波数も
これに同期したものとする。
FIG. 3 is a flowchart illustrating the overall operation of the white line detection process. First, exposure control is performed so that the amount of exposure in the CCD camera 10 falls within a predetermined range (Sl). Then, since the luminance signal for each element from the CCD camera 10, which has undergone predetermined exposure control, is output as serial data, this is converted into digital data by the AD converter 24 (S2). Here, since the data output from the CCD camera 10 is determined by the clock ratio supplied to the horizontal output shift register of the CCDC linear sensor 16, it is assumed that the clock frequency in the AD converter 24 is also synchronized therewith.

そこで、CCDリニアセンサ16におけるN個の各素子
において得られたそれぞれの輝度信号が、N個のデジタ
ルデータとしてAD変換器24から順次出力されること
となる。このデジタル信号はRAM30の所定の場所に
記憶される。
Therefore, the respective luminance signals obtained from each of the N elements in the CCD linear sensor 16 are sequentially output from the AD converter 24 as N pieces of digital data. This digital signal is stored at a predetermined location in RAM 30.

そして、このようにして得られたCCDカメラ10にお
ける輝度信号の最大値検出及び平均値計算を行い、この
最大値及び平均値に基づいてしきい値を計算する(S3
)。
Then, maximum value detection and average value calculation of the luminance signal in the CCD camera 10 obtained in this way are performed, and a threshold value is calculated based on this maximum value and average value (S3
).

次に、得られたしきい値を利用してAD変換して得られ
たN個のデジタルデータをそれぞれ二値化するとともに
、この二値化データの変化状態より、白線の左右エツジ
部を検出する(S4)。そして、検出された左右エツジ
の数から画像端部に白線がかかった場合を考慮したエツ
ジ補正を行う(S5)。
Next, each of the N pieces of digital data obtained by AD conversion is binarized using the obtained threshold value, and the left and right edges of the white line are detected from the change state of this binarized data. (S4). Then, edge correction is performed based on the number of detected left and right edges, taking into account the case where a white line appears at the edge of the image (S5).

このようにして、複数の白線エツジか検出され、この中
から自車両か沿うべき白線を検出するか、このとき少な
くとも前回、前々回の白線位置の変化状態から今回の白
線位置を予測し、予測位置に最も近いものを選択する。
In this way, multiple white line edges are detected, and the white line that the own vehicle should follow is detected from among these, or at least the current white line position is predicted from the change state of the white line position from the previous time or the time before the previous time, and the predicted position is Select the closest one.

そして、選択された白線の座標を出力する(S6)。Then, the coordinates of the selected white line are output (S6).

この白線の座標は上述の説明の通り、白線の中央からの
距離に対応しており、このXを車両制御ECU40に供
給することにより、車両制御ECU40がこのXに基づ
いて操舵制御し、車線(白線)に沿った車両走行が達成
される。
As explained above, the coordinates of this white line correspond to the distance from the center of the white line, and by supplying this X to the vehicle control ECU 40, the vehicle control ECU 40 performs steering control based on this X, and the lane ( Vehicle running along the white line) is achieved.

このようにして、本実施例によれば、複数検出された白
線位置から自車両の沿うべき白線を予測、選択するため
、車両姿勢が大きく変化した場合においても適確なライ
ン白線検出を行うことができる。
In this way, according to the present embodiment, since the white line that the own vehicle should follow is predicted and selected from a plurality of detected white line positions, accurate line white line detection can be performed even when the vehicle attitude changes significantly. I can do it.

しきい値算出 本実施例におけるしきい値算出の動作について、第5図
に基づいて説明する。
Threshold Calculation The operation of threshold calculation in this embodiment will be explained based on FIG.

ます、初期設定として3つの変数である平均値avb、
最大値maxd、AD変換データカウンタadcoun
tの3つの変数をOにリセットすると共に、AD変換し
て得られた輝度データのRA M 30における先頭ア
ドレス(eoooh)を変数Aにセットする(S 10
1〜5103)。なお、ここでセットされた各変数の値
は、RAM30において記憶される。
As an initial setting, the average value avb of three variables,
Maximum value maxd, AD conversion data counter adcount
The three variables of t are reset to O, and the start address (eoooh) in RAM 30 of the luminance data obtained by AD conversion is set to variable A (S10
1-5103). Note that the values of each variable set here are stored in the RAM 30.

次に、adcoun tが400h (1024)に至
ったか否かを判定する(S 104)。これは、CCD
リニアセンサ16における有効な素子数(幅Wの範囲の
素子数)、すなわち−度の撮影時n1AD変換器24か
ら出力されるデータの数に対応している。そこで、ad
coun tが1024に至ったことで、全データの処
理が終了したことを判定できる。
Next, it is determined whether adcount has reached 400h (1024) (S104). This is a CCD
This corresponds to the number of effective elements in the linear sensor 16 (the number of elements within the range of width W), that is, the number of data output from the n1 AD converter 24 when photographing at -degrees. Therefore, ad
When count reaches 1024, it can be determined that processing of all data has been completed.

adcoun tが1024以下であった場合には、デ
ータの処理がまだ終了していないため、変数bc、ax
、upに次のようなデータを人力する(S105)。
If adcount is less than 1024, the data processing has not finished yet, so the variables bc, ax
, upload the following data manually (S105).

c−A Bz−adcount Ip−wbc+ax ここで、変数upにはCCDリニアセンサ16で得られ
た1024の輝度信号が格納されるRAM30における
アドレスか順次指定されることとなる。そして、この変
数upで指定されたアドレスのデータを読み出し、これ
を変数DATAの値として入力する(S 105)。
c-A Bz-adcount Ip-wbc+ax Here, the variable up is sequentially designated as an address in the RAM 30 where 1024 luminance signals obtained by the CCD linear sensor 16 are stored. Then, the data at the address specified by this variable up is read and inputted as the value of the variable DATA (S105).

次に、最大値の検出のために、DATAが最大値max
dより小さいか否かを判定する(S106)。そして、
DATAがmaxdより大きい場合には、これを最大値
とすべきであり、変数maxdにDATAを入力して、
この値を更新する(5107)。一方、DATAが最大
でない場合には、最大値maxdを更新する必要はない
ため、5107を通らずに、次の処理に移る。
Next, to detect the maximum value, DATA is set to the maximum value max
It is determined whether or not it is smaller than d (S106). and,
If DATA is greater than maxd, this should be the maximum value, input DATA into the variable maxd,
This value is updated (5107). On the other hand, if DATA is not the maximum, there is no need to update the maximum value maxd, so the process skips through 5107 and moves to the next process.

次に、平均値avb算出のために、DATAの値をデー
タ数1024で除算した値を順次加算する(3108)
 。そして、adcountに1を加算しく5109)
 、5104に戻る。
Next, in order to calculate the average value avb, the values obtained by dividing the DATA value by the number of data 1024 are sequentially added (3108)
. Then, add 1 to adcount (5109)
, returns to 5104.

このため、最大値、平均値の算出(S 107゜510
8)をデータ数か1024に至るまで繰り返こととなり
、全て(1024個)のデータについての処理が終わっ
た場合に、5102においてYESとなり、しきい値t
hj!0を次式によって算出する(S 110)。
Therefore, calculation of maximum value and average value (S 107°510
8) will be repeated until the number of data reaches 1024, and when all (1024) data have been processed, the answer will be YES in 5102, and the threshold value t will be reached.
hj! 0 is calculated using the following formula (S110).

thJjO−(avb十maxd)/2このようにして
、本実施例においては、CCDリニアセンサ16によっ
て得られた全ての素子におけるデータの平均値と最大値
の中間の値がしきい値th1oとなる。
thJjO-(avb+maxd)/2 In this way, in this embodiment, the intermediate value between the average value and the maximum value of data for all elements obtained by the CCD linear sensor 16 becomes the threshold value th1o. .

二値化、エツジ検出処理 次に、第5図に基づいて二値化処理、エツジ検出処理に
ついて説明する。
Binarization and Edge Detection Process Next, the binarization process and edge detection process will be explained based on FIG.

まず、次のように各変数に初期値をセットする。First, set initial values for each variable as follows.

(5201)。(5201).

白線部継続カウント許可フラグcokl=0゜路面部継
続カウント許可フラグcok2−0.白線継続カウンタ
fcl−0.路面継続カウンタfc2−0.白線左エツ
ジ候補座標wn01−0゜白線布エツジ候補座標wn0
2=o、白線検出フラグfwl−0.白線右エツジカウ
ンタwcl−O1路面検出フラグfw2−1.白線左エ
ツジカウンタwc2=0 また、上述のしきい値算出の場合と同様に、変数Aに輝
度データの先頭アドレス(eoooh)を入力しく52
02) 、1024個のデータのナンバーを表すAD変
換データカウンタadcountを0にセットする(S
 2 Q 3)。
White line section continuous count permission flag cokl=0°Road surface section continuous count permission flag cok2-0. White line continuation counter fcl-0. Road surface continuation counter fc2-0. White line left edge candidate coordinates wn01-0° White line cloth edge candidate coordinates wn0
2=o, white line detection flag fwl-0. White line right edge counter wcl-O1 road surface detection flag fw2-1. White line left edge counter wc2 = 0 Also, as in the case of threshold calculation described above, input the start address (eoooh) of the luminance data to variable A.
02) Set the AD conversion data counter adcount, which represents 1024 data numbers, to 0 (S
2 Q 3).

まず、adcountが1024 (400h)に至り
全データの処理が終了したかを判定する(S204)。
First, it is determined whether adcount has reached 1024 (400h) and processing of all data has been completed (S204).

そして、処理が終了していない場合には、変数bc、a
x、upにA、adcount、bc+axの値を代入
するとともに、upで決定されるアドレスの輝度データ
の値を変数DATAに入力する(S 205)。
Then, if the processing is not completed, variables bc, a
The values of A, adcount, and bc+ax are assigned to x and up, and the value of the luminance data at the address determined by up is input to variable DATA (S205).

次に、二値化処理を行うが、まず変数DATAとしきい
値ttBを比較する(S206)。
Next, binarization processing is performed, but first the variable DATA is compared with the threshold value ttB (S206).

ここて、このttBは上述の8110で算出されたt 
h、JOとは異なる。すなわち、このしきい値trBは
今回の処理において算出されたしきい値ではなく前回以
前の処理において算出されたものである。
Here, this ttB is the t calculated in 8110 above.
h, different from JO. That is, this threshold value trB is not the threshold value calculated in the current process, but the threshold value calculated in the previous process.

そして、DATA≦ttBの場合には路面部であるため
、白線部の継続検出数を表わす変数fc1−0.白線左
エツジの検出座標を示す変数wn01−0.路面検出を
示す変数f w 2−1にセットする(S 207)。
If DATA≦ttB, it is a road surface area, so variables fc1-0. Variable wn01-0. that indicates the detected coordinates of the left edge of the white line. A variable f w 2-1 indicating road surface detection is set (S 207).

次に、fwl−1か否かを判定する(S208)。f 
w 1は5201において初期設定としてはOにセット
されており、白線を検出した際、すなわちDATA>t
 hfの場合に1にセットされるものである。従って、
8206においてデータが≦thJ!であり、5208
においてfwlが1であるということは、白線の右エツ
ジを検出したことを意味している。そこで、5208に
おいてfwl−1であれば、路面の検出が検出されたた
め、fwl−0とするとともに、右エツジの検出位置を
示す変数wn02−adcoun t、路面継続カウン
ト許可フラグcok2−1とする(S209)。
Next, it is determined whether it is fwl-1 (S208). f
w1 is initially set to O in 5201, and when a white line is detected, that is, DATA>t
It is set to 1 in the case of hf. Therefore,
At 8206, the data is ≦thJ! and 5208
The fact that fwl is 1 means that the right edge of the white line has been detected. Therefore, if it is fwl-1 in 5208, the road surface is detected, so it is set to fwl-0, and the variable wn02-adcount indicating the detection position of the right edge and the road surface continuation count permission flag cok2-1 are set ( S209).

ここで、エツジを検出した場合にそのadc。Here, if an edge is detected, its adc.

untの値をそのままエツジ位置として記憶してもよい
か、この例においては、右エツジを検出した後、次のデ
ータも白線でない場合にのみその位置を右エツジと判定
し、誤判定の発生を抑制する。
Is it possible to store the value of unt as it is as the edge position? In this example, after detecting the right edge, the position is determined to be the right edge only if the next data is also not a white line, to prevent the occurrence of misjudgment. suppress.

このために、路面継続カウント許可フラグcok2−1
としている。
For this purpose, the road surface continuous count permission flag cok2-1
It is said that

次に、路面継続許可フラグcok2が1か否かを判定す
る(S 210)。cok2が1であった場合には、路
面継続カウンタfC2に1を加算しく5211) 、c
ok2が1でなかった場合には、この加算は行わず、次
にfC2が2であるか否かを判定する(S 212)。
Next, it is determined whether the road surface continuation permission flag cok2 is 1 (S210). If cok2 is 1, add 1 to the road surface continuation counter fC2 (5211), c
If ok2 is not 1, this addition is not performed and it is then determined whether fC2 is 2 (S212).

このfC2は5211を2回続けて通った場合、すな−
わちしきい値th1以下のデータが2つ続いた場合に2
となっている。そこで、fc2か2である場合には、右
エツジカウンタWC2で特定される白線部エツジ座標を
示す配列変数Wn2[WC2]に上述のS’209でセ
ットされた白線部エツジ候補座標wn02の値を記憶す
る。また、変数cok2.fc2を0にリセットすると
共に、右エツジカウンタWC2に1を加算する。従って
、次回の右エツジ検出の場合には、wc2が1多い数と
なっている。このため、配列変数wn2に次の右エツジ
の位置が記憶できることとなる。5212においてfc
2く2の場合及び8213の処理をおえだ場合には、右
エツジについての処理が終了したため、adcoun 
tに1を加算しく5214) 、5204に戻る。
If this fC2 passes through 5211 twice in a row, it will be -
In other words, if two consecutive pieces of data are equal to or less than the threshold th1, 2
It becomes. Therefore, if it is fc2 or 2, the value of the white line edge candidate coordinate wn02 set in S'209 above is set to the array variable Wn2[WC2] indicating the white line edge coordinate specified by the right edge counter WC2. Remember. Also, the variable cok2. At the same time as resetting fc2 to 0, 1 is added to the right edge counter WC2. Therefore, in the case of the next right edge detection, wc2 is increased by one. Therefore, the position of the next right edge can be stored in the array variable wn2. fc at 5212
In the case of 2 x 2 and when the process of 8213 is completed, the process for the right edge has been completed, so the adcount
Add 1 to t (5214) and return to 5204.

一方、5206においてDATA>t Jと判定され、
白線部分を検出した場合には、次のようにして左エツジ
の検出を行う。
On the other hand, in 5206, it is determined that DATA>t J,
When the white line portion is detected, the left edge is detected as follows.

まず、路面継続カウンタfc2.左エツジ候補座標wn
02を0にリセットし、白線検出フラグf w 1を1
にセットする(S 215)。すなわち、fc2は路面
のデータが続いた数を示す変数であるため、白線につい
てのデータか検出した場合に0にリセットする。また、
w n O2は右エツジの候補座標についての変数であ
るが、左エツジの検出のループに入ったためここでリセ
ットする。さらに、fwlは白線部を検出したことを示
すフラグであり、ここでfw−1とする。
First, the road surface continuation counter fc2. Left edge candidate coordinates wn
02 to 0, white line detection flag f w 1 to 1
(S215). That is, since fc2 is a variable indicating the number of consecutive road surface data, it is reset to 0 when data regarding a white line is detected. Also,
w n O2 is a variable regarding the candidate coordinates of the right edge, but it is reset here because the loop has entered the left edge detection loop. Further, fwl is a flag indicating that a white line portion has been detected, and is designated as fw-1 here.

次にf w 2−1か否かを判定する(S 216)。Next, it is determined whether fw2-1 or not (S216).

このfw2は、路面を検出した時に1にセットされるも
のであるため、ここにおいてf w 2−1であること
により、路面より白線に移ったこと、すなわち左エツジ
を認識する。そして、路面を検出したことを示す変数f
w2をOにリセットし、左エツジ候補座標wn01にa
dcoun tの値を入力し、左エツジ検出カウンタc
oklを1にセットする(S 217)。
Since this fw2 is set to 1 when the road surface is detected, by being f w 2-1 here, it is recognized that the vehicle has moved from the road surface to the white line, that is, a left edge. Then, a variable f indicating that the road surface has been detected
Reset w2 to O and set a to the left edge candidate coordinate wn01.
Enter the value of dcount t and set the left edge detection counter c.
okl is set to 1 (S217).

そして、次に白線継続カウント許可フラグC0k1及び
白線継続カウンタfclを用いて、白線部が2つ続いて
右エツジを検出されたが否かを判定する。
Then, using the white line continuation count permission flag C0k1 and the white line continuation counter fcl, it is determined whether or not the right edge of two consecutive white line parts has been detected.

このために、まずcoklが1であるがを判定する(5
218)、そして、coklか1であれば、左エツジを
検出したしたため、左エツジ検出時の白線検出数を示す
左エツジカウンタfclに1を加算する(5219)。
For this purpose, first determine whether cokl is 1 (5
218), and if cokl is 1, it means that a left edge has been detected, and 1 is added to the left edge counter fcl, which indicates the number of white lines detected at the time of left edge detection (5219).

次に、fclが2であるか否かを判定し、2であれば、
路面から白線に移り、白線のデータが2つ続いたことを
意味しているた約、5217で入力された候補座標wn
01の値をwclで特定される配列変数Wn12[wn
O1]に入力する。これによって、検出された白線布エ
ツジの位置が記憶される。また、この入力がなされたた
め、フラグcokl=1.fc1−0にリセットすると
共に、右エツジの数を示す変数wclに1を加算する(
S221)。そして、adcoun tに1を加算しく
S 214゜5204)に戻る。
Next, determine whether fcl is 2 or not, and if it is 2,
Candidate coordinates wn entered in 5217, which means that there are two consecutive white line data after moving from the road surface to a white line.
The value of 01 is set to the array variable Wn12[wn
O1]. As a result, the position of the detected white line cloth edge is stored. Also, since this input was made, the flag cokl=1. At the same time as resetting fc1-0, add 1 to the variable wcl indicating the number of right edges (
S221). Then, add 1 to adcount and return to S 214° 5204).

このような動作adcountm1024まで繰り返し
、右エツジ及び左エツジの位置を検出した数だけ記憶す
ることができる。また、その検出した数は、WCI、w
c2に記憶される。そして、5204においてadco
untが10247:至ったことを判定した場合には、
全データについての白線エツジ検出か終了したため、二
値化、白線エツジ検出の動作を終了し、検出エツジ補正
の処理を行う。
This operation can be repeated up to adcountm1024 to store as many right edge and left edge positions as detected. In addition, the detected number is WCI, w
It is stored in c2. and in 5204 adco
If it is determined that unt has reached 10247:
Since white line edge detection has been completed for all data, the binarization and white line edge detection operations are completed, and detected edge correction processing is performed.

検出エツジ補正 次に、第6図に基づいて、検出エツジ補正について説明
する。
Detection Edge Correction Next, detection edge correction will be explained based on FIG.

上述のようにして、左右エツジの位置を配列変数wnl
 [wcl]  ・wn2 [wc2]に入力した場合
には、wcl、wc2より1を減算する。
As described above, the positions of the left and right edges are set in the array variable wnl.
[wcl] - wn2 When input to [wc2], subtract 1 from wcl and wc2.

これは、上述のエツジ検出の処理の際にw c l 。This is done during the edge detection process described above.

wc2に1を加算している(S213.5221)ため
、これを実際に配列変数に使用されたwcl。
Since 1 is added to wc2 (S213.5221), wcl is actually used as an array variable.

wc2にその値を戻すためである(S401)。This is to return the value to wc2 (S401).

そしてwclとwc2を比較する(5402)。Then, wcl and wc2 are compared (5402).

wcl<wc2の場合には、左エツジの数が右エツジの
数より小さいことを意味しており、カメラの画像の左端
に白線がかかつていることを意味している。このため、
この左端に左エツジを挿入することで、画面の左端にか
かった白線を認識することができる。
If wcl<wc2, it means that the number of left edges is smaller than the number of right edges, and it means that a white line is over the left edge of the camera image. For this reason,
By inserting a left edge at this left edge, it is possible to recognize the white line that spans the left edge of the screen.

そこで、変数jにwclの値を代入しく8403)、こ
のjの値を1と比較する(5404)。
Therefore, the value of wcl is assigned to the variable j (8403), and this value of j is compared with 1 (5404).

そして、」〉1の場合には、変数aXにjの値を代入し
、このaXによって特定される配列変数wnl[axコ
の値を変数upに代入する(S405)。次に、変数a
Xにj十1を代入し、このaXによって特定される配列
変数wnl[ax]に上述の8405で得られた変数u
pの値を人力する(S406)。これによってwnl[
jコの値がwnl [j+1]の値に変換される。そし
て、jの値を1減算しく5407) 、5404に戻る
Then, in the case of ``>1, the value of j is assigned to the variable aX, and the value of the array variable wnl[ax specified by this aX is assigned to the variable up (S405). Next, variable a
Substitute j11 for X, and set the variable u obtained in 8405 above to the array variable wnl[ax] specified by this aX.
The value of p is manually calculated (S406). This allows wnl[
The value of j is converted to the value of wnl[j+1]. Then, the value of j is subtracted by 1 (5407) and the process returns to 5404.

このようにしてjが1になるまで、この処理を繰り返す
ため、配列変数wn1 [wcl]に入力されていた値
がそれぞれw、n 1 [wc 1 + 11に変換さ
れる。すなわち、wnlの値としてn個の値があり、こ
れがwn 1 [11〜wn 1 [nコの値として記
憶されていた場合、この処理によりWnl [2] 〜
wnl [n+1]の値に変換される。
In this way, this process is repeated until j becomes 1, so the values input to the array variable wn1 [wcl] are converted to w and n 1 [wc 1 + 11, respectively. In other words, if there are n values as the value of wnl and these are stored as values of wn 1 [11 to wn 1 [n], this process will result in Wnl [2] to
wnl is converted to the value of [n+1].

次に、wnlrllにOの値を代入する(S407)。Next, the value O is assigned to wnlrll (S407).

これによって配列変数wnlの値として1つ強制的に挿
入され、左エツジが検出できなかった場合にも、これか
挿入される。
As a result, one value is forcibly inserted as the value of the array variable wnl, and even if the left edge cannot be detected, this one is also inserted.

一方、5402において、wcl≧WC2であった場合
には、右エツジが欠けているか、両者か同数である。そ
こで、次にwc2とwclを比較する(5409)、こ
こで、WC2≧Wc1であった場合には、両者が等しい
ことを意味しており、補正処理は不要である。
On the other hand, in 5402, if wcl≧WC2, either the right edge is missing or the number of both edges is the same. Therefore, next, wc2 and wcl are compared (5409). Here, if WC2≧Wc1, it means that they are equal, and no correction processing is necessary.

一方、wc2の方がwclより小さかった場合には、右
エツジ挿入の補正を行わねばならない。
On the other hand, if wc2 is smaller than wcl, it is necessary to correct the right edge insertion.

そこで、wc2に1を加算し、このwc2によって特定
される配列変数wn2[wc2]に1023を強制挿入
する。これによって右エツジとして、視野の右端の値が
挿入されることとなる。
Therefore, 1 is added to wc2, and 1023 is forcibly inserted into the array variable wn2[wc2] specified by this wc2. As a result, the value at the right end of the field of view is inserted as the right edge.

このようにして、左エツジが欠けた場合には、カメラ視
野の左端を左エツジの値として入力し、ラインが右端に
かかり右エツジが欠けた場合には、カメラ視野の右端で
ある1023の値が右エツジの位置として入力される。
In this way, if the left edge is missing, input the left edge of the camera's field of view as the value of the left edge, and if the line reaches the right edge and the right edge is missing, the value is 1023, which is the right edge of the camera's field of view. is input as the right edge position.

白線座標出力・予M1値算川 次に、白線座標の出力及び次回の白線子#jについて第
7図に基づいて説明する。
White Line Coordinate Output/Preliminary M1 Value Calculation Next, the output of white line coordinates and the next white line element #j will be explained based on FIG. 7.

上述のようにしてエツジ検出ができた場合には、まずw
cl又は及びWC2の両方が0か否かを判定する(S3
01)、このwcl及びWC2は白線位置検出の数を表
すものであり、両者とも0であれば、白線が検出てきな
かったことを示している。そこで、この場合には、エラ
ーコードである256 (80h)をシリアル出力(S
OUT)して(S302)、処理を終了する。このため
、この場合には、しきい値ttBの更新は行われず、次
の処理ループにおいても今回の利用されたしきい値を利
用した二値化が行われる。
If the edge can be detected as described above, first
Determine whether both cl or and WC2 are 0 (S3
01), wcl and WC2 represent the number of white line position detections, and if both are 0, it indicates that no white line has been detected. Therefore, in this case, the error code 256 (80h) is output serially (S
OUT) (S302), and the process ends. Therefore, in this case, the threshold value ttB is not updated, and binarization is performed using the currently used threshold value in the next processing loop as well.

次に、wclとWC2を比較する(S 303)。Next, wcl and WC2 are compared (S303).

そして、両者が等しくない場合には、右エツジの数と左
エツジの数が相違しており、白線が正確に検出されなか
ったのであり、5302に進む。
If the two are not equal, the number of right edges and the number of left edges are different, and the white line was not detected accurately, and the process advances to step 5302.

一方、wcl−wc2であった場合には、白線検出が正
常に行われたものであり、この時の白線位置座標を次の
ようにして出力する。まず何番目の白線であるかを示す
変数nn−1にセットしく5304)、このnnと検出
された白線の数Wc1とを比較する(S 305)。
On the other hand, if it is wcl-wc2, the white line detection has been performed normally, and the white line position coordinates at this time are output as follows. First, a variable nn-1 indicating the number of white lines is set (5304), and this nn is compared with the number Wc1 of detected white lines (S305).

nnかwc1以下であれば、白線の左右エツジ座標より
白線の中央位置Wを次式によって算出する(S 306
)。
If it is less than nn or wc1, the center position W of the white line is calculated from the left and right edge coordinates of the white line using the following formula (S 306
).

w−(wnl  [nnl 十wn2 [nnl )/
2次に、算出された白線位置Wが所定の範囲内にあるか
否かを判定する。すなわち、前回以前の処理ループにお
いて算出され、記憶されている予測白線位置wJノに対
しある程度の幅を持たせたWJ!!±αの範囲内にある
かを判定する。(S307)。このαは通常の車線間隔
の1/2以下とするとよい。
w-(wnl [nnl tenwn2 [nnl)/
Second, it is determined whether the calculated white line position W is within a predetermined range. That is, WJ! has a certain degree of width with respect to the predicted white line position wJ calculated and stored in the previous processing loop! ! Determine whether it is within the range of ±α. (S307). This α is preferably set to 1/2 or less of the normal lane spacing.

この判定により範囲外であれば、n n l:: 1を
加算して(S30g) 、5305に戻り、nnがWC
lに等しくなるまで、これを繰り返す。
If this judgment indicates that it is outside the range, n n l:: 1 is added (S30g), the process returns to 5305, and nn is determined as WC.
Repeat this until it is equal to l.

一方、Wが所定の範囲内(±α)にあれば、このWが求
めたい白線位置であるため、Wを出力する(S309)
、そして、wJ!0. wJ!1. wj!として、前
々回、前回、今回の値の入れ替えを行う(S 310)
On the other hand, if W is within the predetermined range (±α), this W is the desired white line position, so W is output (S309)
, and wJ! 0. wJ! 1. wj! , the values of the previous time, last time, and current time are exchanged (S 310).
.

wj!O−w、jl wJ71−wJ W1■W このようにして、データの入れ替えが完了した場合には
、入れ替えられたデータに基づいて新しい予測値WJ1
1を算出し、次回の予測のために記憶する(S311)
wj! O-w, jl wJ71-wJ W1■W In this way, when data replacement is completed, a new predicted value WJ1 is calculated based on the replaced data.
1 is calculated and stored for the next prediction (S311)
.

wJlJl−3(wJ−wj!1) +wj!0ここで
、この式はについて、第8図(A)。
wJlJl-3 (wJ-wj!1) +wj! 0 Here, this formula is for FIG. 8(A).

(B)に基づいて説明する。The explanation will be based on (B).

白線検出ECU20における1回の処理ルーチンに要す
る時間をΔtとし、横軸に時間、縦軸にCCDカメラ1
0によって検出した白線位置をとる。そして、第8図(
A)に示すように車両が左にカーブした場合について考
える。
The time required for one processing routine in the white line detection ECU 20 is Δt, the horizontal axis is time, and the vertical axis is CCD camera 1.
The white line position detected by 0 is taken. And Figure 8 (
Consider the case where the vehicle curves to the left as shown in A).

現在位置wj!、前回位置W!!1、前々回位置W10
であり、前々回位置−前回位置の差Δ1、前ロー今回位
置の差Δ2、今回−次回の予測される差Δ3とすると、
Δ2→Δ3の変化量は、Δ1−Δ2の変化量と同一であ
ると推定するのがよいと考えられる。すなわち、処理サ
イクルΔtは微小であり、時間Δtの前後においては、
操舵量はほぼ同一とおいもよいと考えられる。そして、
操舵量が同一であれば、白線検出位置の変化量は同一だ
からである。このため、第8図(B)に示すように、横
軸に時間を取り縦軸に差Δ1〜Δ3をとれば、直線Δ1
とΔ2を結ぶ直線上にΔ3が位置すると推定されること
になる。
Current location wj! , Previous position W! ! 1. Position W10 before last
, and if the difference between the position before the previous time and the previous time is Δ1, the difference between the previous low and current position is Δ2, and the predicted difference between this time and the next time is Δ3,
It is considered best to estimate that the amount of change from Δ2→Δ3 is the same as the amount of change from Δ1−Δ2. That is, the processing cycle Δt is minute, and before and after the time Δt,
It is considered that the amount of steering is almost the same. and,
This is because if the steering amount is the same, the amount of change in the white line detection position is the same. Therefore, as shown in FIG. 8(B), if time is plotted on the horizontal axis and differences Δ1 to Δ3 are plotted on the vertical axis, then the straight line Δ1
It is estimated that Δ3 is located on the straight line connecting Δ2 and Δ3.

従って、Δ3は次のように表される。Therefore, Δ3 is expressed as follows.

Δ3−((Δ2−Δ1)/Δt) ・Δを十Δ2■Δ2
−Δ1+Δ2 そこで、wJlJlは次のように表され、この式を利用
して、Wleを算出する(S311)。
Δ3-((Δ2-Δ1)/Δt) ・Δ is ten Δ2 ■ Δ2
-Δ1+Δ2 Therefore, wJlJl is expressed as follows, and Wle is calculated using this formula (S311).

wJlJl−wjj+Δ3 = w Jl + 2・Δ2−Δ1 −wJ!+2 (w!!−w、el) −(w j l −w、l O) −3(wj!−wl! 1)  +wj!0このように
して、次回の処理ループにおいて用いる予測白線位置W
1ノを算出することができ、これを利用して、白線の選
択をすることかできるため、常に正確な白線位置検出を
行うことかできる。
wJlJl−wjj+Δ3=wJl+2・Δ2−Δ1−wJ! +2 (w!!-w, el) -(w j l -w, l O) -3 (wj!-wl! 1) +wj! 0 In this way, the predicted white line position W used in the next processing loop is
1 can be calculated and can be used to select the white line, so accurate white line position detection can be performed at all times.

また、ライン検出装置の動作開始時には、複数写った白
線の中から自車両が沿うべき白線を選択しなければなら
ない。そこで、ライン検出装置の動作開始時の初期値と
して、wj! −wJ! 1−wj!0−CCDリニア
センサ16の中心座標としておき、動作開始の指示をド
ライバからうけたとき(白線検出による自動走行の指示
をうけたとき)、CCDリニアセンサ16の中央部付近
に写った白線を自軍の沿うべき白線として学習する。通
常の場合、自動走行の開始を指示するのは直線路を走行
している場合が多いため、自軍の沿うべき白線はCCD
リニアセンサの中央部に写っていると考えられるからで
ある。なお、操舵角センサからの信号等により、直進し
ている状態を超重し、その状態において白線位置を学習
するようにしてもよい。
Furthermore, when the line detection device starts operating, it is necessary to select a white line for the vehicle to follow from among a plurality of white lines. Therefore, wj! is the initial value when the line detection device starts operating. -wJ! 1-wj! 0 - Set as the center coordinate of the CCD linear sensor 16, and when receiving an instruction from the driver to start operation (when receiving an instruction for automatic driving by white line detection), the white line reflected near the center of the CCD linear sensor 16 should be set by the military. Learn as a white line to follow. Normally, the command to start automatic driving is often when driving on a straight road, so the white line that your troops should follow is the CCD.
This is because it is thought that the image appears in the center of the linear sensor. Note that the state in which the vehicle is moving straight may be overridden by a signal from the steering angle sensor, and the white line position may be learned in that state.

ここで、このような白線検出位置の予測を行った場合に
状態について第9図(A)、  (B)に基づいて説明
する。ここにおいて、実際の道路においては、車両が走
行する位置は2つの白線で挟まれた車線内であり、2つ
の白線を検出してその中を走行するように制御するのか
好ましい。このため、第9図の例では、2つの白線を認
識している。
Here, the state when such a white line detection position is predicted will be explained based on FIGS. 9(A) and 9(B). Here, on an actual road, the vehicle travels within a lane between two white lines, and it is preferable to detect the two white lines and control the vehicle to drive within them. Therefore, in the example of FIG. 9, two white lines are recognized.

なお、上述のフローチャートでは、1つの白線を予測検
出することのみ述べたが、同一の手法にて、2つの白線
検出に容易に拡張することかできる。
In addition, in the above-mentioned flowchart, only the predictive detection of one white line was described, but the same method can be easily extended to the detection of two white lines.

第9図(B)は、本発明の装置を用いて、シミュレーシ
ョンした結果であり、CCDリニアセンサ16に3車線
(白線4本の白線)が写っており、車両が正弦波状に進
んだ時の自車線(2本の白線の中央位置)の推定位置と
その推定位置から見つけた実車線位置(2本の白線の中
央位置)をプロットしたものである。
FIG. 9(B) shows the results of a simulation using the device of the present invention. Three lanes (four white lines) are shown on the CCD linear sensor 16, and the vehicle moves in a sinusoidal manner. This is a plot of the estimated position of the own lane (the center position of the two white lines) and the actual lane position (the center position of the two white lines) found from the estimated position.

まず、第9図(A)において自車の前方にある白線の中
から中央付近に位置する2本の白線を間を自車線として
認識する(ロックアツプ)。そして、その後は今回、前
回、前々回の白線位置から次回の白線位置WJIj!を
上述のようにして算出する。
First, in FIG. 9(A), two white lines located near the center of the white lines in front of the own vehicle are recognized as the own lane (lock-up). And after that, the next white line position WJIj from this time, last time, and the time before last! is calculated as described above.

このようにして推定した値は、第9図(B)に示すよう
に、実車線位置を非常に近く、ライン検出装置において
、正しい白線(車線)を選択できることが理解される。
As shown in FIG. 9(B), the estimated value is very close to the actual lane position, and it is understood that the line detection device can select the correct white line (lane).

なお、カーブによっては自車線をなす白線の1線のみし
か検出できない。しかし、車線幅は一定であるため、片
側の白線から車線を推定してもかなりよい精度で、車線
位置(白線位置)の推定が行えることが理解される。
Note that depending on the curve, only one white line forming the vehicle's own lane can be detected. However, since the lane width is constant, it is understood that the lane position (white line position) can be estimated with fairly good accuracy even if the lane is estimated from the white line on one side.

なお、前々回以前の履歴も考慮して、Δ3を予測すれば
、第8図CB)に示すような直線ではなくなり、その推
定の方法が複雑とはなるが、白線検出の確度を更に上昇
することができる。
If Δ3 is predicted by taking into account the history before the previous time, it will no longer be a straight line as shown in Figure 8 CB), and although the estimation method will be complicated, it will further increase the accuracy of white line detection. I can do it.

そして、しきい値thj!に今回算出したしきい値t 
hJ!0を入力して値を更新する(S 312)。
And threshold thj! The threshold value t calculated this time is
hJ! Enter 0 to update the value (S312).

このようにしきい値thJlを更新することにより、し
きい値の時間的な遅れを最小限に抑制できる。
By updating the threshold value thJl in this manner, the time delay of the threshold value can be suppressed to a minimum.

そして、白線かない場合に算出された異常なしきい値は
排除することができる。従って、路面の状態に応じてし
きい値を変更できるとともに、白線がなしの判定も正確
に行うことができる。
Then, abnormal threshold values calculated when there is no white line can be eliminated. Therefore, the threshold value can be changed depending on the condition of the road surface, and it is also possible to accurately determine whether there is a white line.

[発明の効果コ 以上説明したように、本発明に係るライン検出装置によ
れば、過去のライン位置から、これから検出されるであ
ろうライン位置を推定し、その推定位置に近いラインを
選択するため、自車両が沿うべきラインを見失うことを
防止することができる。このため、精度のよい自動運転
を達成することができる。
[Effects of the Invention] As explained above, according to the line detection device according to the present invention, the line position that will be detected in the future is estimated from the past line position, and a line close to the estimated position is selected. Therefore, it is possible to prevent the vehicle from losing sight of the line it should follow. Therefore, highly accurate automatic operation can be achieved.

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

第1図は本発明に係るライン検出装置の一実施例を示す
構成ブロック図、 第2図はCODカメラにおける位置検出を説明するため
の説明図、 第3図は白線検出ECUにおける処理動作を説明するた
めのフローチャート、 第4図はしきい値計算の動作を示すフローチャート、 第5図はエツジ検出、二値化処理の動作を示すフローチ
ャート、 第6図はエツジ補正の動作を示すフローチャート 第7図は白線座標出力、白線位置予測の動作を示すフロ
ーチャート、 第8図は白線位置予測の手法を示す説明図、第9図は白
線位置予測の例を示す説明図である。 10 ・・・ CCDカメラ 20 ・・・ 白線検出ECU 24 ・・・ AD変換器 26 ・・・ CPU
Fig. 1 is a configuration block diagram showing an embodiment of a line detection device according to the present invention, Fig. 2 is an explanatory diagram for explaining position detection in a COD camera, and Fig. 3 is an explanation of processing operations in a white line detection ECU. FIG. 4 is a flowchart showing the operation of threshold calculation. FIG. 5 is a flowchart showing the operation of edge detection and binarization processing. FIG. 6 is a flowchart showing the operation of edge correction. 8 is an explanatory diagram showing a white line position prediction method. FIG. 9 is an explanatory diagram showing an example of white line position prediction. 10... CCD camera 20... White line detection ECU 24... AD converter 26... CPU

Claims (1)

【特許請求の範囲】 車両に搭載され、道路に沿って設けられたガイドライン
を検出するライン検出装置であって、所定範囲の道路の
画像を繰返し出力するカメラと、 このカメラから出力される一回毎の画像を処理し、ガイ
ドラインを検出するライン検出手段と、このライン検出
手段によって検出されたライン位置により内容が順次更
新されるとともに、少なくとも前回、前々回のライン位
置を記憶するライン位置記憶手段と、 このライン位置記憶手段に記憶されている複数のライン
位置の変化状態から今回検出のライン位置を予測するラ
イン位置予測手段と、 このライン位置予測手段によって得られた予測位置に最
も近い検出ラインを選択するライン選択手段と、 を有することを特徴とするライン検出装置。
[Claims] A line detection device mounted on a vehicle that detects a guideline provided along a road, comprising a camera that repeatedly outputs images of a road in a predetermined range, and one output from this camera. a line detection means for processing each image and detecting a guideline; and a line position storage means for sequentially updating the contents based on the line position detected by the line detection means, and storing at least the previous line position and the line position before the previous time. , line position prediction means for predicting the currently detected line position from the state of change of a plurality of line positions stored in the line position storage means, and a detection line closest to the predicted position obtained by this line position prediction means. A line detection device comprising: a line selection means for selecting;
JP2294774A 1990-10-30 1990-10-30 Line detection device Pending JPH04167007A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2294774A JPH04167007A (en) 1990-10-30 1990-10-30 Line detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2294774A JPH04167007A (en) 1990-10-30 1990-10-30 Line detection device

Publications (1)

Publication Number Publication Date
JPH04167007A true JPH04167007A (en) 1992-06-15

Family

ID=17812121

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2294774A Pending JPH04167007A (en) 1990-10-30 1990-10-30 Line detection device

Country Status (1)

Country Link
JP (1) JPH04167007A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014104853A (en) * 2012-11-27 2014-06-09 Clarion Co Ltd Onboard control device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014104853A (en) * 2012-11-27 2014-06-09 Clarion Co Ltd Onboard control device
US9734581B2 (en) 2012-11-27 2017-08-15 Clarion Co., Ltd. On-vehicle control device

Similar Documents

Publication Publication Date Title
JP4914234B2 (en) Leading vehicle detection device
US5650944A (en) Shutter speed control method and system
CN101185084B (en) Method and a system for detecting a road at night
USRE37610E1 (en) Running guide apparatus for vehicle capable of keeping safety at passing through narrow path and the method thereof
EP1403615B1 (en) Apparatus and method for processing stereoscopic images
CN104823214A (en) On-board image processing device
JPH05265547A (en) On-vehicle outside monitoring device
JPH05114099A (en) Distance detector for vehicle
JPH06281455A (en) Vehicle environment monitoring device
JP2000357233A (en) Body recognition device
CN103227905B (en) Exposure controller for on-vehicle camera
US5187537A (en) Vehicle following apparatus
JP3704045B2 (en) Target object tracking device
JP3348939B2 (en) Vehicle distance detection device
JPH1047954A (en) Device for measuring distance between vehicles by facet-eye camera
JP2833248B2 (en) Line detector
JPH04167007A (en) Line detection device
JP7141940B2 (en) Image processing device and image processing method
JPH04243491A (en) Car image tracking apparatus
JPH07146137A (en) Distance-between-vehicles measuring apparatus
JP2003252149A (en) Lane recognition image processing device, and program for performing the processing
JP2020004171A (en) Line detection apparatus for vehicle and method thereof
JP3174869B2 (en) Target object tracking device
JPH04299799A (en) Line detector
EP0498416B1 (en) Inter-car distance detecting device