JPS63142791A - Image binarization processing device - Google Patents

Image binarization processing device

Info

Publication number
JPS63142791A
JPS63142791A JP28940486A JP28940486A JPS63142791A JP S63142791 A JPS63142791 A JP S63142791A JP 28940486 A JP28940486 A JP 28940486A JP 28940486 A JP28940486 A JP 28940486A JP S63142791 A JPS63142791 A JP S63142791A
Authority
JP
Japan
Prior art keywords
image
binarization
illuminance
signal
level
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP28940486A
Other languages
Japanese (ja)
Other versions
JPH078042B2 (en
Inventor
Akihiko Kanamori
金森 彰彦
Yoshito Kato
加藤 由人
Shuichi Sunahara
秀一 砂原
Hajime Ito
伊藤 甫
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.)
KURIEITEIBU SYST KK
Toyota Motor Corp
Original Assignee
KURIEITEIBU SYST KK
Toyota Motor Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by KURIEITEIBU SYST KK, Toyota Motor Corp filed Critical KURIEITEIBU SYST KK
Priority to JP61289404A priority Critical patent/JPH078042B2/en
Publication of JPS63142791A publication Critical patent/JPS63142791A/en
Publication of JPH078042B2 publication Critical patent/JPH078042B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Closed-Circuit Television Systems (AREA)

Abstract

PURPOSE:To always obtain a constant binarization image without being affected by the intensity of illumination by detecting the intensity of illumination in the vicinity of an image pickup device by an illumination intensity sensor, and determining a binarization level based on its illumination intensity signal. CONSTITUTION:The intensity of a reflected light from an object 10 is detected by the illumination intensity sensor 16, and at the same time, the binarization level L is determined based on the illumination intensity signal SS outputted from the illumination intensity sensor 16. Thus, even when an image signal SP varies being accompanied with the variation of the light penetrating from an external part or the change in the lapse of time of the intensity of illumination due to the lighting apparatus, the binarization level L is also changed corresponding to these variations, and the constant binarization image is obtained always without being affected by the intensity of illumination.

Description

【発明の詳細な説明】 技術分野 本発明は画像2値化処理装置に係り、特に照度の変化に
影響されない画像2値化処理装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION TECHNICAL FIELD The present invention relates to an image binarization processing device, and particularly to an image binarization processing device that is not affected by changes in illuminance.

従来技術 TVカメラ等の撮像装置を用いて、例えば、部品の形状
を識別したり被加工物の位置を計測したりすることが行
われている。特開昭59−198307号公頼に記載さ
れている判定方法はその一例である。
2. Description of the Related Art Imaging devices such as TV cameras are used to, for example, identify the shape of parts or measure the position of workpieces. The determination method described in Japanese Unexamined Patent Publication No. 59-198307 is one example.

そして、このような形状識別や位置計測等の画像処理を
、2値化画像に基づいて行うようになっているものがあ
る。すなわち、上記撮像装置から出力される画像信号を
、画像2値化処理装置により、予め定められた一定の2
値化レベルと比較してその2値化レベルの上か下かによ
って二つの値に2値化し、かかる二つの値で表される2
値化画像に基づいて画像処理を行うのである。このよう
な2値化画像によれば、2値化を行わない濃淡画像に比
較して画像処理時間が速く、装置が簡単かつ安価に構成
され得る利点がある。
Some devices perform image processing such as shape identification and position measurement based on binarized images. That is, the image signal output from the imaging device is converted into a predetermined constant binary signal by the image binarization processing device.
It is binarized into two values depending on whether it is above or below the binarization level compared to the binarization level, and the 2 value expressed by these two values is
Image processing is performed based on the digitized image. Such a binarized image has the advantage that the image processing time is faster than that of a grayscale image that is not binarized, and the apparatus can be constructed simply and inexpensively.

発明が解決しようとする問題点 しかしながら、かかる2値化画像は、対象物の明るさが
変化するのに伴って撮像装置からの画像信号が変化する
と、同じ対象物であっても異なった画像となることがあ
る。すなわち、従来の画像2値化処理装置においては、
前記2値化レベルが予め一定の値に設定されているため
、その2値化レベルを超えて画像信号が変化した部分に
ついては、反対の2値化処理が行われてしまうのである
Problems to be Solved by the Invention However, when the image signal from the imaging device changes as the brightness of the object changes, such a binarized image may result in different images even of the same object. It may happen. That is, in the conventional image binarization processing device,
Since the binarization level is set to a constant value in advance, the opposite binarization process is performed for a portion where the image signal changes beyond the binarization level.

