JP5201354B2 - Vehicle width line adjusting method, in-vehicle camera device, and program - Google Patents
Vehicle width line adjusting method, in-vehicle camera device, and program Download PDFInfo
- Publication number
- JP5201354B2 JP5201354B2 JP2009025016A JP2009025016A JP5201354B2 JP 5201354 B2 JP5201354 B2 JP 5201354B2 JP 2009025016 A JP2009025016 A JP 2009025016A JP 2009025016 A JP2009025016 A JP 2009025016A JP 5201354 B2 JP5201354 B2 JP 5201354B2
- Authority
- JP
- Japan
- Prior art keywords
- vehicle width
- vehicle
- width line
- coordinate
- line
- 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.)
- Active
Links
Images
Landscapes
- Fittings On The Vehicle Exterior For Carrying Loads, And Devices For Holding Or Mounting Articles (AREA)
- Closed-Circuit Television Systems (AREA)
- Studio Devices (AREA)
Description
本発明は、車に設置して使用する車載カメラ装置において、撮像した画像に重畳して表示させる車幅の目安を示す2本の車幅線の調整技術に関する。 The present invention relates to a technique for adjusting two vehicle width lines, which is an indication of a vehicle width to be displayed superimposed on a captured image in an in-vehicle camera device used by being installed in a car.
従来から駐車時における車両後退動作等を支援するため、車両の後方部等に設置して車両の後方周辺を撮影し、その画像を車内に設置した表示装置に表示する車載カメラ装置が知られている。さらに、撮影された画像に重畳して、車幅の目安となる2本の車幅線を表示することも知られている(例えば、特許文献1)。 2. Description of the Related Art Conventionally, an in-vehicle camera device is known that is installed in a rear portion of a vehicle to capture a rear periphery of the vehicle and displays the image on a display device installed in the vehicle in order to support a vehicle backward movement operation or the like during parking. Yes. Furthermore, it is also known to display two vehicle width lines that serve as an indication of the vehicle width in a superimposed manner on the captured image (for example, Patent Document 1).
表示装置上に撮像画像に重畳して表示される車幅線の調整は、一般に操作部のボタン等の押下を繰り返して、表示装置上に表示されている路上の駐車枠等に合うように、2本の車幅線の角度及び幅(間隔)を逐次変更することで行われる。従来の車載カメラ装置では、このような車幅線の角度及び幅の変更操作を別モードで別々に行っており、調整の煩雑さに加えて時間の浪費が問題であった。 Adjustment of the vehicle width line displayed superimposed on the captured image on the display device generally repeats pressing of the buttons of the operation unit, etc., so as to fit the parking frame on the road displayed on the display device, etc. This is done by sequentially changing the angle and width (interval) of the two vehicle width lines. In the conventional in-vehicle camera device, such an operation of changing the angle and width of the vehicle width line is performed separately in another mode, and time wasted in addition to the complexity of adjustment.
本発明の課題は、車載カメラ装置において、撮影した画像に重畳して表示される2本の車幅線の調整の煩雑さと時間の浪費の回避を実現することにある。 SUMMARY OF THE INVENTION An object of the present invention is to realize intricate adjustment of two vehicle width lines displayed on a captured image and avoiding waste of time in an in-vehicle camera device.
本発明では、撮像素子で撮像した画像に車幅の目安を示す2本の車幅線を重畳し、表示装置にて表示させる車載カメラ装置において、操作部の操作ごとに前記2本の車幅線の角度および幅を連動して調整することを主要な特徴とする。 In the present invention, in the in-vehicle camera device in which two vehicle width lines indicating the vehicle width are superimposed on the image picked up by the image pickup device and displayed on the display device, the two vehicle widths are displayed for each operation of the operation unit. The main feature is that the angle and width of the line are adjusted in conjunction.
本発明によれば、操作部の操作ごとに、車幅線の角度と幅が連動して調整されることにより、調整の煩雑と時間の浪費を回避することができる。 According to the present invention, since the angle and the width of the vehicle width line are adjusted in association with each operation of the operation unit, it is possible to avoid complicated adjustment and waste of time.
以下、本発明の一実施の形態について図面を参照して説明する。なお、本発明の車載カメラ装置は以下の図示の構成に限定されるものではない。 Hereinafter, an embodiment of the present invention will be described with reference to the drawings. In addition, the vehicle-mounted camera apparatus of this invention is not limited to the structure of the following illustration.
図1は、本発明に係る車載カメラ装置の一実施形態の全体構成図を示す。センサユニット10は、車の後方等を撮像してアナログ画像信号を取得し、それをアナログ・デジタル変換してRGBデータとして出力する。画像処理ユニット20は、センサユニット10が出力する撮像画像のRGBデータを入力して所定の画像処理を施すと共に、撮像画像に車幅の目安を示す2本の車幅線を重畳し、YCbCrデータとして出力する。また、画像処理ユニット20は、クロック発生器50から装置各部を動作させる基となるクロック信号の供給を受けて、センサユニット10やNSCエンコーダ30にクロック、その他の制御信号を送出する。クロック発生器50には水晶発振器などが用いられる。
FIG. 1 is an overall configuration diagram of an embodiment of an in-vehicle camera device according to the present invention. The
画像処理ユニット20で所定の画像処理を施され、2本の車幅線が重畳された撮像画像のYCbCrデータは、NTSCエンコーダ30に送られ、デジタル・アナログ変換処理を施されてNTSC信号に変換され、表示装置40に出力される。表示装置40は、ナビゲーション装置の表示部が兼ねることでもよい。
The
ここで、画像処理ユニット20はFPGA(Field Programable Gate Array)やASIC(Application Specific Integrated Circuit)、DSP(Digital Signal Processor)などで構成される。操作部60は、利用者が画像処理ユニット20に対して種々の処理を指示するユーザインターフェイスであり、ボタンやジョイステックなどで構成される。後述するように、利用者が操作部60を操作することによって、画像処理ユニット20では撮像画像データに重畳する2本の車幅線の角度及び幅を連動して調整する。PROM70は、書き換え可能な不揮発性メモリであり、画像処理ユニット20の処理に必要なプログラム、種々のパラメータ、その他の情報を記憶する。後述するように、該PROM70には、車載カメラ装置の取り付け角度と取り付け高さに対応して、車幅線の始点と終点の座標初期値、更新条件、ステップ量などがあらかじめテーブル化して記憶されている。
Here, the
図1中のセンサユニット10、画像処理ユニット20、NTSCエンコーダ30、クロック発生器50、PROM70等は、一つの筐体内に構成され、車の後部等に設置される。一方、表示装置40は車の前面等に設置され、NTSCエンコーダ30とはケーブルで接続される。操作部60と画像処理装置ユニット20とはケーブルあるいは無線で接続される。なお、ナビゲーション装置のリモコンが操作部60を兼ねてもよい。
The
次に、センサユニット10及び画像処理ユニット20の具体的構成及び動作について説明する。
Next, specific configurations and operations of the
図2はセンサユニット10の構成例を示す。センサユニット10はレンズ光学系110、撮像素子120、オートゲインコントロール回路(AGC)130、オートホワイトバランス回路(AWB)140、アナログ−デジタル変換器(ADC)150などで構成される。
FIG. 2 shows a configuration example of the
光学系110により撮像素子120に光を効率よく集光させる。ここでは、光学系110に広角で倍率色収差及び歪曲収差の大きいレンズを用いるとする。
Light is efficiently condensed on the
撮像素子120は、CCDやCMOSなどで構成され、光学系110により集光された光学像を、その光強度に応じて強弱を持った電気信号(アナログ信号)に変換する。図2では省略したが、該撮像素子120には、各画素対応にRGBいずれかの波長帯を透過させるカラーフィルタが設置されている。カラーフィルタはどのような配列を持つものでも構わないが、ここではベイヤー配列型のカラーフィルタを用いるとする。
The
撮像素子120で取得された撮像画像のアナログ信号は、オートゲインコントロール回路(AGC)130、オートホワイトバランス回路(AWB)140を経て、アナログ−デジタル変換器(ADC)150によりデジタルデータに変換される。AGC130は、後段のNTSCエンコーダ30の入力に必要なレベルの信号を出力するための回路である。すなわち、被写体が明るい場合はアンプのゲインを下げ、暗い場合には所定のレベルになるようにアンプのゲインを上げる。なお、ゲインを上げると、ノイズも増加するため、信号のS/N比を下げるようにする。AWB140は、白色の被写体を撮像した際にRGBそれぞれの信号強度が全て等しくなるようにRGB対応の各チャンネルのゲインを調整する。ADC150は、アナログ信号のRGBそれぞれの信号をデジタルデータ(RGBデータ)に変換する。デジタルデータは、例えば、RGBそれぞれ8ビットで構成される。
An analog signal of a captured image acquired by the
図3は画像処理ユニット20の構成例を示す。画像処理ユニット20は、画像処理部210、該画像処理部210やその他、各部の動作を制御する制御部(マイクロプロセッサ)220、作業用メモリとしてのRAM230、RAM230とPROM70のインターフェース回路(I/F)240などからなる。ここで、画像処理部210はベイヤー補完部211、倍率色収差補正部212、色空間変換部213、MTF補正部214、歪曲収差補正部215、車幅線重畳部216、ガンマ補正部217、プログレッブ・インタレース変換部(PI変換部)218などで構成される。このうち、車幅重畳部216が本発明に関係する。また、制御部220が車幅線調整手段として機能する。これについては後述する。
FIG. 3 shows a configuration example of the
なお、画像処理ユニット20は、図1に示したクロック発生器50からクロック信号を入力して、センサユニット10やNTSCエンコーダ30、画像処理部210の各部に必要なクロック、制御信号などを供給する手段も備えているが、図3では省略してある。
The
センサユニット10から出力される撮像画像のRGBデータは、画像処理ユニット20の画像処理部210に入力され、ベイヤー補完部211、倍率色収差補正部212、色空間変換部213、MTF補正部214、歪曲収差補正部215、車幅線重畳部216、ガンマ補正部217、PI変換部218を経由して所定の処理が施される。
The RGB data of the captured image output from the
ベイヤー補完部211は、ベイヤー配列のRGBデータを入力して、各画素で欠損している色データを補完する。補完には、例えば、以下のような線形補完法を用いる。
The
図4にベイヤー配列のカラーフィルタの一例を示す。ここで、G0は次式により求める。
G0=(G2+G4+G6+G8)/4 (1)
また、R2,R4,R6,R8,R0は次式により求める。
R2=(R1+R3)/2 (2)
R4=(R3+R5)/2 (3)
R6=(R5+R7)/2 (4)
R8=(R1+R7)/2 (5)
R0=(R1+R3+R5+R7)/4 (6)
B2,B4,B6,B8,B0は上記R2,R4,R6,R8,R0の場合と同じであるので省略する。
FIG. 4 shows an example of a Bayer array color filter. Here, G 0 is obtained by the following equation.
G 0 = (G 2 + G 4 + G 6 + G 8 ) / 4 (1)
R 2 , R 4 , R 6 , R 8 and R 0 are obtained by the following equations.
R 2 = (R 1 + R 3 ) / 2 (2)
R 4 = (R 3 + R 5 ) / 2 (3)
R 6 = (R 5 + R 7 ) / 2 (4)
R 8 = (R 1 + R 7 ) / 2 (5)
R 0 = (R 1 + R 3 + R 5 + R 7 ) / 4 (6)
Since B 2 , B 4 , B 6 , B 8 , and B 0 are the same as those for R 2 , R 4 , R 6 , R 8 , and R 0 , they are omitted.
ここでは、ベイヤー配列のカラーフィルタについて述べたが、他のカラーフィルタ配列でも同様である。もちろん、補完方法も線形補完に限らない。 Here, a Bayer color filter is described, but the same applies to other color filter arrays. Of course, the complement method is not limited to linear complement.
倍率色収差補正部212は、ベイヤー補完されたRGBデータを入力して、所定の座標変換式を用いてRGBごとに座標変換を施し、倍率色収差補正されたRGBデータを出力する。
The lateral chromatic
倍率色収差は、各波長(色)から見た場合のレンズの屈折率が異なることにより、集光点が各波長で異なる現象である。このように、それぞれの波長(色)で集光する位置が異なるため、座標変換を施す必要がある。 The lateral chromatic aberration is a phenomenon in which the condensing point is different at each wavelength due to the difference in the refractive index of the lens when viewed from each wavelength (color). As described above, since the light collecting positions are different at the respective wavelengths (colors), it is necessary to perform coordinate conversion.
一般に倍率色収差補正の座標変換式には、画面中央を原点とし、X,Yを変換後の座標、x,yを変換前の座標、a(1)〜a(4)、b(1)〜b(4)を座標変換係数として、例えば、
X=x+[a(1)+a(2)×abs(x)+a(3)×abs(y)+a(4)×y2]×x (7)
Y=y+[b(1)+b(2)×abs(y)+b(3)×abs(x)+b(4)×x2]×y (8)
の多項式が用いられる。ここで、abs( )は絶対値である。
In general, in the coordinate conversion formula for correcting the chromatic aberration of magnification, the center of the screen is the origin, X and Y are the coordinates after conversion, x and y are the coordinates before conversion, a (1) to a (4), b (1) to With b (4) as a coordinate conversion coefficient, for example,
X = x + [a (1) + a (2) × abs (x) + a (3) × abs (y) + a (4) × y 2 ] × x (7)
Y = y + [b (1) + b (2) × abs (y) + b (3) × abs (x) + b (4) × x 2 ] × y (8)
Is used. Here, abs () is an absolute value.
しかし、座標変換演算に用いられる乗算器の個数や回路規模に制限がある場合は、式(7),(8)を簡単化し、例えば、
X=x+[a(1)]×x (9)
Y=y+[b(1)]×y (10)
のような座標変換式を用いることでもよい。
However, when there are restrictions on the number of multipliers used in the coordinate transformation calculation and the circuit scale, the equations (7) and (8) are simplified,
X = x + [a (1)] × x (9)
Y = y + [b (1)] × y (10)
A coordinate conversion expression such as
色空間変換部213は、後段のMTF補正部214で輝度信号(Y)のみに高域強調フィルタを掛けることや、さらにNTSCエンコーダ30に対してYCC形式で入力させるために、RGBデータをYCbCrデータに変換する。RGB/YCC変換式には、例えば、次式が用いられる。
Y=0.299R+0.587G+0.114B (11)
Cb=−0.169R−0.332G+0.500B (12)
Cr=0.500R−0.419G−0.081B (13)
The color
Y = 0.299R + 0.587G + 0.114B (11)
Cb = −0.169R−0.332G + 0.500B (12)
Cr = 0.500R-0.419G-0.081B (13)
MTF補正部214は、YCbCrデータを入力し、輝度信号Yに対して高域強調フィルタ(HPF)を掛ける。色信号CbCrはそのままとする。MTF補正を行うことで画像の解像度を向上させることができる。
The
図5の(a)は、HPFとしては3×3や5×5などのエッジ強調FIRフィルタを用いてMTF補正を行う場合を示したものである。 FIG. 5A shows a case where MTF correction is performed using an edge enhancement FIR filter such as 3 × 3 or 5 × 5 as the HPF.
一方、エッジ強調FIRフィルタを用いた場合、ノイズが増加して画像のS/N比が低下することが考えられる。その場合には、図5の(b)に示すように、輝度信号Yを低域フィルタ(LPF)を通過させると共に、エッジ抽出フィルタ、コアリング、ゲイン回路を通過させて、両者を加算することで、MTF補正を保持したままノイズを低下させて、画像のS/N比を向上させることができる。さらに、回路規模を削減するため、図5の(c)に示すように、LPFを通さずに処理することでもよい。 On the other hand, when an edge-enhanced FIR filter is used, it is conceivable that noise increases and the S / N ratio of the image decreases. In that case, as shown in FIG. 5B, the luminance signal Y is passed through the low-pass filter (LPF) and is also passed through the edge extraction filter, coring, and gain circuit, and both are added. Thus, the noise can be reduced while maintaining the MTF correction, and the S / N ratio of the image can be improved. Further, in order to reduce the circuit scale, as shown in FIG. 5C, the processing may be performed without passing through the LPF.
歪曲収差補正部215は、MTF補正されたYCbCrデータを入力し、所定の座標変換式を用いて歪曲収差を行う。歪曲収差補正の座標変換式には、先の倍率色収差と同様な式(7),(8)を用いることができる。
The distortion
また、座標変換演算に用いられ乗算器の個数や回路規模に制限がある場合は、
Y=y (14)
X=x+[a(1)+a(4)×y2]×x (15)
のような簡単な座標変換式を用いることでもよい。
In addition, when there are restrictions on the number of multipliers and circuit scale used for coordinate transformation calculations,
Y = y (14)
X = x + [a (1) + a (4) × y 2 ] × x (15)
A simple coordinate conversion formula such as
車幅線重畳部216は、所定の処理が施された撮像画像のYCbCrデータを入力し、これに車幅の目安を示す2本の車幅線を表わす線分を重畳して出力する。後述するように、制御部220により、この2本の車幅線を表わす線分の角度及び幅(間隔)が連動して調整される。
The vehicle width
ガンマ補正部217は、2本の車幅線を表わす線分が重畳された撮像画像のYCbCrデータについてガンマ補正を施す。ガンマ補正は、画像などの色のデータと、それが実際に出力される際の信号の相対関係を調節して、より自然に近い表示を得るための補正操作のことをいう。γ(ガンマ)値は、画像の明るさの変化に対する電圧換算値の変化の比で、これが1に近づくのが理想であるが、素子の特性により機器によってそれぞれ異なった値となる。このため、元データに忠実な表示を再現する場合、これらの誤差を修正する必要がある。ガンマ補正部217では、ガンマ補正ルックアップ等を用いてガンマ補正を実施する。
The
PI変換部218は、ガンマ補正されたYCbCrデータを入力して、プログレッシブ走査(順次走査)からインターレース走査(飛び越し走査)に変換する。これは、できるだけ少ない情報量で、解像度を高く、動きを滑らかにするためである。NTSC方式の場合、1/30秒毎の一つのフレームを二つに分け、最初の1/60秒間は奇数番目の走査線だけを、後の1/60秒間は偶数番目の走査線だけを映す。それぞれを奇数フィールド、偶数フィールドと呼ぶ。この間に画像が動いていれば、二つのフィールドを静止画として重ねるとずれることになるが、映像として見ると動きが滑らかである。1/60秒毎に全ての走査線を送るプログレッシブ走査では静止画も映像も滑らかであるが、インターレースと比較するとメモリを2倍必要とする。PI変換部218の後段のDAC(NTSCエンコーダ)30に入力させる信号は、例えば、BT656規格にしたがい輝度信号(Y)の符号なし8ビットデータ0〜255を16〜235に、色差信号(Cb,Cr)の符号付き8ビットデータ127〜127を16〜240に変換した信号である。
The
NTSCエンコーダ30は、画像処理部210から出力された撮像画像と車幅の目安を示す2本の車幅線を表わす線分とが重畳されたデータであるYCbCrデータを入力して、それをNSTC方式の映像信号に変換し、表示装置40に出力する。このようにして、表示装置40上には、撮像素子で撮像された画像に、車幅の目安を示す2本の車幅線が重畳して表示される。本発明によれば、制御部220の制御下で、この車幅線の角度及び幅が連動して同じモードで調整される。
The
以下に、本発明に係る車幅線調整方法について詳述するが、その前に従来の車幅線調整方法について説明する。 Below, the vehicle width line adjusting method according to the present invention will be described in detail, but before that, a conventional vehicle width line adjusting method will be described.
表示装置40上に撮像画像に重畳して表示される2本の車幅線の調整は、ユーザが操作部60のボタン等の押下を繰り返して、例えば、該表示装置40上に表示されている路上の駐車枠等に合うように、その角度及び幅(間隔)を逐次変更することで行われる。
The adjustment of the two vehicle width lines displayed superimposed on the captured image on the
図6(a)に、従来の車幅線調整の操作手順を示す。ここで、各調整モードは、それぞれボタン等の1回の押下に対応している。図6(a)に示すように、従来は車幅線の角度調整および幅調整を別モードで行い、ボタン等の1回の押下では、角度調整あるいは幅調整のいずれか一方を行うというものであった。角度調整は、図7に示すように、例えば、車幅線を表わす2つの線分の始点と終点のうちのどちらか一方のX座標を更新して行う。図7は、一例として始点のX座標を更新する場合を示している。一方、幅調整は、図8に示すように、例えば2つの線分の始点と終点のX座標を同じピクセルずつ更新して行う。図8は、2つの線分の始点と終点のX座標をピクセルaずつ更新することで、水平方向に2つの線分を平行移動して、幅(間隔)を調整することを示している。 FIG. 6A shows a conventional procedure for adjusting the vehicle width line. Here, each adjustment mode corresponds to a single press of a button or the like. As shown in FIG. 6 (a), conventionally, the angle adjustment and width adjustment of the vehicle width line are performed in different modes, and one press of a button or the like performs either angle adjustment or width adjustment. there were. As shown in FIG. 7, the angle adjustment is performed, for example, by updating the X coordinate of one of the start point and the end point of two line segments representing the vehicle width line. FIG. 7 shows a case where the X coordinate of the starting point is updated as an example. On the other hand, as shown in FIG. 8, for example, the width adjustment is performed by updating the X coordinates of the start point and the end point of two line segments by the same pixel. FIG. 8 shows that the width (interval) is adjusted by translating two line segments in the horizontal direction by updating the X coordinates of the start point and end point of the two line segments pixel by pixel a.
このように、従来の車幅線の角度調整と幅調整を別モードで別々に行う方式では、所望の角度と幅に到達するまでボタン等の押下を何度も繰り返して、試行錯誤で角度調整と幅調整を行うこととなり、調整の煩雑さに加えて時間の浪費は免れなかった。 In this way, with the conventional method in which angle adjustment and width adjustment of the vehicle width line are separately performed in different modes, the button is pressed repeatedly until the desired angle and width are reached, and the angle is adjusted by trial and error. In addition to the complexity of adjustment, wasted time was inevitable.
図6(b)に、本発明の場合の車幅線調整の操作手順を示す。先の図6(a)と同様に、各調整モードは、それぞれボタン等の1回の押下に対応している。図6(b)に示すように、本発明では、ボタン等の1回の押下で、車幅線の角度調整と幅調整を連動させて同じモードで行う。 FIG. 6B shows a procedure for adjusting the vehicle width line in the case of the present invention. As in FIG. 6A, each adjustment mode corresponds to a single press of a button or the like. As shown in FIG. 6 (b), in the present invention, the angle adjustment and the width adjustment of the vehicle width line are performed in the same mode by one press of a button or the like.
図9は、本発明にかかる車幅線調整方法を説明する図である。なお、ここでは、一例として、表示装置に表示されている路上の駐車枠に合うように、該表示装置上の車幅線を表わす2つの線分の表示角度と表示位置を調整する場合を示したものである。図9に示すように、本発明では、例えば車幅線を表わす2つの線分の始点のX座標はピクセルaずつ更新し、同時に終点のX座標はピクセルb(a≠b)ずつ更新する。更新は、操作部60のボタン等を1回押すごとに行われる。
FIG. 9 is a diagram for explaining a vehicle width line adjusting method according to the present invention. Here, as an example, a case where the display angle and the display position of two line segments representing the vehicle width line on the display device are adjusted so as to fit the parking frame on the road displayed on the display device is shown. It is a thing. As shown in FIG. 9, in the present invention, for example, the X coordinate of the start point of two line segments representing the vehicle width line is updated pixel by pixel a, and at the same time, the X coordinate of the end point is updated by pixel b (a ≠ b). The update is performed every time the button of the
本発明の車幅線調整方法によれば、表示装置に表示される車幅線を表わす2つの線分の角度と幅(間隔)を連動させて同じモードで調整することが可能になり、従来の方法に比べて少ない操作回数で、所望の角度と幅の車幅線に到達できるようになる。 According to the vehicle width line adjusting method of the present invention, it becomes possible to adjust the angle and width (interval) of two line segments representing the vehicle width line displayed on the display device in the same mode. The vehicle width line having a desired angle and width can be reached with a smaller number of operations than the above method.
ここで、表示装置40に表示される駐車枠の表示角度や表示位置は、例えば、路上に書かれている駐車枠の手前の線を車体の後端部に一致させた場合、車載カメラの取り付け角度(地面に水平な方向から見たときの角度)と取り付け高さ(地面からの高さ)を決めてしまえば、ある程度一意に決まる。そのため、操作部60のボタンを1回押下したときに、車幅線を表わす線分の始点と終点それぞれのX座標をそれぞれ何ピクセルずつ移動させればよいかを表わすステップ量(a,b)は、あらかじめ決めておくことができる。
Here, the display angle and the display position of the parking frame displayed on the
実施形態では、車載カメラの取り付け角度と取り付け高さ毎に、線分の始点と終点の座標と共に、ボタンを1回押下した時に、線分の始点と終点のX座標をそれぞれ移動させるステップ量(a,b)のパラメータ値をテーブル化してあらかじめPROM70に記憶しておく。これを車幅線調整パラメータ・テーブルと称す。また、ステップ量(a,b)はX座標の値に応じて変えてもよい。この場合、テーブル化する内容には、更新条件として該X座標の条件を追加する。
In the embodiment, for each mounting angle and mounting height of the in-vehicle camera, together with the coordinates of the start point and end point of the line segment, the step amount for moving the start point and end point X coordinate of the line segment when the button is pressed once ( The parameter values of a and b) are tabulated and stored in the
図10に車幅線調整パラメータ・テーブルの具体例を示す。これは、例えば車載カメラの取り付け角度や取り付け高さを変えて、駐車枠を撮像した画像を参照してテストを繰り返すことで得られる。図10において、例1〜3は、車載カメラの取り付け高さが50cmで、取り付け角度をそれぞれ30度、45度、60度した場合を示し、例4〜6は、車載カメラの取り付け高さが100cmで、取り付け角度を同様に30度、45度、60度とした場合を示している。 FIG. 10 shows a specific example of the vehicle width line adjustment parameter table. This can be obtained, for example, by changing the mounting angle or mounting height of the in-vehicle camera and repeating the test with reference to an image obtained by capturing the parking frame. In FIG. 10, Examples 1 to 3 show the case where the mounting height of the in-vehicle camera is 50 cm and the mounting angles are 30 degrees, 45 degrees, and 60 degrees, respectively. In the case of 100 cm, the attachment angles are similarly set to 30 degrees, 45 degrees, and 60 degrees.
なお、図10では、表示装置に表示される車幅線を表わす2つの線分中の画面左側の線分に対するデータのみしか示していないが、画面右側の線分は、画面左側の線分を画面中央を中心に対称とすることで得ることができる。 In FIG. 10, only the data for the line segment on the left side of the screen among the two line segments representing the vehicle width line displayed on the display device is shown, but the line segment on the right side of the screen represents the line segment on the left side of the screen. It can be obtained by making the screen center symmetrical.
ここで、図10の例1は、車載カメラの取り付け角度、取り付け高さをそれぞれ30度、50cmに設置した場合、画面左側の車幅線の始点と終点の座標初期値はそれぞれ(200,196),(12,284)であり、該画面左側の車幅線の始点X座標がX>240のときは、該車幅線の始点と終点のX座標をそれぞれ移動させるステップ量(a,b)は(4,8)とし、また、該画面左側の車幅線の始点のX座標がX≦240のときは、ステップ量(a,b)は(4,12)とすることを表わしている。例2と例3についても同様である。 Here, in Example 1 of FIG. 10, when the mounting angle and mounting height of the in-vehicle camera are respectively set to 30 degrees and 50 cm, the initial coordinate values of the start point and end point of the vehicle width line on the left side of the screen are (200, 196), respectively. ), (12, 284), and when the start point X coordinate of the vehicle width line on the left side of the screen is X> 240, step amounts (a, b) for moving the X coordinate of the start point and end point of the vehicle width line, respectively ) Is (4, 8), and when the X coordinate of the start point of the vehicle width line on the left side of the screen is X ≦ 240, the step amount (a, b) is expressed as (4, 12). Yes. The same applies to Example 2 and Example 3.
図10の例4は、車載カメラの取り付け角度、取り付け高さをそれぞれ30度、100cmに設置した場合、画面左側の車幅線の始点と終点の座標初期値はそれぞれ(208,216),(80,316)であり、該車幅線の始点と終点のX座標をそれぞれ移動させるステップ量(a,b)は、該車幅線の始点のX座標に関係なく(4,8)とすることを表わしている。例5と例6についても同様である。 In Example 4 of FIG. 10, when the mounting angle and mounting height of the in-vehicle camera are set at 30 degrees and 100 cm, the initial coordinate values of the start point and end point of the vehicle width line on the left side of the screen are (208, 216), ( 80, 316), and the step amount (a, b) for moving the start point and end point X coordinate of the vehicle width line is (4, 8) regardless of the X coordinate of the start point of the vehicle width line. It represents that. The same applies to Example 5 and Example 6.
PROM70には、図10の車幅線調整パラメータ・テーブルの他に、当該車載カメラ装置の取り付け角度及び取り付け高さの情報を予め記憶しておくようにする。また、PROM70には、制御部220が車幅線調整手段として機能するプログラムも記憶されている。
In the
装置の起動時等、制御部220は、PROM70に記憶された当該車載カメラ装置の取り付け角度及び取り付け高さの情報をもとに、同じくPROM70に記憶された車幅線調整パラメータ・テーブル中の対応するデータ(線分の始点と終点の座標初期値、X座標の条件、X座標の始点と終点のステップ量a,b)をRAM230に取り込む。そして、線分の始点と終点の座標初期値を車幅線重畳部216に送る。
At the time of starting the device, the
車幅線重畳部216は、制御部220から送られた線分の始点と終点の座標初期値をもとに、車幅線を表わす2つの線分データを生成して撮像画像データに重畳し、そのYCbCrデータをNTSCエンコーダ30に送出する。これにより、表示装置40に出力される撮像画像上には、車幅の目安を示す2本の車幅線が重畳して表示される。
The vehicle width
一方、制御部220は、調整モードが指示されると、操作部60のボタンの押下等に応じて、X座標の条件、X座標の始点と終点のステップ量(a,b)を基に車幅線重畳部216へ送信する線分の始点と終点の座標値(X座標値)を更新する。車幅線重畳部216は、この更新された線分の始点と終点の座標値をもとに、あらためて線分データを生成する。これにより、表示装置40に表示されている2本の車幅線の角度と幅が同時に変化する。
On the other hand, when the adjustment mode is instructed, the
制御部220は、操作部60のボタン等が1回押下される毎に、その直前の線分の始点と終点のX座標値をそれぞれ値a,bずつ更新していく。増加するか減少するは、例えば、「+」ボタン、「−」ボタンなどで区別すればよい。車幅線重畳部216は、座標値の更新の度に、線分データを生成し直す。したがって、操作部60のボタン等が1回押下される毎に、表示装置40に表示されている2本の車幅線の始点X座標はピクセルaずつ移動し、終点X座標はピクセルbずつ移動し、結局、車幅線の角度及び幅が連動して調整される。すなわち、図9に示した車幅線調整動作が達成される。
Each time the button of the
制御部220では、調整モードの終了が指示されると、PROM70の車幅線調整パラメータ・テーブルの対応するデータの線分の始点と終点の座標値を、更新後の線分の始点と終点の座標値で上書きすることでもよい。この場合、装置が次の起動時等においては、直前に更新された線分の始点と終点の座標値にもとづく車幅線が、まず、表示装置40上に表示される。ユーザは、これを見て調整が必要としたなら、調整モードに移行することになるが、線分の始点と終点の座標初期値から始めるよりは、一般にボタンの押下は少ない回数ですむ。なお、当初の(工場出荷時等)の座標初期値は、バックアップ用にPROM70の別領域等に保存しておけばよい。
When the
図11及び図12は、本発明の車載カメラ装置における車幅線調整動作に関係する処理フロー例を示したものである。以下、これに基づいて車幅線調整手段としての制御部220及び車幅線重畳部216の動作を詳述する。
11 and 12 show an example of a processing flow related to the vehicle width line adjusting operation in the in-vehicle camera device of the present invention. Hereinafter, the operations of the
装置の電源がオンすると、センサユニット10、画像処理ユニット20、NTSCエンコーダ30、表示装置40等が起動する(ステップ1001)。これにより、制御部220も起動し(ステップ1002)、画像処理ユニット20の各部で必要なパラメータ等をPROM70からインターフェース回路240を介してRAM230に取り込むが、この一環として、PROM70に予め記憶されている車幅線調整パラメータ・テーブル(図10)から車載線調整に必要なデータ(線分の始点と終点の座標初期値、X座標の条件、X座標の始点と終点ステップ量a,b等)をRAM230に取り込む(ステップ1003)。ここで、線分の始点と終点の座標初期値は、当該車載カメラ装置を初めて使用する場合は、工場出荷時等の値であるが、それ以外の場合は、最後の車幅線調整時に上書きされた値となる。先に述べたように、PROM70には、当該車載カメラ装置の取り付け角度及び取り付け高さの情報も予め記憶されており、制御部220は、この情報をもとに、PROM70に記憶されている車幅線調整パラメータ・テーブルから対応するデータをRAM230に取り込む。なお、当該車載カメラ装置を初めて使用する場合には、制御部220では、必要なデータをPROM70からRAM230に取り込む際に、線分の始点と終点の座標初期値(工場出荷時等の値)をPROM70の別領域にバックアップ用に保存しておくようにする。次に、制御部60は、RAM230に取り込んだ線分の始点と終点の座標初期値を車幅線重畳部216に送信する(ステップ1004)。
When the apparatus is turned on, the
車幅線重畳部216は、制御部220から送られた線分の始点と終点の座標初期値をもとに、車幅線を表わす2つの線分データを生成する(ステップ1005)。具体的には、車幅線重畳部216は、制御部220から送られた線分の始点と終点の座標初期値をもとに、例えば、画面左側の車幅線を表わす線分データを生成し、該線分データから画面中央を中心に対称な位置関係の画面右側の車幅線を表わす線分データを生成する。これは、後述の線分データを更新する場合も同様である。車幅線重畳部216は、生成した2つの線分データを前段から送られてくる撮像画像データに重畳して、後段に送出する(同ステップ1005)。これにより、表示装置40には、撮像画像と車幅の目安を示す2本の車幅線が表示される(ステップ1006)。
The vehicle width
一方、制御部220は、ユーザから調整モードが指示されるか否か判定する(ステップ1007)。調整モードは、例えば、操作部60のボタンを長押しするなどして指示する。ここで、調整モードが指示されない状態を通常モードと称すことにする。通常モードでは、表示装置40上の、撮像画像と車幅の目安を示す2本の車幅線の表示がそのまま維持される。
On the other hand, the
ユーザから調整モードが指示されると、制御部220は、操作部60のボタンの押下等を待つ(ステップ1008)。この場合のボタン押下は、例えば短押しとする。また、操作部60に「+」ボタン、「−」ボタンを用意し、車幅線を画面中心から離れる方向に移動させる場合は「+」ボタンを押下し、画面中心に近づける方向に移動させる場合は「−」ボタンを押下する。これらは一例にすぎず、操作部60のボタンの押下等により、所定の指示が区別できれば、そのやり方はどのような方法でもよい。
When the adjustment mode is instructed by the user, the
制御部220は、調整モードが指示された後、操作部60のボタンの押下等があると、RAM230からその時点の線分の始点と終点の座標値を取得し(ステップ1009)、X座標の条件、X座標の始点と終点のステップ量(a,b)をもとに、当該線分の始点と終点の座標値を更新する(ステップ1010)。例えば、図10の例1〜3の場合、その時点の線分の始点のX座標がX>240であれば、当該線分の始点と終点のX座標値はそれぞれ4と8ピクセル更新され、X≦240であれば、当該線分の始点と終点のX座標値はそれぞれ4と12ピクセル更新される。Y座標はそのままである。先に述べたように、更新が「+」か「−」かは、例えば「+」ボタン、「−」ボタンで区別する。また、図10の例4〜6の場合では、その時点の線分の始点のX座標値に関係なく、当該線分の始点と終点のX座標値はそれぞれ4と12ピクセル更新される。
When the adjustment mode is instructed and the button of the
制御部220は、更新した線分の始点と終点の座標値をRAM230に再書き込みすると共に(ステップ1011)、該更新した線分の始点と終点の座標値を車幅線重畳部216に送信する(ステップ1012)。
The
車幅線重畳部216は、制御部220から送られた更新された始点と終点の座標値により、車幅線を表わす2つの線分データを改めて生成する(ステップ1013)。これにより、表示装置40に撮像画像と重畳して表示されている2本の車幅線が変化する(ステップ1014)。すなわち、2本の車幅線の角度及び幅が連動して変化する。
The vehicle width
次に、制御部220は、ユーザから調整モード終了が指示されるか否か判定する(ステップ1015)。調整モード終了は、例えば、操作部60のボタンを再び長押しするなどして指示する。調整モード終了が指示されないと、ステップ1008に戻り、次のボタン押下があると、ステップ1009〜1014の処理を繰り返す。これにより、調整モード終了が指示されない間、操作部60のボタン押下等がある毎に、表示装置40に撮像画像と重畳して表示されている2本の車幅線は、順次、その角度及び幅が連動して調整されていく。
Next, the
その後、ユーザから調整モード終了が指示されると、制御部220は、RAM230にその時点で記憶されている線分の始点と終点の座標値(最後に更新された始点と終点の座標値)を読み出し、インターフェース回路240を介してPROM70に転送して、車幅線調整パラメータ・テーブル内の該当データ中のそれまでの線分の始点と終点の座標値を上書きする(ステップ1016)。これにより、次の起動時では、最後に更新された線分の始点と終点の座標値が、あらためて座標初期値としてPROM70からRAM230に取り込まれることになる。
Thereafter, when the end of the adjustment mode is instructed by the user, the
調整モードが終了したことにより、車載カメラ装置は通常モードに移行し、表示装置40上には、角度及び幅が連動して調整された2本の車幅線が撮像画像と重畳してそのまま表示し続ける。
When the adjustment mode ends, the in-vehicle camera device shifts to the normal mode, and the two vehicle width lines adjusted in association with the angle and the width are superimposed on the captured image and displayed on the
以上、本発明の一実施の形態について説明したが、もちろん、本発明は、説明した形態に限定されるものでないことは云うまでもない。 Although one embodiment of the present invention has been described above, it is needless to say that the present invention is not limited to the described embodiment.
10 センサユニット
20 画像処理ユニット
30 NTSCエンコーダ
40 表示装置
50 クロック発生器
60 操作部
70 PROM
110 光学系(レンズ)
120 撮像素子
210 画像処理部
216 車幅線重畳部
220 制御部
230 RAM
DESCRIPTION OF
110 Optical system (lens)
DESCRIPTION OF
Claims (11)
前記車幅線調整手段は、前記記憶部から当該車載カメラ装置の取り付け角度および取り付け高さに応じた車幅線の始点と終点の座標初期値、更新条件、更新する量を取り込み、更新条件、更新する量をもとに、車幅線の始点と終点の座標初期値を更新することを特徴とする請求項6乃至8のいずれか1項に記載の車載カメラ装置。 In accordance with the mounting angle and mounting height of the in-vehicle camera device, the vehicle has a storage unit that stores the initial coordinate and initial value of the vehicle width line, the update condition, and the amount to be updated .
The vehicle width line adjustment means takes in the vehicle width line start point and end point coordinate initial values according to the mounting angle and mounting height of the in-vehicle camera device from the storage unit, the update condition, the amount to be updated, the update condition, The vehicle-mounted camera device according to any one of claims 6 to 8, wherein the initial coordinate values of the start point and end point of the vehicle width line are updated based on the amount to be updated.
The program for functioning a computer as a vehicle width line adjustment means of the vehicle-mounted camera apparatus of any one of Claims 5 thru | or 10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009025016A JP5201354B2 (en) | 2009-02-05 | 2009-02-05 | Vehicle width line adjusting method, in-vehicle camera device, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009025016A JP5201354B2 (en) | 2009-02-05 | 2009-02-05 | Vehicle width line adjusting method, in-vehicle camera device, and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2010183352A JP2010183352A (en) | 2010-08-19 |
JP5201354B2 true JP5201354B2 (en) | 2013-06-05 |
Family
ID=42764533
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2009025016A Active JP5201354B2 (en) | 2009-02-05 | 2009-02-05 | Vehicle width line adjusting method, in-vehicle camera device, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5201354B2 (en) |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS60163746A (en) * | 1984-02-03 | 1985-08-26 | Mazda Motor Corp | Rear view device for vehicle |
JP4530392B2 (en) * | 2001-08-10 | 2010-08-25 | 日本精機株式会社 | Vehicle monitoring device |
JP2005319851A (en) * | 2004-05-07 | 2005-11-17 | Mitsubishi Electric Corp | Vehicular display device |
JP2006160060A (en) * | 2004-12-07 | 2006-06-22 | Nissan Motor Co Ltd | Image display system, and image display method |
-
2009
- 2009-02-05 JP JP2009025016A patent/JP5201354B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2010183352A (en) | 2010-08-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2410734B1 (en) | Image synthesizing device, image synthesizing method and computer readable medium | |
JP5128207B2 (en) | Image processing apparatus, image processing method, and image processing program | |
JP5036482B2 (en) | Image processing apparatus, image processing method, and image processing program | |
JP2010081002A (en) | Image pickup apparatus | |
JP2002077928A (en) | Image processor | |
JP4992698B2 (en) | Chromatic aberration correction apparatus, imaging apparatus, chromatic aberration calculation method, and chromatic aberration calculation program | |
JP5409278B2 (en) | Image capturing apparatus and image capturing method | |
JP5195841B2 (en) | On-vehicle camera device and vehicle | |
JP4862321B2 (en) | In-vehicle camera device | |
JP6247794B2 (en) | Image processing apparatus, imaging apparatus, image processing method, and program | |
JP2000244823A (en) | Device for concealing defective pixel of imaging device | |
JP5146498B2 (en) | Image composition apparatus, image composition method, and program | |
TWI387353B (en) | Pixel interpolation circuit, pixel interpolation method, and recording medium | |
EP2091237B1 (en) | Image pickup device | |
JP5268321B2 (en) | Image processing apparatus, image processing method, and image processing program | |
JP4616794B2 (en) | Image data noise reduction apparatus and control method therefor | |
JP5201354B2 (en) | Vehicle width line adjusting method, in-vehicle camera device, and program | |
JP4687454B2 (en) | Image processing apparatus and imaging apparatus | |
JP2003101815A (en) | Signal processor and method for processing signal | |
JP2007114864A (en) | Image-processing device | |
JP5538973B2 (en) | Imaging device | |
JP4449692B2 (en) | Electronic camera | |
JP2011061588A (en) | Image processor, image processing method, and on-vehicle camera device | |
JP4900153B2 (en) | Imaging device | |
JP5454820B2 (en) | Image processing apparatus, image processing method, and image processing program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20120126 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20120618 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20121019 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20121024 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20121225 |
|
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: 20130116 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20130129 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 5201354 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20160222 Year of fee payment: 3 |