JPH07128018A - Binarization method - Google Patents

Binarization method

Info

Publication number
JPH07128018A
JPH07128018A JP30336293A JP30336293A JPH07128018A JP H07128018 A JPH07128018 A JP H07128018A JP 30336293 A JP30336293 A JP 30336293A JP 30336293 A JP30336293 A JP 30336293A JP H07128018 A JPH07128018 A JP H07128018A
Authority
JP
Japan
Prior art keywords
circuit
measurement
light
ccd linear
sensor
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
JP30336293A
Other languages
Japanese (ja)
Other versions
JP3262924B2 (en
Inventor
Hironori Yamamoto
博徳 山本
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.)
Uchiyama Manufacturing Corp
Original Assignee
Uchiyama Manufacturing 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 Uchiyama Manufacturing Corp filed Critical Uchiyama Manufacturing Corp
Priority to JP30336293A priority Critical patent/JP3262924B2/en
Publication of JPH07128018A publication Critical patent/JPH07128018A/en
Application granted granted Critical
Publication of JP3262924B2 publication Critical patent/JP3262924B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Length Measuring Devices By Optical Means (AREA)

Abstract

PURPOSE:To provide a high-precision measuring method utilizing a binarization processing method which is easily effected by the quantity of surrounding light in the measurement of shape and dimensions using a CCD linear image sensor. CONSTITUTION:The title method consists of a circuit for detecting the quantity of surrounding environmental light by operating an integration circuit 3 with a switching input timing generation circuit 2 in synchronization with the scanning of a CCD linear sensor output 1 and a sample/hold circuit 4 for retaining the integration value and using it as a reference of the binarization threshold and the CCD linear sensor output 1 is binary-coded in reference to the threshold.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】CCDリニアイメージセンサを用
いた形状、寸法等の計測に於いて、レンズの汚れなどの
光学系の状態変化、煙・霧などの空気汚染による光量変
化、外乱光、等の周囲環境光量の影響を受け難い2値化
処理法を利用した高精度計測法の開発を目的とする。
[Industrial application] When measuring the shape and size using a CCD linear image sensor, changes in the state of the optical system such as dirt on the lens, changes in the amount of light due to air pollution such as smoke and fog, ambient light, etc. The objective is to develop a high-precision measurement method that uses a binarization method that is not easily affected by the amount of ambient light.

【0002】[0002]

【従来の技術】例えば、同一品番の製品形状、寸法を繰
り返し測定する場合を考える。まず上記センサのアナロ
グ出力電圧を2値化する際のしきい電圧値は、光源光量
や周囲環境光量等に合わせて測定者により初期設定され
る。そして実際に何度か測定を実施して得られるデータ
のばらつきの大きさ等により周囲環境光量の変化量を推
定し、そのデータを2値化しきい値の決定に利用してい
る。つまり2値化しきい値は、前回測定時までの周囲環
境光量データにより決定されていることになる。また、
リアルタイムでしきい値を決定する2値化法も実施され
ており、それらは形状、寸法測定用とは別に、1個また
は複数のセンサを用いて周囲環境光量を測定し、そこで
得られるデータを2値化しきい値決定に利用している。
2. Description of the Related Art For example, let us consider a case where the product shape and dimensions of the same product number are repeatedly measured. First, the threshold voltage value when the analog output voltage of the sensor is binarized is initially set by the measurer according to the light source light amount, the ambient light amount, and the like. Then, the amount of change in the ambient light amount is estimated based on the magnitude of the variation in the data obtained by actually performing the measurement several times, and the data is used to determine the binarization threshold value. That is, the binarization threshold value is determined by the ambient light amount data up to the previous measurement. Also,
Binarization methods that determine the threshold value in real time are also implemented. They use one or more sensors to measure the amount of ambient light and use the data obtained there, in addition to those for shape and size measurement. It is used to determine the binarization threshold.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、形状、
寸法測定用のセンサ1個のみを用いた測定システムでは
リアルタイムに2値化しきい値を決定できないため測定
データの精度向上が難しく、またリアルタイムでのしき
い値決定を実現するために個別に周囲環境光量測定用セ
ンサを使用すればシステムが大きくなり更にコストアッ
プとなる。この寸法測定と周囲環境光量測定用センサを
単数にてまかなう場合、まず測定対象物無しで周囲環境
光量のみを検出しそのデータを基にしきい値を決定する
ように、寸法測定のためにセンサ走査が2回以上必要と
なり、また、周囲環境光量を検出した時と測定対象物の
寸法測定を行なう時で時間的ずれが生じるためしきい値
設定が正確でなくかつリアルタイム性も損なわれ従って
得られる寸法も不正確となってしまう。次に、周囲環境
光量測定用と寸法測定用に各各専用のセンサを設けた場
合、周囲環境光量測定用センサで得られたデータにより
しきい値を決定し、寸法測定に使用するシステムでは、
測定精度向上のために使用する二つ以上のセンサのタイ
ミングを同期させる必要があり、そのタイミングがずれ
ると測定精度が下がり、また、このようなセンサの複数
増設はシステムを大型化しコストを上昇させる欠点を有
する。本発明はこのような欠点に鑑みて、1個のセンサ
のみで光源光量変化、外乱光等の周囲環境光量の影響を
受け難い2値化処理法を利用した高精度計測法を提供す
ることを目的とする。
However, the shape,
With a measurement system that uses only one sensor for dimension measurement, it is difficult to determine the binarized threshold value in real time, so it is difficult to improve the accuracy of the measurement data. Also, in order to realize threshold value determination in real time, the surrounding environment is individually determined. If the light quantity measuring sensor is used, the system becomes large and the cost further increases. When a single sensor for this dimension measurement and ambient light quantity measurement is used, first the sensor scan for dimension measurement is performed so that only the ambient light quantity is detected without an object to be measured and the threshold value is determined based on that data. Is required twice or more, and there is a time lag between when the amount of ambient light is detected and when the dimension of the measurement object is measured, so that the threshold setting is not accurate and the real-time property is impaired. The dimensions will also be incorrect. Next, when each dedicated sensor for ambient light measurement and dimension measurement is provided, the threshold is determined by the data obtained by the ambient light measurement sensor, and in the system used for dimension measurement,
It is necessary to synchronize the timings of two or more sensors used to improve the measurement accuracy, and if the timings deviate from each other, the measurement accuracy will decrease, and adding multiple sensors like this will increase the system size and cost. It has drawbacks. In view of such drawbacks, the present invention provides a high-precision measurement method using a binarization processing method that is not easily affected by ambient light quantity changes such as light source light quantity change and ambient light with only one sensor. To aim.

