JPH09305710A - Binarization device - Google Patents

Binarization device

Info

Publication number
JPH09305710A
JPH09305710A JP8120374A JP12037496A JPH09305710A JP H09305710 A JPH09305710 A JP H09305710A JP 8120374 A JP8120374 A JP 8120374A JP 12037496 A JP12037496 A JP 12037496A JP H09305710 A JPH09305710 A JP H09305710A
Authority
JP
Japan
Prior art keywords
image data
difference
horizontal
expansion
contraction
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.)
Withdrawn
Application number
JP8120374A
Other languages
Japanese (ja)
Inventor
Mitsuaki Tamagawa
光明 玉川
Koji Suga
弘二 菅
Shintaro Kumano
信太郎 熊野
Kyoko Wada
恭子 和田
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.)
Mitsubishi Heavy Industries Ltd
Original Assignee
Mitsubishi Heavy 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 Mitsubishi Heavy Industries Ltd filed Critical Mitsubishi Heavy Industries Ltd
Priority to JP8120374A priority Critical patent/JPH09305710A/en
Publication of JPH09305710A publication Critical patent/JPH09305710A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To perform the proper binarization by using a logical difference means to acquire the logical difference image data between the expanded AND image data obtained by an AND means and the contracted binary image data obtained by a binarization means. SOLUTION: An AND device 19 inputs the horizontal and vertical binary image data Dh and Di obtained by the 1st and 2nd binarization devices 16 and 17 respectively and calculates an AND of both data Dh and Di to output the expanded AND image data Dk . A logical difference device 20 calculates and outputs the logical difference image data Dl between the data Dk obtained by the device 19 and the contracted binary image data Dj obtained by a 3rd binarization device 18. The data Dl can acquire the characters having open holes, so that the characters can be easily extracted and recognized at the next stage of the binarization processing. Furthermore, the highly accurate binarization processing is attained for the extraction and recognition of characters.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、例えば車両番号や
コンテナ番号IDの認識を行うパターン認識装置等に適
用される2値化装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a binarization device applied to, for example, a pattern recognition device for recognizing a vehicle number or a container number ID.

【0002】[0002]

【従来の技術】例えば船舶会社で用いる車両番号やコン
テナ番号IDは、パターン認識装置によって文字認識等
されるが、その下地に対する書かれ方(フォーマット)
は多岐に亙っている。例えばコンテナ番号ID等がコル
ゲート(凹凸)上に書かれている、コンテナ番号ID等
に文字列枠が存在する、段数が1〜3段に渡って書かれ
ている等様々なフォーマットで書かれている。
2. Description of the Related Art For example, a vehicle number or a container number ID used in a shipping company is recognized by a pattern recognition device, but the way of writing (format) on the background
Is diversified. For example, the container number ID etc. is written on a corrugated (concave and convex), the container number ID etc. has a character string frame, the number of steps is written over 1 to 3 steps, etc. There is.

【0003】このようにコンテナ番号ID等の書かれ方
には各種フォーマットのものがあるが、このようなコン
テナ番号ID等を撮像装置で撮像して文字認識するとき
の画像データは、濃淡(白黒)画像データとなる。
As described above, there are various formats for writing the container number ID and the like. However, when the container number ID and the like are imaged by the image pickup device and the characters are recognized, the image data is shaded (black and white). ) Image data.

【0004】この濃淡(白黒)画像データについて行う
文字抽出及び文字認識においては、できるだけ文字部分
のみを浮かび上げ、かつ文字同士が連結しないように2
値化処理する必要がある。
In the character extraction and character recognition performed on this grayscale (black and white) image data, only the character portions should be highlighted as much as possible and the characters should not be connected.
It is necessary to perform the digitization.

【0005】図15はかかる2値化装置の構成図であ
る。この2値化装置は、文字が背景に比べて明るい場合
に適用するもので、データ入力装置1を通してコンテナ
番号ID等を撮像して得た対象画像データDa を入力
し、この対象画像データDa を opening装置(以下、膨
張装置と称する)2及び差分装置3に送る。なお、図1
6(a) は対象画像データDa の輝度断面を示している。
FIG. 15 is a block diagram of such a binarizing device. This binarization device is applied when the characters are brighter than the background, and the target image data D a obtained by imaging the container number ID or the like is input through the data input device 1 and the target image data D a is sent to the opening device (hereinafter referred to as an expansion device) 2 and the differential device 3. FIG.
6 (a) shows the luminance cross section of the target image data D a .

【0006】膨張装置2は、m×nの局所領域を用い
て、先ず収縮処理を行い、次に膨張処理を行う機能を有
するもので、対象画像データDa を収縮・膨張処理し、
図16(b) に示す opening処理画像データ(以下、膨張
画像データと称する)を差分装置3に送出する。
The expansion device 2 has a function of first performing contraction processing and then expansion processing using m × n local regions, and performs contraction / expansion processing of the target image data D a ,
The opening-processed image data (hereinafter referred to as dilated image data) shown in FIG. 16B is sent to the difference device 3.

【0007】この差分装置3は、膨張装置2からの膨張
画像データ及び対象画像データDaを入力し、これらの
差分である膨張差分画像データを出力する。2値化装置
4は、差分装置3からの膨張差分画像データを入力し、
図16(c)に示すように予め設定された2値化しきい値
(固定しきい値)により膨張差分画像データを2値化処
理し、図16(d) に示す2値化画像データを出力する。
The difference device 3 receives the expanded image data and the target image data D a from the expansion device 2 and outputs expanded difference image data which is the difference between them. The binarization device 4 inputs the expansion difference image data from the difference device 3,
As shown in FIG. 16 (c), the dilation difference image data is binarized by a preset binarization threshold value (fixed threshold value), and the binarized image data shown in FIG. 16 (d) is output. To do.

【0008】[0008]

【発明が解決しようとする課題】このように車両番号や
コンテナ番号IDの認識等を行う画像パターン認識装置
に適用する2値化装置では、上記の如く単純なモフォロ
ジフィルタ処理により2値か処理している。
In the binarizing device applied to the image pattern recognizing device for recognizing the vehicle number or the container number ID, the binary morphology is processed by the simple morphological filter process as described above. ing.

【0009】しかしながら、車両番号やコンテナ番号I
D等の対象パターンがコルゲート上に書かれている場
合、状況によっては文字部周りの背景部の輝度が変動
し、文字部以外が2値化されてしまい、この2値化処理
後の文字抽出や文字認識処理において文字抽出や文字認
識ができなくなる。
However, the vehicle number and the container number I
When the target pattern such as D is written on the corrugated, the brightness of the background part around the character part varies depending on the situation, and the part other than the character part is binarized, and the character extraction after the binarization processing is performed. In the character recognition process, character extraction and character recognition cannot be performed.

【0010】又、車両番号やコンテナ番号ID等が文字
列枠により囲まれ、かつ文字が多段に渡って書かれてい
る場合、文字列枠の隙間が2値化されてしまい、上記同
様に2値化処理後において文字列の抽出及び認識が困難
となる。
Further, when the vehicle number, the container number ID, etc. are surrounded by the character string frame and the characters are written in multiple stages, the gaps in the character string frame are binarized, and as in the above case, 2 It becomes difficult to extract and recognize the character string after the binarization process.

【0011】さらに、文字同士の間隔が狭い場合、各文
字が連結して認識されるケースがあり、文字抽出・文字
認識が困難となる。又、例えば数字「6」のように文字
にホール部がある場合には、このホール部が2値化され
て文字認識が困難である。そこで本発明は、認識対象が
各種フォーマットで書かれていても文字認識等を行うた
めに高精度に2値化できる2値化装置を提供することを
目的とする。
Further, when the space between characters is narrow, there is a case where each character is connected and recognized, which makes character extraction / character recognition difficult. Further, when a character has a hole portion such as the number "6", the hole portion is binarized and it is difficult to recognize the character. Therefore, an object of the present invention is to provide a binarization device capable of highly accurately binarizing a character to be recognized even if the recognition target is written in various formats.

【0012】[0012]

【課題を解決するための手段】請求項1によれば、対象
画像データに対して水平方向又は垂直方向のうち少なく
とも一方の方向で収縮・膨張処理を行う膨張処理手段
と、対象画像データに対して膨張・収縮処理を行う収縮
処理手段と、膨張処理手段により得られた水平及び垂直
方向に対する各膨張画像データと対象画像データとの各
差分である水平方向差分画像データ、垂直方向差分画像
データを求め、かつ収縮処理手段により得られた収縮画
像データと対象画像データとの収縮差分画像データをそ
れぞれ求める差分手段と、この差分手段により求められ
た水平方向差分画像データ、垂直方向差分画像データ、
収縮差分画像データに対してそれぞれ2値化処理する2
値化手段と、この2値化手段により求められた水平方向
2値化画像データと垂直方向2値化画像データとの論理
積を求める論理積手段と、この論理積手段により求めら
れた膨張論理積画像データと2値化手段により求められ
た収縮2値化画像データとの論理差分画像データを求め
る論理差分手段と、を備えた2値化装置である。
According to claim 1, expansion processing means for performing contraction / expansion processing on target image data in at least one of a horizontal direction and a vertical direction; Contraction processing means for performing expansion / contraction processing, and horizontal difference image data and vertical difference image data, which are differences between the expanded image data and target image data in the horizontal and vertical directions obtained by the expansion processing means. Difference means for obtaining contraction difference image data between the contraction image data obtained by the contraction processing means and the target image data, and horizontal difference image data and vertical difference image data obtained by the difference means,
Binarize each contraction difference image data 2
A binarizing unit, a logical product unit that obtains a logical product of the horizontal binary image data and the vertical binary image data that are obtained by the binary unit, and an expansion logic obtained by the logical product unit. A binarizing device comprising: a logical difference means for obtaining a logical difference image data between the product image data and the contracted binary image data obtained by the binarizing means.

【0013】このような2値化装置であれば、対象画像
データに対して膨張処理手段により水平方向又は垂直方
向のうち少なくとも一方の方向で収縮・膨張処理を行っ
て膨張画像データを求め、又、収縮処理手段により対象
画像データに対して膨張・収縮処理を行って収縮画像デ
ータを求める。
In such a binarizing device, the expansion processing means performs contraction / expansion processing on the target image data in at least one of the horizontal direction and the vertical direction to obtain the expanded image data. The contraction processing means performs expansion / contraction processing on the target image data to obtain contracted image data.

