JPS63141186A - Bright line binarizing device for light and shade image - Google Patents

Bright line binarizing device for light and shade image

Info

Publication number
JPS63141186A
JPS63141186A JP28931486A JP28931486A JPS63141186A JP S63141186 A JPS63141186 A JP S63141186A JP 28931486 A JP28931486 A JP 28931486A JP 28931486 A JP28931486 A JP 28931486A JP S63141186 A JPS63141186 A JP S63141186A
Authority
JP
Japan
Prior art keywords
image
circuit
bright line
binarization
grayscale
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.)
Pending
Application number
JP28931486A
Other languages
Japanese (ja)
Inventor
Tadashi Kinomura
木野村 正
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.)
Sumitomo Electric Industries Ltd
Original Assignee
Sumitomo Electric Industries 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 Sumitomo Electric Industries Ltd filed Critical Sumitomo Electric Industries Ltd
Priority to JP28931486A priority Critical patent/JPS63141186A/en
Publication of JPS63141186A publication Critical patent/JPS63141186A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Abstract

PURPOSE:To correctly binarize an extracted bright line by determining two thresholds from density and a histogram, and binarize said line by utilizing the result. CONSTITUTION:A video camera 4 detects an image due to slit light projected vertically to an object, outputs a video signal 12 for one image and inputs this to an A/D converting circuit 7. In the A/D converting circuit 7, a video signal converted to a digital signal 13 is stored into a variable density image memory 9 and inputted to a threshold calculating circuit 8. A threshold calculating circuit 8 calculates the density histogram based on the digital signal 13 of the inputted image and determined two thresholds from the cumulative number of times frequencies. A binarizing circuit 10 uses two thresholds, removes the data for one scanning line from the light and shade image memory 9 and binarized.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、対象物に投影したスリット光等の輝線を濃
淡画像から抽出し、抽出された輝線を2値化する装置に
関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a device that extracts bright lines such as slit light projected onto an object from a grayscale image and binarizes the extracted bright lines.

〔従来の技術〕[Conventional technology]

第5図は、従来の2値化装置を示すものであり、この装
置は、検査対象物1に対しスリット光2を垂直に投影す
る光源3と、ビデオカメラ等の画像検出装置4と、検出
された画像を2値化する2値化回路5から成り、その2
値化回路5において、入力された画像の明部分を1″、
暗部骨を′°0′′として2値化する。
FIG. 5 shows a conventional binarization device, which includes a light source 3 that projects a slit light 2 perpendicularly onto an object to be inspected 1, an image detection device 4 such as a video camera, and a detection device. It consists of a binarization circuit 5 that binarizes the image.
In the value converting circuit 5, the bright part of the input image is converted to 1'',
The dark bone is binarized as '°0''.

上記の2値化回路5における2硫化方法として、■映像
信号の明るさのピーク点から求める方法と、■3×3画
素等の局所的なオペレータで演算を行なって求める方法
等がある。
As the disulfide method in the above-mentioned binarization circuit 5, there are two methods: (1) determining from the peak point of brightness of the video signal, and (2) determining by performing calculations using local operators such as 3×3 pixels.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上記■の方法は、ビデオカメラの映像信号を直接2値化
回路に入力することで実現できるため、ハードウェアが
簡単であるメリットがある。しかし従来の方法は走査線
ごとの映像信号の明るさのピークから輝線を抽出する方
法を採っている。そのため、輝線と背景とのコントラス
トが低い場合、単純に明るさのピークを輝線とみなすた
め、外乱光(ノイズ)により輝線の位置を誤確認する欠
点がある。また、輝線が明るすぎる場合、ビデオカメラ
の特性によって明るい光が入ると、スミアやブルーミン
グ(オーバーフロー)が発生するため、輝線の明るさの
ピークを検出できなかったり、誤認識することがある。
The above method (2) can be realized by directly inputting the video signal of the video camera to the binarization circuit, so it has the advantage of simple hardware. However, the conventional method employs a method of extracting bright lines from the peak brightness of the video signal for each scanning line. Therefore, when the contrast between the bright line and the background is low, the brightness peak is simply regarded as the bright line, which has the disadvantage of erroneously confirming the position of the bright line due to disturbance light (noise). Furthermore, if the bright line is too bright, smearing or blooming (overflow) may occur due to the characteristics of the video camera when bright light enters, so the brightness peak of the bright line may not be detected or may be misrecognized.