【0004】[0004]

【課題を解決するための手段】本発明は、光源から被測
定物体越しに光をイメージセンサーに照射せしめ、イメ
ージセンサーに投影された被検出物体の影の長さによっ
て外形寸法を測定する測定方法であって、図面を基に説
明すると図1に示すように、CCDリニアセンサ出力1
の走査に同期させスイッチ入力タイミング発生回路2に
より積分回路3を作動させて周囲環境光量を検出する回
路と、この積分値を保持し2値化しきい値の基準とする
サンプルホールド回路4からなり、これをしきい値とし
てCCDリニアセンサ出力1を2値化する構成からなっ
ている。
SUMMARY OF THE INVENTION The present invention is a measuring method for irradiating an image sensor with light from a light source through an object to be measured, and measuring the external dimensions by the length of the shadow of the object to be detected projected on the image sensor. As shown in FIG. 1, the CCD linear sensor output 1 will be described with reference to the drawings.
A circuit for activating the integration circuit 3 by the switch input timing generation circuit 2 in synchronism with the scanning of 1 to detect the ambient light quantity, and a sample hold circuit 4 for holding this integration value and using it as a reference of a binarization threshold value. The CCD linear sensor output 1 is binarized using this as a threshold value.

【作用】[Action]

【0005】本発明の特徴は、 (1).2値化しきい値をリアルタイムで決定し、かつ
2値化しきい値決定に必要な周囲環境光量データを新た
に設置したセンサではなく形状、寸法測定用センサで測
定する点。 (2).CCDリニアセンサ走査毎に、その時点の周囲
環境光量に適応した2値化しきい値を決定し、しかもそ
の走査で得られたCCDリニアセンサアナログ出力をそ
の走査で決定したしきい値で2値化する点。 上記2点を同時に実現した点にある。上記構成での作用
を、図2及び図3に示すタイムチャートをもとに図1の
動作を説明すると、被検出物体の寸法を測定するとき、
まず、CCDリニアセンサ出力1(図2の波形ではa)
の走査に同期させてスイッチ入力タイミング発生回路2
(図2の波形b)により積分回路3(図2の波形c)を
作動させ周囲環境光量を検出する。ここで得られた積分
値(波形c)をサンプルホールド回路4(波形d)で保
持し2値化しきい値の基準とする。前記サンプルホール
ド回路4では、この積分値(波形d)を次のサンプル信
号が来るまで保持し2値化回路5のしきい値の基準値と
してCCDリニアセンサ出力1を2値化する。上記出力
により精度の高い製品寸法を示した波形eが得られる。
The features of the present invention are (1). The point that the binarization threshold value is determined in real time, and the ambient light amount data necessary for the binarization threshold value determination is measured by the shape and dimension measurement sensor instead of the newly installed sensor. (2). For each CCD linear sensor scan, a binarization threshold value adapted to the ambient light amount at that time is determined, and the CCD linear sensor analog output obtained by that scan is binarized by the threshold value determined by the scan. Point to do. The point is that the above two points were realized at the same time. The operation of the above configuration will be described with reference to the time charts shown in FIGS. 2 and 3, and the operation of FIG. 1 will be described.
First, CCD linear sensor output 1 (a in the waveform of FIG. 2)
Switch input timing generation circuit 2 in synchronization with the scanning of
The integration circuit 3 (waveform c in FIG. 2) is operated by (waveform b in FIG. 2) to detect the amount of ambient light. The integrated value (waveform c) obtained here is held by the sample hold circuit 4 (waveform d) and used as a reference for the binarization threshold value. The sample-hold circuit 4 holds the integrated value (waveform d) until the next sample signal arrives, and binarizes the CCD linear sensor output 1 as a reference value of the threshold value of the binarizing circuit 5. With the above output, a waveform e showing a highly accurate product dimension can be obtained.

