JPH03192476A - Binarizing method for picture - Google Patents

Binarizing method for picture

Info

Publication number
JPH03192476A
JPH03192476A JP1280880A JP28088089A JPH03192476A JP H03192476 A JPH03192476 A JP H03192476A JP 1280880 A JP1280880 A JP 1280880A JP 28088089 A JP28088089 A JP 28088089A JP H03192476 A JPH03192476 A JP H03192476A
Authority
JP
Japan
Prior art keywords
picture
image
pattern
input
executed
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
JP1280880A
Other languages
Japanese (ja)
Inventor
Yuji Ueno
裕司 上野
Hisami Nishi
壽巳 西
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.)
Nippon Sheet Glass Co Ltd
Original Assignee
Nippon Sheet Glass 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 Nippon Sheet Glass Co Ltd filed Critical Nippon Sheet Glass Co Ltd
Priority to JP1280880A priority Critical patent/JPH03192476A/en
Publication of JPH03192476A publication Critical patent/JPH03192476A/en
Pending legal-status Critical Current

Links

Landscapes

  • Facsimile Image Signal Circuits (AREA)
  • Dot-Matrix Printers And Others (AREA)
  • Image Input (AREA)

Abstract

PURPOSE:To prevent a pattern from being erroneously recognized by nonuniformity by applying approximately averaged intensity distribution for the unit of a small area to a threshold value itself to be the reference of binarizing. CONSTITUTION:A differentiation processing is executed upon an inputted picture A and a differentiated picture B is binarized at a certain density level so as to obtain an edge picture C of the pattern. By executing an enlargement processing upon the edge picture C, a binary picture D is obtained slightly larger than the pattern part. Next, the extraction of a maximum value near each position is executed upon the input picture A and a picture E is obtained. Then, the extraction of a minimum value is executed similarly and a picture F is obtained. A picture G is made with the density level between the density levels of the maximum value picture E and the minimum value picture F and compared with the original input picture A as a threshold picture and only concerning the area of the picture D which are is slightly larger than the pattern part, a binarizing processing is executed. Thus, even when there is the nonuniformity of light intensity or printing density, etc., the pattern part can be exactly separated from a background part and the picture can be binarized.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、画像処理を利用したパターン計測を行なう場
合に必要な、入力画像を2値化する技術に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a technique for binarizing an input image, which is necessary when performing pattern measurement using image processing.

[従来の技術] 一般に、テレビカメラ等の画像入力装置を通して入力さ
れた二次元の画像を2値化する場合、画像全体に対して
単一のしきい値を設定し、そのしきい値よりも入力され
た画像信号のレベルが大きいか、小さいかで2値化を行
なっていた。
[Prior Art] Generally, when binarizing a two-dimensional image input through an image input device such as a television camera, a single threshold value is set for the entire image, and Binarization was performed depending on whether the level of the input image signal was high or low.

