JP3612970B2 - Tunnel detection apparatus and vehicle control apparatus using the same - Google Patents
Tunnel detection apparatus and vehicle control apparatus using the same Download PDFInfo
- Publication number
- JP3612970B2 JP3612970B2 JP34231997A JP34231997A JP3612970B2 JP 3612970 B2 JP3612970 B2 JP 3612970B2 JP 34231997 A JP34231997 A JP 34231997A JP 34231997 A JP34231997 A JP 34231997A JP 3612970 B2 JP3612970 B2 JP 3612970B2
- Authority
- JP
- Japan
- Prior art keywords
- tunnel
- vehicle
- area
- traveling
- 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.)
- Expired - Fee Related
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/50—Context or environment of the image
- G06V20/56—Context or environment of the image exterior to a vehicle by using sensors mounted on the vehicle
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Traffic Control Systems (AREA)
- Control Of Driving Devices And Active Controlling Of Vehicle (AREA)
- Image Processing (AREA)
Description
【0001】
【発明の属する技術分野】
この発明は、走行路上のトンネルを画像処理によって検出するトンネル検出装置及びそれを用いた車両制御装置に関する。
【0002】
【従来の技術】
従来、トンネル検出装置及びそれを用いた車両制御装置としては例えば特開平4−127280号公報に開示されているものがある。ここでは一次元ラインセンサが用いられて、前方道路を観測する。一次元ラインセンサの出力から設定濃度以下の黒領域を検出し、長さについての判断を行なってトンネルを検出するようになっている。
また、特開昭60−240545号公報では、二次元画像センサが用いられて、前方道路を観測する。道路画像を画像処理して設定濃度以下の黒領域を検出し、黒領域はトンネルの入口であるかどうかを基準パターンと比較して判断し、トンネルを検出するようになっている。
【0003】
【発明が解決しようとする課題】
しかしながら、トンネルの幅あるいはトンネルの形状は色々であるが、走行路上に限定すれば、幅も走行路に相当する大きさとなり、形状も走行路の幅をカバーするものとなる。そこでこれらを認識するためには、上記従来のパターンに基づいた検出は、トンネルが完全な形で観測される必要がある。したがって走行路での観測では先行車の存在によって視界が遮られトンネルが完全な形で観測できない場合、トンネルが検出できなくなる問題がある。
【0004】
また、トンネルが短く、出口以降の風景がトンネルの入口で見えた場合、黒領域の幅寸法や形状が通常のと異なり、パターンによる検出ができなくなる問題点があった。
本発明は、上記のような問題点に鑑み、完全な形のトンネル画像を必要とせず、先行車に追従しても車両からトンネルを検出できるトンネル検出装置及びそれを用いた車両制御装置を提供することを目的としている。
【0005】
【課題を解決するための手段】
このため、請求項1記載の発明は、車両に備えられ車両の走行にしたがってトンネルを検出するトンネル検出装置であって、
車両の走行方向を撮像する撮像手段と、
走行路の続いている方向を検出する走行路検出手段と、
前記撮像手段の撮像画像から所定濃度の領域を検出する設定濃度領域検出手段と、
走行路の続いている方向を探索し所定濃度の領域を抽出し、トンネルの入口あるいは出口を示す注目領域とする注目領域抽出手段と、
該注目領域の画像位置を算出する注目領域演算手段と、
前記注目領域の画像位置変化で算出された距離変化と車両の移動量が一致し、かつ注目領域の見掛けの高さが所定値を越えた場合、前記注目領域をトンネルの入口あるいは出口と判定するトンネル検出手段とを有するものとした。
【0006】
請求項2記載の発明は、車両に備えられ車両の走行にしたがってトンネルを検出するトンネル検出装置であって、
車両の走行方向を撮像する撮像手段と、
走行路の続いている方向を検出する走行路検出手段と、
前記撮像手段の撮像画像から低濃度の領域を検出する設定濃度領域検出手段と、走行路の続いている方向を探索し前記低濃度の領域を抽出し、トンネルの入口を示す注目領域とする注目領域抽出手段と、
該注目領域の画像位置を算出する注目領域演算手段と、
前記注目領域の画像位置変化で算出された距離変化と車両の移動量が一致し、かつ見掛けの高さが所定値を越えた場合、前記注目領域をトンネルの入口と判定するトンネル入口検出手段とを有するものとした。
【0007】
請求項3記載の発明は、車両に備えられ車両の走行にしたがってトンネルを検出するトンネル検出装置であって、
車両の走行方向を撮像する撮像手段と、
走行路の続いている方向を検出する走行路検出手段と、
前記撮像手段の撮像画像から高濃度の領域を検出する設定濃度領域検出手段と、走行路の続いている方向を探索し前記高濃度の領域を抽出し、トンネルの出口を示す注目領域とする注目領域抽出手段と、
該注目領域の画像位置を算出する注目領域演算手段と、
前記注目領域の画像位置変化で算出された距離変化と車両の移動量が一致し、かつ注目領域の見掛けの高さが所定値を越えた場合、前記注目領域をトンネルの出口と判定するトンネル出口検出手段とを有するものとした。
【0008】
請求項4記載の発明は、車両に備えられ車両の走行にしたがってトンネルを検出するトンネル検出装置であって、
車両の走行方向を撮像する撮像手段と、
前記撮像手段の撮像画像から所定濃度の領域を検出する設定濃度領域検出手段と、
該設定濃度領域検出手段で検出された領域の画像上での面積を算出する面積演算手段と、
前記車両の移動によって該面積演算手段の算出値が増加し、その面積の算出値が設定値以上になったことからトンネルの出口を判定するトンネル出口検出手段とを有するものとした。
【0009】
前記走行路検出手段は、前記撮像画像を画像処理して白線を検出し、関数近似によって走行路の続いている方向を検出することができる。
【0010】
請求項6記載の発明は、前記トンネル検出装置に、前記トンネル入口検出手段がトンネルの入口を判定した場合に、車両をトンネルでの走行に適する状態に制御するトンネル走行制御手段を接続したものとした。
【0011】
請求項7記載の発明は、前記トンネル検出装置に、前記トンネル出口検出手段がトンネルの出口を判定した場合に、車両をトンネル走行状態から通常状態に戻す制御を行なうトンネル走行解除手段を接続したものとした。
【0012】
【作用】
請求項1記載の発明では、撮像手段によって撮像された前方道路画像から、設定濃度領域検出手段が所定濃度の領域を検出する。トンネルは周囲環境と異なる照明条件で撮像されるので、トンネルの入口あるいは出口は画像上では異なる濃度となって現われる。したがってそれらを所定濃度として検出することによって、トンネルの存在を示す入口あるいは出口領域が検出されることになる。
【0013】
トンネルの入口または出口は車両の走行路上に存在するから、走行路検出手段は走行路の続いている方向を検出し、注目領域抽出手段は走行路の続いている方向を探索し所定濃度領域を抽出することによって、同濃度の他の領域が排除され、トンネルの入口あるいは出口を示す注目領域のみが抽出されることになる。
【0014】
トンネル検出手段は車両の移動量と注目領域の画像上の位置から算出された距離変化量とを照合することによって注目領域がトンネルなどの固定物であるか否かの判断ができ、注目領域がトンネルの入口あるいは出口となれば、見掛けの高さもトンネルの高さとなる。したがって、所定値による判断で抽出された注目領域をトンネルの入口あるいは出口と判断することできる。これによってトンネルが検出される。このように、トンネルの高さと距離を示すデータさえ得られれば、完全な形のトンネル画像を必要とせず、先行車に視界を遮られても走行路上からのトンネル検出ができる。
【0015】
請求項2記載の発明では、検出領域を低濃度領域とし、トンネルの入口を注目領域として検出するから、昼間でのトンネル検出に適する。
【0016】
請求項3記載の発明では、検出領域を高濃度領域とし、トンネルの出口を注目領域として検出するから、昼間でのトンネル検出に適している。
【0017】
請求項4記載の発明では、撮像手段によって撮像されたトンネル画像から、設定濃度領域検出手段は所定濃度の領域を検出する。トンネル内、外の照明が異なるため、トンネルの出口画像が周囲と違った濃度で撮像されることになる。車両の走行にしたがって、トンネルの出口が次第に大きく撮像されるため、トンネル検出手段は検出された所定濃度の領域の面積の増大でトンネルの出口を検出できる。これによってトンネルが検出される。このように所定濃度の領域の検出と面積の算出のみでトンネルを検出できる。
【0018】
走行路検出手段が、撮像画像を画像処理して白線を検出し、関数近似によって走行路の続いている方向を検出すると、トンネルの存在する場所が正確に特定でき、トンネル検出の信頼性が向上する。
【0019】
請求項6記載の発明では、トンネルの入口を検出した場合、トンネル走行制御手段は車両をトンネルでの走行に適する状態に制御するから、トンネル内での走行に備える車両操作が自動的に行なわれ、運転負担が軽減されるとともに、安全走行が図られる。
【0020】
請求項7記載の発明では、トンネルの出口を検出した場合、トンネル走行制御手段は車両をトンネル外での走行に適する状態に制御するから、車両をトンネル内での走行に設定された機能を自動的に解除することが可能となり、解除するための操作を省くことができ、請求項6と合わせればトンネルを意識することなく車両運転ができる。
【0021】
【発明の実施の形態】
以下、本発明の実施の形態を実施例により説明する。
図lは第1の実施例の構成を示すブロック図である。撮像手段としてのカメラ1は車両に前方に向けてやや下向きに装着され、走行路を含めて車両の走行方向を撮像できるようになっている。カメラ1には画像データを記憶する画像メモリが設けられており、画像データがここで記憶され、新しい画像データの入力によってデータが更新される。
【0022】
カメラ1には白線検出部2と低濃度領域検出部4が接続されている。
白線検出部2では、自車走行路を検出するため画像の左右にある白線を画像処理で検出し関数近似によって認識する。画像処理で検出された白線の最遠点は関数近似式で正規化され、関数近似式とともにメモリに記憶される。
【0023】
低濃度領域検出部4では、画像データを所定のしきい値で2値化処理をして、2値化画像を作る。2値画像からしきい値以下の低濃度画素を抽出し、連続性判断により複数の領域に分類する。分類された各領域の位置データをメモリに記憶させる。トンネルは昼間では周囲環境より暗いため入口領域は低濃度で撮像され、メモリに記憶されることになる。
【0024】
白線検出部2での検出結果と低濃度領域検出部4で抽出した領域の位置データを入力する注目領域抽出部3では、白線の最遠点位置から関数近似によって表示される白線に沿って遠方方向に低濃度領域の探索を行なう。これによって、走行路外の低濃度領域が排除され、トンネルの入口を示す注目領域が抽出されることになる。そして注目領域がトンネルの入口である否かを確かめるため、低濃度領域の最上点を探索することによって抽出する。この最上点を抽出することによって、トンネルの高さを算出でき、トンネルが先行車と重なっても高さによってトンネルを判定することができる。
【0025】
注目領域演算部5は注目領域の位置データをもとにカメラ1の撮像条件即ちカメラの焦点距離、撮像角度、カメラの取り付け高さなどにより注目領域の見かけの高さと車両までの距離を算出する。
トンネル検出部6は車速センサ7によって得られた車両の走行速度と画像の更新周期時間で車両の移動距離を算出する。その移動距離と低濃度の領域の位置変化によって算出された距離変化が一致すれば注目領域がトンネルの入口であると判定し、見掛けの高さによる確認を経てトンネルを検出する。ここでトンネルを検出した場合、フラグを立ててトンネルが検出されたことを示す。
【0026】
トンネル検出部6に制御部8が接続されている。制御部8はフラグが立てられたことによりトンネルでの走行に備え前照灯を点灯、エアコンの空気取り入れ状態をチェックし、外気を取り入れているのであれば、内気循環に切り替える制御を行なう。また、車両に応じて例えばエンジンブレーキの効き方、スロットルのゲイン、ワイパーの作動間隔、サンルーフの閉などの制御を行なって、車両をトンネルでの走行に適する状態に制御する。また自動露出機能のないカメラについてはトンネル内での撮像に適する露光量に調整する。
【0027】
次に図2のフローチャートにしたがって上記構成の処理の流れを説明する。
まずステップ101において、カメラ1により前方道路が撮像され、撮像された画像データは画像メモリに記憶される。これによって例えば図3に示すような原画像が得られる。図3の画像には白線11、12が先方へ続いている走行路上にトンネル13が映され、そしてトンネルの一部が先行車14によって見えなくなっている。
【0028】
ステップ102では、白線検出部2が画像メモリから画像データを入力し、画像処理して走行路の左右にある白線を検出し、関数近似によって認識する。そして画像処理で検出された最遠点の白線位置を関数近似式によって正規化させて、関数近似式とともにメモリに記憶される。これによって図3の原画像では図4に示すように白線が関数近似式で示される曲線21と22で表示される。a点、b点は正規化された左右白線の最遠点である。白線検出の内容は後述する。
【0029】
ステップ103では、低濃度領域検出部4で原画像を所定のしきい値で処理し、しきい値以下を濃度値l、それ以外を濃度値Oの2値画像を作成する。これによって図3の画像からは図5に示すように暗いトンネル部分が低濃度領域13が濃度値1で示される2値化画像が作られる。この画像ではトンネルの一部が先行車によって欠けている。
【0030】
ステップ104において、注目領域抽出部3は図5に示すようなトンネルの入口を示す低濃度領域を抽出するため最遠点位置から左右白線の延びる方向に沿って低濃度領域を探索し、見掛けの高さを演算するための最上点位置を抽出する。図6はその処理の様子を示す。すなわちまず最遠点aから、白線の関数近似式が示す方向に低濃度領域を探索する。
【0031】
低濃度領域(画素濃度1)が検出された場含、その座標を起点座標とし、濃度値を2と書き直す。起点座標から、X座標を正、負の両方向に探索し、隣接した低濃度領域(画素濃度l)がある場含には、その濃度値を2と書き直す。次にY座標を1足して、画像上方(遠方方向)に濃度値2の画素に隣接した低濃度領域(画素濃度l)を探索する。上記条件を満足する画素が見つかったなら、濃度値を2に書き直す。この処理を低濃度の画素が検出できなくなるまで、繰り返す。上記条件を満足した画素が検出できなくなったらY座標に1を減らして、左白線(曲線21)に繋がった低濃度領域の上限値とする。
【0032】
次に、右白線について、上記処理と同様の操作で、最遠点bから右白線(曲線22)に繋がった領域を探索し、低濃度領域を検出したら、濃度値を3と書き直す。探索中に濃度値2の画素が検出された場合、左右白線が同一の低濃度領域に繋がっているとして左白線領域上限値をその低濃度領域の最上点として記憶する。これによって図6ではc点が検出されることになる。
【0033】
ステップ105では、注目領域演算部5において、上記白線上から抽出された低濃度領域をトンネルの入口を示す注目領域として車両までの距離Dと見かけの高さHを算出する。注目領域の起点座標は領域の最下部にあり、カメラの取り付け位置、角度、及びレンズ系のパラメータから、車両までの前方距離が算出される。ここではまず予めカメラの撮像条件によって前方距離とY座標の換算式を求めておき、前方距離は起点座標を換算式に代入することによって算出される。
【0034】
高さHは単眼カメラでは直接検出できないが、トンネルの入口の特徴から起点座標位置に垂直に注目領域が立っていると仮定することができる。したがってカメラの取り付け位置、角度、及びレンズ系のパラメ一夕から、前方距離を求めるのと同様に予め変換式を求め、起点座標と最上点座標を変換式に代入することによって注目領域の見掛けの高さを算出する。
【0035】
図7は前方距離と画像上の位置の換算式を求める説明図である。(a)は垂直方向、(b)は水平方向に投影された撮像空間と平面画像の幾何関係のそれぞれを示している。ここではカメラは焦点距離fを有するレンズと焦点距離fに配置された撮像用CCDを有する。カメラは水平に対しθ角に下向きに撮像するように車両に取り付けられている。カメラの取り付け高さはhとなっている。
CCDはX方向にIX画素、Y方向にIY画素で構成されている。CCDの画面サイズはX方向CH(mm)、y方向CW(mm)である。
【0036】
まず(a)において、カメラの撮像方向となす角dθについて、式(1)が成り立つ。
dθ=atan〔(CH/IY)・(dy/f)〕 (1)
但し、dyは画面中心に対してY軸方向の画像位置である。
dθと前方距離Dの関係は式(2)で示される。
D=h/tan(θ−dθ) (2)
CH、IY、f、h、θが既知であり、
式(1)と式(2)で画素位置と前方距離の変換式が得られる。
これによって、低濃度領域の起点のY座標を式(1)に代入すれば前方距離Dを算出できる。
【0037】
X方向の画素位置dxは前方距離の算出に参加しないが、その大きさによって所定距離先の物体の幅を算出できるため、次の実施例で面積の大きさを判断するしきいを決定するのに有用である。
要領は上記と同じで、図7の(b)において、前方距離を示す方向となす角dφについて、式(3)が成り立つ。
dφ=atan〔(CW/IX)・(dx/F)〕 (3)
但し、Fは
F=[〔(CH/IY)・dy〕2+f2]1/2である。
画素位置dxに相当する幅Eは式(4)で示される。
E=(h2+D2)1/2・tan(dφ) (4)
これによって画像位置dx、dyで前方距離Dおよび横幅が求められ、面積を算出することができる。
Y軸方向の距離と見掛けの高さHの変換式も上記同様に(a)から算出することができる。
【0038】
ステップ106では、車速センサ7で自車両の走行速度を計測する。
ステップ107では、トンネル検出部6は画像の更新周期にかかる時間と車両の走行速度を用いて、その間、車両がどれだけ移動したかを推定し、推定された移動量を△Lとする。
【0039】
ステップ108において、車両の移動量と注目領域の距離変化量を照合し、一致した場合、注目領域の見掛け高さHを所定のしきい値と比較したうえでトンネルの検出を行なう。その内容は後で詳細に説明する。
ステップ109でトンネルが検出できたかどうかをチェックし、検出できなかった場合ステップ101に戻り、検出できた場合フラグを立ててステップ110へ進む。
ステップ110では、制御部8はフラグが立てられたことによって、トンネルでの走行に備え、例えばエアコンの空気循環経路を内気循環に切り替える制御を行なう。
【0040】
図8はステップ108におけるトンネル検出の詳細を示すフローチャートである。
まず、ステップ201で車両の移動量ΔLをしきい値th1と比較して移動量の大きさを判定し、th1より大きく移動した場含、抽出された注目領域について見掛けの高さH、車両までの距離Dの評価を行うようステップ202へ進む。ステップ202では、注目領域の見掛けの高さHをしきい値th2と比較して大きさについての判定を行なう。th2より大きい場合、次の判断を行なうようにステップ203へ進む。
【0041】
ステップ203においては、距離Dと前回算出された距離との差を演算し距離変化量ΔDを求めて、車両の移動量ΔLと比較する。値がほぼ同じ場合、ステップ205へ進む。
【0042】
ステップ205では、上記判断の結果、画像が変わっても同じ結果が連続して3回(th3)続いたかのチェックを行なう。同じ結果が3回となれば、ステップ207で注目領域がトンネルの入口であるものと判断する。
ステップ205のチェック条件が満たされなければステップ208でトンネルないと判断する。
ステップ206は測定の回数をカウントする処理で、ステップ204はカウントをクリアする処理である。
【0043】
次に、ステップ102における白線検出の詳細を図9のフローチャートにしたがって説明する。
まず、ステップ300において、カメラ1から画像データを入力する。
ステップ301において、画像全体に縦エッジ成分を抽出するSOBEL演算子をかけて、例えば図10のような縦エッジ画像が作成される。この画像では白線の縁が表示されている。そして左から右へ濃度の変化にしたがって正エッジ、負エッジ、正エッジ、負エッジとエッジ特性が変化する。負エッジと正エッジで1本の白線が検出される。
【0044】
ステップ302において、ウインドウ位置情報を取り込む。初期では例えば真直ぐな道路を想定して車線中央を直進している状態に相当するウインドウ位置をデータとしてメモリに記憶しておいてもよい。2回目からは前画面の処理結果に基づいて演算されたウインドウ位置情報でウインドウを設定する。この位置情報は図11に示すように前回で検出された白線位置Wpと近似によって認識された白線の傾きγで構成される。ウインドウWはWpを中心とし幅Wlの上辺と所定高さsの台形ウインドウとする。ウインドウの両側は上辺からY軸に対し外側に向けてそれぞれγ+α、γ−α角となっている。αはカメラの取り付け状態に合わせて予め設定された固定値である。ウインドウは小区間であり、異なる形状をとる白線もここで直線と見ることができる。
【0045】
ステップ303での直線検出は図12のフローチャートにより説明する。
まず、ステップ402では、ウインドウWを探索しエッジ点を集計して直線を決定する。これには図13に示すように、直線先端初期位置T(xt、yt)をウインドウ位置Wp(xwp、ywp)と上辺幅Wlから算出する。ywpはウインドウWの位置を示す設定値である。
先端初期位置T(xt,yt)は
xt=xwp+Wl/2
yt=ywp
である。
【0046】
ステップ403では、ウインドウ高さsから直線後端初期位置E(xe,ye)を算出する。
xe=xt‐s・tan(γ‐α)
ye=yt‐s
【0047】
ステップ404においては、T(xt,yt)とE(xe,ye)を通る直線fを算出する。直線fは
y‐ye=(yt‐ye)/(xt‐xe)・(x‐xe)
となる。
【0048】
ステップ405において、直線fが通るエッジ画像上のエッジ点の個数を計測する。この時、正エッジ、負エッジの両エッジの個数を別個に計測する。先端位置xtと後端位置xeとともに計測された正負エッジの個数をメモリに記憶しておく。
ステップ406において、直線後端Eのx座標を移動し、
xe=xe‐1とする。
ステップ407において、xeがxt‐s・tan(γ+α)より大きいかどうかの判断によって後端がウインドウWを走査したかの判断を行なう。ウインドウを走査していない場合、ステップ404に戻り、ウインドウを走査した場合には、ステップ408へ進む。
【0049】
ステップ408では、直線先端Tのx座標xtにxt‐1を代入し先端位置を移動する。
ステップ409において、直線先端のxtがxwp‐Wl/2以下かどうかの判断を行ない、先端がウインドウを走査したかの判断を行なう。走査していない場合にはステップ404に戻り、上記処理を続ける。ウインドウを走査した場合にはステップ410へ進む。
【0050】
ステップ410では、記憶してある先端位置と正エッジの個数の中から最大の正エッジ数の先端位置と後端位置を抽出する。
ステップ411において、抽出された正エッジ数をしきい値と比較し、それ以上の場合ステップ412へ進み、しきい値以下の場合には検出を終了してステップ304へ進む。
ステップ412では、抽出された先端位置と後端位置を直線で結び正エッジの近似線を決定する。
【0051】
ステップ413では、負エッジの個数の中から最大の負エッジ数の先端位置と後端位置を抽出する。
ステップ414で、負エッジの個数を予め設定してあるしきい値と比較し、それ以上の場合ステップ415へ進み、しきい値以下の場合には検出を終了してステップ304へ進む。
ステップ415では、抽出された先端位置と後端位置を直線で結び負エッジの近似線を決定する。
【0052】
この後図9のフローチャートに戻り、ステップ304で図14に示すようにウインドウWから正負エッジの近似線31、32が検出できたどうかをチェックして白線の存在を判断する。白線がある場合ステップ305へ進み、ない場合白線が検出できなかったとしてリターンされる。
【0053】
ステップ305において、正負エッジの近似線の間を通る白線の近似線を算出する。白線は直線となるが、それを決定するパラメータとしては位置を決定するWpと傾きを決定するγが含まれる。Wpの(xwp,ywp)のx座標xwpは(xt+xe)/2により算出される。ywpはウインドウの設定位置である。
ステップ306において、Wpとγをウインドウの位置情報として次の画像での白線検出のウインドウの設定位置を算出する。これによって、ウインドウが白線の位置変動にしたがって変動するので、白線の位置が移動しても、白線を漏らさず検出することができる。以上で白線検出の処理を終了する。
【0054】
上記1つのウインドウにて直線の検出について説明したが、白線を曲線で近似する場合、1本の白線について上記のようなウインドウを複数設定し、各ウインドウの先端位置と後端位置を関数近似によって例えば図4に示すような近似曲線が得られる。
白線検出部2は走行路検出手段を構成している。
低濃度領域検出部4は設定濃度領域検出手段を構成している。
注目領域抽出部3は注目領域抽出手段を構成している。
注目領域演算部5は注目領域演算手段を構成している。
制御部8はトンネル走行制御手段を構成している。
【0055】
本実施例は以上のように構成され、走行路を示す白線を検出し、白線の続いている方向からトンネルの入口を示す注目領域を検出する。そして車両の移動量と注目領域から車両までの距離変化が一致したかどうかと注目領域の見掛けの高さの判断を行なってトンネルを検出するようにしたから、理想的なトンネル形状でない場含にも検出できる、またカーブなどで車両の正面にトンネルが見えていなくても、道路白線から走路上のトンネルを検出できるという効果がある。
【0056】
次に第2の実施例について説明する。
この実施例はトンネルの出口を検出対象としている。図15は実施例の構成を示す図である。カメラ1は第1の実施例と同様に車両の走行方向を撮像するように車両の前方に取り付けられている。低濃度領域検出部4は、カメラ1の撮像画像を所定のしきい値で2値化処理して2値化画像を作る。面積算出部9は低濃度領域以外の領域の画素数を計測して面積を計算する。
【0057】
トンネル検出部10は、車両の走行にしたがって面積算出部9で算出された面積の変化でトンネルを検出する。車両がトンネル内を走行する場合、トンネルの出口領域を除けば低濃度で撮像される。車両がトンネルの出口に近づくほど出口が大きく観測されるから、その部分の面積変化でトンネルの出口を検出できる。制御部8は出口が検出されると、トンネル内での走行に設定された機能を解除する制御を行なう。例えばエアコンの換気循環経路を外気取り入れに切り替える。
【0058】
次に図16のフローチャートにしたがって上記構成の作動流れを説明する。
まずステップ501において、カメラ1により前方道路が撮像され、撮像された画像データが画像メモリに記憶される。これによって例えば図18に示すような画像が記憶される。図17の画像はトンネル内で撮像された画像で、全体が低濃度で、白線11、12が先方へ続いている走行路上にトンネルの出口23だけが高濃度で映されている。出口の一部が先行車14によって見えなくなっている。
【0059】
ステップ502において、低濃度領域検出部4は画像をしきい値で処理し、しきい値以上を濃度値l、それ以下を濃度値Oの2値画像を作成する。これによって図17の画像からは図18に示すようにトンネルの出口部分23を除けば低濃度領域の2値化画像が作られる。この画像ではトンネルの一部が先行車によって欠けている。
【0060】
ステップ503において、面積算出部9は低濃度領域以外の画素を計測することによって明かるい画像部分の面積Rを算出する。
ステップ504において、車速センサ7により車速を計測する。
ステップ505では、トンネル検出部10は画像の更新周期にかかる時間と車両の走行速度を用いて、その間、車両がどれだけ移動したかを推定し、推定された移動量を△Lとする。
【0061】
ステップ506のトンネル出口検出は図19のフローチャートにしたがって説明する。
まず、ステップ601で車両の移動量ΔLをしきい値th1と比較して移動量の大きさを判定する。しきい値より大きいと、ステップ602へ進む。
ステップ602では、演算された面積Rと前回の面積との差ΔRを演算し所定のしきい値と比較する。しきい値より大きい場合ステップ604へ進む。
【0062】
ステップ604では、カウンタをチェックし上記判断の結果が連続して3回(th5)続いたかの判断を行なう。これによって図17の画像を撮像した時刻をt1とすると、時刻t2、t3で撮像した画像は図20、図22のようにトンネルの出口領域23は段々大きくなってくることが判断される。図21の画像は時刻t2、図23の画像は時刻t3の2値画像である。面積の変化量や大きさ判断はそれらによって行なわれる。チェック条件が満たされれば、次の判断を行なうようステップ606へ進む。
【0063】
ステップ606では、演算された面積Rを所定のしきい値th6と比較して大きさのチェックを行なう。しきい値より面積が小さかった場合、ステップ608でトンネルなしと判断する。しきい値より大きい場合、ステップ607でトンネルの出口を検出する。
th6は例えば前記式(1)、式(2)、式(3)、式(4)でトンネルの大きさに合わせて設定される。
ステップ605は測定の回数をカウントする処理で、ステップ603はカウントをクリアする処理である。
【0064】
この後図16のフローチャートに戻り、ステップ507でトンネルの出口が検出できたかをチェックし、検出できなかった場合ステップ501に戻り、検出できた場合にはフラグを立ててステップ508へ進む。
ステップ508では、制御部18はフラグが立てられたことによって車両がトンネルを出るのに備え、例えばエアコンーの空気取り入れ経路を外気循環に切り替え、車両をトンネル外での走行状態に制御する。
面積算出部9は面積演算手段を構成している。
制御部18はトンネル走行解除手段を構成している。
【0065】
本実施例は以上のように構成され、前方走路を撮像し、低輝度領域を抽出することでトンネル出口候補を検出し、車両の移動量と検出しているトンネル出口侯補領域の面積の変化量を所定のしきい値と比較することでトンネル出口を判断するため、先行車が存在する場合や、理想的なトンネル形状でない場含にも検出できるという効果がある。
上記実施例は昼間での検出について説明したが、夜についても、画像濃度が逆転するが、上記方法は依然有効であることはいうまでもない。
【0066】
【発明の効果】
請求項1記載の発明では、周囲環境と異なる濃度を示すトンネルの入口と出口を検出対象とし、白線の続いて方向から検出するようにしたので、同じ濃度を示す他の物体と容易区別でき、簡単な処理でトンネルを検出できるとともに、トンネルが先行車などに一部が隠されても、漏らさず検出できる。これによって車載装置として要求される性能が満たされ、トンネルの入口あるいは出口を特定してトンネルを進入あるいは出るのに備える車両操作を自動的に行なわせることが可能となる。
【0067】
請求項2記載の発明では、検出領域を低濃度領域とし、トンネルの入口を注目領域として検出するから、昼間でのトンネル検出に適する。
【0068】
請求項3記載の発明では、検出領域を高濃度領域とし、トンネルの出口を注目領域として検出するから、昼間でのトンネル検出に適している。
【0069】
請求項4記載の発明では、撮像手段によって撮像されたトンネル画像から、設定濃度領域検出手段は所定濃度の領域を検出する。トンネル内、外の照明が異なるため、トンネルの出口画像が周囲と違った濃度で撮像されることになる。車両の走行にしたがって、トンネルの出口が次第に大きく撮像されるため、トンネル検出手段は検出された所定濃度の領域の面積の増大でトンネルの出口を検出できる。これによってトンネルが検出される。このように所定濃度の領域の検出と面積の算出のみでトンネルを検出でき、複雑な演算を要しない効果が得られる。
【0070】
走行路検出手段が、撮像画像を画像処理して白線を検出し、関数近似によって走行路の続いている方向を検出すると、トンネルの存在する場所が正確に特定でき、トンネル検出の信頼性が向上する。
【0071】
請求項6記載の発明では、トンネルの入口を検出した場合、トンネル走行制御手段は車両をトンネルでの走行に適する状態に制御するから、トンネル内での走行に備える車両操作が自動的に行なわれ、運転負担が軽減されるとともに、安全走行が図られる。
【0072】
請求項7記載の発明では、トンネルの出口を検出した場合、トンネル走行制御手段は車両をトンネル外での走行に適する状態に制御するから、車両をトンネル内での走行に設定された機能を自動的に解除することが可能となり、解除するための操作を省くことができ、請求項6と合わせればトンネルを意識することなく車両運転ができる。
【図面の簡単な説明】
【図1】第1実施例の構成を示すブロック図である。
【図2】実施例全体の処理の流れを示すフローチャートである。
【図3】トンネルが撮像された原画像である。
【図4】白線が検出された様子を示す図である。
【図5】二値化処理された二値画像である。
【図6】低濃度領域を探索し起点と最上点を検出するための説明図である。
【図7】画像位置と前方距離の変換式を求める説明図である。
【図8】トンネルを判定するためのフローチャートである。
【図9】白線を検出するためのフローチャートである。
【図10】縦エッジ図である。
【図11】ウインドウ設定の説明する。
【図12】直線を検出するためのフローチャートである。
【図13】エッジを検出するための説明図である。
【図14】エッジ近似線が検出された画像である。
【図15】第2の実施例の構成を示すブロック図である。
【図16】実施例全体の処理の流れを示す図である。
【図17】トンネル内での撮像画像である。
【図18】二値化した画像である。
【図19】トンネルを判定するためのフローチャートである。
【図20】一定時間経過後の撮像画像である。
【図21】二値画像である。
【図22】一定時間経過後の二値化画像である。
【図23】二値画像である。
【符号の説明】
1 カメラ
2 白線検出部
3 注目領域抽出部
4 低濃度領域検出部
5 注目領域演算部
6 トンネル検出部
7 車測センサ
8、18 制御部
9 面積算出部
10 トンネル検出部
11 左白線
12 右白線
13 低濃度のトンネル画像
14 先行車
21、22 近似曲線
31 正エッジ近似線
32 負エッジ近似線
a、b 最遠点
c 最上点
D 距離
E 幅
h カメラの取り付け高さ
θ 水平面に対しカメラの撮像角
W ウインドウ
s ウインドウの高さ
Wl ウインドウの上辺幅
γ 直線の傾き角
Wp ウインドウの上辺中央点[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a tunnel detection device that detects a tunnel on a road by image processing and a vehicle control device using the same.
[0002]
[Prior art]
Conventionally, as a tunnel detection device and a vehicle control device using the same, for example, there is one disclosed in JP-A-4-127280. Here, a one-dimensional line sensor is used to observe the road ahead. A black area below the set density is detected from the output of the one-dimensional line sensor, and a tunnel is detected by judging the length.
In Japanese Patent Laid-Open No. 60-240545, a two-dimensional image sensor is used to observe a road ahead. The road image is processed to detect a black area below the set density, and it is determined whether or not the black area is the entrance of the tunnel by comparing with the reference pattern to detect the tunnel.
[0003]
[Problems to be solved by the invention]
However, although the width of the tunnel or the shape of the tunnel is various, if it is limited to the traveling road, the width will be a size corresponding to the traveling road, and the shape will also cover the width of the traveling road. Therefore, in order to recognize them, the detection based on the conventional pattern needs to observe the tunnel in a complete form. Therefore, in the observation on the road, there is a problem that the tunnel cannot be detected when the tunnel is not completely observed due to the presence of the preceding vehicle.
[0004]
In addition, when the tunnel is short and the scenery after the exit can be seen at the entrance of the tunnel, the width dimension and shape of the black region are different from usual, and there is a problem that the detection by the pattern becomes impossible.
SUMMARY OF THE INVENTION In view of the above problems, the present invention provides a tunnel detection device that can detect a tunnel from a vehicle even when following a preceding vehicle without requiring a complete tunnel image, and a vehicle control device using the same. The purpose is to do.
[0005]
[Means for Solving the Problems]
For this reason, the invention according to
Imaging means for imaging the traveling direction of the vehicle;
Traveling path detection means for detecting the direction in which the traveling path continues;
A set density area detecting means for detecting a predetermined density area from a captured image of the imaging means;
A region of interest extracting means for searching for the direction in which the travel path continues, extracting a region of a predetermined concentration, and indicating a region of interest indicating the entrance or exit of the tunnel,
Attention area calculation means for calculating the image position of the attention area;
When the distance change calculated by the image position change of the attention area matches the amount of movement of the vehicle and the apparent height of the attention area exceeds a predetermined value, the attention area is determined as the entrance or exit of the tunnel. And a tunnel detection means.
[0006]
The invention according to claim 2 is a tunnel detection device that is provided in a vehicle and detects a tunnel according to the traveling of the vehicle,
Imaging means for imaging the traveling direction of the vehicle;
Traveling path detection means for detecting the direction in which the traveling path continues;
A set density area detecting means for detecting a low density area from a captured image of the imaging means, and a search for a direction in which a traveling path is continued to extract the low density area, and attention as an attention area indicating a tunnel entrance Region extraction means;
Attention area calculation means for calculating the image position of the attention area;
A tunnel entrance detection means for determining that the region of interest is a tunnel entrance when the distance change calculated by the image position change of the region of interest matches the amount of movement of the vehicle and the apparent height exceeds a predetermined value; It was supposed to have.
[0007]
The invention according to
Imaging means for imaging the traveling direction of the vehicle;
Traveling path detection means for detecting the direction in which the traveling path continues;
A set density area detecting means for detecting a high density area from a captured image of the imaging means, and a search for a direction in which a traveling path is continued to extract the high density area, and attention as an attention area indicating a tunnel exit Region extraction means;
Attention area calculation means for calculating the image position of the attention area;
A tunnel exit that determines a region of interest as a tunnel exit when the distance change calculated by the image position change of the region of interest matches the amount of vehicle movement and the apparent height of the region of interest exceeds a predetermined value And detecting means.
[0008]
The invention according to
Imaging means for imaging the traveling direction of the vehicle;
A set density area detecting means for detecting a predetermined density area from a captured image of the imaging means;
Area calculating means for calculating an area on the image of the area detected by the set density area detecting means;
Since the calculated value of the area calculating means is increased by the movement of the vehicle and the calculated value of the area becomes equal to or greater than a set value, the tunnel exit detecting means for determining the tunnel exit is provided.
[0009]
The travel path detection means can detect a white line by performing image processing on the captured image, and detect a direction in which the travel path continues by function approximation.
[0010]
According to a sixth aspect of the present invention, when the tunnel entrance detection means determines the entrance of the tunnel, the tunnel detection device is connected to a tunnel travel control means for controlling the vehicle to a state suitable for traveling in the tunnel. did.
[0011]
The invention according to
[0012]
[Action]
According to the first aspect of the present invention, the set density area detecting means detects an area having a predetermined density from the front road image taken by the imaging means. Since the tunnel is imaged under illumination conditions different from the surrounding environment, the entrance or exit of the tunnel appears at a different density on the image. Therefore, by detecting them as a predetermined concentration, an entrance or exit region indicating the presence of a tunnel is detected.
[0013]
Since the entrance or exit of the tunnel exists on the travel path of the vehicle, the travel path detection means detects the direction in which the travel path continues, and the attention area extraction means searches for the direction in which the travel path continues and searches for the predetermined concentration area. By extracting, other regions having the same concentration are excluded, and only the region of interest indicating the entrance or exit of the tunnel is extracted.
[0014]
The tunnel detection means can determine whether or not the attention area is a fixed object such as a tunnel by comparing the amount of movement of the vehicle with the distance change amount calculated from the position of the attention area on the image. If it becomes the entrance or exit of the tunnel, the apparent height is also the height of the tunnel. Therefore, the attention area extracted by the determination based on the predetermined value can be determined as the entrance or the exit of the tunnel. This detects the tunnel. Thus, as long as data indicating the height and distance of the tunnel can be obtained, a complete tunnel image is not required, and the tunnel can be detected from the road even if the preceding vehicle blocks the field of view.
[0015]
According to the second aspect of the present invention, since the detection region is a low concentration region and the entrance of the tunnel is detected as a region of interest, it is suitable for daytime tunnel detection.
[0016]
According to the third aspect of the present invention, since the detection region is a high concentration region and the exit of the tunnel is detected as a region of interest, it is suitable for daytime tunnel detection.
[0017]
According to the fourth aspect of the present invention, the set density area detecting means detects a predetermined density area from the tunnel image taken by the imaging means. Since the illumination inside and outside the tunnel is different, the exit image of the tunnel is taken at a density different from the surroundings. As the vehicle exits, the tunnel exit is gradually imaged, so that the tunnel detection means can detect the tunnel exit by increasing the area of the detected region of the predetermined concentration. This detects the tunnel. In this way, a tunnel can be detected only by detecting a region having a predetermined concentration and calculating an area.
[0018]
When the road detection means detects the white line by processing the captured image and detects the direction of the road following the function approximation, the location of the tunnel can be accurately identified, improving the reliability of tunnel detection To do.
[0019]
According to the sixth aspect of the present invention, when the tunnel entrance is detected, the tunnel travel control means controls the vehicle to a state suitable for traveling in the tunnel, so that the vehicle operation for the traveling in the tunnel is automatically performed. The driving burden is reduced and safe driving is achieved.
[0020]
According to the seventh aspect of the present invention, when the tunnel exit is detected, the tunnel travel control means controls the vehicle to a state suitable for traveling outside the tunnel. Therefore, the function set for traveling in the tunnel is automatically performed. Therefore, the operation for releasing can be omitted, and the vehicle can be operated without being aware of the tunnel if combined with
[0021]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described by way of examples.
FIG. 1 is a block diagram showing the configuration of the first embodiment. A
[0022]
A white line detection unit 2 and a low density
The white line detection unit 2 detects white lines on the left and right of the image by image processing in order to detect the own vehicle traveling path, and recognizes it by function approximation. The farthest point of the white line detected by the image processing is normalized by the function approximation formula and stored in the memory together with the function approximation formula.
[0023]
The low density
[0024]
In the region of
[0025]
The attention
The
[0026]
A control unit 8 is connected to the
[0027]
Next, the processing flow of the above configuration will be described with reference to the flowchart of FIG.
First, in
[0028]
In
[0029]
In
[0030]
In
[0031]
Including the case where the low density area (pixel density 1) is detected, the coordinates are set as the starting point coordinates, and the density value is rewritten as 2. From the starting point coordinates, the X coordinate is searched in both positive and negative directions, and if there is an adjacent low density region (pixel density 1), the density value is rewritten as 2. Next, by adding one Y coordinate, a low density region (pixel density 1) adjacent to a pixel having a density value of 2 is searched above the image (in the far direction). If a pixel satisfying the above condition is found, the density value is rewritten to 2. This process is repeated until no low density pixel can be detected. When a pixel that satisfies the above conditions cannot be detected, 1 is reduced to the Y coordinate to obtain the upper limit value of the low density region connected to the left white line (curve 21).
[0032]
Next, with respect to the right white line, an area connected from the farthest point b to the right white line (curve 22) is searched by the same operation as the above processing. When a pixel having a density value of 2 is detected during the search, the left white line area upper limit value is stored as the top point of the low density area, assuming that the left and right white lines are connected to the same low density area. As a result, the point c is detected in FIG.
[0033]
In
[0034]
Although the height H cannot be directly detected by a monocular camera, it can be assumed that the attention area stands perpendicular to the origin coordinate position from the characteristics of the entrance of the tunnel. Therefore, from the camera mounting position, angle, and lens system parameters, the conversion formula is obtained in advance in the same way as the front distance is calculated, and the apparent coordinate of the attention area is obtained by substituting the starting point coordinate and the top point coordinate into the conversion formula. Calculate the height.
[0035]
FIG. 7 is an explanatory diagram for obtaining a conversion formula between the forward distance and the position on the image. (A) is the vertical direction, and (b) shows the geometric relationship between the imaging space projected in the horizontal direction and the planar image. Here, the camera has a lens having a focal length f and an imaging CCD arranged at the focal length f. The camera is attached to the vehicle so as to capture an image at a θ angle downward with respect to the horizontal. The mounting height of the camera is h.
The CCD is composed of IX pixels in the X direction and IY pixels in the Y direction. The screen size of the CCD is X direction CH (mm) and y direction CW (mm).
[0036]
First, in (a), Expression (1) is established for the angle dθ made with the imaging direction of the camera.
dθ = atan [(CH / IY) · (dy / f)] (1)
However, dy is the image position in the Y-axis direction with respect to the center of the screen.
The relationship between dθ and the forward distance D is expressed by equation (2).
D = h / tan (θ−dθ) (2)
CH, IY, f, h, θ are known,
Expressions (1) and (2) give a conversion formula between the pixel position and the forward distance.
Thus, the forward distance D can be calculated by substituting the Y coordinate of the starting point of the low density region into the equation (1).
[0037]
Although the pixel position dx in the X direction does not participate in the calculation of the forward distance, since the width of the object ahead by a predetermined distance can be calculated based on the size, the threshold for determining the size of the area is determined in the next embodiment. Useful for.
The procedure is the same as above, and in FIG. 7B, Expression (3) is established for the angle dφ formed with the direction indicating the front distance.
dφ = atan [(CW / IX) · (dx / F)] (3)
Where F is
F = [[[(CH / IY) · dy] 2 + F 2 ] 1/2 It is.
A width E corresponding to the pixel position dx is expressed by Expression (4).
E = (h 2 + D 2 ) 1/2 Tan (dφ) (4)
As a result, the front distance D and the lateral width are obtained from the image positions dx and dy, and the area can be calculated.
Similarly, the conversion formula between the distance in the Y-axis direction and the apparent height H can be calculated from (a).
[0038]
In
In
[0039]
In
In
In
[0040]
FIG. 8 is a flowchart showing details of tunnel detection in
First, in
[0041]
In
[0042]
In
If the check condition in
Step 206 is a process of counting the number of measurements, and step 204 is a process of clearing the count.
[0043]
Next, details of white line detection in
First, in
In
[0044]
In
[0045]
The straight line detection in
First, in
The tip initial position T (xt, yt) is
xt = xwp + Wl / 2
yt = ywp
It is.
[0046]
In
xe = xt-s · tan (γ-α)
ye = yt-s
[0047]
In
y-ye = (yt-ye) / (xt-xe) · (x-xe)
It becomes.
[0048]
In
In step 406, the x coordinate of the straight line rear end E is moved,
Let xe = xe-1.
In
[0049]
In
In
[0050]
In
In
In
[0051]
In
In
In
[0052]
Thereafter, returning to the flowchart of FIG. 9, it is checked in
[0053]
In
In
[0054]
Although the detection of the straight line has been described in the above one window, when approximating the white line with a curve, a plurality of windows as described above are set for one white line, and the front end position and the rear end position of each window are set by function approximation. For example, an approximate curve as shown in FIG. 4 is obtained.
The white line detection unit 2 constitutes a travel path detection unit.
The low concentration
The attention
The attention
The control unit 8 constitutes a tunnel travel control means.
[0055]
The present embodiment is configured as described above, and detects a white line indicating a travel path, and detects a region of interest indicating a tunnel entrance from the direction in which the white line continues. Since the tunnel is detected by judging whether the amount of movement of the vehicle and the distance change from the target area to the vehicle coincide with each other and the apparent height of the target area, It is also possible to detect the tunnel on the runway from the white road even if the tunnel is not visible in front of the vehicle due to a curve or the like.
[0056]
Next, a second embodiment will be described.
In this embodiment, the detection target is the exit of the tunnel. FIG. 15 is a diagram showing the configuration of the embodiment. The
[0057]
The
[0058]
Next, the operation flow of the above configuration will be described with reference to the flowchart of FIG.
First, in
[0059]
In
[0060]
In
In
In
[0061]
The tunnel exit detection in
First, in
In
[0062]
In
[0063]
In
For example, th6 is set according to the size of the tunnel in the above formula (1), formula (2), formula (3), and formula (4).
Step 605 is a process of counting the number of measurements, and step 603 is a process of clearing the count.
[0064]
Thereafter, returning to the flowchart of FIG. 16, it is checked in
In
The
The control unit 18 constitutes a tunnel travel cancellation unit.
[0065]
The present embodiment is configured as described above, images the forward running road, extracts a low-luminance area, detects a tunnel exit candidate, and changes in the amount of vehicle movement and the area of the detected tunnel exit compensation area Since the tunnel exit is determined by comparing the amount with a predetermined threshold value, there is an effect that the vehicle can be detected even when there is a preceding vehicle or when it is not in an ideal tunnel shape.
In the above embodiment, the detection in the daytime has been described. However, although the image density is reversed at night, it goes without saying that the above method is still effective.
[0066]
【The invention's effect】
In the invention of
[0067]
According to the second aspect of the present invention, since the detection region is a low concentration region and the entrance of the tunnel is detected as a region of interest, it is suitable for daytime tunnel detection.
[0068]
According to the third aspect of the present invention, since the detection region is a high concentration region and the exit of the tunnel is detected as a region of interest, it is suitable for daytime tunnel detection.
[0069]
According to the fourth aspect of the present invention, the set density area detection means detects a predetermined density area from the tunnel image taken by the imaging means. Since the illumination inside and outside the tunnel is different, the exit image of the tunnel is taken at a density different from the surroundings. As the vehicle travels, the tunnel exit is picked up gradually so that the tunnel detection means can detect the tunnel exit by increasing the area of the detected region of the predetermined concentration. This detects the tunnel. As described above, the tunnel can be detected only by detecting the area having a predetermined concentration and calculating the area, and an effect that does not require complicated calculation can be obtained.
[0070]
When the road detection means detects the white line by processing the captured image and detects the direction of the road following the function approximation, the location of the tunnel can be accurately identified, improving the reliability of tunnel detection To do.
[0071]
According to the sixth aspect of the present invention, when the tunnel entrance is detected, the tunnel travel control means controls the vehicle to a state suitable for traveling in the tunnel, so that the vehicle operation for the traveling in the tunnel is automatically performed. The driving burden is reduced and safe driving is achieved.
[0072]
According to the seventh aspect of the present invention, when the tunnel exit is detected, the tunnel travel control means controls the vehicle to a state suitable for traveling outside the tunnel, so that the function set for traveling in the tunnel is automatically performed. Can be released automatically, and the operation for releasing can be omitted. When combined with
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of a first embodiment.
FIG. 2 is a flowchart showing a flow of processing of the entire embodiment.
FIG. 3 is an original image obtained by imaging a tunnel.
FIG. 4 is a diagram illustrating a state in which a white line is detected.
FIG. 5 is a binary image that has been binarized.
FIG. 6 is an explanatory diagram for searching a low density region and detecting a starting point and a top point.
FIG. 7 is an explanatory diagram for obtaining a conversion formula between an image position and a forward distance.
FIG. 8 is a flowchart for determining a tunnel.
FIG. 9 is a flowchart for detecting a white line.
FIG. 10 is a vertical edge view.
FIG. 11 illustrates window settings.
FIG. 12 is a flowchart for detecting a straight line;
FIG. 13 is an explanatory diagram for detecting an edge;
FIG. 14 is an image in which an edge approximation line is detected.
FIG. 15 is a block diagram showing a configuration of a second embodiment.
FIG. 16 is a diagram showing a flow of processing in the entire example.
FIG. 17 is a captured image in a tunnel.
FIG. 18 is a binarized image.
FIG. 19 is a flowchart for determining a tunnel.
FIG. 20 is a captured image after a certain time has elapsed.
FIG. 21 is a binary image.
FIG. 22 is a binarized image after a predetermined time has elapsed.
FIG. 23 is a binary image.
[Explanation of symbols]
1 Camera
2 White line detector
3 attention area extraction part
4 Low concentration area detector
5 Region of interest calculation section
6 Tunnel detector
7 Vehicle measurement sensor
8, 18 Control unit
9 Area calculator
10 Tunnel detector
11 Left white line
12 Right white line
13 Low density tunnel image
14 preceding car
21, 22 Approximate curve
31 Positive edge approximation line
32 Negative edge approximation line
a, b farthest point
c Top point
D distance
E width
h Camera mounting height
θ Imaging angle of the camera with respect to the horizontal plane
W window
s Window height
Wl Window top width
γ Straight line inclination angle
Wp Window upper center point
Claims (8)
車両の走行方向を撮像する撮像手段と、
走行路の続いている方向を検出する走行路検出手段と、
前記撮像手段の撮像画像から所定濃度の領域を検出する設定濃度領域検出手段と、
走行路の続いている方向を探索し所定濃度の領域を抽出し、トンネルの入口あるいは出口を示す注目領域とする注目領域抽出手段と、
該注目領域の画像位置を算出する注目領域演算手段と、
前記注目領域の画像位置変化で算出された距離変化と車両の移動量が一致し、かつ注目領域の見掛けの高さが所定値を越えた場合、前記注目領域をトンネルの入口あるいは出口と判定するトンネル検出手段とを有することを特徴とするトンネル検出装置。A tunnel detection device that is provided in a vehicle and detects a tunnel according to traveling of the vehicle,
Imaging means for imaging the traveling direction of the vehicle;
Traveling path detection means for detecting the direction in which the traveling path continues;
A set density area detecting means for detecting a predetermined density area from a captured image of the imaging means;
A region of interest extracting means for searching for the direction in which the travel path continues, extracting a region of a predetermined concentration, and indicating a region of interest indicating the entrance or exit of the tunnel,
Attention area calculation means for calculating the image position of the attention area;
When the distance change calculated by the image position change of the attention area matches the amount of movement of the vehicle and the apparent height of the attention area exceeds a predetermined value, the attention area is determined as the entrance or exit of the tunnel. A tunnel detection device comprising a tunnel detection means.
車両の走行方向を撮像する撮像手段と、
走行路の続いている方向を検出する走行路検出手段と、
前記撮像手段の撮像画像から低濃度の領域を検出する設定濃度領域検出手段と、走行路の続いている方向を探索し前記低濃度の領域を抽出し、トンネルの入口を示す注目領域とする注目領域抽出手段と、
該注目領域の画像位置を算出する注目領域演算手段と、
前記注目領域の画像位置変化で算出された距離変化と車両の移動量が一致し、かつ見掛けの高さが所定値を越えた場合、前記注目領域をトンネルの入口と判定するトンネル入口検出手段とを有することを特徴とするトンネル検出装置。A tunnel detection device that is provided in a vehicle and detects a tunnel according to traveling of the vehicle,
Imaging means for imaging the traveling direction of the vehicle;
Traveling path detection means for detecting the direction in which the traveling path continues;
A set density area detecting means for detecting a low density area from a captured image of the imaging means, and a search for a direction in which a traveling path is continued to extract the low density area, and attention as an attention area indicating a tunnel entrance Region extraction means;
Attention area calculation means for calculating the image position of the attention area;
A tunnel entrance detection means for determining that the region of interest is a tunnel entrance when the distance change calculated by the image position change of the region of interest matches the amount of movement of the vehicle and the apparent height exceeds a predetermined value; A tunnel detection apparatus comprising:
車両の走行方向を撮像する撮像手段と、
走行路の続いている方向を検出する走行路検出手段と、
前記撮像手段の撮像画像から高濃度の領域を検出する設定濃度領域検出手段と、走行路の続いている方向を探索し前記高濃度の領域を抽出し、トンネルの出口を示す注目領域とする注目領域抽出手段と、
該注目領域の画像位置を算出する注目領域演算手段と、
前記注目領域の画像位置変化で算出された距離変化と車両の移動量が一致し、かつ注目領域の見掛けの高さが所定値を越えた場合、前記注目領域をトンネルの出口と判定するトンネル出口検出手段とを有することを特徴とするトンネル検出装置。A tunnel detection device that is provided in a vehicle and detects a tunnel according to traveling of the vehicle,
Imaging means for imaging the traveling direction of the vehicle;
Traveling path detection means for detecting the direction in which the traveling path continues;
A set density area detecting means for detecting a high density area from a captured image of the imaging means, and a search for a direction in which a traveling path is continued to extract the high density area, and attention as an attention area indicating a tunnel exit Region extraction means;
Attention area calculation means for calculating the image position of the attention area;
A tunnel exit that determines a region of interest as a tunnel exit when the distance change calculated by the image position change of the region of interest matches the amount of vehicle movement and the apparent height of the region of interest exceeds a predetermined value A tunnel detection apparatus comprising: a detection unit.
車両の走行方向を撮像する撮像手段と、
前記撮像手段の撮像画像から所定濃度の領域を検出する設定濃度領域検出手段と、
該設定濃度領域検出手段で検出された領域の画像上での面積を算出する面積演算手段と、
前記車両の移動によって該面積演算手段の算出値が増加し、その面積の算出値が設定値以上になったことからトンネルの出口を判定するトンネル出口検出手段とを有することを特徴とするトンネル検出装置。A tunnel detection device that is provided in a vehicle and detects a tunnel according to traveling of the vehicle,
Imaging means for imaging the traveling direction of the vehicle;
A set density area detecting means for detecting a predetermined density area from a captured image of the imaging means;
Area calculating means for calculating an area on the image of the area detected by the set density area detecting means;
Tunnel detection means comprising: tunnel exit detection means for determining the exit of the tunnel because the calculated value of the area calculating means increases due to the movement of the vehicle and the calculated value of the area is equal to or greater than a set value apparatus.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP34231997A JP3612970B2 (en) | 1997-11-07 | 1997-11-07 | Tunnel detection apparatus and vehicle control apparatus using the same |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP34231997A JP3612970B2 (en) | 1997-11-07 | 1997-11-07 | Tunnel detection apparatus and vehicle control apparatus using the same |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH11139225A JPH11139225A (en) | 1999-05-25 |
JP3612970B2 true JP3612970B2 (en) | 2005-01-26 |
Family
ID=18352813
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP34231997A Expired - Fee Related JP3612970B2 (en) | 1997-11-07 | 1997-11-07 | Tunnel detection apparatus and vehicle control apparatus using the same |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3612970B2 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9544546B2 (en) | 2011-07-20 | 2017-01-10 | Denso Corporation | Cruising lane recognition in a tunnel |
CN109866617A (en) * | 2019-02-18 | 2019-06-11 | 武汉格瑞恩电子仪表有限公司 | Combination meter for electric automobile |
Families Citing this family (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4496964B2 (en) | 2005-01-14 | 2010-07-07 | 株式会社デンソー | Tunnel detection device for vehicle and light control device for vehicle |
JP4776295B2 (en) | 2005-07-28 | 2011-09-21 | 富士通株式会社 | Running path judgment method |
JP2008126905A (en) * | 2006-11-22 | 2008-06-05 | Toyota Motor Corp | Control device of transmittance of vehicle window |
JP4987573B2 (en) | 2007-06-01 | 2012-07-25 | 富士重工業株式会社 | Outside monitoring device |
JP2010120470A (en) * | 2008-11-18 | 2010-06-03 | Alpine Electronics Inc | Safety assist device for vehicle |
JP4757932B2 (en) * | 2009-06-23 | 2011-08-24 | アキュートロジック株式会社 | Exposure control device and exposure control method for vehicle imaging device |
EP2594901A4 (en) * | 2010-10-28 | 2015-05-27 | Toyota Mapmaster Inc | Device and method for specifying altitudes of tunnel entrance and exit, computer program for specifying altitudes of tunnel entrance and exit, and recording medium for recording this computer program |
DE102011113077A1 (en) * | 2011-09-07 | 2013-03-07 | Conti Temic Microelectronic Gmbh | Method for determining a passability of an object for a vehicle by means of a 3D camera |
WO2013088511A1 (en) * | 2011-12-13 | 2013-06-20 | パイオニア株式会社 | Display device, display method, head-up display, and detection device |
CN103375879B (en) * | 2012-04-27 | 2016-04-13 | 比亚迪股份有限公司 | Air-conditioner control system and method in a kind of car |
JP5884635B2 (en) | 2012-05-18 | 2016-03-15 | 株式会社デンソー | Driving environment detection device, driving environment detection program, and light control device |
JP6140658B2 (en) * | 2014-08-20 | 2017-05-31 | 株式会社Soken | Traveling lane marking recognition device, traveling lane marking recognition program |
JP6389119B2 (en) | 2014-12-25 | 2018-09-12 | 株式会社デンソー | Lane boundary recognition device |
KR20180025591A (en) * | 2016-09-01 | 2018-03-09 | 삼성전자주식회사 | Control method and apparatus of vision sensor for automatic driving car |
CN113580873A (en) * | 2021-07-13 | 2021-11-02 | 深圳市元征未来汽车技术有限公司 | Vehicle air circulation system switching method and device and vehicle |
-
1997
- 1997-11-07 JP JP34231997A patent/JP3612970B2/en not_active Expired - Fee Related
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9544546B2 (en) | 2011-07-20 | 2017-01-10 | Denso Corporation | Cruising lane recognition in a tunnel |
CN109866617A (en) * | 2019-02-18 | 2019-06-11 | 武汉格瑞恩电子仪表有限公司 | Combination meter for electric automobile |
Also Published As
Publication number | Publication date |
---|---|
JPH11139225A (en) | 1999-05-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3612970B2 (en) | Tunnel detection apparatus and vehicle control apparatus using the same | |
US11087148B2 (en) | Barrier and guardrail detection using a single camera | |
US6477260B1 (en) | Position measuring apparatus using a pair of electronic cameras | |
JP5313072B2 (en) | External recognition device | |
JP4603970B2 (en) | Road marking line detection device | |
US7612800B2 (en) | Image processing apparatus and method | |
US20070127778A1 (en) | Object detecting system and object detecting method | |
JP5827508B2 (en) | Obstacle detection device for vehicle and vehicle using the same | |
JP4835201B2 (en) | 3D shape detector | |
JP3230642B2 (en) | Vehicle ahead detection device | |
US20090052742A1 (en) | Image processing apparatus and method thereof | |
US11657624B2 (en) | Image processor and image processing method for parking frame estimation on a road surface | |
US20210248753A1 (en) | Image processor and image processing method | |
JP3656056B2 (en) | Interrupting vehicle detection device and method | |
JP2007326428A (en) | Parking assisting device | |
JP2019079470A (en) | White line recognition apparatus for vehicle | |
JP3868915B2 (en) | Forward monitoring apparatus and method | |
JP2005025497A (en) | Sign recognizing device | |
JP7003972B2 (en) | Distance estimation device, distance estimation method and computer program for distance estimation | |
JP3319401B2 (en) | Roadway recognition device | |
JP3465531B2 (en) | Object recognition method and apparatus | |
JP2004230963A (en) | Tunnel detecting method for vehicle, tunnel detecting device for vehicle, and vehicle controller using tunnel detecting device | |
JPH09272414A (en) | Vehicle control device | |
JPH11205663A (en) | Exposure amount controller for image pickup device for vehicle | |
JPH11259792A (en) | Method and device for recognizing vehicle |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20040921 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20041005 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20041018 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081105 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091105 Year of fee payment: 5 |
|
LAPS | Cancellation because of no payment of annual fees |