【0006】[0006]

【実施例】発明した原理の有効性を検証するため実際に
光学系と回路を構成し2値化しきい値を固定した測定シ
ステムと比較して寸法測定実験を行った。本実験では、
図3に示すようにまず2値化出力を用いてこの2値化出
力の立ち上がり立ち下がりでパルスを発生させる。そし
てその時のCCDセンサ画素カウント値をコンピュータ
に転送し、そのカウント値を測定対象物の大きさに変換
して寸法を測定した。その結果本システムの高精度寸法
計測法としての有効性が確認できた。しきい値を固定し
た方法では、しきい値のマニュアル調整を行わないと得
られた測定値は光源光量が変化すると大きく変動する。
それに対し本システムは、光源光量が変化してもほぼ一
定の測定値が得られた。これは、光源光量の変化に適応
して2値化しきい値が自動的に変更されるためで、今回
付加した回路が有効に機能している事を示している。ま
た、画素間のデータを補間してサブピクセル的に画素を
求める等の方法と組み合わせることで更に高精度の測定
が可能である。
EXAMPLE In order to verify the effectiveness of the invented principle, a dimension measurement experiment was conducted in comparison with a measurement system in which an optical system and a circuit were actually constructed and a binarized threshold value was fixed. In this experiment,
As shown in FIG. 3, first, a binary output is used to generate a pulse at the rising and falling edges of this binary output. Then, the CCD sensor pixel count value at that time was transferred to a computer, the count value was converted into the size of the measurement object, and the dimension was measured. As a result, the effectiveness of this system as a highly accurate dimension measurement method was confirmed. In the method of fixing the threshold value, the measured value obtained without the manual adjustment of the threshold value greatly changes when the light amount of the light source changes.
On the other hand, in this system, almost constant measurement values were obtained even when the light source quantity changed. This is because the binarization threshold value is automatically changed in accordance with the change in the light amount of the light source, indicating that the circuit added this time is effectively functioning. Further, by combining with a method such as interpolating data between pixels to obtain pixels in a sub-pixel manner, it is possible to perform measurement with higher accuracy.

【0007】[0007]

【発明の効果】本発明を用いる効果として、光源の寿命
による僅かな光量変化や、従来の測定システムでは測定
値に影響を与えていたと考えられる周囲環境光量(シス
テムが設置される部屋の照明等)の変化等もCCDリニ
アセンサ1走査毎に2値化しきい値を決定することによ
りその影響を無視することが可能となった。また、画素
全体の約5%以内の部分で周囲環境光量を検出すること
ができ、従来、測定にCCDリニアセンサを用いる場合
では電気的なノイズを嫌って使用していない部分の有効
利用が図れるものとなった。さらに該2値化により、リ
アルタイムな計測が可能でシステムを小型化しコストの
低減を実現する。
As an effect of using the present invention, a slight change in the light quantity due to the life of the light source and the amount of ambient light which is considered to have affected the measured value in the conventional measuring system (such as lighting of the room in which the system is installed) ), It is possible to ignore the effect of the binarization threshold value for each scan of the CCD linear sensor. In addition, the ambient light amount can be detected within about 5% of the entire pixel, and when a CCD linear sensor is conventionally used for measurement, electrical noise is disliked and effective use of the unused portion can be achieved. It became a thing. Furthermore, the binarization enables real-time measurement, downsizing of the system, and cost reduction.

【0008】[0008]

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

【図1】本発明のシステムのブロック図である。FIG. 1 is a block diagram of the system of the present invention.

【図2】本発明のタイムチャート図である。FIG. 2 is a time chart diagram of the present invention.

【図3】図2のタイムチャート図の合成図である。3 is a composite view of the time chart diagram of FIG. 2. FIG.

【0009】[0009]

【符号の説明】[Explanation of symbols]