【0014】これら水平及び垂直方向に対する各膨張画
像データと対象画像データとの各差分である水平方向差
分画像データ、垂直方向差分画像データを求め、かつ収
縮画像データと対象画像データとの収縮差分画像データ
を求める。
Horizontal difference image data and vertical difference image data, which are differences between the expanded image data and the target image data in the horizontal and vertical directions, are obtained, and the contracted difference image between the contracted image data and the target image data is obtained. Ask for data.

【0015】そして、これら水平方向差分画像データ、
垂直方向差分画像データ、収縮差分画像データに対して
それぞれ2値化手段により2値化処理し、これらのうち
水平方向2値化画像データと垂直方向2値化画像データ
との論理積を論理積手段により求め、この膨張論理積画
像データと2値化手段により求められた収縮2値化画像
データとの論理差分画像データを論理差分手段により求
める。
Then, these horizontal difference image data,
The vertical difference image data and the contraction difference image data are binarized by the binarizing means, and the logical product of the horizontal direction binary image data and the vertical direction binary image data is logically ANDed. The logical difference image data between the expanded logical product image data and the contracted binary image data calculated by the binarizing means is calculated by the logical difference means.

【0016】このような処理により、例えばコルゲート
による背景部の輝度変動を垂直方向の収縮・膨張処理に
より排除し、適切な2値化を行う。文字列枠がありかつ
文字列が多段に渡っている場合、水平方向の収縮・膨張
処理により文字列枠の隙間が2値化されないようにす
る。
By such processing, the brightness fluctuation of the background portion due to the corrugation, for example, is eliminated by the contraction / expansion processing in the vertical direction, and proper binarization is performed. When there is a character string frame and the character string extends in multiple stages, the space between the character string frames is prevented from being binarized by the contraction / expansion process in the horizontal direction.

【0017】文字同士の隙間が小さい場合、膨張・収縮
処理により文字が連結することを防ぐ。文字ホール部を
膨張・収縮処理によりホールとして2値化しない。
When the gap between characters is small, the characters are prevented from being connected by the expansion / contraction process. The character hole part is not binarized as a hole by expansion / contraction processing.

【0018】請求項2によれば、対象画像データに対し
て水平方向又は垂直方向のうち少なくとも一方の方向で
収縮処理を行う膨張・収縮処理手段と、対象画像データ
に対して収縮・膨張処理を行う膨張処理手段と、収縮処
理手段により得られた水平及び垂直方向に対する各収縮
画像データと対象画像データとの各差分である水平方向
差分画像データ、垂直方向差分画像データを求め、かつ
膨張処理手段により得られた膨張画像データと対象画像
データとの膨張差分画像データをそれぞれ求める差分手
段と、この差分手段により求められた水平方向差分画像
データ、垂直方向差分画像データ、膨張差分画像データ
に対してそれぞれ2値化処理する2値化手段と、この2
値化手段により求められた水平方向2値化画像データと
垂直方向2値化画像データとの論理積を求める論理積手
段と、この論理積手段により求められた収縮論理積画像
データと2値化手段により求められた膨張2値化画像デ
ータとの論理差分画像データを求める論理差分手段と、
を備えた2値化装置である。
According to the second aspect, expansion / contraction processing means for performing contraction processing on the target image data in at least one of the horizontal direction and the vertical direction, and contraction / expansion processing for the target image data. Expansion processing means for performing, and horizontal difference image data and vertical difference image data which are differences between the contracted image data obtained by the contraction processing means in the horizontal and vertical directions and the target image data, and the expansion processing means With respect to the difference means for obtaining the expansion difference image data between the expansion image data and the target image data obtained by, and the horizontal direction difference image data, the vertical direction difference image data, and the expansion difference image data obtained by this difference means Binarization means for performing binarization processing, and this two
A logical product means for obtaining a logical product of the horizontal direction binary image data and the vertical direction binary image data obtained by the value converting means, and the contraction logical product image data obtained by the logical product means and the binarization. Logical difference means for obtaining logical difference image data with the expanded binary image data obtained by the means,
It is a binarization device equipped with.

【0019】このような2値化装置であれば、対象画像
データに対して収縮処理手段により水平方向又は垂直方
向のうち少なくとも一方の方向で膨張・収縮処理を行
い、又膨張処理手段により対象画像データに対して収縮
・膨張処理を行って膨張差分画像データを求める。
With such a binarization device, the contraction processing means performs expansion / contraction processing in at least one of the horizontal direction and the vertical direction on the target image data, and the expansion processing means performs the target image. The data is subjected to contraction / expansion processing to obtain expansion difference image data.

【0020】これら水平及び垂直方向に対する各収縮画
像データと対象画像データとの各差分である水平方向差
分画像データ、垂直方向差分画像データを求め、かつ膨
張画像データと対象画像データとの膨張差分画像データ
を求める。
Horizontal difference image data and vertical difference image data, which are differences between the contracted image data and the target image data in the horizontal and vertical directions, are obtained, and the expansion difference image between the expanded image data and the target image data is obtained. Ask for data.

【0021】そして、これら水平方向差分画像データ、
垂直方向差分画像データ、膨張差分画像データに対して
それぞれ2値化手段により2値化処理し、これらのうち
水平方向2値化画像データと垂直方向2値化画像データ
との論理積を論理積手段により求め、この収縮論理積画
像データと2値化手段により求められた膨張2値化画像
データとの論理差分画像データを論理差分手段により求
める。
The horizontal difference image data,
The vertical difference image data and the expanded difference image data are binarized by the binarizing means, and the logical product of the horizontal direction binary image data and the vertical direction binary image data is logically ANDed. The logical difference image data of the contraction logical product image data obtained by the means and the expanded binary image data obtained by the binarizing means is obtained by the logical difference means.

【0022】このような処理により上記同様に、例えば
コルゲートによる背景部の輝度変動を垂直方向の収縮・
膨張処理により排除し、適切な2値化を行う。文字列枠
がありかつ文字列が多段に渡っている場合、水平方向の
収縮・膨張処理により文字列枠の隙間が2値化されない
ようにする。
By such processing, similarly to the above, for example, the brightness variation of the background portion due to the corrugated is contracted in the vertical direction.
Eliminate by expansion processing and perform appropriate binarization. When there is a character string frame and the character string extends in multiple stages, the space between the character string frames is prevented from being binarized by the contraction / expansion process in the horizontal direction.

【0023】文字同士の隙間が小さい場合、膨張・収縮
処理により文字が連結することを防ぐ。文字ホール部を
膨張・収縮処理によりホールとして2値化しない。
When the space between the characters is small, the characters are prevented from being connected by the expansion / contraction process. The character hole part is not binarized as a hole by expansion / contraction processing.

【0024】[0024]

【発明の実施の形態】BEST MODE FOR CARRYING OUT THE INVENTION

(1) 以下、本発明の第1の実施の形態について図面を参
照して説明する。図1はパターン認識装置に適用する2
値化装置の構成図である。データ入力装置1には、例え
ば車両番号やコンテナ番号IDを撮像して得られる対象
画像データDa が入力される。
(1) Hereinafter, a first embodiment of the present invention will be described with reference to the drawings. FIG. 1 is applied to a pattern recognition device 2
It is a block diagram of a quantizer. The target image data D a obtained by imaging the vehicle number or the container number ID, for example, is input to the data input device 1.

【0025】この対象画像データDa は、例えば図2に
示すようにコルゲート上に書かれたコンテナ番号IDの
画像、図3に示すように文字列枠がありかつ文字列が多
段にわたっている画像、数字「6」のようにホールのあ
る文字の画像、又は文字「LU」のように文字隙間の狭
い文字列の画像である。
The target image data D a is, for example, an image of a container number ID written on a corrugated gate as shown in FIG. 2, an image having a character string frame and multiple character strings as shown in FIG. It is an image of a character with a hole like the number "6" or an image of a character string with a narrow character gap like the character "LU".

【0026】このデータ入力装置1には、膨張処理手段
としての第1の opening装置(以下、第1の膨張装置と
称する)10、第2の opening装置(以下、第2の膨張
装置と称する)11、及び収縮処理手段としての水平方
向 closing装置(以下、水平方向収縮装置と称する)1
2が接続されている。
The data input device 1 includes a first opening device (hereinafter referred to as a first expansion device) 10 and a second opening device (hereinafter referred to as a second expansion device) as expansion processing means. 11, and a horizontal closing device (hereinafter referred to as a horizontal contracting device) 1 as a contraction processing means 1
2 is connected.

【0027】このうち第1の膨張装置10は、m×1の
局所領域を用い、対象画像データDa に対して水平方向
で、先ず収縮処理を行い、次に膨張処理を行って水平方
向膨張画像データDb を出力する機能を有している。な
お、m×1は、フィルタのカーネルサイズでを示す。
Of these, the first expansion device 10 uses the m × 1 local area and performs the contraction process first and then the expansion process in the horizontal direction with respect to the target image data D a to expand it in the horizontal direction. It has a function of outputting the image data D b . In addition, m × 1 indicates the kernel size of the filter.

【0028】第2の膨張装置10は、フィルタのカーネ
ルサイズ1×nの局所領域を用い、対象画像データDa
に対して垂直方向で、先ず収縮処理を行い、次に膨張処
理を行って垂直方向膨張画像データDc を出力する機能
を有している。
The second expansion device 10 uses the local area of the kernel size 1 × n of the filter, and uses the target image data D a.
On the other hand, in the vertical direction, a contraction process is performed first, and then an expansion process is performed to output vertically expanded image data D c .

【0029】水平方向収縮装置12は、フィルタのカー
ネルサイズk×lの局所領域を用い、対象画像データD
a に対して水平方向に、先ず膨張処理を行い、次に収縮
処理を行って水平方向収縮画像データDd を出力する機
能を有している。
The horizontal contraction device 12 uses the local area of the kernel size k × l of the filter, and the target image data D
It has a function of performing expansion processing first and then contraction processing in the horizontal direction with respect to a and outputting horizontal contraction image data D d .

【0030】ここで、 opening処理(収縮→膨張処理)
及び closing処理(膨張→収縮処理)について説明す
る。膨張の定義式は、
Here, opening processing (contraction-expansion processing)
The closing process (expansion → contraction process) will be described. The definition of expansion is