[発明が解決しようとする問題点コ 画像入力装置としてテレビカメラを想定すると、目的物
に、対する照明が一様でなく明るさムラが存在する事が
考えられる。また、照明が一様であったとしても、印刷
物などの読み取りの場合に印刷濃度が全体で一様でない
場合も考えられる。
[Problems to be Solved by the Invention] When a television camera is assumed as an image input device, it is conceivable that the illumination of the object is not uniform and there is uneven brightness. Further, even if the illumination is uniform, when reading a printed matter, the print density may not be uniform throughout.

そのような画像を入力して、画像全体に対して単一のし
きい値を設定して2値化処理を行なうと、本来背景部で
ある場所がパターン部になってしまったり、その反対の
ことが起ることが容易に推測できる。
If you input such an image and perform binarization processing by setting a single threshold value for the entire image, the background part may become a pattern part, or vice versa. It is easy to guess what will happen.

[問題点を解決するための手段] 画像の微分処理と拡大処理とを用いて、入力画像を背景
部とパターン部とに粗分離し、入力画像の小面積領域例
えば画素単位に、この画素を中心とする近傍を含めた画
素群中の強度最大値及び強度最小値を抽出するとともに
、両値間に位置する強度レベルで画像全体に可変しきい
値を設定し、この可変しきい値に基づいて入力画像信号
を2値化する。
[Means for solving the problem] Using image differentiation processing and enlargement processing, the input image is roughly separated into a background part and a pattern part, and this pixel is divided into a small area area of the input image, for example, pixel by pixel. In addition to extracting the maximum intensity value and minimum intensity value in a group of pixels including the vicinity of the center, a variable threshold value is set for the entire image at an intensity level located between these two values, and based on this variable threshold value, The input image signal is binarized.

[作用コ 画像入力対象物に、照明、印刷濃度等のムラがあったと
しても、2値化の基準となるしきい値自体に、小面積単
位で概略平均化した強度分布を与えているので、従来方
法のような画像全体に一律のしきい値を設定する場合に
比べて、上記ムラによるパターンの誤認識を生じ難い。
[Effects] Even if there are irregularities in illumination, print density, etc. in the image input object, the threshold itself, which is the standard for binarization, is given an intensity distribution roughly averaged in small area units. Compared to the conventional method in which a uniform threshold value is set for the entire image, misrecognition of patterns due to the above-mentioned unevenness is less likely to occur.

[実施例コ 以下、本発明を図面に示した実施例に基づいて詳細に説
明する。
[Embodiments] Hereinafter, the present invention will be explained in detail based on embodiments shown in the drawings.

第1図は本発明方法の処理手順を示すフロー図である。FIG. 1 is a flow diagram showing the processing procedure of the method of the present invention.

ここでは、背景部に対してパターン部の方が濃度レベル
が高い場合について説明するが、その反対の場合でも本
方法を容易に適用することができる。第1図中で画像の
名前は英大文字A・・・Hで表わしている。
Here, a case will be described in which the density level of the pattern part is higher than that of the background part, but the present method can be easily applied to the opposite case as well. In FIG. 1, the names of images are represented by capital letters A...H.

第2図は画像入力対象10の一例としてrABCJの文
字を入力した例を示し、この入力対象10を横切るライ
ン21上の濃度の強度を示す。
FIG. 2 shows an example in which the characters rABCJ are input as an example of the image input object 10, and shows the density intensity on a line 21 that crosses this input object 10.

第2図中の英大文字A・・・Hは第1図の画像A・・・
Hに対応している。
The English capital letters A...H in Figure 2 are the images A... in Figure 1.
It corresponds to H.

以下、上記の例について画像処理手順を説明する。The image processing procedure for the above example will be described below.

まずテレビカメラ等の画像入力装置を通して入力された
画像Aに微分処理を施し、微分画像Bを得る。
First, an image A input through an image input device such as a television camera is subjected to differential processing to obtain a differential image B.

この微分処理によって入力画像中の背景部が除去され、
パターンのエツジ部分が強調された画像Bが得られるの
で、この画像をある濃度レベルで2値化してパターンの
エツジ画像Cを得る。画像Cは、背景部の影響や、画像
の照明ムラなどの影響をほとんど受けずに画像のエツジ
部が抽出されている。このエツジ画像Cに対して拡大処
理を行なうことにより、パターン部より少し大きい2値
両像りを得ることができる。
This differentiation process removes the background part in the input image,
Since an image B in which the edge portion of the pattern is emphasized is obtained, this image is binarized at a certain density level to obtain an edge image C of the pattern. In image C, the edge portion of the image is extracted without being affected by the background portion or uneven illumination of the image. By performing enlargement processing on this edge image C, it is possible to obtain a binary image slightly larger than the pattern portion.

このようにして、入力された画像データを背景部とパタ
ーン部とに粗く分離することができる。
In this way, input image data can be roughly separated into a background part and a pattern part.

第2図では、ライン21上の強度分布を上記各画像A・
Dに対して示している。
In FIG. 2, the intensity distribution on the line 21 is
It is shown for D.

次に、可変しきい値の設定方法について説明する。入力
画像Aに対して、各位置近傍での最大値の抽出を行ない
1画像Eを得る。この最大値の具体的な抽出方法を第3
図について説明する。
Next, a method of setting a variable threshold value will be explained. For input image A, one image E is obtained by extracting the maximum value near each position. The specific method for extracting this maximum value is explained in the third section.
The diagram will be explained.

上記の「近傍」として3X3=9画素をとることにし、
第3図では、第2図中のライン21上の特定1画素eを
中心とするa、b’、c・・・iの9画素をeの近傍領
域31としている。そして、特定位置eの近傍での最大
値、すなわち第3図例でa。
We will take 3×3=9 pixels as the above “neighborhood”,
In FIG. 3, nine pixels a, b', c, . . . , i centered on a specific pixel e on the line 21 in FIG. Then, the maximum value in the vicinity of the specific position e, that is, a in the example of FIG. 3.

b、c・・・iの9画素中の最大値を抽出して、この最
大値をeの位置に対応付けして、e゛とじ、同様の操作
を全画素について繰り返し行ない、各画素に対応した近
傍領域内最大値a′、b′、C′・・” iT・・・の
マトリクスから成る最大値画像32を得る。この処理を
最大値抽出と呼ぶ。
Extract the maximum value among the 9 pixels of b, c...i, associate this maximum value with the position of e, and save it to e゛. Repeat the same operation for all pixels to correspond to each pixel. A maximum value image 32 consisting of a matrix of maximum values a', b', C', .

第2図中の画像Eは、ライン21上での近傍最大値画像
、つまり第3図例で一線上dl、ef′・・・の強度分
布を示している。
The image E in FIG. 2 shows the neighboring maximum value image on the line 21, that is, the intensity distribution of dl, ef', . . . on the line in the example of FIG.

同様にして最小値の抽出を行ない、画像Fを得る。Similarly, the minimum value is extracted to obtain image F.

最適な2値化レベルは、最大値画像Eと最小値画像Fの
濃度レベルの間にあることは明らかである。
It is clear that the optimal binarization level is between the density levels of the maximum value image E and the minimum value image F.

そこで、最大値画像Eと最小値画像Fの濃度レベルの間
(例えば中心値)のレベルを持った画像Gをつくり、こ
の画像Gを、2値化のためのしきい値決定に用いる画像
とする。画像Gは、場所によって濃度レベルが異なって
いて、場所に応じた2値化レベルを決定することを可能
にしている。
Therefore, an image G having a density level between the density levels of the maximum value image E and the minimum value image F (for example, the center value) is created, and this image G is used as the image used to determine the threshold value for binarization. do. The image G has different density levels depending on the location, making it possible to determine the binarization level depending on the location.

画像Gをしきい値画像として、元の入力画像Aと比較し
、その大小関係によって2値化処理を行なう。但しこれ
だけでは、背景部の中にもしきい値画像Gよりも濃度レ
ベルの高い領域が存在する場合もあるので、パターン部
より領域が少し大きい画像りの領域についてのみ2値化
処理を行なうことが望ましい。
Image G is used as a threshold image and compared with the original input image A, and binarization processing is performed based on the magnitude relationship. However, if this is done alone, there may be areas in the background area that have a higher density level than the threshold image G, so it is not possible to perform binarization processing only on areas of the image that are slightly larger than the pattern area. desirable.

[発明の効果] 本発明によれば、画像入力対象物に照明強度、印刷濃度
等のムラがあっても、これに影響されることなく、入力
画像中の認識すべきパターン部分を背景部分から正確に
分離して2値化することができる。
[Effects of the Invention] According to the present invention, even if the image input object has unevenness in illumination intensity, print density, etc., the pattern portion to be recognized in the input image can be separated from the background portion without being affected by this. It is possible to accurately separate and binarize.

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

第1図は本発明に係る処理手順を示すフロー図。 第2図は入力画像のライン上の強度分布と画像処理によ
って得られる画像のライン上での各強度分布を示す図、
第3図は最大値抽出を説明する図である。 10・・・入力対象、21・・・入力ライン、A・・・
入力画像、B・・・微分画像、C・・・パターンエツジ
画像、D・・・拡大パターン2値画像、E・・・最大値
画像、F・・最小値画像、G・・・しきい値画像、H・
・・Gとの比較に基づく2値化画像。 ■
FIG. 1 is a flow diagram showing the processing procedure according to the present invention. FIG. 2 is a diagram showing the intensity distribution on the line of the input image and each intensity distribution on the line of the image obtained by image processing,
FIG. 3 is a diagram illustrating maximum value extraction. 10... Input target, 21... Input line, A...
Input image, B...differential image, C...pattern edge image, D...enlarged pattern binary image, E...maximum value image, F...minimum value image, G...threshold value Image, H.
...Binarized image based on comparison with G. ■

Claims (1)

【特許請求の範囲】 テレビカメラなどの画像読み取り装置で入力された信号
を2値化するに当り、入力画像に対して微分処理、拡大
処理等を施すことにより、前記入力画像を背景部とパタ
ーン部とに粗分離し、入力画像の小面積領域毎に該領域
内での強度最大値及び強度最小値を抽出するとともに、 両値間に位置する強度レベルで画像全体に可変しきい値
を設定し、 該しきい値に基づいて入力画像信号を2値化することを
特徴とする画像の2値化方法。
[Claims] When binarizing a signal input by an image reading device such as a television camera, the input image is divided into background parts and patterns by performing differential processing, enlargement processing, etc. on the input image. The maximum intensity value and the minimum intensity value within each small area of the input image are extracted, and a variable threshold value is set for the entire image at an intensity level located between the two values. An image binarization method, comprising: binarizing an input image signal based on the threshold value.
JP1280880A 1989-10-27 1989-10-27 Binarizing method for picture Pending JPH03192476A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1280880A JPH03192476A (en) 1989-10-27 1989-10-27 Binarizing method for picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1280880A JPH03192476A (en) 1989-10-27 1989-10-27 Binarizing method for picture

Publications (1)

Publication Number Publication Date
JPH03192476A true JPH03192476A (en) 1991-08-22

Family

ID=17631237

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1280880A Pending JPH03192476A (en) 1989-10-27 1989-10-27 Binarizing method for picture

Country Status (1)

Country Link
JP (1) JPH03192476A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015522877A (en) * 2012-06-07 2015-08-06 アマゾン・テクノロジーズ、インコーポレイテッド Adaptive threshold processing for image recognition.
US9536161B1 (en) 2014-06-17 2017-01-03 Amazon Technologies, Inc. Visual and audio recognition for scene change events

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015522877A (en) * 2012-06-07 2015-08-06 アマゾン・テクノロジーズ、インコーポレイテッド Adaptive threshold processing for image recognition.
US9536161B1 (en) 2014-06-17 2017-01-03 Amazon Technologies, Inc. Visual and audio recognition for scene change events

Similar Documents

Publication Publication Date Title
CN115170525B (en) An image difference detection method and apparatus
CN101295359B (en) Image processing device and image processing method
JP2002133426A (en) Ruled line extraction device for extracting ruled lines from multi-valued images
KR101549495B1 (en) An apparatus for extracting characters and the method thereof
CN114697464A (en) Image partition processing method, device, equipment and storage medium
JP2000184202A (en) Image processing system for removing pattern arranged in vertical direction on image generated by scanning
JP2000207489A (en) Character extraction method, apparatus and recording medium
US6034759A (en) Image processing apparatus and photographic printing apparatus
JPH03192476A (en) Binarizing method for picture
JP2000048120A (en) Method for extracting character area of gray level image and recording medium having recorded the program thereon
CN108388898A (en) Character identifying method based on connector and template
Huang et al. An efficient method of license plate location in natural-scene image
JP2019003534A (en) Image processing program, image processing apparatus, and image processing method
JPH08123901A (en) Character extraction device and character recognition device using this device
JPS63153682A (en) How to process grayscale images
JPH041867A (en) Picture quality evaluating method
JP3912063B2 (en) Detection method of image shading unevenness
JP2998443B2 (en) Character recognition method and device therefor
JP4732626B2 (en) Form processing method, apparatus, and program
JPS6180372A (en) Detecting method of dotted print
Chen et al. Defect detection in ID cards with accurately reconstructed reference image
JP2002005844A (en) Surface defect inspection method
JP5262877B2 (en) Noise component removal apparatus and medium on which noise component removal program is recorded
JP5272841B2 (en) Noise component removal apparatus and noise component removal method
JP2001043312A (en) Document image processing device