1 CCDリニアセンサ出力 2 スイッチ入力タイミング発生回路 3 積分回路 4 サンプルホールド回路 5 2値化回路 a CCDリニアセンサ出力1の波形 b スイッチ入力タイミング発生回路2の波形 c 積分回路3の波形 d 積分値の波形 e 製品寸法を示した波形 1 CCD linear sensor output 2 Switch input timing generation circuit 3 Integration circuit 4 Sample hold circuit 5 Binarization circuit a Waveform of CCD linear sensor output 1 Waveform of switch input timing generation circuit 2 Waveform of integration circuit 3 d of integrated value Waveform e Waveform showing product dimensions

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 光源から被測定物体越しに光をイメージ
センサーに照射し、イメージセンサーに投影された被検
出物体の影の長さによって外形寸法を測定するものにお
いて、 センサの走査に同期させタイミング発生回路により積分
回路を作動させて光源光と周囲環境光に基づいてセンサ
が受光する全光量を検出する回路と、 この積分値を保持し、2値化しきい値の基準とするサン
プルホールド回路からなり、 これをしきい値としてCCDリニアセンサ出力を2値化
することを特徴とした2値化法。
1. A method of irradiating an image sensor with light from a light source through an object to be measured and measuring an external dimension by the length of a shadow of the object to be detected projected on the image sensor, the timing being synchronized with scanning of the sensor. From the circuit that operates the integration circuit by the generation circuit to detect the total amount of light received by the sensor based on the light from the light source and ambient light, and the sample and hold circuit that holds this integrated value and uses it as the reference for the binarization threshold. The binarization method is characterized in that the CCD linear sensor output is binarized using this as a threshold.
JP30336293A 1993-11-08 1993-11-08 Binarization method Expired - Fee Related JP3262924B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30336293A JP3262924B2 (en) 1993-11-08 1993-11-08 Binarization method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30336293A JP3262924B2 (en) 1993-11-08 1993-11-08 Binarization method

Publications (2)

Publication Number Publication Date
JPH07128018A true JPH07128018A (en) 1995-05-19
JP3262924B2 JP3262924B2 (en) 2002-03-04

Family

ID=17920079

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30336293A Expired - Fee Related JP3262924B2 (en) 1993-11-08 1993-11-08 Binarization method

Country Status (1)

Country Link
JP (1) JP3262924B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006349416A (en) * 2005-06-14 2006-12-28 Mitsutoyo Corp Surface texture measuring machine
JP2010200934A (en) * 2009-03-03 2010-09-16 Juki Corp Method for discriminating both sides of button and device for discriminating both sides of button
JP2010220945A (en) * 2009-03-25 2010-10-07 Juki Corp Button front / back discrimination device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006349416A (en) * 2005-06-14 2006-12-28 Mitsutoyo Corp Surface texture measuring machine
JP2010200934A (en) * 2009-03-03 2010-09-16 Juki Corp Method for discriminating both sides of button and device for discriminating both sides of button
JP2010220945A (en) * 2009-03-25 2010-10-07 Juki Corp Button front / back discrimination device

Also Published As

Publication number Publication date
JP3262924B2 (en) 2002-03-04

Similar Documents

Publication Publication Date Title
KR920015131A (en) Defect inspection method of the end of the object and its device
US4292672A (en) Inspection system for detecting defects in regular patterns
SE0302603D0 (en) System and method of imaging the characteristics of an object
US3653014A (en) Signal variation enhancement system
Baba et al. A novel subpixel edge detection system for dimension measurement and object localization using an analogue-based approach
JP3262924B2 (en) Binarization method
JP2008116234A (en) Environment sensing apparatus and method using image
WO2006041140A1 (en) 3d measurement sensor
JPH0369042B2 (en)
Bastuscheck Correction of video camera response using digital techniques
JPS63100310A (en) Surface texture measuring device
GB2089977A (en) Comparing data signals in defect inspection device
Zisk et al. Camera edge response
JPS61225604A (en) Dimension measurement apparatus
JPS5858404A (en) Floating binary system for signal
Ioan et al. Laser based displacement measurements using image processing
JPH0724256B2 (en) Size measuring device
SU849196A1 (en) Device for taking up coordinates from crt screen
JPS61149806A (en) Edge detecting device
JP2002108554A (en) Device for detecting position and method for the same
JPH0646183B2 (en) Circuit board defect detection device
ITMO20010084A1 (en) METHOD TO REALIZE THE READING OF INTERACTION FRACTIONS BETWEEN THE PHOTOSENSITIVE ELEMENTS OR CONTINUOUS PIXELS OF A LINEAR OPTICAL SENSOR
JPH09179979A (en) Defect detecting device
KR970047903A (en) Apparatus and method for measuring external dimensions of objects using laser light
JPH0378561B2 (en)

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees