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 PDF

Info

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
Application number
JP2009025016A
Other languages
Japanese (ja)
Other versions
JP2010183352A (en
Inventor
洋義 関口
亮介 笠原
哲哉 佐々木
剛 丸山
雅彦 伊藤
雪 李
智幸 薄田
智子 石垣
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2009025016A priority Critical patent/JP5201354B2/en
Publication of JP2010183352A publication Critical patent/JP2010183352A/en
Application granted granted Critical
Publication of JP5201354B2 publication Critical patent/JP5201354B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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.

本発明の車載カメラ装置の一実施形態の全体構成図である。1 is an overall configuration diagram of an embodiment of an in-vehicle camera device of the present invention. 図1中のセンサユニットの構成例を示す図である。It is a figure which shows the structural example of the sensor unit in FIG. 図1中の画像処理ユニットの構成例を示す図である。It is a figure which shows the structural example of the image processing unit in FIG. ベイヤー配列カラーフィルタの一例を示す図である。It is a figure which shows an example of a Bayer arrangement | sequence color filter. 図2中のMTF補正部の構成例を示す図である。It is a figure which shows the structural example of the MTF correction | amendment part in FIG. 従来及び本発明の車幅線調整操作手順を示す図である。It is a figure which shows the vehicle width line adjustment operation procedure of the past and this invention. 従来の車幅線の角度調整を説明する図である。It is a figure explaining the angle adjustment of the conventional vehicle width line. 従来の車幅線の幅調整を説明する図である。It is a figure explaining the width adjustment of the conventional vehicle width line. 本発明の車幅線の角度及び幅を連動して調整する説明図である。It is explanatory drawing which adjusts the angle and the width | variety of the vehicle width line of this invention interlockingly. PROMに保持される車幅線調整パラメータ・テーブルの一例を示す図である。It is a figure which shows an example of the vehicle width line adjustment parameter table hold | maintained at PROM. 本発明の車載カメラ装置の電源投入時の車幅線調整に関係する処理フロー例を示す図である。It is a figure which shows the example of a processing flow related to the vehicle width line adjustment at the time of power activation of the vehicle-mounted camera apparatus of this invention. 本発明の車載カメラ装置の車幅線調整モード時の処理フロー例を示す図である。It is a figure which shows the example of a processing flow at the time of the vehicle width line adjustment mode of the vehicle-mounted camera apparatus of this invention.

以下、本発明の一実施の形態について図面を参照して説明する。なお、本発明の車載カメラ装置は以下の図示の構成に限定されるものではない。   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 sensor unit 10 captures an image of the back of the vehicle and the like to acquire an analog image signal, converts it to analog / digital, and outputs it as RGB data. The image processing unit 20 inputs RGB data of the captured image output from the sensor unit 10 and performs predetermined image processing, and superimposes two vehicle width lines indicating a vehicle width guideline on the captured image, thereby obtaining YCbCr data. Output as. In addition, the image processing unit 20 receives a clock signal serving as a basis for operating each part of the apparatus from the clock generator 50, and sends a clock and other control signals to the sensor unit 10 and the NSC encoder 30. A crystal oscillator or the like is used for the clock generator 50.

画像処理ユニット20で所定の画像処理を施され、2本の車幅線が重畳された撮像画像のYCbCrデータは、NTSCエンコーダ30に送られ、デジタル・アナログ変換処理を施されてNTSC信号に変換され、表示装置40に出力される。表示装置40は、ナビゲーション装置の表示部が兼ねることでもよい。   The image processing unit 20 performs predetermined image processing, and the YCbCr data of the captured image on which the two vehicle width lines are superimposed is sent to the NTSC encoder 30 and converted into an NTSC signal by performing digital / analog conversion processing. And output to the display device 40. The display device 40 may also serve as a display unit of the navigation device.

ここで、画像処理ユニット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 image processing unit 20 includes a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a digital signal processor (DSP), and the like. The operation unit 60 is a user interface that allows the user to instruct the image processing unit 20 to perform various processes, and includes a button, a joystick, and the like. As will be described later, when the user operates the operation unit 60, the image processing unit 20 adjusts the angles and widths of the two vehicle width lines superimposed on the captured image data. The PROM 70 is a rewritable nonvolatile memory, and stores programs necessary for processing of the image processing unit 20, various parameters, and other information. As will be described later, in the PROM 70, the initial values and the initial coordinates of the vehicle width line, the update conditions, the step amount, etc. are stored in a table in advance corresponding to the mounting angle and mounting height of the in-vehicle camera device. ing.

図1中のセンサユニット10、画像処理ユニット20、NTSCエンコーダ30、クロック発生器50、PROM70等は、一つの筐体内に構成され、車の後部等に設置される。一方、表示装置40は車の前面等に設置され、NTSCエンコーダ30とはケーブルで接続される。操作部60と画像処理装置ユニット20とはケーブルあるいは無線で接続される。なお、ナビゲーション装置のリモコンが操作部60を兼ねてもよい。   The sensor unit 10, the image processing unit 20, the NTSC encoder 30, the clock generator 50, the PROM 70, and the like in FIG. 1 are configured in one housing and installed at the rear of the vehicle. On the other hand, the display device 40 is installed on the front surface of the vehicle or the like, and is connected to the NTSC encoder 30 by a cable. The operation unit 60 and the image processing apparatus unit 20 are connected by a cable or wirelessly. The remote controller of the navigation device may also serve as the operation unit 60.

次に、センサユニット10及び画像処理ユニット20の具体的構成及び動作について説明する。   Next, specific configurations and operations of the sensor unit 10 and the image processing unit 20 will be described.

図2はセンサユニット10の構成例を示す。センサユニット10はレンズ光学系110、撮像素子120、オートゲインコントロール回路(AGC)130、オートホワイトバランス回路(AWB)140、アナログ−デジタル変換器(ADC)150などで構成される。   FIG. 2 shows a configuration example of the sensor unit 10. The sensor unit 10 includes a lens optical system 110, an image sensor 120, an auto gain control circuit (AGC) 130, an auto white balance circuit (AWB) 140, an analog-digital converter (ADC) 150, and the like.

光学系110により撮像素子120に光を効率よく集光させる。ここでは、光学系110に広角で倍率色収差及び歪曲収差の大きいレンズを用いるとする。   Light is efficiently condensed on the image sensor 120 by the optical system 110. Here, it is assumed that a lens having a wide angle and large chromatic aberration of magnification and distortion is used for the optical system 110.

撮像素子120は、CCDやCMOSなどで構成され、光学系110により集光された光学像を、その光強度に応じて強弱を持った電気信号(アナログ信号)に変換する。図2では省略したが、該撮像素子120には、各画素対応にRGBいずれかの波長帯を透過させるカラーフィルタが設置されている。カラーフィルタはどのような配列を持つものでも構わないが、ここではベイヤー配列型のカラーフィルタを用いるとする。   The image sensor 120 is composed of a CCD, a CMOS, or the like, and converts an optical image collected by the optical system 110 into an electric signal (analog signal) having strength according to the light intensity. Although omitted in FIG. 2, the image sensor 120 is provided with a color filter that transmits one of the RGB wavelength bands corresponding to each pixel. The color filter may have any arrangement, but here, a Bayer arrangement type color filter is used.

撮像素子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 image sensor 120 is converted into digital data by an analog-digital converter (ADC) 150 via an auto gain control circuit (AGC) 130 and an auto white balance circuit (AWB) 140. . The AGC 130 is a circuit for outputting a signal of a level necessary for the input of the subsequent stage NTSC encoder 30. That is, when the subject is bright, the gain of the amplifier is lowered, and when the subject is dark, the gain of the amplifier is increased so as to reach a predetermined level. Note that when the gain is increased, the noise also increases, so the S / N ratio of the signal is decreased. The AWB 140 adjusts the gain of each RGB-compatible channel so that the RGB signal intensities are all equal when a white subject is imaged. The ADC 150 converts each RGB signal of the analog signal into digital data (RGB data). The digital data is composed of, for example, 8 bits for each of RGB.

図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 image processing unit 20. The image processing unit 20 includes an image processing unit 210, a control unit (microprocessor) 220 that controls operations of the image processing unit 210 and other units, a RAM 230 as a working memory, and an interface circuit (I / F) between the RAM 230 and the PROM 70. ) 240 or the like. Here, the image processing unit 210 includes a Bayer complementing unit 211, a chromatic aberration correcting unit 212, a color space converting unit 213, an MTF correcting unit 214, a distortion correcting unit 215, a vehicle width line superimposing unit 216, a gamma correcting unit 217, a progressive An interlace conversion unit (PI conversion unit) 218 is configured. Among these, the vehicle width superimposing portion 216 is related to the present invention. Moreover, the control part 220 functions as a vehicle width line adjustment means. This will be described later.

なお、画像処理ユニット20は、図1に示したクロック発生器50からクロック信号を入力して、センサユニット10やNTSCエンコーダ30、画像処理部210の各部に必要なクロック、制御信号などを供給する手段も備えているが、図3では省略してある。   The image processing unit 20 inputs a clock signal from the clock generator 50 shown in FIG. 1 and supplies necessary clocks, control signals, and the like to each unit of the sensor unit 10, the NTSC encoder 30, and the image processing unit 210. Although means are also provided, they are omitted in FIG.

センサユニット10から出力される撮像画像のRGBデータは、画像処理ユニット20の画像処理部210に入力され、ベイヤー補完部211、倍率色収差補正部212、色空間変換部213、MTF補正部214、歪曲収差補正部215、車幅線重畳部216、ガンマ補正部217、PI変換部218を経由して所定の処理が施される。   The RGB data of the captured image output from the sensor unit 10 is input to the image processing unit 210 of the image processing unit 20, and the Bayer interpolation unit 211, the chromatic aberration correction unit 212 for magnification, the color space conversion unit 213, the MTF correction unit 214, and the distortion. Predetermined processing is performed via the aberration correction unit 215, the vehicle width line superimposing unit 216, the gamma correction unit 217, and the PI conversion unit 218.

ベイヤー補完部211は、ベイヤー配列のRGBデータを入力して、各画素で欠損している色データを補完する。補完には、例えば、以下のような線形補完法を用いる。   The Bayer complementing unit 211 inputs RGB data in a Bayer array, and complements the missing color data in each pixel. For complementation, for example, the following linear complementation method is used.

図4にベイヤー配列のカラーフィルタの一例を示す。ここで、G0は次式により求める。
0=(G2+G4+G6+G8)/4 (1)
また、R2,R4,R6,R8,R0は次式により求める。
2=(R1+R3)/2 (2)
4=(R3+R5)/2 (3)
6=(R5+R7)/2 (4)
8=(R1+R7)/2 (5)
0=(R1+R3+R5+R7)/4 (6)
2,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 aberration correction unit 212 inputs RGB data that has been Bayer-complemented, performs coordinate conversion for each RGB using a predetermined coordinate conversion formula, and outputs RGB data that has been corrected for lateral chromatic aberration.

倍率色収差は、各波長(色)から見た場合のレンズの屈折率が異なることにより、集光点が各波長で異なる現象である。このように、それぞれの波長(色)で集光する位置が異なるため、座標変換を施す必要がある。   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 space conversion unit 213 applies the high-frequency emphasis filter only to the luminance signal (Y) in the MTF correction unit 214 in the subsequent stage, and further inputs the RGB data to the YCbCr data so as to be input to the NTSC encoder 30 in the YCC format. Convert to As the RGB / YCC conversion formula, for example, the following formula is used.
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 MTF correction unit 214 receives YCbCr data and applies a high frequency enhancement filter (HPF) to the luminance signal Y. The color signal CbCr is left as it is. By performing MTF correction, the resolution of the image can be improved.

図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 aberration correction unit 215 receives the YCbCr data subjected to MTF correction, and performs distortion using a predetermined coordinate conversion formula. The same equations (7) and (8) as the previous chromatic aberration of magnification can be used as the coordinate conversion equation for distortion aberration correction.

また、座標変換演算に用いられ乗算器の個数や回路規模に制限がある場合は、
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 line superimposing unit 216 receives YCbCr data of a captured image that has been subjected to a predetermined process, and superimposes and outputs line segments representing two vehicle width lines indicating the vehicle width. As will be described later, the control unit 220 adjusts the angle and width (interval) of the line segments representing the two vehicle width lines in conjunction with each other.

ガンマ補正部217は、2本の車幅線を表わす線分が重畳された撮像画像のYCbCrデータについてガンマ補正を施す。ガンマ補正は、画像などの色のデータと、それが実際に出力される際の信号の相対関係を調節して、より自然に近い表示を得るための補正操作のことをいう。γ(ガンマ)値は、画像の明るさの変化に対する電圧換算値の変化の比で、これが1に近づくのが理想であるが、素子の特性により機器によってそれぞれ異なった値となる。このため、元データに忠実な表示を再現する場合、これらの誤差を修正する必要がある。ガンマ補正部217では、ガンマ補正ルックアップ等を用いてガンマ補正を実施する。   The gamma correction unit 217 performs gamma correction on the YCbCr data of the captured image on which the line segments representing the two vehicle width lines are superimposed. Gamma correction refers to a correction operation for obtaining a more natural display by adjusting the relative relationship between color data such as an image and a signal when it is actually output. The γ (gamma) value is the ratio of the change in the voltage conversion value to the change in the brightness of the image, and ideally it approaches 1, but it varies depending on the device depending on the characteristics of the element. For this reason, when reproducing a display faithful to the original data, it is necessary to correct these errors. The gamma correction unit 217 performs gamma correction using a gamma correction lookup or the like.

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 PI conversion unit 218 inputs gamma-corrected YCbCr data and converts the progressive scan (sequential scan) to the interlace scan (interlaced scan). This is to increase the resolution and smooth the movement with as little information as possible. In the case of the NTSC system, one frame every 1/30 seconds is divided into two, and only the odd-numbered scanning lines are displayed for the first 1/60 seconds, and only the even-numbered scanning lines are displayed for the subsequent 1/60 seconds. . Each is called an odd field and an even field. If the image is moving during this time, the two fields will shift when they are superimposed as a still image, but the movement is smooth when viewed as a video. In progressive scanning, in which all scanning lines are sent every 1/60 seconds, both still images and images are smooth, but twice as much memory is required compared to interlace. The signal to be input to the DAC (NTSC encoder) 30 following the PI conversion unit 218 is, for example, the unsigned 8-bit data 0 to 255 of the luminance signal (Y) according to the BT656 standard to 16 to 235, and the color difference signal (Cb, This is a signal obtained by converting the signed 8-bit data 127 to 127 of (Cr) into 16 to 240.

NTSCエンコーダ30は、画像処理部210から出力された撮像画像と車幅の目安を示す2本の車幅線を表わす線分とが重畳されたデータであるYCbCrデータを入力して、それをNSTC方式の映像信号に変換し、表示装置40に出力する。このようにして、表示装置40上には、撮像素子で撮像された画像に、車幅の目安を示す2本の車幅線が重畳して表示される。本発明によれば、制御部220の制御下で、この車幅線の角度及び幅が連動して同じモードで調整される。   The NTSC encoder 30 inputs YCbCr data, which is data obtained by superimposing the captured image output from the image processing unit 210 and the line segments representing the two vehicle width lines indicating the standard of the vehicle width. The video signal is converted into a video signal of the format and output to the display device 40. In this way, on the display device 40, two vehicle width lines indicating a guide for the vehicle width are superimposed and displayed on the image captured by the image sensor. According to the present invention, under the control of the control unit 220, the angle and width of the vehicle width line are adjusted in the same mode in conjunction with each other.

以下に、本発明に係る車幅線調整方法について詳述するが、その前に従来の車幅線調整方法について説明する。   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 display device 40 is displayed on the display device 40, for example , by the user repeatedly pressing a button or the like of the operation unit 60. This is done by sequentially changing the angle and width (interval) so as to fit the parking frame on the road.

図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 operation unit 60 is pressed once.

本発明の車幅線調整方法によれば、表示装置に表示される車幅線を表わす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 display device 40 are, for example, when the line in front of the parking frame written on the road is matched with the rear end of the vehicle body, Once the angle (angle when viewed from a direction horizontal to the ground) and the mounting height (height from the ground) are determined, it is uniquely determined to some extent. Therefore, when the button of the operation unit 60 is pressed once, a step amount (a, b) indicating how many pixels each the X coordinate of the start point and the end point of the line segment representing the vehicle width line should be moved. Can be determined in advance.

実施形態では、車載カメラの取り付け角度と取り付け高さ毎に、線分の始点と終点の座標と共に、ボタンを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 PROM 70 in advance. This is referred to as a vehicle width line adjustment parameter table. Further, the step amount (a, b) may be changed according to the value of the X coordinate. In this case, the X coordinate condition is added to the contents to be tabulated as an update condition.

図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 PROM 70, in addition to the vehicle width line adjustment parameter table shown in FIG. 10, information on the mounting angle and mounting height of the in-vehicle camera device is stored in advance. The PROM 70 also stores a program for the control unit 220 to function as vehicle width line adjusting means.

装置の起動時等、制御部220は、PROM70に記憶された当該車載カメラ装置の取り付け角度及び取り付け高さの情報をもとに、同じくPROM70に記憶された車幅線調整パラメータ・テーブル中の対応するデータ(線分の始点と終点の座標初期値、X座標の条件、X座標の始点と終点のステップ量a,b)をRAM230に取り込む。そして、線分の始点と終点の座標初期値を車幅線重畳部216に送る。   At the time of starting the device, the control unit 220 responds in the vehicle width line adjustment parameter table also stored in the PROM 70 based on the information on the mounting angle and mounting height of the in-vehicle camera device stored in the PROM 70. Data to be stored (initial coordinates of the start and end points of the line segment, X coordinate conditions, step amounts a and b of the start and end points of the X coordinate) are loaded into the RAM 230. Then, the initial coordinate values of the start point and end point of the line segment are sent to the vehicle width line superimposing unit 216.

車幅線重畳部216は、制御部220から送られた線分の始点と終点の座標初期値をもとに、車幅線を表わす2つの線分データを生成して撮像画像データに重畳し、そのYCbCrデータをNTSCエンコーダ30に送出する。これにより、表示装置40に出力される撮像画像上には、車幅の目安を示す2本の車幅線が重畳して表示される。   The vehicle width line superimposing unit 216 generates two line segment data representing the vehicle width line based on the initial coordinate values of the start and end points of the line segment sent from the control unit 220 and superimposes them on the captured image data. The YCbCr data is sent to the NTSC encoder 30. Thereby, on the captured image output to the display apparatus 40, the two vehicle width lines which show the standard of a vehicle width are superimposed and displayed.

一方、制御部220は、調整モードが指示されると、操作部60のボタンの押下等に応じて、X座標の条件、X座標の始点と終点のステップ量(a,b)を基に車幅線重畳部216へ送信する線分の始点と終点の座標値(X座標値)を更新する。車幅線重畳部216は、この更新された線分の始点と終点の座標値をもとに、あらためて線分データを生成する。これにより、表示装置40に表示されている2本の車幅線の角度と幅が同時に変化する。   On the other hand, when the adjustment mode is instructed, the control unit 220 moves the vehicle based on the condition of the X coordinate and the step amount (a, b) of the start point and the end point of the X coordinate in response to pressing of the button of the operation unit 60. The coordinate values (X coordinate values) of the start point and end point of the line segment transmitted to the width line superimposing unit 216 are updated. The vehicle width line superimposing unit 216 generates line segment data again based on the updated coordinate values of the start point and end point of the line segment. As a result, the angle and width of the two vehicle width lines displayed on the display device 40 change simultaneously.

制御部220は、操作部60のボタン等が1回押下される毎に、その直前の線分の始点と終点のX座標値をそれぞれ値a,bずつ更新していく。増加するか減少するは、例えば、「+」ボタン、「−」ボタンなどで区別すればよい。車幅線重畳部216は、座標値の更新の度に、線分データを生成し直す。したがって、操作部60のボタン等が1回押下される毎に、表示装置40に表示されている2本の車幅線の始点X座標はピクセルaずつ移動し、終点X座標はピクセルbずつ移動し、結局、車幅線の角度及び幅が連動して調整される。すなわち、図9に示した車幅線調整動作が達成される。   Each time the button of the operation unit 60 is pressed once, the control unit 220 updates the X coordinate values of the start point and end point of the immediately preceding line segment by values a and b, respectively. The increase or decrease may be distinguished by, for example, a “+” button, a “−” button, or the like. The vehicle width line superimposing unit 216 regenerates line segment data every time the coordinate value is updated. Therefore, each time the button of the operation unit 60 is pressed once, the start point X coordinate of the two vehicle width lines displayed on the display device 40 moves by the pixel a, and the end point X coordinate moves by the pixel b. Eventually, the angle and width of the vehicle width line are adjusted in conjunction with each other. That is, the vehicle width line adjusting operation shown in FIG. 9 is achieved.

制御部220では、調整モードの終了が指示されると、PROM70の車幅線調整パラメータ・テーブルの対応するデータの線分の始点と終点の座標値を、更新後の線分の始点と終点の座標値で上書きすることでもよい。この場合、装置が次の起動時等においては、直前に更新された線分の始点と終点の座標値にもとづく車幅線が、まず、表示装置40上に表示される。ユーザは、これを見て調整が必要としたなら、調整モードに移行することになるが、線分の始点と終点の座標初期値から始めるよりは、一般にボタンの押下は少ない回数ですむ。なお、当初の(工場出荷時等)の座標初期値は、バックアップ用にPROM70の別領域等に保存しておけばよい。   When the control unit 220 is instructed to end the adjustment mode, the coordinate values of the start point and end point of the corresponding data line in the vehicle width line adjustment parameter table of the PROM 70 are set to the start point and end point of the updated line segment. It may be overwritten with coordinate values. In this case, when the apparatus is started next time, the vehicle width line based on the coordinate values of the start point and end point of the line segment updated immediately before is displayed on the display device 40 first. If the user sees this and needs to make adjustments, the user enters the adjustment mode. However, the user generally needs to press the button fewer times than when starting from the initial coordinates of the start and end points of the line segment. It should be noted that the initial coordinate initial value (at the time of factory shipment or the like) may be stored in another area of the PROM 70 for backup.

図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 control unit 220 and the vehicle width line superimposing unit 216 as vehicle width line adjusting means will be described in detail.

装置の電源がオンすると、センサユニット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 sensor unit 10, the image processing unit 20, the NTSC encoder 30, the display device 40, etc. are activated (step 1001). As a result, the control unit 220 is also activated (step 1002), and parameters and the like necessary for each unit of the image processing unit 20 are fetched from the PROM 70 to the RAM 230 via the interface circuit 240. As part of this, the parameters are stored in the PROM 70 in advance. From the vehicle width line adjustment parameter table (FIG. 10), data necessary for in-vehicle line adjustment (coordinate initial values of the start point and end point of the line segment, X coordinate condition, X coordinate start point and end step amount a, b, etc.) The data is loaded into the RAM 230 (step 1003). Here, the initial coordinates of the start point and end point of the line segment are the values at the time of factory shipment, etc., when using the in-vehicle camera device for the first time, but they are overwritten at the time of the last vehicle width line adjustment in other cases Value. As described above, the PROM 70 also stores information on the mounting angle and mounting height of the in-vehicle camera device in advance, and the controller 220 stores the vehicle stored in the PROM 70 based on this information. Corresponding data is taken into the RAM 230 from the width line adjustment parameter table. When the on-vehicle camera device is used for the first time, the control unit 220 obtains the initial coordinates of the start and end points of the line segment (values at the time of factory shipment) when fetching necessary data from the PROM 70 into the RAM 230. It is stored in a separate area of the PROM 70 for backup. Next, the control unit 60 transmits the initial coordinate values of the start point and end point of the line segment fetched into the RAM 230 to the vehicle width line superimposing unit 216 (step 1004).

車幅線重畳部216は、制御部220から送られた線分の始点と終点の座標初期値をもとに、車幅線を表わす2つの線分データを生成する(ステップ1005)。具体的には、車幅線重畳部216は、制御部220から送られた線分の始点と終点の座標初期値をもとに、例えば、画面左側の車幅線を表わす線分データを生成し、該線分データから画面中央を中心に対称な位置関係の画面右側の車幅線を表わす線分データを生成する。これは、後述の線分データを更新する場合も同様である。車幅線重畳部216は、生成した2つの線分データを前段から送られてくる撮像画像データに重畳して、後段に送出する(同ステップ1005)。これにより、表示装置40には、撮像画像と車幅の目安を示す2本の車幅線が表示される(ステップ1006)。   The vehicle width line superimposing unit 216 generates two line segment data representing the vehicle width line based on the initial coordinate values of the start and end points of the line segment sent from the control unit 220 (step 1005). Specifically, the vehicle width line superimposing unit 216 generates line segment data representing the vehicle width line on the left side of the screen, for example, based on the initial coordinates of the start point and end point of the line segment sent from the control unit 220. Then, line segment data representing the vehicle width line on the right side of the screen having a symmetrical positional relationship with respect to the center of the screen is generated from the line segment data. The same applies to the case where line segment data described later is updated. The vehicle width line superimposing unit 216 superimposes the generated two line segment data on the captured image data sent from the previous stage and sends it to the subsequent stage (step 1005). As a result, the display device 40 displays the captured image and the two vehicle width lines indicating the vehicle width (step 1006).

一方、制御部220は、ユーザから調整モードが指示されるか否か判定する(ステップ1007)。調整モードは、例えば、操作部60のボタンを長押しするなどして指示する。ここで、調整モードが指示されない状態を通常モードと称すことにする。通常モードでは、表示装置40上の、撮像画像と車幅の目安を示す2本の車幅線の表示がそのまま維持される。   On the other hand, the control unit 220 determines whether or not the adjustment mode is instructed by the user (step 1007). The adjustment mode is instructed by, for example, pressing and holding the button of the operation unit 60. Here, a state in which the adjustment mode is not instructed is referred to as a normal mode. In the normal mode, the display of the two vehicle width lines indicating the captured image and the standard of the vehicle width on the display device 40 is maintained as it is.

ユーザから調整モードが指示されると、制御部220は、操作部60のボタンの押下等を待つ(ステップ1008)。この場合のボタン押下は、例えば短押しとする。また、操作部60に「+」ボタン、「−」ボタンを用意し、車幅線を画面中心から離れる方向に移動させる場合は「+」ボタンを押下し、画面中心に近づける方向に移動させる場合は「−」ボタンを押下する。これらは一例にすぎず、操作部60のボタンの押下等により、所定の指示が区別できれば、そのやり方はどのような方法でもよい。   When the adjustment mode is instructed by the user, the control unit 220 waits for a button on the operation unit 60 to be pressed (step 1008). In this case, the button press is, for example, a short press. In addition, when the “+” button and the “−” button are prepared in the operation unit 60 and the vehicle width line is moved away from the screen center, the “+” button is pressed and moved toward the screen center. Press the “-” button. These are merely examples, and any method may be used as long as a predetermined instruction can be distinguished by pressing a button on the operation unit 60 or the like.

制御部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 operation unit 60 is pressed, the control unit 220 acquires the coordinate values of the start point and end point of the line segment from the RAM 230 (step 1009), and sets the X coordinate. Based on the condition, the step amount (a, b) of the start point and end point of the X coordinate, the coordinate values of the start point and end point of the line segment are updated (step 1010). For example, in Examples 1 to 3 in FIG. 10, if the X coordinate of the start point of the line segment at that time is X> 240, the X coordinate values of the start point and end point of the line segment are updated by 4 and 8 pixels, respectively. If X ≦ 240, the X coordinate values of the start point and end point of the line segment are updated by 4 and 12 pixels, respectively. The Y coordinate remains the same. As described above, whether the update is “+” or “−” is distinguished by, for example, a “+” button and a “−” button. In the case of Examples 4 to 6 in FIG. 10, the X coordinate values of the start point and end point of the line segment are updated by 4 and 12 pixels, respectively, regardless of the X coordinate value of the start point of the line segment.

制御部220は、更新した線分の始点と終点の座標値をRAM230に再書き込みすると共に(ステップ1011)、該更新した線分の始点と終点の座標値を車幅線重畳部216に送信する(ステップ1012)。   The control unit 220 rewrites the updated coordinate values of the start point and end point of the line segment in the RAM 230 (step 1011), and transmits the updated coordinate values of the start point and end point of the line segment to the vehicle width line superimposing unit 216. (Step 1012).

車幅線重畳部216は、制御部220から送られた更新された始点と終点の座標値により、車幅線を表わす2つの線分データを改めて生成する(ステップ1013)。これにより、表示装置40に撮像画像と重畳して表示されている2本の車幅線が変化する(ステップ1014)。すなわち、2本の車幅線の角度及び幅が連動して変化する。   The vehicle width line superimposing unit 216 generates two line segment data representing the vehicle width line anew based on the updated coordinate values of the start point and end point sent from the control unit 220 (step 1013). As a result, the two vehicle width lines displayed on the display device 40 in a superimposed manner with the captured image change (step 1014). That is, the angle and width of the two vehicle width lines change in conjunction with each other.

次に、制御部220は、ユーザから調整モード終了が指示されるか否か判定する(ステップ1015)。調整モード終了は、例えば、操作部60のボタンを再び長押しするなどして指示する。調整モード終了が指示されないと、ステップ1008に戻り、次のボタン押下があると、ステップ1009〜1014の処理を繰り返す。これにより、調整モード終了が指示されない間、操作部60のボタン押下等がある毎に、表示装置40に撮像画像と重畳して表示されている2本の車幅線は、順次、その角度及び幅が連動して調整されていく。   Next, the control unit 220 determines whether or not the user instructs the end of the adjustment mode (step 1015). The end of the adjustment mode is instructed, for example, by pressing and holding the button of the operation unit 60 again. If the end of the adjustment mode is not instructed, the process returns to step 1008, and if the next button is pressed, the processes of steps 1009 to 1014 are repeated. As a result, each time the button of the operation unit 60 is pressed while the adjustment mode is not instructed, the two vehicle width lines displayed on the display device 40 so as to be superimposed on the captured image, The width is adjusted in conjunction.

その後、ユーザから調整モード終了が指示されると、制御部220は、RAM230にその時点で記憶されている線分の始点と終点の座標値(最後に更新された始点と終点の座標値)を読み出し、インターフェース回路240を介してPROM70に転送して、車幅線調整パラメータ・テーブル内の該当データ中のそれまでの線分の始点と終点の座標値を上書きする(ステップ1016)。これにより、次の起動時では、最後に更新された線分の始点と終点の座標値が、あらためて座標初期値としてPROM70からRAM230に取り込まれることになる。   Thereafter, when the end of the adjustment mode is instructed by the user, the control unit 220 displays the start point and end point coordinate values (the last updated start point and end point coordinate values) stored in the RAM 230 at that time. The data is read and transferred to the PROM 70 via the interface circuit 240 to overwrite the coordinate values of the start point and end point of the line segment in the corresponding data in the vehicle width line adjustment parameter table (step 1016). As a result, at the next start-up, the coordinate values of the start point and end point of the last updated line segment are again fetched from the PROM 70 into the RAM 230 as the coordinate initial values.

調整モードが終了したことにより、車載カメラ装置は通常モードに移行し、表示装置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 display device 40 as they are. Keep doing.

以上、本発明の一実施の形態について説明したが、もちろん、本発明は、説明した形態に限定されるものでないことは云うまでもない。   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 SYMBOLS 10 Sensor unit 20 Image processing unit 30 NTSC encoder 40 Display apparatus 50 Clock generator 60 Operation part 70 PROM
110 Optical system (lens)
DESCRIPTION OF SYMBOLS 120 Image sensor 210 Image processing part 216 Vehicle width line superimposition part 220 Control part 230 RAM

特開2005−161973号公報JP 2005-161973 A

Claims (11)

撮像素子で撮像した画像に車幅の目安を示す2本の車幅線を重畳し、表示装置にて表示させる車載カメラ装置における車幅線調整方法であって、操作部の操作ごとに前記2本の車幅線の角度および幅を連動して調整することを特徴とする車幅線調整方法。 Superimposing the two vehicle width lines indicating the measure of vehicle width to the image captured by the image sensor, a vehicle width line leveling method in the vehicle camera system for displaying on the display device, the each operation of the operation unit 2 A vehicle width line adjusting method, wherein the angle and width of a vehicle width line of a book are adjusted in conjunction with each other. 車幅線の始点のX座標と終点のX座標とを異なる量で更新することにより、前記2本の車幅線の角度および幅を連動して調整することを特徴とする請求項1記載の車幅線調整方法。 By updating the X coordinates and the amount that different and X-coordinate of the end point of the start point of the vehicle width line, according to claim 1, wherein the adjusting in conjunction with the angle and width of the two vehicle width line Vehicle width line adjustment method. 操作部上のボタン押下の度に、前記車幅線の始点のX座標と終点のX座標をそれぞれ異なる所定の量ずつ更新することを特徴とする請求項2記載の車幅線調整方法。 3. The vehicle width line adjusting method according to claim 2, wherein the X coordinate of the start point and the X coordinate of the end point of the vehicle width line are updated by different predetermined amounts each time a button on the operation unit is pressed. 車幅線のX座標の値により、前記更新する量を変更することを特徴とする請求項2又は3に記載の車幅線調整方法。 The value of X-coordinate of the vehicle width lines, vehicle width lines adjustment method according to claim 2 or 3, characterized in that to change the amount you the update. 撮像素子で撮像した画像に車幅の目安を示す2本の車幅線を重畳し、表示装置にて表示させる車載カメラ装置であって、操作部の操作ごとに前記2本の車幅線の角度および幅を連動して調整する車幅線調整手段を有することを特徴とする車載カメラ装置。 Superimposing the two vehicle width lines indicating the measure of vehicle width to the image captured by the image sensor, a vehicle camera system for displaying on the display device, for each operation of the operation unit of the two vehicle width line An in-vehicle camera device comprising vehicle width line adjusting means for adjusting an angle and a width in conjunction with each other. 前記車幅線調整手段は、車幅線の始点のX座標と終点のX座標とを異なる量で更新することにより、前記2本の車幅線の角度および幅を連動して調整することを特徴とする請求項5記載の車載カメラ装置。 The vehicle width line leveling means, by updating the X-coordinate and the amount that different and X-coordinate of the end point of the start point of the vehicle width lines, be adjusted by interlocking angles and widths of the two vehicle width line The in-vehicle camera device according to claim 5. 前記車幅線調整手段は、操作部上のボタン押下の度に、前記車幅線の始点のX座標と終点のX座標をそれぞれ異なる所定の量ずつ更新することを特徴とする請求項6記載の車載カメラ装置。 7. The vehicle width line adjusting means updates the X coordinate of the start point and the end point of the vehicle width line by different predetermined amounts each time a button on the operation unit is pressed. In-vehicle camera device. 前記車幅線調整手段は、車幅線のX座標の値により、前記更新する量を変更することを特徴とする請求項6又は7に記載の車載カメラ装置。 The vehicle width line leveling means, the value of X-coordinate of the vehicle width line, the vehicle camera system according to claim 6 or 7, characterized in that to change the amount you the update. 車載カメラ装置の取り付け角度および取り付け高さに応じて、車幅線の始点と終点の座標初期値、更新条件、更新する量を記憶した記憶部を備え、
前記車幅線調整手段は、前記記憶部から当該車載カメラ装置の取り付け角度および取り付け高さに応じた車幅線の始点と終点の座標初期値、更新条件、更新する量を取り込み、更新条件、更新する量をもとに、車幅線の始点と終点の座標初期値を更新することを特徴とする請求項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.
前記車幅線調整手段は、前記記憶部の車幅線の始点と終点の座標初期値を、更新後の値で上書きすることを特徴とする請求項9記載の車載カメラ装置。   The in-vehicle camera device according to claim 9, wherein the vehicle width line adjusting means overwrites the initial coordinate values of the start point and end point of the vehicle width line in the storage unit with updated values. コンピュータを請求項5乃至10いずれか1項に記載の車載カメラ装置の車幅線調整手段として機能させるためのプログラム。
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.
JP2009025016A 2009-02-05 2009-02-05 Vehicle width line adjusting method, in-vehicle camera device, and program Active JP5201354B2 (en)

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)

* Cited by examiner, † Cited by third party
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

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