また、前記■の方法は、1画面分の映像信号をA/D変
換してコンピュータのメモリ上に記憶し、その後局所的
なオペレータで全画素について演算を行なう必要がある
ため、リアルタイムで処理できない欠点がある。
In addition, method (2) above requires A/D conversion of one screen's worth of video signals and storage in the computer's memory, and then requires a local operator to perform calculations on all pixels, so it cannot be processed in real time. There are drawbacks.

この発明は、上記■の方法の特徴を生かし、その欠点を
解消し、濃淡画像のコントラストや明るさが変化しても
抽出した輝線の2値化が正しく行なえる2値化装置を提
供することを目的とする。
The present invention makes use of the characteristics of the method (2) above, eliminates its drawbacks, and provides a binarization device that can correctly binarize extracted bright lines even if the contrast and brightness of a grayscale image change. With the goal.

〔問題点を解決するための手段〕[Means for solving problems]

上記の目的を達成すめために、この発明は対象物に輝線
を投影する光源と、上記輝線を画像として検出するビデ
オカメラ等の画像検出装置と、検出された画像をディジ
タル化するA/D変換回路と、ディジタル化した濃淡画
像データを2値化する2値化回路とを有する濃淡画像の
輝wAz値化装置において、上記の濃淡画像データから
濃淡ヒストグラムを計算し明るい方から2つのしきい値
(m、n)を決定するしきい植針算回路を設け、上記2
値化回路において上記しきい値(m、n)を基準として
濃淡画像データを2値化するするようにしたものである
In order to achieve the above object, the present invention includes a light source that projects a bright line onto an object, an image detection device such as a video camera that detects the bright line as an image, and an A/D conversion device that digitizes the detected image. In the brightness wAz value conversion device for grayscale images, which has a circuit and a binarization circuit that binarizes the digitalized grayscale image data, a grayscale histogram is calculated from the grayscale image data, and two threshold values are set from the brightest one. A threshold calculation circuit is provided to determine (m, n), and
In the digitizing circuit, the grayscale image data is binarized using the threshold value (m, n) as a reference.

〔実施例〕〔Example〕

第1図は本発明の実施例を示すブロック図であり、ビデ
オカメラ4、A/D変換回路7、しきい植針算回路8、
濃淡画像メモリ9.2値化回路10、及び2値画像メモ
リ11から成る。
FIG. 1 is a block diagram showing an embodiment of the present invention, in which a video camera 4, an A/D conversion circuit 7, a threshold counting circuit 8,
The grayscale image memory 9 consists of a binarization circuit 10 and a binary image memory 11.

ビデオカメラ4は、第5図に示すように、対象物1に垂
直に投影されたスリット光2による画像を検出し、−画
像分の映像信号12(第2図参照)を出力し、これを次
のA/D変換回路7に入力する。A/D変換回路7にお
いては、その映像信号12をディジタル化し、そのディ
ジタル信号13を出力し、これを次の濃淡画像メモリ9
に、入力し記憶する。
As shown in FIG. 5, the video camera 4 detects an image by the slit light 2 projected perpendicularly onto the object 1, outputs a video signal 12 (see FIG. 2) corresponding to -images, and outputs the video signal 12 (see FIG. The signal is input to the next A/D conversion circuit 7. The A/D conversion circuit 7 digitizes the video signal 12 and outputs the digital signal 13, which is sent to the next grayscale image memory 9.
Enter and memorize.

また、上記の記憶操作と並行して、ディジタル信号13
はしきい植針算回路8に人力される。この回路8におい
ては、入力された画像のディジタル信号13に基づき濃
度ヒストグラムを計算し、その累積度数から2つのしき
い値を決定する。このしきい値の決定は、例えば−走査
線の画素数が256個、A/D変換の階調が63の場合
で説明すると、輝線の幅が一走査線に占める理論長が2
画素分のとき、濃度ヒストグラムの明るい方からの累積
度数が2画素を超えた濃度を明るい方のしきい値(m)
にする。次に、暗い方のしきい値(n)は、上記の輝線
幅の3〜5倍、例えば6画素(−3倍)を超えた濃度と
いうように決定する。
In addition, in parallel with the above storage operation, the digital signal 13
It is manually input to the threshold planting needle calculation circuit 8. This circuit 8 calculates a density histogram based on the digital signal 13 of the input image, and determines two threshold values from the cumulative frequency. The determination of this threshold value is explained by assuming, for example, that the number of pixels in a scanning line is 256 and the gradation level of A/D conversion is 63.The theoretical length of the width of a bright line in one scanning line is 2.
For pixels, the density where the cumulative frequency from the bright side of the density histogram exceeds 2 pixels is determined as the threshold value (m) for the bright side.
Make it. Next, the darker threshold value (n) is determined to be a density that exceeds 3 to 5 times the bright line width, for example, 6 pixels (-3 times).

2値化回路10は、上記のしきい値(m、n)を用い、
濃淡画像メモリ9から一走査線ずつデータを取り出し2
値化を行う、2値化は、−走査線のデータが暗い方のし
きい値(n)を越えてないときはすべてt+ OItと
する。また−走査線のデータが暗い方のしきい値(n)
のみを越えるときは、第3図a、bに示すように、濃度
が最大となる画素の位置EをIT I It、それ以外
を′0′′とする。
The binarization circuit 10 uses the above thresholds (m, n),
Retrieve data one scanning line at a time from the grayscale image memory 9 2
In binarization, when the data of the - scanning line does not exceed the darker threshold value (n), t+OIt is used. Also - the threshold value (n) for which the scan line data is darker
As shown in FIGS. 3a and 3b, the pixel position E where the density is maximum is set as IT I It, and the other positions are set as '0''.

更に、−走査線のデータが明るい方のしきい値(rn)
を超えるときは、第4図a、bに示すように、明るい方
のしきい値を超えた区間の中央になる画素の位置をIT
 I If、それ以外をIt OIfとする。
Furthermore, - the threshold value (rn) for which the scanning line data is brighter;
When it exceeds the threshold value, as shown in Figure 4 a and b, the position of the pixel in the center of the brighter threshold is
I If, and the others are It OIf.

上記のようにして2値化された2値化信号14は次の2
値化画像メモリ11に出力され、記憶される。
The binarized signal 14 binarized as described above is as follows:
It is output to the digitized image memory 11 and stored.

〔発明の効果〕〔Effect of the invention〕

以上のように、この発明は濃度とストグラ云から2つの
しきい値(m、n)を決定し、これらを利用して2値化
を行なっているため、コントラストの低い濃淡画像や、
逆にスミアやブルーミングのある濃淡画像であっても正
しく2値化が行なえる効果がある。また、単純な構成で
ハードウェア化できるため、はぼリアルタイムで2値化
が行える効果もある。
As described above, this invention determines two threshold values (m, n) from the density and the gray scale, and uses these to perform binarization, so it is possible to create a dark and light image with low contrast.
On the other hand, it has the effect of correctly binarizing even a dark and light image with smear or blooming. Furthermore, since it can be implemented in hardware with a simple configuration, it has the advantage of being able to perform binarization in almost real time.

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

第1図は本発明の実施例を示すプロンク図Z第2図はA
/D変換後の濃淡画像、第3図のa図は一走査線の画像
データの説明図、同図のb図は上記画像データに対応し
た2値化体号の説明図、第4図のa図は一走査線の他の
画像データの説明図、同図のb図は上記画素データに対
応した2値化体号の説明図、第5図は従来の2値化装置
の構成図である。 1・・・・・・対象物、2・・・・・・スリット光、3
・・・・・・光源、4・・・・・・ビデオカメラ、7・
・・・・・A/D変換回路、8・・・・・・しきい植針
算回路、9・・・・・・濃淡画像メモリ、10・・・・
・・2値化回路、11・・・・・・2値化画像メモリ、
12・・・・・・映像信号、13・・・・・・ディジタ
ル信号。
Figure 1 is a Pronk diagram Z showing an embodiment of the present invention Figure 2 is A
The gray scale image after /D conversion, Figure a in Figure 3 is an explanatory diagram of image data of one scanning line, Figure b in the same figure is an explanatory diagram of the binarized symbol corresponding to the above image data, Figure 4 is an illustration of the image data of one scanning line. Figure a is an explanatory diagram of other image data of one scanning line, Figure b of the same figure is an explanatory diagram of the binarization symbol corresponding to the above pixel data, and Figure 5 is a configuration diagram of a conventional binarization device. be. 1...Object, 2...Slit light, 3
...Light source, 4...Video camera, 7.
...A/D conversion circuit, 8...Threshold needle calculation circuit, 9...Darkness image memory, 10...
...binarization circuit, 11...binarization image memory,
12...Video signal, 13...Digital signal.

Claims (1)

【特許請求の範囲】[Claims] 対象物に輝線を投影する光源と、上記輝線を画像として
検出するビデオカメラ等の画像検出装置と、検出された
画像をディジタル化するA/D変換回路と、ディジタル
化した濃淡画像データを2値化する2値化回路とを有す
る濃淡画像の輝線2値化装置において、上記の濃淡画像
データから濃淡ヒストグラムを計算し明るい方から2つ
のしきい値(m、n)を決定するしきい値計算回路を設
け、上記2値化回路において上記しきい値(m、n)を
基準として濃淡画像データを2値化することを特徴とす
る濃淡画像の輝線2値化装置。
A light source that projects a bright line onto an object; an image detection device such as a video camera that detects the bright line as an image; an A/D conversion circuit that digitizes the detected image; In a bright line binarization device for grayscale images, which has a binarization circuit for converting grayscale images, threshold calculation calculates a grayscale histogram from the grayscale image data and determines two threshold values (m, n) from the brightest one. A bright line binarization device for a grayscale image, comprising: a circuit for binarizing grayscale image data using the threshold value (m, n) as a reference in the binarization circuit.
JP28931486A 1986-12-03 1986-12-03 Bright line binarizing device for light and shade image Pending JPS63141186A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28931486A JPS63141186A (en) 1986-12-03 1986-12-03 Bright line binarizing device for light and shade image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28931486A JPS63141186A (en) 1986-12-03 1986-12-03 Bright line binarizing device for light and shade image

Publications (1)

Publication Number Publication Date
JPS63141186A true JPS63141186A (en) 1988-06-13

Family

ID=17741580

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28931486A Pending JPS63141186A (en) 1986-12-03 1986-12-03 Bright line binarizing device for light and shade image

Country Status (1)

Country Link
JP (1) JPS63141186A (en)

Similar Documents

Publication Publication Date Title
JPH041866A (en) Method and device for image processing
US6445811B1 (en) Fingerprint image processing device and fingerprint image processing method
JPS63141186A (en) Bright line binarizing device for light and shade image
GB2044500A (en) Signal processing counting apparatus
JPS5816837B2 (en) pattern detection device
JP2773871B2 (en) Image data binarization method
JPH0514898A (en) Image monitor device
JP2590463B2 (en) Number plate automatic recognition device
JPS63131281A (en) Automatic number plate recognizer
JPS61180382A (en) Picture recognizer
JPH0477951B2 (en)
JPH0512441A (en) Edge image generator
JPS6385890A (en) Counter for the number of persons
JPS5999238A (en) Surface inspecting device
JPH056713B2 (en)
JPH0559547U (en) Image target detection device
JPH0420225B2 (en)
JPS6346579A (en) Image processor
JPS6393080A (en) Binarization method for image
JPH0556329A (en) Image blur amount detector
JPS603273A (en) System for setting binary-coding threshold value of picture
JPS6177707A (en) Direction judging device of semiconductor integrated circuit device
JPH01158577A (en) Method for background erasing and binarization processing for line graphic picture and its device and picture processor for fingerprint picture
JPH04142676A (en) Binary image conversion method
JPH03149676A (en) Method for recognizing image