【0031】[0031]

【数1】 により表され、収縮の定義式は、[Equation 1] , The contraction definition is

【0032】[0032]

【数2】 により表される。[Equation 2] Is represented by

【0033】Wijは点(i,j)を中心とするm×nの
局所領域であり、ディジタル画像では、 Wij={(k,l)|i−[(m−1)/2]≦k≦i+[m/2], j−[(n−1)/2]≦l≦j+[n/2]} …(3) F(i,j) :入力画像 G(i,j) :出力画像 従って、膨張処理( opening処理)は、先ず収縮を行
い、次に膨張を行う。
Wij is an m × n local area centered on the point (i, j), and Wij = {(k, l) | i-[(m-1) / 2] ≤k in the digital image. ≦ i + [m / 2], j − [(n−1) / 2] ≦ l ≦ j + [n / 2]} (3) F (i, j): input image G (i, j): output Therefore, in the expansion process (opening process), contraction is performed first, and then expansion is performed.

【0034】[0034]

【数3】 収縮処理( closing処理)は、先ず膨張を行い、次に収
縮を行う。
(Equation 3) In the contraction process (closing process), expansion is performed first, and then contraction is performed.

【0035】[0035]

【数4】 (Equation 4)

【0036】例えば図4(a) に示す入力画像データに対
して3×3の局所領域による収縮処理を行うと、その収
縮処理結果は同図(b) に示す画像データとなる。又、図
4(a) に示す入力画像データに対して3×3の局所領域
による膨張処理を行うと、その膨張処理結果は同図(c)
に示す画像データとなる。
For example, when contraction processing by a 3 × 3 local area is performed on the input image data shown in FIG. 4 (a), the contraction processing result becomes the image data shown in FIG. 4 (b). Also, when the input image data shown in FIG. 4 (a) is expanded by a 3 × 3 local area, the expansion result is shown in FIG. 4 (c).
The image data shown in FIG.

【0037】一方、図5(a) に示す輝度断面を有する入
力画像データに対して膨張処理を行うと、同図(b) に示
すような輝度断面の画像データとなり、この画像データ
に対して収縮処理を行うと、同図(c) に示す輝度断面の
画像データとなる。
On the other hand, when the input image data having the luminance section shown in FIG. 5 (a) is subjected to the expansion processing, the image data of the luminance section shown in FIG. 5 (b) is obtained. When the contraction processing is performed, the image data of the luminance cross section shown in FIG.

【0038】従って、この輝度断面の画像データ{同図
(c) }が入力画像データに対する収縮処理(膨張→収
縮)後の輝度断面である。又、図5(a) に示す入力画像
データに対して収縮処理を行うと、同図(d) に示すよう
な輝度断面の画像データとなり、この画像データに対し
て膨張処理を行うと、同図(e) に示す輝度断面の画像デ
ータとなる。
Therefore, the image data of this luminance cross section {FIG.
(c)} is a luminance cross section after contraction processing (expansion → contraction) on the input image data. Further, when the contraction process is performed on the input image data shown in FIG. 5 (a), the image data of the luminance cross section shown in FIG. 5 (d) is obtained. When the expansion process is performed on this image data, the same result is obtained. It becomes the image data of the luminance cross section shown in Figure (e).

【0039】従って、この輝度断面の画像データ{同図
(e) }が入力画像データに対する膨張処理(収縮→膨
張)後の輝度断面である。これら第1の膨張装置10、
第2の膨張装置11及び水平方向収縮装置12には、そ
れぞれ差分手段としての第1〜第3の差分装置13〜1
5が接続されている。
Therefore, the image data of this luminance cross section {see FIG.
(e)} is the luminance cross section after the expansion processing (contraction → expansion) for the input image data. These first inflator 10,
The second expansion device 11 and the horizontal direction contraction device 12 respectively include first to third difference devices 13 to 1 as difference means.
5 is connected.

【0040】第1の差分装置13は、第1の膨張装置1
0により得られた水平方向膨張画像データDb と対象画
像データDa との差分である水平方向差分画像データD
e を求めて出力する機能を有している。
The first differential device 13 is the first expansion device 1
The horizontal difference image data D which is the difference between the horizontal direction expanded image data D b obtained by 0 and the target image data D a
It has a function to obtain and output e .

【0041】第2の差分装置14は、第2の膨張装置1
0により得られた垂直方向膨張画像データDc と対象画
像データDa との差分である水平方向差分画像データD
f を求めて出力する機能を有している。
The second differential device 14 is the second expansion device 1
The horizontal difference image data D which is the difference between the vertically expanded image data D c obtained by 0 and the target image data D a
It has the function of finding and outputting f .

【0042】第3の差分装置15は、水平方向収縮装置
12により得られた水平方向収縮画像データDd と対象
画像データDa との差分である収縮差分画像データDg
を求めて出力する機能を有している。
The third subtraction device 15 is contraction difference image data D g which is a difference between the horizontal contraction image data D d obtained by the horizontal contraction device 12 and the target image data D a.
It has a function of seeking and outputting.

【0043】これら第1〜第3の差分装置13〜15に
は、それぞれ2値化手段として第1〜第3の2値化装置
16〜18が接続されている。第1及び第2の2値化装
置16、17は、予め2値化しきい値TH1 がそれぞれ
設定されたもので、このうち第1の2値化装置16は2
値化しきい値TH1 により水平方向差分画像データDe
を2値化処理して水平方向2値化画像データDh を出力
し、第2の2値化装置17は2値化しきい値TH1 によ
り垂直方向差分画像データDf を2値化処理して水平方
向2値化画像データDi を出力する機能を有している。
The first to third difference devices 13 to 15 are respectively connected to first to third binarization devices 16 to 18 as binarizing means. The first and second binarizing devices 16 and 17 are each set with a binarizing threshold value TH 1 in advance. Of these, the first binarizing device 16 is 2
Horizontal difference image data D e by binarization threshold TH 1
Is binarized to output horizontal binarized image data D h, and the second binarization device 17 binarizes the vertical difference image data D f with the binarization threshold TH 1. And has a function of outputting the binary image data D i in the horizontal direction.

【0044】第3の2値化装置18は、予め2値化しき
い値TH2 が設定され、この2値化しきい値TH2 によ
り収縮差分画像データDg を2値化処理して収縮2値化
画像データDj を出力する機能を有している。
The third binarizing circuit 18 in advance binary threshold value TH 2 is set, the contraction difference image data D g The binary threshold value TH 2 binarization processing to shrink binary It has a function of outputting the converted image data D j .

【0045】論理積装置19は、第1及び第2の2値化
装置16、17により求められた水平方向2値化画像デ
ータDh と垂直方向2値化画像データDi との論理積を
求めて膨張論理積画像データDk を出力する機能を有し
ている。
The logical product device 19 calculates the logical product of the horizontal binarized image data D h and the vertical binarized image data D i obtained by the first and second binarization devices 16 and 17. It has a function of obtaining the expanded logical product image data D k .

【0046】論理差分装置20は、論理積装置19によ
り求められた膨張論理積画像データDk と第3の2値化
装置18により求められた収縮2値化画像データDj
の論理差分画像データDl を求めて出力する機能を有し
ている。
The logical difference device 20 is a logical difference image between the expanded logical product image data D k obtained by the logical product device 19 and the contracted binary image data D j obtained by the third binarizing device 18. It has a function of obtaining and outputting the data D l .

【0047】次に上記の如く構成された装置の作用につ
いて、文字色が背景色に比べて明るい場合のコンテナ番
号IDを2値化対象とする場合について説明する。 (a) コンテナ番号IDがコルゲート上に書かれている場
合について図6及び図7を参照して説明する。
Next, the operation of the apparatus configured as described above will be described for the case where the container number ID when the character color is lighter than the background color is binarized. (a) A case where the container number ID is written on the corrugate will be described with reference to FIGS. 6 and 7.

【0048】データ入力装置1には、図2に示すような
コルゲート上に書かれたコンテナ番号IDの対象画像デ
ータDa が入力する。この対象画像データDa は、例え
ば図6(a) に示すような水平方向輝度断面を有してい
る。
The target image data D a of the container number ID written on the corrugated as shown in FIG. 2 is input to the data input device 1. The target image data D a has a horizontal luminance cross section as shown in FIG. 6A, for example.

【0049】第1の膨張装置10は、データ入力装置1
を通して対象画像データDa を入力すると、この対象画
像データDa に対して水平方向で、先ず収縮処理を行
い、次に膨張処理を行って図6(b) に示すような水平方
向膨張画像データDb を求めて第1の差分装置13に送
出する。
The first expansion device 10 is the data input device 1
If you enter a target image data D a through, in the horizontal direction with respect to the target image data D a, first shrinking process is performed, followed expansion processing performed by horizontal expansion image data as shown in FIG. 6 (b) Db is obtained and sent to the first difference device 13.

【0050】この第1の差分装置13は、第1の膨張装
置10により得られた水平方向膨張画像データDb を入
力すると共に、データ入力装置1を通して対象画像デー
タDa を入力し、これら水平方向膨張画像データDb
対象画像データDa の差分である図6(c) に示す水平方
向差分画像データDe を求めて第1の2値化装置16に
送出する。
The first difference device 13 inputs the horizontally expanded image data D b obtained by the first expansion device 10 and the target image data D a through the data input device 1 to obtain the horizontal image data D a. The horizontal difference image data D e shown in FIG. 6C, which is the difference between the directional expansion image data D b and the target image data D a , is obtained and sent to the first binarization device 16.

【0051】この第1の2値化装置16は、水平方向差
分画像データDe を入力し、この水平方向差分画像デー
タDe に対して2値化しきい値TH1 により2値化処理
して図6(d) に示すような水平方向2値化画像データD
h を論理積装置19に送出する。
[0051] The first binarization unit 16 inputs the horizontal direction differential image data D e, the binary threshold value TH 1 relative to the horizontal direction differential image data D e and binarization Horizontal binarized image data D as shown in FIG.
The h is sent to the AND device 19.

【0052】この水平方向2値化画像データDh では、
図6(d) に示すように文字部以外に背景の一部も2値化
される。一方、データ入力装置1を通して対象画像デー
タDa が第2の膨張装置11に入力する。図7(a) は対
象画像データDa の垂直方向輝度断面を示す。
In this horizontal binarized image data D h ,
As shown in FIG. 6D, a part of the background is binarized in addition to the character part. On the other hand, the target image data D a is input to the second expansion device 11 via the data input device 1. FIG. 7A shows a vertical luminance cross section of the target image data D a .

【0053】この第2の膨張装置11は、対象画像デー
タDa に対して垂直方向で、先ず収縮処理を行い、次に
膨張処理を行って図7(b) に示すような垂直方向膨張画
像データDc を求めて第2の差分装置14に送出する。
The second expansion device 11 performs a contraction process first and then an expansion process in the vertical direction with respect to the target image data D a to obtain a vertical expansion image as shown in FIG. 7B. The data D c is obtained and sent to the second difference device 14.

【0054】この第2の差分装置14は、第2の膨張装
置11により得られた垂直方向膨張画像データDc を入
力すると共に、データ入力装置1を通して対象画像デー
タDa を入力し、これら垂直方向膨張画像データDc
対象画像データDa の差分である図7(c) に示す垂直方
向差分画像データDf を求めて第2の2値化装置17に
送出する。
The second difference device 14 inputs the vertically expanded image data D c obtained by the second expansion device 11 and the target image data D a through the data input device 1 to obtain these vertical image data D a. The vertical difference image data D f shown in FIG. 7C, which is the difference between the direction expansion image data D c and the target image data D a , is obtained and sent to the second binarization device 17.

【0055】この第2の2値化装置17は、垂直方向差
分画像データDf を入力し、この垂直方向差分画像デー
タDf に対して2値化しきい値TH1 により2値化処理
して図7(d) に示すような垂直方向2値化画像データD
i を論理積装置19に送出する。
[0055] The second binarization unit 17 inputs the vertical difference image data D f, the binary threshold value TH 1 relative to the vertical direction differential image data D f are binarized Vertical binarized image data D as shown in FIG.
i is sent to the AND device 19.

【0056】この論理積装置19は、第1及び第2の2
値化装置16、17によりそれぞれ求められた水平方向
2値化画像データDh と垂直方向2値化画像データDi
とを入力し、これら水平方向2値化画像データDh と垂
直方向2値化画像データDiとの論理積を求めて膨張論
理積画像データDk を出力する。
This logical product device 19 has the first and second two
Horizontal binarized image data D h and vertical binarized image data D i obtained by the binarizing devices 16 and 17, respectively.
Is input, the logical product of the horizontal direction binary image data D h and the vertical direction binary image data D i is obtained, and the expanded logical product image data D k is output.

【0057】しかるに、この膨張論理積画像データDk
は、文字部のみが2値化された画像データとして生成さ
れる。このようにコンテナ番号IDがコルゲート上に書
かれている場合であっても文字部のみを2値化した画像
データを生成でき、この2値化処理後における文字抽出
・文字認識の処理を行うために精度の高い2値化ができ
る。 (b) 文字列枠がありかつ文字列が多段にわたる場合につ
いて図8及び図9を参照して説明する。
However, this expanded logical product image data D k
Is generated as image data in which only the character part is binarized. In this way, even if the container number ID is written on the corrugated, it is possible to generate image data in which only the character part is binarized, and to perform character extraction / character recognition processing after this binarization processing. Highly accurate binarization is possible. (b) A case where there is a character string frame and the character string extends in multiple stages will be described with reference to FIGS. 8 and 9.

【0058】データ入力装置1には、図3に示すような
文字列枠がありかつ文字列が多段にわたるコンテナ番号
IDの対象画像データDa が入力する。この対象画像デ
ータDa は、例えば図8(a) に示すような水平方向輝度
断面を有している。
The target image data D a of the container number ID having a character string frame as shown in FIG. 3 and having a multi-tiered character string is input to the data input device 1. The target image data D a has a horizontal luminance cross section as shown in FIG. 8A, for example.

【0059】第1の膨張装置10は、データ入力装置1
を通して対象画像データDa を入力すると、この対象画
像データDa に対して水平方向で、先ず収縮処理を行
い、次に膨張処理を行って図8(b) に示すような水平方
向膨張画像データDb を求めて第1の差分装置13に送
出する。
The first expansion device 10 is the data input device 1
When the target image data D a is input through, the horizontal expansion image data as shown in FIG. 8 (b) is obtained by first performing the contraction process and then the expansion process in the horizontal direction with respect to the target image data D a . Db is obtained and sent to the first difference device 13.

【0060】この第1の差分装置13は、第1の膨張装
置10により得られた水平方向膨張画像データDb を入
力すると共に、データ入力装置1を通して対象画像デー
タDa を入力し、これら水平方向膨張画像データDb
対象画像データDa の差分である図8(c) に示す水平方
向差分画像データDe を求めて第1の2値化装置16に
送出する。
The first difference device 13 inputs the horizontally expanded image data D b obtained by the first expansion device 10 and the target image data D a through the data input device 1 to obtain the horizontal image data D a. The horizontal difference image data D e shown in FIG. 8 (c), which is the difference between the direction expansion image data D b and the target image data D a , is obtained and sent to the first binarization device 16.

【0061】この第1の2値化装置16は、水平方向差
分画像データDe を入力し、この水平方向差分画像デー
タDe に対して2値化しきい値TH1 により2値化処理
して図8(d) に示すような水平方向2値化画像データD
h を論理積装置19に送出する。
[0061] The first binarization unit 16 inputs the horizontal direction differential image data D e, the binary threshold value TH 1 relative to the horizontal direction differential image data D e and binarization Horizontal binarized image data D as shown in FIG.
The h is sent to the AND device 19.

【0062】この水平方向2値化画像データDh では、
図8(d) に示すように文字部のみ2値化される。一方、
データ入力装置1を通して対象画像データDa が第2の
膨張装置11に入力する。図9(a) は対象画像データD
a の垂直方向輝度断面を示す。
In the horizontal binarized image data D h ,
As shown in FIG. 8D, only the character part is binarized. on the other hand,
The target image data D a is input to the second expansion device 11 through the data input device 1. FIG. 9A shows the target image data D
shows a vertical luminance section of a.

【0063】この第2の膨張装置11は、対象画像デー
タDa に対して垂直方向で、先ず収縮処理を行い、次に
膨張処理を行って図9(b) に示すような垂直方向膨張画
像データDc を求めて第2の差分装置14に送出する。
The second expansion device 11 first performs contraction processing and then expansion processing in the vertical direction with respect to the target image data D a , and then performs the vertical expansion image as shown in FIG. 9B. The data D c is obtained and sent to the second difference device 14.

【0064】この第2の差分装置14は、第2の膨張装
置11により得られた垂直方向膨張画像データDc を入
力すると共に、データ入力装置1を通して対象画像デー
タDa を入力し、これら垂直方向膨張画像データDc
対象画像データDa の差分である図9(c) に示す垂直方
向差分画像データDf を求めて第2の2値化装置17に
送出する。
The second difference device 14 inputs the vertically expanded image data D c obtained by the second expansion device 11 and the target image data D a through the data input device 1 to obtain the vertical image data D a. The vertical difference image data D f shown in FIG. 9C, which is the difference between the direction expansion image data D c and the target image data D a , is obtained and sent to the second binarization device 17.

【0065】この第2の2値化装置17は、垂直方向差
分画像データDf を入力し、この垂直方向差分画像デー
タDf に対して2値化しきい値TH1 により2値化処理
して図9(d) に示すような垂直方向2値化画像データD
i を論理積装置19に送出する。
[0065] The second binarization unit 17 inputs the vertical difference image data D f, the binary threshold value TH 1 relative to the vertical direction differential image data D f are binarized Vertical binarized image data D as shown in FIG.
i is sent to the AND device 19.

【0066】この論理積装置19は、第1及び第2の2
値化装置16、17によりそれぞれ求められた水平方向
2値化画像データDh と垂直方向2値化画像データDi
とを入力し、これら水平方向2値化画像データDh と垂
直方向2値化画像データDiとの論理積を求めて膨張論
理積画像データDk を出力する。
This logical product device 19 has the first and second two
Horizontal binarized image data D h and vertical binarized image data D i obtained by the binarizing devices 16 and 17, respectively.
Is input, the logical product of the horizontal direction binary image data D h and the vertical direction binary image data D i is obtained, and the expanded logical product image data D k is output.

【0067】しかるに、この膨張論理積画像データDk
は、文字部のみが2値化された画像データとして生成さ
れる。このように文字列枠がありかつ文字列が多段にわ
たる場合であっても文字部のみを2値化した画像データ
を生成でき、この2値化処理後における文字抽出・文字
認識の処理を行うために精度の高い2値化ができる。 (c) ホールがあるような文字の場合について図10及び
図11を参照して説明する。なお、ここでは、水平方向
処理について説明するが、垂直方向処理に関しても同様
である。
However, this expanded logical product image data D k
Is generated as image data in which only the character part is binarized. Even if there is a character string frame and the character string has multiple stages, it is possible to generate image data in which only the character part is binarized, and to perform character extraction / character recognition processing after this binarization processing. Highly accurate binarization is possible. (c) A case of a character having a hole will be described with reference to FIGS. 10 and 11. Note that, although the horizontal processing is described here, the same applies to the vertical processing.

【0068】データ入力装置1には、図10に示すよう
なホールのある文字例えば数字「6」の対象画像データ
a が入力する。この対象画像データDa は例えばライ
ンq1 上において図11(a) に示すような水平方向輝度
断面を有している。
The target image data D a of a character with a hole as shown in FIG. 10, for example, the numeral “6” is input to the data input device 1. The target image data D a has a horizontal luminance cross section as shown in FIG. 11A on the line q 1 , for example.

【0069】第1の膨張装置10は、データ入力装置1
を通して対象画像データDa を入力すると、この対象画
像データDa に対して水平方向で、先ず収縮処理を行
い、次に膨張処理を行って図11(b) に示すような水平
方向膨張画像データDb を求めて第1の差分装置13に
送出する。
The first expansion device 10 is the data input device 1
When the target image data D a is input through, the horizontal expansion image data as shown in FIG. 11 (b) is obtained by first performing the contraction process and then the expansion process in the horizontal direction with respect to the target image data D a . Db is obtained and sent to the first difference device 13.

【0070】この第1の差分装置13は、第1の膨張装
置10により得られた水平方向膨張画像データDb を入
力すると共に、データ入力装置1を通して対象画像デー
タDa を入力し、これら水平方向膨張画像データDb
対象画像データDa の差分である図11(c) に示す水平
方向差分画像データDe を求めて第1の2値化装置16
に送出する。
The first difference device 13 inputs the horizontally expanded image data D b obtained by the first expansion device 10 and the target image data D a through the data input device 1 to obtain the horizontal image data D a. The first binarization device 16 is obtained by obtaining the horizontal difference image data D e shown in FIG. 11C which is the difference between the direction expansion image data D b and the target image data D a .
To send to.

【0071】この第1の2値化装置16は、水平方向差
分画像データDe を入力し、この水平方向差分画像デー
タDe に対して2値化しきい値TH1 により2値化処理
して図11(d) に示すような水平方向2値化画像データ
h を論理積装置19に送出する。
[0071] The first binarization unit 16 inputs the horizontal direction differential image data D e, the binary threshold value TH 1 relative to the horizontal direction differential image data D e and binarization The horizontal binarized image data D h as shown in FIG. 11D is sent to the AND device 19.

【0072】この水平方向2値化画像データDh では、
図11(d) に示すように文字部とホール部とが2値化さ
れる。一方、データ入力装置1を通して対象画像データ
a が収縮装置12に入力する。
In this horizontal binarized image data D h ,
As shown in FIG. 11D, the character portion and the hole portion are binarized. On the other hand, the target image data D a is input to the contraction device 12 through the data input device 1.

【0073】この水平方向収縮装置12は、対象画像デ
ータDa に対して水平方向に、先ず膨張処理を行い、次
に収縮処理を行って図11(e) に示すような水平方向収
縮画像データDd を出力する。
The horizontal contraction device 12 first performs expansion processing and then contraction processing on the target image data D a in the horizontal direction, so that horizontal contraction image data as shown in FIG. Output D d .

【0074】第3の差分装置15は、水平方向収縮装置
12により得られた水平方向収縮画像データDd と対象
画像データDa との差分である図11(f) に示すような
収縮差分画像データDg を求めて出力する。
The third difference device 15 is a difference image between the horizontal contraction image data D d obtained by the horizontal contraction device 12 and the target image data D a as shown in FIG. 11 (f). Data D g is obtained and output.

【0075】第3の2値化装置18は、第3の差分装置
15からの収縮差分画像データDgを入力し、この収縮
差分画像データDg に対して2値化しきい値TH2 によ
り2値化処理し、図11(g) に示すような収縮2値化画
像データDj を出力する。
[0075] The third binarizing unit 18 inputs the shrinkage difference image data D g from the third differential unit 15, the binarization threshold value TH 2 with respect to the contraction difference image data D g 2 The binarization processing is performed, and the contracted binary image data D j as shown in FIG. 11 (g) is output.

【0076】この収縮2値化画像データDj は、同図
(g) に示すようにホール部が2値化されている。論理差
分装置20は、第1の2値化装置16により求められた
水平方向2値化画像データDh を論理積装置19を通し
て入力するとともに、第3の2値化装置18により求め
られた収縮2値化画像データDj を入力し、これら水平
方向2値化画像データDh と収縮2値化画像データDj
との論理差分である図11(h) に示す論理差分画像デー
タDl を出力する。
This contraction binarized image data D j is shown in FIG.
The hole is binarized as shown in (g). The logical difference device 20 inputs the horizontal binarized image data D h obtained by the first binarizing device 16 through the logical product device 19 and the contraction obtained by the third binarizing device 18. enter the binary image data D j, these and horizontal binary image data D h shrinkage binary image data D j
The logical difference image data D 1 shown in FIG. 11 (h) which is the logical difference with

【0077】しかるに、論理差分画像データDl は、ホ
ールのあいた文字、例えば数字「6」の2値化画像デー
タを得ることができ、ホールの開いていることにより2
値化処理の後段における文字抽出・文字認識の処理を容
易にでき、かつこれら文字抽出・文字認識の処理を行う
ために精度の高い2値化ができる。 (d) 文字間隔の狭い文字列の場合について図12及び図
13を参照して説明する。なお、ここでは、水平方向処
理について説明するが、垂直方向処理に関しても同様で
ある。
However, as the logical difference image data D l , it is possible to obtain binarized image data of a character with a hole, for example, the numeral “6”.
The character extraction / character recognition processing in the latter stage of the value conversion processing can be facilitated, and highly accurate binarization can be performed because the character extraction / character recognition processing is performed. (d) A case of a character string having a narrow character spacing will be described with reference to FIGS. 12 and 13. Note that, although the horizontal processing is described here, the same applies to the vertical processing.

【0078】データ入力装置1には、図12に示すよう
な文字間隔の狭い文字列例えば「LU」の対象画像デー
タDa が入力する。この対象画像データDa は例えばラ
インq2 上において図13(a) に示すような水平方向輝
度断面を有している。
The target image data D a of a character string, for example, “LU” having a narrow character spacing as shown in FIG. 12 is input to the data input device 1. The target image data D a has a horizontal luminance cross section as shown in FIG. 13A on the line q 2 , for example.

【0079】第1の膨張装置10は、データ入力装置1
を通して対象画像データDa を入力すると、この対象画
像データDa に対して水平方向で、先ず収縮処理を行
い、次に膨張処理を行って図13(b) に示すような水平
方向膨張画像データDb を出力する。
The first expansion device 10 is the data input device 1
When the target image data D a is input through the horizontal direction image data D a , the horizontal expansion image data as shown in FIG. Output D b .

【0080】第1の差分装置13は、第1の膨張装置1
0により得られた水平方向膨張画像データDb を入力す
ると共に、データ入力装置1を通して対象画像データD
a を入力し、これら水平方向膨張画像データDb と対象
画像データDa の差分である図13(c) に示す水平方向
差分画像データDe を出力する。
The first difference device 13 is the first expansion device 1
The horizontally expanded image data D b obtained by 0 is input, and the target image data D is input through the data input device 1.
When a is input, the horizontal difference image data D e shown in FIG. 13C, which is the difference between the horizontal expansion image data D b and the target image data D a , is output.

【0081】第1の2値化装置16は、水平方向差分画
像データDe を入力し、この水平方向差分画像データD
e に対して2値化しきい値TH1 により2値化処理して
図13(d) に示すような水平方向2値化画像データDh
を論理積装置19に送出する。
The first binarization device 16 receives the horizontal difference image data D e, and inputs the horizontal difference image data D e.
The e- value is binarized by the binarization threshold value TH 1 and horizontal binarized image data D h as shown in FIG.
Is sent to the AND device 19.

【0082】この水平方向2値化画像データDh では、
図13(d) に示すように文字部「LU」も2値化される
が、文字「L」と文字「U」との間も2値化され、これ
ら文字「L」と「U」とが文字連結している。
In the horizontal binarized image data D h ,
As shown in FIG. 13 (d), the character part "LU" is also binarized, but the character "L" and the character "U" are also binarized, and these character "L" and "U" Are linked.

【0083】一方、データ入力装置1を通して対象画像
データDa が水平方向収縮装置12に入力する。この水
平方向収縮装置12は、対象画像データDa に対して水
平方向に、先ず膨張処理を行い、次に収縮処理を行って
図13(e) に示すような水平方向収縮画像データDd
出力する。
On the other hand, the target image data D a is input to the horizontal contraction device 12 through the data input device 1. The horizontal contraction device 12 first performs expansion processing and then contraction processing on the target image data D a in the horizontal direction to generate horizontal contraction image data D d as shown in FIG. Output.

【0084】第3の差分装置15は、水平方向収縮装置
12により得られた水平方向収縮画像データDd と対象
画像データDa との差分である図13(f) に示すような
収縮差分画像データDg を求めて出力する。
The third difference device 15 is a difference image between the horizontal contraction image data D d obtained by the horizontal contraction device 12 and the target image data D a as shown in FIG. 13 (f). Data D g is obtained and output.

【0085】第3の2値化装置18は、第3の差分装置
15からの収縮差分画像データDgを入力し、この収縮
差分画像データDg に対して2値化しきい値TH2 によ
り2値化処理し、図13(g) に示すような収縮2値化画
像データDj を出力する。
[0085] The third binarizing unit 18 inputs the shrinkage difference image data D g from the third differential unit 15, the binarization threshold value TH 2 with respect to the contraction difference image data D g 2 The binarization processing is performed, and the contracted binary image data D j as shown in FIG. 13 (g) is output.

【0086】この収縮2値化画像データDj は、同図
(g) に示すように文字間隔部が2値化されている。論理
差分装置20は、第1の2値化装置16により求められ
た水平方向2値化画像データDh を論理積装置19を通
して入力するとともに、第3の2値化装置18により求
められた収縮2値化画像データDj を入力し、これら水
平方向2値化画像データDh と収縮2値化画像データD
j との論理差分である図13(h) に示す論理差分画像デ
ータDl を出力する。
This contraction binarized image data D j is shown in FIG.
The character spacing is binarized as shown in (g). The logical difference device 20 inputs the horizontal binarized image data D h obtained by the first binarizing device 16 through the logical product device 19 and the contraction obtained by the third binarizing device 18. The binarized image data D j is input, and these horizontal binarized image data D h and contracted binarized image data D are input.
The logical difference image data D 1 shown in FIG. 13 (h), which is the logical difference from j , is output.

【0087】しかるに、論理差分画像データDl は、文
字間隔の狭い文字列例えば「LU」であっても、これら
文字「L」と「U」の間隔のあいた文字列の2値化画像
データを得ることができ、この2値化処理の後段におけ
る文字抽出・文字認識の処理を容易にでき、かつこれら
文字抽出・文字認識の処理を行うために精度の高い2値
化ができる。
However, even if the logical difference image data D l is a character string having a narrow character interval, for example, “LU”, the binary image data of the character string having the interval between these characters “L” and “U” is obtained. Therefore, the character extraction / character recognition processing in the latter stage of the binarization processing can be facilitated, and highly accurate binarization can be performed because the character extraction / character recognition processing is performed.

【0088】このように上記第1の実施の形態によれ
ば、例えばコルゲートによる背景部の輝度変動を垂直方
向の収縮・膨張処理により排除し、適切な2値化がで
き、又、文字列枠がありかつ文字列が多段に渡っている
場合、水平方向の収縮・膨張処理により文字列枠の隙間
が2値化されないできる。
As described above, according to the first embodiment, for example, the brightness variation of the background portion due to the corrugation is eliminated by the contraction / expansion processing in the vertical direction, and the appropriate binarization can be performed. If there is a line and the character string extends in multiple stages, the space between the character string frames cannot be binarized by the contraction / expansion process in the horizontal direction.

【0089】さらに、文字同士の隙間が小さい場合、膨
張・収縮処理により文字が連結することを防ぐことがで
き、かつ文字ホール部を膨張・収縮処理によりホールと
して2値化しない。
Further, when the gap between the characters is small, it is possible to prevent the characters from being connected by the expansion / contraction process, and the character hole portion is not binarized as a hole by the expansion / contraction process.

【0090】従って、コルゲートによる背景部の輝度変
動、文字枠、文字列段数、近接した文字列、ホール文字
等に対して、高精度な2値化処理ができ、2値化処理の
後段における文字抽出・文字認識の処理を容易にでき
る。 (2) 次に本発明の第2の実施の形態について図面を参照
して説明する。なお、図1と同一部分には同一符号を付
してその詳しい説明は省略する。
Therefore, it is possible to perform highly accurate binarization processing on the brightness variation of the background portion due to corrugations, character frames, the number of character string stages, adjacent character strings, hole characters, etc. The extraction / character recognition process can be facilitated. (2) Next, a second embodiment of the present invention will be described with reference to the drawings. The same parts as those in FIG. 1 are denoted by the same reference numerals, and detailed description thereof will be omitted.

【0091】図14はパターン認識装置に適用する2値
化装置の構成図である。データ入力装置1には、例えば
車両番号やコンテナ番号IDを撮像して得られた対象画
像データDa が入力される。
FIG. 14 is a block diagram of a binarization device applied to a pattern recognition device. The target image data D a obtained by imaging the vehicle number or the container number ID, for example, is input to the data input device 1.

【0092】このデータ入力装置1には、収縮処理手段
としての第1の closing装置(以下、第1の収縮装置と
称する)21、第2の closing装置(以下、第2の収縮
装置と称する)22、及び膨張処理手段としての水平方
向 opening装置(以下、水平方向膨張装置と称する)2
3が接続されている。
The data input device 1 includes a first closing device (hereinafter referred to as a first contracting device) 21 and a second closing device (hereinafter referred to as a second contracting device) as contraction processing means. 22 and a horizontal opening device (hereinafter referred to as a horizontal expansion device) 2 as expansion processing means
3 is connected.

【0093】このうち第1の収縮装置21は、フィルタ
のカーネルサイズm×1の局所領域を用い、対象画像デ
ータDa に対して水平方向で、先ず膨張処理を行い、次
に収縮処理を行って水平方向収縮画像データDm を出力
する機能を有している。
Of these, the first contraction device 21 uses the local area of the kernel size m × 1 of the filter, and first performs the expansion process and then the contraction process in the horizontal direction with respect to the target image data D a . And has a function of outputting the horizontal contraction image data D m .

【0094】第2の収縮装置22は、フィルタのカーネ
ルサイズ1×nの局所領域を用い、対象画像データDa
に対して垂直方向で、先ず膨張処理を行い、次に収縮処
理を行って垂直方向収縮画像データDn を出力する機能
を有している。
The second contraction device 22 uses the local area of the kernel size 1 × n of the filter, and uses the target image data D a.
With respect to the vertical direction, it has a function of performing expansion processing first, and then contraction processing to output vertical contraction image data D n .

【0095】水平方向膨張装置12は、フィルタのカー
ネルサイズk×lの局所領域を用い、対象画像データD
a に対して水平方向に、先ず収縮処理を行い、次に膨張
処理を行って水平方向膨張画像データDr を出力する機
能を有している。
The horizontal expansion device 12 uses the local area of the kernel size k × l of the filter to generate the target image data D
In the horizontal direction with respect to a, a contraction process is first performed, and then an expansion process is performed to output the horizontally expanded image data D r .

【0096】これら第1の収縮装置21、第2の収縮装
置22及び水平方向膨張装置23には、それぞれ差分手
段としての第1〜第3の差分装置13〜15が接続され
ている。
First to third difference devices 13 to 15 as difference means are connected to the first contraction device 21, the second contraction device 22 and the horizontal expansion device 23, respectively.

【0097】このうち第1の差分装置13は、第1の収
縮装置21により得られた水平方向収縮画像データDm
と対象画像データDa との差分である水平方向差分画像
データDs を求めて出力する機能を有している。
Of these, the first subtraction device 13 is the horizontal contraction image data D m obtained by the first contraction device 21.
And the target difference image data D a , the horizontal difference image data D s is obtained and output.

【0098】第2の差分装置14は、第2の収縮装置2
2により得られた垂直方向収縮画像データDn と対象画
像データDa との差分である水平方向差分画像データD
t を求めて出力する機能を有している。
The second difference device 14 is the second contraction device 2
The horizontal difference image data D which is the difference between the vertical contraction image data D n and the target image data D a obtained in Step 2.
It has the function of calculating and outputting t .

【0099】第3の差分装置15は、水平方向膨張装置
23により得られた水平方向膨張画像データDr と対象
画像データDa との差分である膨張差分画像データDu
を求めて出力する機能を有している。
The third difference device 15 is the expansion difference image data D u which is the difference between the horizontal expansion image data D r obtained by the horizontal expansion device 23 and the target image data D a.
It has a function of seeking and outputting.

【0100】これら第1〜第3の差分装置13〜15に
は、それぞれ2値化手段として第1〜第3の2値化装置
16〜18が接続されている。第1及び第2の2値化装
置16、17は、予め2値化しきい値TH1 がそれぞれ
設定されたもので、このうち第1の2値化装置16は2
値化しきい値TH1 により水平方向差分画像データDs
を2値化処理して水平方向2値化画像データDv を出力
し、第2の2値化装置17は2値化しきい値TH1 によ
り垂直方向差分画像データDt を2値化処理して水平方
向2値化画像データDw を出力する機能を有している。
The first to third difference devices 13 to 15 are respectively connected to the first to third binarization devices 16 to 18 as binarizing means. The first and second binarizing devices 16 and 17 are each set with a binarizing threshold value TH 1 in advance. Of these, the first binarizing device 16 is 2
The horizontal difference image data D s according to the threshold value TH 1
Is binarized to output horizontal binarized image data D v, and the second binarization device 17 binarizes the vertical difference image data D t with the binarized threshold value TH 1. And has a function of outputting the binary image data D w in the horizontal direction.

【0101】第3の2値化装置18は、予め2値化しき
い値TH2 が設定され、この2値化しきい値TH2 によ
り膨張差分画像データDu を2値化処理して膨張2値化
画像データDx を出力する機能を有している。
In the third binarizing device 18, a binarizing threshold TH 2 is set in advance, and the dilation difference image data D u is binarized by the binarizing threshold TH 2 to dilate the binarization. It has a function of outputting the converted image data D x .

【0102】論理積装置19は、第1及び第2の2値化
装置16、17により求められた水平方向2値化画像デ
ータDv と垂直方向2値化画像データDw との論理積を
求めて収縮論理積画像データDy を出力する機能を有し
ている。
The logical product device 19 calculates the logical product of the horizontal binary image data D v and the vertical binary image data D w obtained by the first and second binary devices 16 and 17. It has a function of obtaining contraction logical product image data D y .

【0103】論理差分装置20は、論理積装置19によ
り求められた収縮論理積画像データDy と第3の2値化
装置18により求められた膨張2値化画像データDx
の論理差分画像データDz を求めて出力する機能を有し
ている。
The logical difference device 20 calculates the logical difference image between the contracted logical product image data D y obtained by the logical product device 19 and the expanded binary image data D x obtained by the third binarizing device 18. It has a function of obtaining and outputting the data D z .

【0104】次に上記の如く構成された装置の作用につ
いて、文字色が背景色に比べて明るい場合のコンテナ番
号IDを2値化対象とする場合について説明する。 (a) コンテナ番号IDがコルゲート上に書かれている場
合について説明する。
Next, the operation of the apparatus configured as described above will be described for the case where the container number ID when the character color is lighter than the background color is binarized. (a) The case where the container number ID is written on the corrugate will be described.

【0105】データ入力装置1には、図2に示すような
コルゲート上に書かれたコンテナ番号IDの対象画像デ
ータDa が入力する。第1の収縮装置21は、データ入
力装置1を通して対象画像データDa を入力すると、こ
の対象画像データDa に対して水平方向で、先ず膨張処
理を行い、次に収縮処理を行って水平方向収縮画像デー
タDm を求めて第1の差分装置13に送出する。
The target image data D a of the container number ID written on the corrugated as shown in FIG. 2 is input to the data input device 1. When the target image data D a is input through the data input device 1, the first contraction device 21 first performs expansion processing and then contraction processing in the horizontal direction with respect to this target image data D a . The contracted image data D m is obtained and sent to the first difference device 13.

【0106】この第1の差分装置13は、第1の収縮装
置21により得られた水平方向収縮画像データDm を入
力すると共に、データ入力装置1を通して対象画像デー
タDa を入力し、これら水平方向収縮画像データDm
対象画像データDa の差分である水平方向差分画像デー
タDs を求めて第1の2値化装置16に送出する。
The first subtraction device 13 inputs the horizontal contraction image data D m obtained by the first contraction device 21 and the target image data D a through the data input device 1 to obtain the horizontal contraction image data D a. The horizontal difference image data D s , which is the difference between the direction contraction image data D m and the target image data D a , is obtained and sent to the first binarization device 16.

【0107】この第1の2値化装置16は、水平方向差
分画像データDs を入力し、この水平方向差分画像デー
タDs に対して2値化しきい値TH1 により2値化処理
して水平方向2値化画像データDv を論理積装置19に
送出する。
[0107] The first binarization unit 16 inputs the horizontal direction differential image data D s, the binary threshold value TH 1 relative to the horizontal direction differential image data D s and binarization The horizontal binarized image data D v is sent to the AND device 19.

【0108】一方、データ入力装置1を通して対象画像
データDa が第2の収縮装置22に入力する。この第2
の収縮装置22は、対象画像データDa に対して垂直方
向で、先ず膨張処理を行い、次に収縮処理を行って垂直
方向膨張画像データDn を求めて第2の差分装置14に
送出する。
On the other hand, the target image data D a is input to the second contraction device 22 through the data input device 1. This second
The contraction device 22 of the first performs the expansion process first in the vertical direction with respect to the target image data D a , then performs the contraction process to obtain the vertical expansion image data D n , and sends it to the second difference device 14. .

【0109】この第2の差分装置14は、第2の収縮装
置22により得られた垂直方向収縮画像データDn を入
力すると共に、データ入力装置1を通して対象画像デー
タDa を入力し、これら垂直方向膨張画像データDn
対象画像データDa の差分である垂直方向差分画像デー
タDt を求めて第2の2値化装置17に送出する。
The second subtraction device 14 inputs the contracted image data D n in the vertical direction obtained by the second contracting device 22 and the target image data D a through the data input device 1, The vertical difference image data D t , which is the difference between the direction expansion image data D n and the target image data D a , is obtained and sent to the second binarization device 17.

【0110】この第2の2値化装置17は、垂直方向差
分画像データDt を入力し、この垂直方向差分画像デー
タDt に対して2値化しきい値TH1 により2値化処理
して垂直方向2値化画像データDw を論理積装置19に
送出する。
The second binarization device 17 receives the vertical direction difference image data D t, and binarizes the vertical direction difference image data D t with the binarization threshold TH 1. The binary image data D w in the vertical direction is sent to the AND device 19.

【0111】この論理積装置19は、第1及び第2の2
値化装置16、17によりそれぞれ求められた水平方向
2値化画像データDv と垂直方向2値化画像データDw
とを入力し、これら水平方向2値化画像データDv と垂
直方向2値化画像データDwとの論理積を求めて膨張論
理積画像データDy を出力する。
This logical product device 19 has the first and second 2
Horizontal binarized image data D v and vertical binarized image data D w obtained by the binarizing devices 16 and 17, respectively.
Is input, the logical product of the horizontal direction binary image data D v and the vertical direction binary image data D w is obtained, and the expanded logical product image data D y is output.

【0112】しかるに、この膨張論理積画像データDy
は、文字部のみが2値化された画像データとして生成さ
れる。このようにコンテナ番号IDがコルゲート上に書
かれている場合であっても文字部のみを2値化した画像
データを生成でき、この2値化処理後における文字抽出
・文字認識の処理を行うために精度の高い2値化ができ
る。 (b) ホールがあるような文字の場合について説明する。
なお、ここでは、水平方向処理について説明するが、垂
直方向処理に関しても同様である。
However, this expanded logical product image data D y
Is generated as image data in which only the character part is binarized. In this way, even if the container number ID is written on the corrugated, it is possible to generate image data in which only the character part is binarized, and to perform character extraction / character recognition processing after this binarization processing. Highly accurate binarization is possible. (b) Explain the case of characters with holes.
Note that, although the horizontal processing is described here, the same applies to the vertical processing.

【0113】データ入力装置1には、上記図10に示す
ようなホールのある文字例えば数字「6」の対象画像デ
ータDa が入力する。第1の収縮装置21は、データ入
力装置1を通して対象画像データDa を入力すると、こ
の対象画像データDa に対して水平方向で、先ず膨張処
理を行い、次に収縮処理を行って水平方向収縮画像デー
タDm を求めて第1の差分装置13に送出する。
The target image data D a of a character having a hole as shown in FIG. 10, for example, the numeral “6” is input to the data input device 1. When the target image data D a is input through the data input device 1, the first contraction device 21 first performs expansion processing and then contraction processing in the horizontal direction with respect to this target image data D a . The contracted image data D m is obtained and sent to the first difference device 13.

【0114】この第1の差分装置13は、第1の収縮装
置21により得られた水平方向収縮画像データDm を入
力すると共に、データ入力装置1を通して対象画像デー
タDa を入力し、これら水平方向収縮画像データDm
対象画像データDa の差分である水平方向差分画像デー
タDs を求めて第1の2値化装置16に送出する。
The first subtraction device 13 inputs the horizontal contraction image data D m obtained by the first contraction device 21 and the target image data D a through the data input device 1 to obtain the horizontal contraction image data D a. The horizontal difference image data D s , which is the difference between the direction contraction image data D m and the target image data D a , is obtained and sent to the first binarization device 16.

【0115】この第1の2値化装置16は、水平方向差
分画像データDs を入力し、この水平方向差分画像デー
タDs に対して2値化しきい値TH1 により2値化処理
して水平方向2値化画像データDv を論理積装置19に
送出する。
The first binarization device 16 receives the horizontal difference image data D s, and binarizes the horizontal difference image data D s with the binarization threshold TH 1. The horizontal binarized image data D v is sent to the AND device 19.

【0116】一方、データ入力装置1を通して対象画像
データDa が水平方向膨張装置23に入力する。この水
平方向膨張装置23は、対象画像データDa に対して水
平方向に、先ず収縮処理を行い、次に膨張処理を行って
水平方向膨張画像データDr を出力する。
On the other hand, the target image data D a is input to the horizontal expansion device 23 through the data input device 1. The horizontal expansion device 23 first performs contraction processing and then expansion processing on the target image data D a in the horizontal direction, and outputs horizontal expansion image data D r .

【0117】第3の差分装置15は、水平方向収縮装置
12により得られた水平方向膨張画像データDr と対象
画像データDa との差分である膨張差分画像データDu
を求めて出力する。
The third difference device 15 is the expansion difference image data D u which is the difference between the horizontal expansion image data D r obtained by the horizontal contraction device 12 and the target image data D a.
Is output.

【0118】第3の2値化装置18は、第3の差分装置
15からの膨張差分画像データDuを入力し、この膨張
差分画像データDu に対して2値化しきい値TH2 によ
り2値化処理し、膨張2値化画像データDx を出力す
る。
[0118] The third binarizing unit 18 inputs the expanded difference image data D u from the third differential unit 15, the binarization threshold value TH 2 with respect to the expansion difference image data D u 2 The binarization process is performed, and the expanded binary image data D x is output.

【0119】論理差分装置20は、第1の2値化装置1
6により求められた水平方向2値化画像データDv を論
理積装置19を通して入力するとともに、第3の2値化
装置18により求められた膨張2値化画像データDx
入力し、これら水平方向2値化画像データDv と膨張2
値化画像データDx との論理差分である論理差分画像デ
ータDz を出力する。
The logical difference device 20 is the first binarization device 1
6 is input through the AND device 19, and the expanded binary image data D x obtained by the third binarizing device 18 is input to the horizontal binarized image data D v. Directional binary image data D v and dilation 2
The logical difference image data D z , which is the logical difference from the binarized image data D x , is output.

【0120】しかるに、この論理差分画像データDz
は、ホールのあいた文字、例えば数字「6」の2値化画
像データを得ることができ、ホールの開いていることに
より2値化処理の後段における文字抽出・文字認識の処
理を容易にでき、かつこれら文字抽出・文字認識の処理
を行うために精度の高い2値化ができる。
However, this logical difference image data D z
Can obtain binary image data of a character with a hole, for example, the number "6". By opening a hole, character extraction / character recognition processing in the latter stage of the binarization processing can be facilitated. Moreover, since the character extraction / character recognition processing is performed, highly accurate binarization can be performed.

【0121】このように上記第2の実施の形態によれ
ば、コルゲートによる背景部の輝度変動、ホール文字等
に対して、高精度な2値化処理ができ、2値化処理の後
段における文字抽出・文字認識の処理を容易にできると
ともに、さらに説明は省略したが、文字列枠がありかつ
文字列が多段にわたる場合、文字間隔の狭い文字列の場
合であっても上記第1の実施の形態と同様に、高精度な
2値化処理ができ、2値化処理の後段における文字抽出
・文字認識の処理を容易にできる。
As described above, according to the second embodiment, it is possible to perform highly accurate binarization processing on the brightness variation of the background portion due to corrugations, hole characters, etc. Although the extraction / character recognition process can be facilitated and further explanation is omitted, even if there is a character string frame and the character string extends over multiple levels, or even if the character string has a narrow character spacing, Similar to the form, highly accurate binarization processing can be performed, and character extraction / character recognition processing in the latter stage of the binarization processing can be facilitated.

【0122】なお、本発明は、上記第1及び第2の実施
の形態に限定されるものでなく次の通り変形してもよ
い。例えば、第1〜第3の2値化装置16〜18におけ
る2値化しきい値TH1 、TH2 は、固定値に限らず、
浮動しきい値としてもよい。
The present invention is not limited to the first and second embodiments described above, but may be modified as follows. For example, the binarization threshold values TH 1 and TH 2 in the first to third binarization devices 16 to 18 are not limited to fixed values,
It may be a floating threshold.

【0123】[0123]

【発明の効果】以上詳記したように本発明の請求項1、
2によれば、認識対象が各種フォーマットで書かれてい
ても文字認識等を行うために高精度に2値化できる2値
化装置を提供できる。
As described in detail above, claim 1 of the present invention,
According to 2, it is possible to provide a binarization device capable of binarizing with high accuracy in order to perform character recognition and the like even if the recognition target is written in various formats.

【0124】又、本発明の請求項1、2によれば、コル
ゲートによる背景部の輝度変動、文字枠、文字列段数、
近接した文字列、ホール文字等に対して、高精度な2値
化処理ができ、2値化処理の後段における文字抽出・文
字認識の処理を容易にできる2値化装置を提供できる。
Further, according to the first and second aspects of the present invention, the brightness variation of the background portion due to the corrugation, the character frame, the number of character string steps,
It is possible to provide a binarization device that can perform highly accurate binarization processing on adjacent character strings, hole characters, etc., and can easily perform character extraction / character recognition processing in the latter stage of the binarization processing.

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

【図1】本発明に係わる2値化装置の第1の実施の形態
をパターン認識装置に適用した場合の構成図。
FIG. 1 is a configuration diagram when a first embodiment of a binarizing device according to the present invention is applied to a pattern recognition device.

【図2】コルゲート上に書かれたコンテナ番号IDの対
象画像データを示す模式図。
FIG. 2 is a schematic diagram showing target image data of a container number ID written on a corrugate.

【図3】文字列枠がありかつ文字列が多段にわたる対象
画像データを示す模式図。
FIG. 3 is a schematic diagram showing target image data having a character string frame and multi-stage character strings.

【図4】入力画像データに対する収縮・膨張処理の作用
を示す模式図。
FIG. 4 is a schematic diagram showing the action of contraction / expansion processing on input image data.

【図5】入力画像データの輝度断面から見た収縮・膨張
処理の作用を示す図。
FIG. 5 is a diagram showing the action of contraction / expansion processing seen from the luminance cross section of input image data.

【図6】対象画像データに対する水平方向の2値化処理
等の輝度断面を示す図。
FIG. 6 is a diagram showing a luminance cross-section such as horizontal binarization processing for target image data.

【図7】対象画像データに対する垂直方向の2値化処理
等の輝度断面を示す図。
FIG. 7 is a diagram showing a luminance cross section such as binarization processing in the vertical direction with respect to target image data.

【図8】対象画像データに対する水平方向の2値化処理
等の輝度断面を示す図。
FIG. 8 is a diagram showing a luminance cross-section such as horizontal binarization processing for target image data.

【図9】対象画像データに対する垂直方向の2値化処理
等の輝度断面を示す図。
FIG. 9 is a diagram showing a luminance cross section such as binarization processing in the vertical direction with respect to target image data.

【図10】ホールのある文字の対象画像データの模式
図。
FIG. 10 is a schematic diagram of target image data of characters with holes.

【図11】対象画像データに対する2値化処理の輝度断
面を示す図。
FIG. 11 is a diagram showing a luminance cross section of a binarization process on target image data.

【図12】文字間隔の狭い文字列の対象画像データの模
式図。
FIG. 12 is a schematic diagram of target image data of a character string having a narrow character interval.

【図13】対象画像データに対する2値化処理の輝度断
面を示す図。
FIG. 13 is a diagram showing a luminance cross section of a binarization process on target image data.

【図14】本発明に係わる2値化装置の第2の実施の形
態をパターン認識装置に適用した場合の構成図。
FIG. 14 is a configuration diagram when a second embodiment of a binarizing device according to the present invention is applied to a pattern recognition device.

【図15】従来の2値化装置の構成図。FIG. 15 is a block diagram of a conventional binarization device.

【図16】同装置の2値化処理を示す図。FIG. 16 is a diagram showing a binarization process of the apparatus.

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

1…データ入力装置、 10…第1の opening装置(第1の膨張装置)、 11…第2の opening装置(第2の膨張装置)、 12…水平方向 closing装置(水平方向収縮装置)、 13…第1の差分装置、 14…第2の差分装置、 15…第3の差分装置、 16…第1の2値化装置、 17…第2の2値化装置、 18…第3の2値化装置、 19…論理積装置、 20…論理差分装置、 21…第1の closing装置(第1の収縮装置)、 22…第2の closing装置(第2の収縮装置)、 23…水平方向 opening装置(水平方向膨張装置)。 DESCRIPTION OF SYMBOLS 1 ... Data input device, 10 ... 1st opening device (1st expansion device), 11 ... 2nd opening device (2nd expansion device), 12 ... Horizontal closing device (horizontal contraction device), 13 ... first difference device, 14 ... second difference device, 15 ... third difference device, 16 ... first binarization device, 17 ... second binarization device, 18 ... third binary value Device, 19 ... AND device, 20 ... logical difference device, 21 ... first closing device (first contraction device), 22 ... second closing device (second contraction device), 23 ... horizontal opening Device (horizontal expansion device).

───────────────────────────────────────────────────── フロントページの続き (72)発明者 和田 恭子 兵庫県神戸市兵庫区和田崎町一丁目1番1 号 三菱重工業株式会社神戸造船所内 ─────────────────────────────────────────────────── ─── Continuation of front page (72) Inventor Kyoko Wada 1-1-1 Wadasaki-cho, Hyogo-ku, Kobe-shi, Hyogo Mitsubishi Heavy Industries Ltd. Kobe Shipyard

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 対象画像データに対して水平方向又は垂
直方向のうち少なくとも一方の方向で収縮・膨張処理を
行う膨張処理手段と、 前記対象画像データに対して膨張・収縮処理を行う収縮
処理手段と、 前記膨張処理手段により得られた水平及び垂直方向に対
する各膨張画像データと前記対象画像データとの各差分
である水平方向差分画像データ、垂直方向差分画像デー
タを求め、かつ前記収縮処理手段により得られた収縮画
像データと前記対象画像データとの収縮差分画像データ
をそれぞれ求める差分手段と、 この差分手段により求められた前記水平方向差分画像デ
ータ、前記垂直方向差分画像データ、前記収縮差分画像
データに対してそれぞれ2値化処理する2値化手段と、 この2値化手段により求められた水平方向2値化画像デ
ータと垂直方向2値化画像データとの論理積を求める論
理積手段と、 この論理積手段により求められた膨張論理積画像データ
と前記2値化手段により求められた収縮2値化画像デー
タとの論理差分画像データを求める論理差分手段と、を
具備したことを特徴とする2値化装置。
1. An expansion processing means for performing contraction / expansion processing on the target image data in at least one of a horizontal direction and a vertical direction, and a contraction processing means for performing expansion / contraction processing on the target image data. A horizontal difference image data and vertical difference image data that are the respective differences between the expanded image data and the target image data in the horizontal and vertical directions obtained by the expansion processing means, and by the contraction processing means. Difference means for respectively obtaining shrinkage difference image data between the obtained shrinkage image data and the target image data, the horizontal direction difference image data, the vertical direction difference image data, and the shrinkage difference image data obtained by this difference means Binarizing means for binarizing each of them, and horizontal binarized image data obtained by the binarizing means. AND means for obtaining a logical product with the binary image data in the vertical direction, and logic for the expanded AND image data obtained by the AND means and the contracted binary image data obtained by the binarizing means A binarization device comprising: a logical difference means for obtaining difference image data.
【請求項2】 対象画像データに対して水平方向又は垂
直方向のうち少なくとも一方の方向で収縮処理を行う膨
張・収縮処理手段と、 前記対象画像データに対して収縮・膨張処理を行う膨張
処理手段と、 前記収縮処理手段により得られた水平及び垂直方向に対
する各収縮画像データと前記対象画像データとの各差分
である水平方向差分画像データ、垂直方向差分画像デー
タを求め、かつ前記膨張処理手段により得られた膨張画
像データと前記対象画像データとの膨張差分画像データ
をそれぞれ求める差分手段と、 この差分手段により求められた前記水平方向差分画像デ
ータ、前記垂直方向差分画像データ、前記膨張差分画像
データに対してそれぞれ2値化処理する2値化手段と、 この2値化手段により求められた水平方向2値化画像デ
ータと垂直方向2値化画像データとの論理積を求める論
理積手段と、 この論理積手段により求められた収縮論理積画像データ
と前記2値化手段により求められた膨張2値化画像デー
タとの論理差分画像データを求める論理差分手段と、を
具備したことを特徴とする2値化装置。
2. An expansion / contraction processing unit that performs contraction processing on the target image data in at least one of a horizontal direction and a vertical direction, and an expansion processing unit that performs contraction / expansion processing on the target image data. A horizontal difference image data and vertical difference image data, which are the respective differences between the contracted image data and the target image data in the horizontal and vertical directions obtained by the contraction processing unit, and by the expansion processing unit. Difference means for obtaining expansion difference image data between the obtained expansion image data and the target image data, respectively, and the horizontal direction difference image data, the vertical direction difference image data, and the expansion difference image data obtained by this difference means. Binarizing means for binarizing each of them, and horizontal binarized image data obtained by the binarizing means. AND means for obtaining a logical product with the binary image data in the vertical direction, and logic for the contracted AND image data obtained by the AND means and the expanded binary image data obtained by the binarizing means. A binarization device comprising: a logical difference means for obtaining difference image data.
JP8120374A 1996-05-15 1996-05-15 Binarization device Withdrawn JPH09305710A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8120374A JPH09305710A (en) 1996-05-15 1996-05-15 Binarization device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8120374A JPH09305710A (en) 1996-05-15 1996-05-15 Binarization device

Publications (1)

Publication Number Publication Date
JPH09305710A true JPH09305710A (en) 1997-11-28

Family

ID=14784633

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8120374A Withdrawn JPH09305710A (en) 1996-05-15 1996-05-15 Binarization device

Country Status (1)

Country Link
JP (1) JPH09305710A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7480410B2 (en) 2001-11-30 2009-01-20 Matsushita Electric Works, Ltd. Image recognition method and apparatus for the same method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7480410B2 (en) 2001-11-30 2009-01-20 Matsushita Electric Works, Ltd. Image recognition method and apparatus for the same method

Similar Documents

Publication Publication Date Title
US20020154815A1 (en) Character recognition device and a method therefore
JP4077094B2 (en) Color document image recognition device
JP2000207489A (en) Character extracting method and device and record medium
JPH06215293A (en) Device for recognizing vehicle number
US5546479A (en) Method for detecting inclination of an image of characters
JPH09305710A (en) Binarization device
US6983071B2 (en) Character segmentation device, character segmentation method used thereby, and program therefor
US20050232472A1 (en) Method and apparatus of processing a skin print image
JPH0991453A (en) Image processing method and its unit
JP3113769B2 (en) Character recognition device
JP3126462B2 (en) Boundary extraction method and apparatus
JP3030126B2 (en) Image processing method
JPH0935065A (en) On-vehicle image processor
JP3850488B2 (en) Character extractor
JP2960468B2 (en) Method and apparatus for binarizing grayscale image
JP2001043312A (en) Document picture processor
JPH07160815A (en) Method and device for image binarization processing by contour enphasis
JP3324590B2 (en) Road object detection device
JPH0335400A (en) Method for recognizing use code of number plate
JP3463255B2 (en) Multi-valued image pattern recognition processing method
KR940007935B1 (en) Candidate classification method for recognizing character
JP2575402B2 (en) Character recognition method
JPH0816777A (en) Method and device for processing image
JPH06251202A (en) Character recognition device
JP2853141B2 (en) Image area identification device

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20030805