このため、外部から侵入する光の変化や照明照度の経時
変化などによって2値化画像が変化し、誤った形状識別
や位置計測等が行われることがあった。
Therefore, the binarized image changes due to changes in light entering from the outside, changes in illumination intensity over time, etc., and incorrect shape identification, position measurement, etc. are sometimes performed.

これに対し、上記照度変化に対応して絞りを自動的に調
節する機能を備えた撮像装置を用いることが考えられる
が、この絞りの自動調節は一般にサーボ機構を利用して
メカニカルに行われるため、画像2値化処理において充
分に満足し得る程の精度は得られないのである。
On the other hand, it is possible to use an imaging device that has a function to automatically adjust the aperture in response to the above-mentioned changes in illuminance, but this automatic adjustment of the aperture is generally performed mechanically using a servo mechanism. , it is not possible to obtain sufficient accuracy in image binarization processing.

問題点を解決するための手段 本発明は上記問題点を解決するために為されたものであ
り、その要旨とするところは、撮像装置から出力された
画像信号を2値化レベルと比較して2値化する画像2値
化処理装置であって、(a)前記撮像装置が配置された
付近の照度を検出して、その照度に対応した照度信号を
出力する照度センサと、(′b)その照度センサから出
力された照度信号に基づいて前記2値化レベルを決定す
る2値化し゛ベル決定手段とを有することにある。
Means for Solving the Problems The present invention has been made to solve the above problems, and its gist is to compare the image signal output from the imaging device with the binarization level. An image binarization processing device that binarizes an image, comprising: (a) an illuminance sensor that detects illuminance near where the imaging device is placed and outputs an illuminance signal corresponding to the illuminance; and ('b) The present invention further comprises a binarization level determining means for determining the binarization level based on the illuminance signal output from the illuminance sensor.

作用および発明の効果 このようにすれば、照度センサによって撮像装置付近の
照度が検出され、その照度センサから出力される照度信
号に基づいて2値化レベルが決定されるため、外部から
侵入する光の変化や照明照度の経時変化などに伴って画
像信号が変化しても、その変化に応じて2値化レベルも
変更されることとなり、照度に影響されることなく常に
一定の2値化画像が得られるようになるのである。
Operation and Effect of the Invention With this method, the illuminance near the imaging device is detected by the illuminance sensor, and the binarization level is determined based on the illuminance signal output from the illuminance sensor. Even if the image signal changes due to changes in lighting or changes in illumination intensity over time, the binarization level will also change according to the change, resulting in a constant binarized image that is not affected by illuminance. will be obtained.

なお、上記撮像装置から出力される画像信号と照度との
間には一定の関係が存在するため、前記2値化レベル決
定手段は、例えばその関係に基づいて予め定められた前
記照度信号が表す照度を変数とする演算式に従って前記
2値化レベルを決定するように構成される。
Note that, since there is a certain relationship between the image signal output from the imaging device and the illuminance, the binarization level determining means may, for example, determine the value represented by the illuminance signal predetermined based on the relationship. The binarization level is determined according to an arithmetic expression using illuminance as a variable.

また、外光、或いは電気的なノイズ等の影響で照度信号
が一時的に変化した場合に、その照度信号に基づいて2
値化レベルを決定すると、誤った2値化レベルが設定さ
れることとなるため、2値化レベル決定手段としては、
前記照度センサから順次出力される照度信号のばらつき
が予め定められた一定値以下のときに前記2値化レベル
を決定するように構成することが望ましい。
In addition, when the illuminance signal changes temporarily due to the influence of external light or electrical noise, the
If the digitization level is determined, an incorrect binarization level will be set, so as a binarization level determination means,
It is preferable that the binarization level is determined when variations in illuminance signals sequentially output from the illuminance sensor are equal to or less than a predetermined constant value.

実施例 以下、本発明の一実施例を図面に基づいて詳細に説明す
る。
EXAMPLE Hereinafter, an example of the present invention will be described in detail based on the drawings.

先ず、第1図は、本発明に係る画像2値化処理装置を備
えた視覚装置の構成を説明するブロック線図である。か
かる第1図において、10は種類判別装置、自動加工機
等に供給された対象物であり、蛍光灯などの照明器具1
2によって光が照射されている。対象物10の上方には
撮像装置としてのTVカメラ14が設置されており、照
明器具12から対象物10に照射された光の反射光を受
光して、その反射光の強さに比例した画像信号SPを出
力する。また、そのTVカメラ14の近傍には、フォト
ダイオード、フォトトランジスタ等から成る照度センサ
16が設けられ、同じく対象物IOからの反射光を受光
して、その反射光の強さに比例した照度信号SSを出力
する。
First, FIG. 1 is a block diagram illustrating the configuration of a visual device including an image binarization processing device according to the present invention. In FIG. 1, reference numeral 10 indicates an object supplied to a type discrimination device, an automatic processing machine, etc., and a lighting equipment 1 such as a fluorescent lamp.
Light is irradiated by 2. A TV camera 14 as an imaging device is installed above the object 10, and receives the reflected light of the light irradiated onto the object 10 from the lighting fixture 12, and produces an image proportional to the intensity of the reflected light. Outputs signal SP. Further, an illuminance sensor 16 made of a photodiode, a phototransistor, etc. is provided near the TV camera 14, and similarly receives reflected light from the object IO and generates an illuminance signal proportional to the intensity of the reflected light. Output SS.

上記照度センサ16から出力された照度信号SSはA/
Dコンバータ18においてデジタル信号に変換された後
CPU20に供給される一方、T■カメラ14から出力
された画像信号SPは画像2値化コンパレータ22に供
給される。画像2値化コンパレータ22には、CPU2
0から出力された2値化レベルLを表すレベル信号SL
がD/Aコンバータ24においてアナログ信号に変換さ
れた後に供給されるようになっており、画像2値化コン
パレータ22は、上記画像信号SPとアナログ化された
レベル信号SLとを比較して、その画像信号SPをレベ
ル信号SLの上か下かによって二つの値で表した2値化
画像信号SP’をCPU20に出力する。
The illuminance signal SS output from the illuminance sensor 16 is A/
After being converted into a digital signal by the D converter 18, it is supplied to the CPU 20, while the image signal SP output from the T-camera 14 is supplied to the image binarization comparator 22. The image binarization comparator 22 includes a CPU 2
Level signal SL representing the binarized level L output from 0
is supplied after being converted into an analog signal by the D/A converter 24, and the image binarization comparator 22 compares the image signal SP and the analogized level signal SL and determines the level signal. A binarized image signal SP', which represents the image signal SP with two values depending on whether it is above or below the level signal SL, is output to the CPU 20.

CPU20は、データバスラインを介して接続されたR
OM26.RAM28.  ビデオRAM30、および
外部機器I/F32と共に所謂マイクロコンピュータを
構成しており、RAM28およびビデオRAM30の一
時記憶機能を利用しつつROM26に予め記憶されたプ
ログラムに従って信号処理を行い、前記レベル信号SL
をD/Aコンバータ24に供給するとともに、外部機器
I/F32からパラレルI/F34. シリアルI/F
36を介して前述した種類判別装置、自動加工機等に出
力信号を供給する。
The CPU 20 is connected to an R bus line via a data bus line.
OM26. RAM28. Together with the video RAM 30 and the external device I/F 32, it constitutes a so-called microcomputer, and uses the temporary storage functions of the RAM 28 and the video RAM 30 to perform signal processing according to a program stored in advance in the ROM 26, and processes the level signal SL.
is supplied to the D/A converter 24, and is also supplied from the external device I/F 32 to the parallel I/F 34. Serial I/F
An output signal is supplied to the above-mentioned type discrimination device, automatic processing machine, etc. via 36.

そして、以上のように構成された視覚装置は、第2図の
ブロック線図で示される機能を備えている。
The visual device configured as described above has the functions shown in the block diagram of FIG.

すなわち、照度センサ16から照度信号SSが供給され
る2値化レベル決定ブロツク38は、次式(1)に従っ
て照度信号SSが表す照度と予め設定された比例定数と
を掛算することにより2値化レベルL7を連続して算出
するとともに、一定価数aの2値化レベルL、−L、の
ばらつきが一定値Rよりも小さいときに、それ等a個の
2値化レベルL1の平均値りを2値化レベルとして決定
し、その決定された2値化レベルLを表すレベル信号S
Lを画像2値化コンパレータ22に供給する。
That is, the binarization level determination block 38 to which the illuminance signal SS is supplied from the illuminance sensor 16 binarizes the illuminance by multiplying the illuminance represented by the illuminance signal SS by a preset proportionality constant according to the following equation (1). While continuously calculating the level L7, when the dispersion of the binarization levels L, -L, of a constant valence a is smaller than the constant value R, the average value of the a number of binarization levels L1 is calculated. is determined as a binarization level, and a level signal S representing the determined binarization level L is determined.
L is supplied to the image binarization comparator 22.

上記比例定数は、TV左カメラ4から出力される画像信
号SPと照度との関係に基づいて、照度変化に拘らず2
値化画像が常に一定となるように実験的に或いは論理的
に予め設定されている。また、一定価数aは図示しない
設定器により目的に応じて任意の値に設定可能とされて
いる。本実施例では、この2値化レベル決定ブロツク3
8が2値化レベル決定手段に相当する。
The above proportionality constant is based on the relationship between the image signal SP output from the TV left camera 4 and the illuminance, and is calculated as follows:
It is experimentally or logically set in advance so that the value image is always constant. Furthermore, the constant valence a can be set to any value depending on the purpose using a setting device (not shown). In this embodiment, this binarization level determination block 3
8 corresponds to the binarization level determining means.

しい=(照度)×(比例定数)  ・・・(1)画像2
値化コンパレータ22は、TV左カメラ4から供給され
る画像信号spをレベル信号SLと比較して2値化画像
信号SP′を出力する。この画像2値化コンパレータ2
2から出力された2値化画像信号SP’は、2値化画像
としてビデオRAM30に記憶される一方、画像処理ブ
ロック40からの要求に応じてそのビデオRAM30か
ら読み出される。そして、かかる画像処理ブロック40
は、読み込んだ2値化画像に基づいて形状識別1位置計
測等の画像処理を行い、その画像処理の結果を表す出力
信号を外部機器I/F32からパラレルI/F34. 
 シリアルI/F36を介して種類判別装置、自動加工
機等に供給する。
Illuminance = (illuminance) x (proportionality constant) ... (1) Image 2
The value comparator 22 compares the image signal sp supplied from the TV left camera 4 with the level signal SL and outputs a binary image signal SP'. This image binarization comparator 2
The binarized image signal SP' outputted from the block 2 is stored in the video RAM 30 as a binarized image, and is read out from the video RAM 30 in response to a request from the image processing block 40. Then, the image processing block 40
performs image processing such as shape identification 1 position measurement based on the read binarized image, and sends an output signal representing the result of the image processing from the external device I/F 32 to the parallel I/F 34.
It is supplied to a type discrimination device, automatic processing machine, etc. via the serial I/F 36.

第3図は、上述した機能を実行するために前記ROM2
6に記憶されたプログラムのフローチャートである。以
下、このフローチャートに従って更に具体的に説明する
FIG. 3 shows the ROM2
6 is a flowchart of a program stored in FIG. A more specific explanation will be given below according to this flowchart.

図示しない電源スィッチが投入されると、先ずステップ
S1が実行され、種類判別装置、自動加工機等から画像
計測開始信号が入力されたか否かが判断される。電源ス
ィッチが投入された起動開始当初においては未だ画像計
測開始信号は入力されないため、続いてステップS2が
実行され、カウンタCの内容がOとされる。その後、ス
テップS3において照度信号SSが表す照度が読み込ま
れるとともに、ステップS4では、その読み込まれた照
度に基づいて前記(1)式に従って2値化レベルL、、
が算出される。そして、ステップS5において前記カウ
ンタCの内容に1が加算され、ステップS6においては
そのカウンタCの内容が一定値aに達したか否かが判断
される。この一定値aは、前記一定価数aに対応するも
のである。
When a power switch (not shown) is turned on, step S1 is first executed, and it is determined whether an image measurement start signal has been input from a type discrimination device, an automatic processing machine, or the like. Since the image measurement start signal is not yet input at the beginning of startup when the power switch is turned on, step S2 is subsequently executed and the content of the counter C is set to O. Thereafter, in step S3, the illuminance represented by the illuminance signal SS is read, and in step S4, based on the read illuminance, the binarization level L is set according to the above equation (1).
is calculated. Then, in step S5, 1 is added to the contents of the counter C, and in step S6, it is determined whether the contents of the counter C have reached a certain value a. This constant value a corresponds to the constant valence a.

カウンタCの内容が一定値aに達するまでは前記ステッ
プ83以下の実行が繰り返され、一定値aに達すると、
換言すればステップS4において2値化レベルL7が一
定個数aだけ連続して算出されると、次にステップS7
が実行される。ステップS7においては、算出されたa
個の2値化レベルL、−L、のばらつきが予め定められ
た一定値Rよりも小さいか否かが判断され、ばらつきが
一定値8以上の場合には前記ステップ82以下の実行が
繰り返され、新たに一定個数aの2値化レベルL、〜L
1が算出される。また、2値化レベルL、〜L、のばら
つきが一定値Rよりも小さい場合にはステップS8が実
行され、一定価数aの2値化レベルL、〜L、の平均値
りが算出され、その平均値りが最終的な2値化レベルと
して決定されるとともに記憶される。
The execution from step 83 onward is repeated until the content of the counter C reaches a certain value a, and when it reaches the certain value a,
In other words, when a certain number a of binarization levels L7 are successively calculated in step S4, then step S7
is executed. In step S7, the calculated a
It is determined whether the dispersion of the binarization levels L, -L, is smaller than a predetermined constant value R, and if the dispersion is greater than the predetermined value 8, the execution from step 82 onwards is repeated. , a new binarization level L of a certain number a, ~L
1 is calculated. Further, if the dispersion of the binarization levels L, ~L, is smaller than the constant value R, step S8 is executed, and the average value of the binarization levels L, ~L, of the constant valence a is calculated. , the average value is determined and stored as the final binarization level.

その後、再び前記ステップS1が実行され、画像計測開
始信号が入力されるまで上記ステップが繰り返されるこ
とにより、2値化レベルLは順次最新の値に更新される
。これ等のステップ82〜S8は、前記2値化レベル決
定ブロツク38の具体的な内容を表している。
Thereafter, the step S1 is executed again, and the binarization level L is sequentially updated to the latest value by repeating the steps until the image measurement start signal is input. These steps 82 to S8 represent the specific contents of the binarization level determination block 38.

そして、画像計測開始信号が入力され、ステップS1の
判断がYESとなると、次にステップS9以下が実行さ
れて画像計測が行われる。すなわち、先ず、ステップS
9においては、前記ステップS8において決定された最
新の2値化レベルLを表すレベル信号SLが画像2値化
コンパレータ22に出力され、ステップ310では、そ
の画像2値化コンパレータ22から出力される2値化画
像信号SP’を読み込んで、その2値化画像信号SP’
が表す2(a化画像をビデオRAM30に記憶する。そ
の後、ステップSllが実行され、ビデオRAM30に
記憶された2値化画像を適宜読み出して形状識別1位置
計測等の画像処理を行い、その結果を表す出力信号が出
力される。このステップSllは、前記画像処理ブロッ
ク40に対応する。
Then, when the image measurement start signal is input and the determination in step S1 becomes YES, steps S9 and subsequent steps are executed to perform image measurement. That is, first, step S
In step 9, the level signal SL representing the latest binarization level L determined in step S8 is output to the image binarization comparator 22, and in step 310, the level signal SL representing the latest binarization level L determined in step S8 is outputted to the image binarization comparator 22. Read the digitized image signal SP' and convert it to the binarized image signal SP'
The 2(a) image represented by An output signal representing this is output. This step Sll corresponds to the image processing block 40.

このようにして一つの対象物lOに対する画像計測が終
了すると、再び前記ステップ81以下が実行され、新た
な2値化レベルLが決定されるとともに、続いて供給さ
れる対象物10に対する画像計測がその新たな2値化レ
ベルLに基づいて行われる。
When the image measurement for one object 10 is completed in this way, the steps from step 81 onward are executed again, a new binarization level L is determined, and the image measurement for the object 10 to be supplied subsequently is performed. This is performed based on the new binarization level L.

このように、本実施例の視覚装置は、照度センサ16に
よって対象物10からの反射光の強さを検出するととも
に、その照度センサ16から出力される照度信号SSに
基づいて2値化レベルLが決定されるため、外部から侵
入する光の変化や照明器具12による照明照度の経時変
化などに伴って画像信号SPが変化しても、その変化に
応じて2値化レベルLも変更されることとなり、照度に
影響されることなく常に一定の2値化画像が得られるよ
うになる。
In this way, the visual device of this embodiment detects the intensity of reflected light from the object 10 using the illuminance sensor 16, and also determines the binarization level L based on the illuminance signal SS output from the illuminance sensor 16. is determined, so even if the image signal SP changes due to a change in light entering from the outside or a change over time in the illuminance of the lighting fixture 12, the binarization level L is also changed in accordance with the change. As a result, a constant binarized image can always be obtained without being affected by illuminance.

また、本実施例では一定個数aの2値化レベルL1〜L
、を算出して、それ等のばらつきが一定値Rよりも小さ
い場合、換言すれば照度センサ16から順次供給される
照度信号SSのばらつきが予め定められた一定値以下の
ときに、それ等の2値化レベルL I−L−を平均して
最終的な2値化レベルLを決定するようになっているた
め、外光。
In addition, in this embodiment, a fixed number a of binarization levels L1 to L
, and if the variations in these are smaller than a constant value R, in other words, when the variations in the illuminance signals SS sequentially supplied from the illuminance sensor 16 are below a predetermined constant value, Binarization level L Since the final binarization level L is determined by averaging the I-L-, external light.

或いは電気的なノイズ等の影響で照度信号SSが一時的
に変化しても、それに起因して誤った2値′ 化レベル
Lが設定されることはなく、高い信鯨性が得られるので
ある。
Alternatively, even if the illuminance signal SS changes temporarily due to the influence of electrical noise, etc., an incorrect binarization level L will not be set due to this, and high reliability can be obtained. .

、更に、本実施例では装置の起動開始当初のみならず、
画像計測が行われていない時には常時照度信号SSを読
み込んで2値化レベルLを更新するようになっているた
め、常に最適の2値化レベルLに基づいて画像2値化処
理が為され、例えば1日のうちの照度変化に対しても充
分に対応できる利点がある。
,Furthermore, in this embodiment, not only the initial startup of the device, but also the
When image measurement is not being performed, the illuminance signal SS is constantly read and the binarization level L is updated, so the image binarization process is always performed based on the optimal binarization level L. For example, it has the advantage of being able to adequately respond to changes in illumination throughout the day.

また、画像計測を開始する前に2値化レベルLが設定さ
れるため、画像計測を開始してから2値化レベルLを求
める場合に比較して画像計測時間が短縮される。
Furthermore, since the binarization level L is set before starting image measurement, the image measurement time is shortened compared to the case where the binarization level L is determined after starting image measurement.

次に、本発明の他の実施例を説明する。なお、以下の実
施例において前記第1実施例と共通する部分には同一の
符号を付して説明を省略する。
Next, another embodiment of the present invention will be described. In the following embodiments, parts common to those in the first embodiment are designated by the same reference numerals, and explanations thereof will be omitted.

先ず、第4図の実施例は、前記第1実施例に比較して照
度センサ16を対象物10側に設け、照明器具12から
の照射光を直接検出するようにしたものである。また、
第5図の実施例は、対象物10の裏側に照明器具44を
配置したものである。
First, in the embodiment shown in FIG. 4, compared to the first embodiment, an illuminance sensor 16 is provided on the object 10 side, and the irradiation light from the lighting fixture 12 is directly detected. Also,
In the embodiment shown in FIG. 5, a lighting fixture 44 is arranged on the back side of the object 10.

これ等の場合にも、前記2値化レベル決定ブロツク38
における演算式を実験等によって適当に設定することに
より、前記第1実施例と同様に、照度変化に拘らず常に
一定の2値化画像が得られるようになる。
In these cases as well, the binarization level determination block 38
By appropriately setting the arithmetic expression in (2) through experiments or the like, it is possible to always obtain a constant binary image regardless of changes in illuminance, as in the first embodiment.

以上、本発明の実施例を図面に基づいて詳細に説明した
が、本発明は他の態様で実施することもできる。
Although the embodiments of the present invention have been described above in detail based on the drawings, the present invention can also be implemented in other embodiments.

例えば、前記実施例ではa個の2値化レベルL1〜L1
を算出してそれ等のばらつきが一定値Rよりも小さいと
きに最終的な2値化レベルLを決定するようになってい
るが、この2値化レベルLを決定するに際しては、必ず
しもばらつきの判断を行う必要はない。また、一定時間
内における照度信号SSが表す照度の平均を求め、その
平均に前記(1)式の比例定数を掛算して最終的な2値
化レベルLを決定するようにしても良いことは勿論であ
る。なお、a個の2値化レベルL、−Lイを算出するこ
となく、(1)式に従って1個の2値化レベルを算出す
るのみでそれを最終的な2値化レベルLとしでも、本発
明の効果は得られる。
For example, in the embodiment, there are a number of binarization levels L1 to L1.
is calculated and the final binarization level L is determined when the variation is smaller than a constant value R. However, when determining the binarization level L, it is not necessary to take into account the variation. There is no need to make a judgment. Alternatively, the final binarization level L may be determined by determining the average of the illuminance represented by the illuminance signal SS within a certain period of time, and multiplying the average by the proportionality constant of equation (1) above. Of course. Note that even if one binarization level is only calculated according to equation (1) without calculating a number of binarization levels L, -L, and it is set as the final binarization level L, The effects of the present invention can be obtained.

また、前記実施例では演算式(1)に従って2値化レベ
ルL、、を算出するようになっているが、この演算式は
画像信号SPと照度との関係に基づいて適宜変更される
ものであり、また、演算式の替わりに2値化レベルL7
と照度との関係を表すデータマツプ等を用いることも可
能である。
Further, in the embodiment described above, the binarization level L, , is calculated according to the arithmetic expression (1), but this arithmetic expression is changed as appropriate based on the relationship between the image signal SP and the illuminance. Yes, and the binary level L7 is used instead of the arithmetic expression.
It is also possible to use a data map or the like that represents the relationship between the brightness and the illuminance.

また、前記実施例では2値化レベル決定ブロツク38が
所謂マイクロコンピュータにて構成されているが、ハー
ドロジック回路にて構成することもできる。なお、画像
2値化コンパレータ22をマイクロコンピュータにて構
成することも勿論可能である。
Further, in the embodiment described above, the binarization level determination block 38 is constituted by a so-called microcomputer, but it may also be constituted by a hard logic circuit. Note that it is of course possible to configure the image binarization comparator 22 using a microcomputer.

また、前記実施例ではステップ89以下の画像計測を開
始する前に2゛値化レベルLが決定されるようになって
いるが、画像計測の途中で2値化レベルLを決定するよ
うにしても差支えない。
Further, in the embodiment described above, the binary conversion level L is determined before starting the image measurement from step 89 onwards, but the binary conversion level L is determined during the image measurement. There is no problem.

また、前記実施例では画像計測が行われていない時には
常時照度信号SSを読み込んで2値化レベルLを更新す
るようになっているが、起動開始当初に決定された2値
化レベルLをそのまま用いるようにしたり、予め定めら
れた所定回数の画像計測が行われる毎に2値化レベルL
を更新したりするようにしても差支えない。
Furthermore, in the embodiment described above, when image measurement is not being performed, the illuminance signal SS is constantly read and the binarization level L is updated, but the binarization level L determined at the beginning of startup remains unchanged. The binarization level L
There is no problem in updating the .

また、前記実施例では電源スィッチが投入されることに
より2値化レベルLを決定して記憶するようになってい
るが、環境照度条件などに基づいて予め一定の2値化レ
ベルLを設定しておき、照度が変化した時にこれを補正
して新たな2値化レベルLを決定するようにすることも
可能である。
Furthermore, in the above embodiment, the binarization level L is determined and stored when the power switch is turned on, but a fixed binarization level L may be set in advance based on environmental illumination conditions, etc. It is also possible to correct this and determine a new binarization level L when the illuminance changes.

その他−々例示はしないが、本発明はその精神を逸脱す
ることなく当業者の知識に基づいて種々の変更、改良を
加えた態様で実施することができる。
Although other examples are not given, the present invention can be implemented with various modifications and improvements based on the knowledge of those skilled in the art without departing from the spirit thereof.

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

第1図は本発明に係る画像2値化処理装置を備えた視覚
装置の一例の構成を説明するブロック線図である。第2
図は第1図の視覚装置の機能を説明するブロック線図で
ある。第3図は第2図の機能ブロック線図を更に具体的
に説明するためのフローチャートである。第4図は本発
明の他の実施例の要部を説明するブロック線図である。 第5図は本発明の更に別の実施例の要部を説明するブロ
ック線図である。 14:TVカメラ(撮像装置) 16:照度センサ 出願人  トヨタ自動車株式会社 第4図 9p
FIG. 1 is a block diagram illustrating the configuration of an example of a visual device equipped with an image binarization processing device according to the present invention. Second
The figure is a block diagram illustrating the functions of the visual device of FIG. 1. FIG. 3 is a flowchart for explaining the functional block diagram of FIG. 2 in more detail. FIG. 4 is a block diagram illustrating the main parts of another embodiment of the present invention. FIG. 5 is a block diagram illustrating the main parts of yet another embodiment of the present invention. 14: TV camera (imaging device) 16: Illuminance sensor Applicant: Toyota Motor Corporation, Figure 4, page 9

Claims (3)

【特許請求の範囲】[Claims] (1)撮像装置から出力された画像信号を2値化レベル
と比較して2値化する画像2値化処理装置であって、 前記撮像装置が配置された付近の照度を検出して、該照
度に対応した照度信号を出力する照度センサと、 該照度センサから出力された照度信号に基づいて前記2
値化レベルを決定する2値化レベル決定手段と を有することを特徴とする画像2値化処理装置。
(1) An image binarization processing device that binarizes an image signal output from an imaging device by comparing it with a binarization level, which detects the illuminance near where the imaging device is placed and an illuminance sensor that outputs an illuminance signal corresponding to illuminance;
An image binarization processing device comprising a binarization level determining means for determining a binarization level.
(2)前記2値化レベル決定手段は、前記画像信号と前
記照度との関係に基づいて予め定められた、前記照度信
号が表す照度を変数とする演算式に従って前記2値化レ
ベルを決定するものである特許請求の範囲第1項に記載
の画像2値化処理装置。
(2) The binarization level determining means determines the binarization level according to an arithmetic expression that is predetermined based on the relationship between the image signal and the illuminance and uses the illuminance represented by the illuminance signal as a variable. An image binarization processing apparatus according to claim 1.
(3)前記2値化レベル決定手段は、前記照度センサか
ら順次出力される照度信号のばらつきが予め定められた
一定値以下のときに前記2値化レベルを決定するもので
ある特許請求の範囲第1項または第2項に記載の画像2
値化処理装置。
(3) The binarization level determining means determines the binarization level when variations in illuminance signals sequentially output from the illuminance sensor are equal to or less than a predetermined constant value. Image 2 described in Section 1 or Section 2
Value processing device.
JP61289404A 1986-12-04 1986-12-04 Image binarization processor Expired - Fee Related JPH078042B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61289404A JPH078042B2 (en) 1986-12-04 1986-12-04 Image binarization processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61289404A JPH078042B2 (en) 1986-12-04 1986-12-04 Image binarization processor

Publications (2)

Publication Number Publication Date
JPS63142791A true JPS63142791A (en) 1988-06-15
JPH078042B2 JPH078042B2 (en) 1995-01-30

Family

ID=17742794

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61289404A Expired - Fee Related JPH078042B2 (en) 1986-12-04 1986-12-04 Image binarization processor

Country Status (1)

Country Link
JP (1) JPH078042B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5212517A (en) * 1975-07-21 1977-01-31 Hitachi Ltd Binalizing device of video signal
JPS52127021A (en) * 1976-04-16 1977-10-25 Hitachi Shipbuilding Eng Co Method of determining threshold value of picture signal
JPS61177018A (en) * 1985-01-31 1986-08-08 Fanuc Ltd Method of compensating binary code threshold

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5212517A (en) * 1975-07-21 1977-01-31 Hitachi Ltd Binalizing device of video signal
JPS52127021A (en) * 1976-04-16 1977-10-25 Hitachi Shipbuilding Eng Co Method of determining threshold value of picture signal
JPS61177018A (en) * 1985-01-31 1986-08-08 Fanuc Ltd Method of compensating binary code threshold

Also Published As

Publication number Publication date
JPH078042B2 (en) 1995-01-30

Similar Documents

Publication Publication Date Title
US4449240A (en) Pattern recognition system
US7852379B2 (en) Image forming apparatus, image forming method, and computer program product
US4779002A (en) Method and apparatus for measuring optical cutting beam with parallel beam referencing
JPS63142791A (en) Image binarization processing device
US4329030A (en) Integrating time detector for photographic apparatus
JP2625723B2 (en) Image binarization processing device
JPH07245764A (en) Automatic white balance device
JPH05164703A (en) Inspecting method for surface of workpiece
JPH0192606A (en) Image measuring instrument
JP4591037B2 (en) Flicker component detection apparatus and flicker component detection method
JPS58153328A (en) Photodetecting sensitivity irregularity correcting system for image sensor
JP3190173B2 (en) Semiconductor device appearance inspection method and appearance inspection device
KR970002350A (en) Method and apparatus for checking the state of component mounting on a printed circuit board
JPS63142470A (en) Position recognizing device
JPS60200375A (en) Template matching system
JPH07159141A (en) Inspection of surface of workpiece
KR910007737B1 (en) Apparatus of gainning the fault of hole of shadow mask
JPH06201609A (en) Method for inspecting surface
JPH11183395A (en) Defect inspecting device
JPH06309456A (en) Method for judging threshold of outline in caracteristic picture processing by personal identification device
JPH1186187A (en) Automatic supervisory device in tunnel
JPS62257265A (en) Original reader
JPS6155779A (en) Graphic input device
JPS62103780A (en) Threshold calibrating method for binarization
JPH0679331B2 (en) Image signal binarization processing method

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees