JPH0735509A - Postage stamp detecting device - Google Patents

Postage stamp detecting device

Info

Publication number
JPH0735509A
JPH0735509A JP5176961A JP17696193A JPH0735509A JP H0735509 A JPH0735509 A JP H0735509A JP 5176961 A JP5176961 A JP 5176961A JP 17696193 A JP17696193 A JP 17696193A JP H0735509 A JPH0735509 A JP H0735509A
Authority
JP
Japan
Prior art keywords
stamp
color image
area
color
image input
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
JP5176961A
Other languages
Japanese (ja)
Inventor
Hiroshi Takahashi
博 高橋
Toshio Sato
俊雄 佐藤
Kazuyo Nakagawa
和代 中川
Toshitake Hirasawa
利勇 平沢
Teruhiko Uno
輝比古 宇野
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP5176961A priority Critical patent/JPH0735509A/en
Publication of JPH0735509A publication Critical patent/JPH0735509A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To detect postage stamps having several different colors and having different sizes with a high degree of accuracy by providing means for inputting a color image, scanning means for detecting a color variation and specifying a stamp existing area and the like. CONSTITUTION:A color image input device 4 inputs a color image on a postal matter P on which a postage stamp is applied. A CPU 1 removes a background part from the inputted color image so a5 to cut out of the postal matter P. Further, for detection of colors, the surfaces for red, green and blue components of the image are subjected to first-order differentiation such as first-order color differentiation, a maximum value of absolutes values of the first order differentiation, is set to a first-order differentiated value of the pixel thereof. The first- order differentiated color image is subjected to a binarization process, and first binary images of the postal matter 2 are searched in an oblique direction at an angle of 45deg. Through this search, the position of a first pixel is set at a starting position of the postage stamp. Further, the postage stamp is successively cut out, an entire pregiven area as a postage stamp search area is searched, and thereafter, the process is completed. These control precesses are carried out by the CPU 1.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、たとえば、一定速度で
搬送される郵便物から、その上に貼付されている切手を
検出する切手検出装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a postage stamp detecting device for detecting a postage stamp attached to a postal matter conveyed at a constant speed.

【0002】[0002]

【従来の技術】従来、郵便物上の切手を検出する場合、
郵便物上の特定のラインを読取り、その信号の変化の状
態を検知することにより、切手であることを判別してい
た。たとえば、特公昭47−18368号公報に記載さ
れた切手検知装置について説明すると、通常の郵便切手
は、その周囲にミシン目の切り口の入った1mm以上の
白色部分を有しており、その内部には、切手の種類によ
って有彩色を含む任意の図柄が描かれている。このミシ
ン目の入った白枠と、その内側に隣接するごく狭い部分
の有彩色とに注目し、切手の内部の図柄に関係なく、あ
るいは逆に、その切手独自の図柄から切手であること
を、その切手の色あるいは色の組合せから切手の種類を
それぞれ判別している。
2. Description of the Related Art Conventionally, when a stamp on a postal matter is detected,
A stamp is discriminated by reading a specific line on the mail and detecting the state of change of the signal. For example, the stamp detecting device described in Japanese Patent Publication No. 47-18368 will be described. An ordinary postage stamp has a white portion of 1 mm or more around which a perforated cut is made and inside the stamp. Is drawn with an arbitrary pattern including chromatic colors depending on the type of stamp. Pay attention to this perforated white frame and the chromatic color of the very narrow part adjacent to it, regardless of the pattern inside the stamp, or conversely, that it is a stamp from the original pattern of the stamp. The type of stamp is determined from the color or combination of colors of the stamp.

【0003】[0003]

【発明が解決しようとする課題】しかし、上記のような
従来の装置では、切手を検出するのに特定のラインの色
情報しか用いていないため、郵便物上に似たような色パ
ターンの広告情報などが存在すると、それと区別ができ
ず、また、あらかじめ登録した色パターンの切手しか検
出できない。そして、切手の2次元的なエリア情報が得
られず、切手の存在する範囲が明確でなかった。
However, in the conventional device as described above, only the color information of a specific line is used to detect a stamp, and therefore, an advertisement having a similar color pattern on a mail is detected. If there is information or the like, it cannot be distinguished from it, and only stamps of color patterns registered in advance can be detected. Then, the two-dimensional area information of the stamp cannot be obtained, and the range in which the stamp exists is not clear.

【0004】そこで、本発明は、普通切手のようなパタ
ーンが特定されている切手だけでなく、記念切手や特殊
切手のように、様々な色パターンを有する切手、あるい
は、大きさの異なる切手も高精度に検出すことができる
切手検出装置を提供することを目的とする。
Therefore, the present invention is applicable not only to stamps having a specified pattern such as ordinary stamps, but also to stamps having various color patterns, such as memorial stamps and special stamps, or stamps of different sizes. An object of the present invention is to provide a stamp detecting device that can detect with high accuracy.

【0005】[0005]

【課題を解決するための手段】本発明の切手検出装置
は、切手が存在する郵便物上のカラー画像を入力するカ
ラー画像入力手段と、このカラー画像入力手段で入力さ
れるカラー画像の特定位置から斜め方向を基準にして走
査することにより、前記郵便物上の色変化点を検出する
走査手段と、この走査手段によって検出される色変化点
に基づいて、前記カラー画像入力手段で入力された郵便
物上の切手の存在する領域を特定する領域特定手段とを
具備している。
SUMMARY OF THE INVENTION A stamp detecting device of the present invention is a color image inputting means for inputting a color image on a postal matter on which a stamp exists, and a specific position of the color image input by the color image inputting means. Scanning means for detecting a color change point on the mail by scanning in an oblique direction from the above, and based on the color change point detected by the scanning means, the color image input means inputs the color change point. Area specifying means for specifying the area where the stamp is present on the postal matter.

【0006】また、本発明の切手検出装置は、切手が存
在する郵便物上のカラー画像を入力するカラー画像入力
手段と、このカラー画像入力手段で入力されるカラー画
像の特定位置から斜め方向を基準にして走査することに
より、前記郵便物上の色変化点を検出する第1の走査手
段と、この第1の走査手段によって検出される第1の色
変化点から所定距離離間した位置から、前記第1の斜め
方向とは反対の方向である第2の斜め方向を基準にして
走査して、前記カラー画像入力手段で入力される郵便物
のカラー画像から郵便物上の第2の色変化点を検出する
第2の走査手段と、前記第1の走査手段で検出された第
1の色変化点と前記第2の走査手段で検出された第2の
色変化点とに基づいて、前記カラー画像入力手段で入力
された郵便物上の切手の存在する領域を特定する領域特
定手段とを具備している。
Further, the stamp detecting device of the present invention has a color image inputting means for inputting a color image on a postal matter on which a stamp exists, and a diagonal direction from a specific position of the color image input by the color image inputting means. First scanning means for detecting a color change point on the mail by scanning with reference, and a position separated from the first color change point detected by the first scanning means by a predetermined distance, The second color change on the postal matter from the color image of the postal matter inputted by the color image input means by scanning with reference to the second diagonal direction which is the opposite direction to the first diagonal direction. Second scanning means for detecting a point, the first color change point detected by the first scanning means, and the second color change point detected by the second scanning means On the mail input by the color image input means And it includes a region specifying unit for specifying the presence area of the hand.

【0007】さらに、本発明の切手検出装置は、切手が
存在する郵便物上のカラー画像を入力するカラー画像入
力手段と、このカラー画像入力手段で入力されるカラー
画像の特定位置から斜め方向を基準にして走査すること
により、前記郵便物上の色変化点を検出する走査手段
と、この走査手段によって検出される色変化点に基づい
て、前記カラー画像入力手段で入力された郵便物上の切
手の存在する領域を特定する領域特定手段と、この領域
特定手段で特定された切手の存在する領域の位置情報か
ら、その領域の傾き情報を検出する傾き検出手段と、こ
の傾き検出手段によって検出された傾き情報に基づい
て、前記領域特定手段で特定された切手の存在する領域
の位置情報を補正する傾き補正手段とを具備している。
Further, the stamp detecting device of the present invention has a color image inputting means for inputting a color image on a postal matter on which a stamp exists, and an oblique direction from a specific position of the color image input by the color image inputting means. Scanning means for detecting color change points on the mail by scanning with reference, and on the mail inputted by the color image input means based on the color change points detected by the scanning means. Area specifying means for specifying the area where the stamp exists, inclination detecting means for detecting inclination information of the area based on position information of the area where the stamp exists specified by the area specifying means, and detection by the inclination detecting means Inclination correction means for correcting the position information of the area where the stamp specified by the area specifying means exists based on the obtained inclination information.

【0008】[0008]

【作用】郵便物上のカラー画像からその色変化点を検出
し、その色変化点を基に切手をエリアとして検出するこ
とにより、普通切手のようなパターンが特定されている
切手だけでなく、記念切手や特殊切手のように、様々な
色パターンの切手も高精度に検出することができる。
[Function] By detecting the color change point from the color image on the mail and detecting the stamp as an area based on the color change point, not only the stamp in which the pattern like a normal stamp is specified, Stamps with various color patterns, such as commemorative stamps and special stamps, can be detected with high accuracy.

【0009】また、切手エリアの始点だけでなく終点も
検出することにより、たとえば、カラー画像入力手段の
光学系の倍率変動の影響を受けることなく、また、切手
の大きさの異なる記念切手や特殊切手も高精度に検出す
ることができる。
By detecting not only the start point but also the end point of the stamp area, for example, a memorial stamp or a special stamp having a different stamp size is not affected by the change in magnification of the optical system of the color image input means. Stamps can also be detected with high accuracy.

【0010】また、切手エリアの始点だけでなく終点も
検出することにより、切手の傾き、さらには、郵便物の
傾きを検出することができ、傾き補正が可能である。さ
らに、郵便物上の切手検出に2次元画像を用いているた
め、切手の2次元的なエリア情報が得られ、切手の範囲
が明確になる。
By detecting not only the start point but also the end point of the stamp area, the inclination of the stamp and further the inclination of the postal matter can be detected, and the inclination can be corrected. Further, since the two-dimensional image is used for detecting the stamp on the postal matter, the two-dimensional area information of the stamp is obtained and the range of the stamp becomes clear.

【0011】[0011]

【実施例】以下、本発明の実施例について図面を参照し
て説明する。図1は、本実施例に係る切手検出装置の構
成を示すものである。図において、CPU1は、主記憶
部2内にあるプログラム格納領域内のプログラムの実行
と、記憶装置3、カラー画像入力装置(たとえば、カラ
ーテレビジョンカメラやカラースキャナ装置などからな
る)4、および、画像出力装置5の制御を行なってい
る。カラー画像入力装置4および画像出力装置5とのデ
ータの入出力は、それぞれ入力インタフェイス部6およ
び出力インタフェイス部7を介して行なっている。ま
た、外部からデータを入力する手段として、キーボード
などのデータ入力装置8が設けられている。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 shows the configuration of a stamp detecting device according to this embodiment. In the figure, a CPU 1 executes a program in a program storage area in a main storage unit 2, a storage device 3, a color image input device (for example, a color television camera or a color scanner device) 4, and The image output device 5 is controlled. Data input / output to / from the color image input device 4 and the image output device 5 is performed via an input interface unit 6 and an output interface unit 7, respectively. A data input device 8 such as a keyboard is provided as a means for inputting data from the outside.

【0012】主記憶部2内には、プログラム格納領域と
テンポラリ記憶領域とがある。プログラム格納領域に
は、あらかじめ後述するフローチャートで示される処理
プログラムが格納されている。テンポラリ記憶領域は、
CPU1の一時記憶領域として用いられる。CPU1か
ら画像入力要求の指令がカラー画像入力装置4に送られ
ると、カラー画像入力装置4は、あらかじめ用意されて
いたカラー画像、すなわち、一定速度で搬送される郵便
物P上のカラー画像を光学的に読取る。カラー画像入力
装置4で読取られたカラー画像データは、入力インタフ
ェイス6およびCPUバス9を介して記憶装置3に送ら
れ、そこに蓄えられる。
The main memory 2 has a program storage area and a temporary storage area. In the program storage area, a processing program shown in a flowchart described later is stored in advance. The temporary storage area is
It is used as a temporary storage area for the CPU 1. When the image input request command is sent from the CPU 1 to the color image input device 4, the color image input device 4 optically outputs a color image prepared in advance, that is, a color image on the mail P conveyed at a constant speed. Read it. The color image data read by the color image input device 4 is sent to the storage device 3 via the input interface 6 and the CPU bus 9 and stored therein.

【0013】また、CPU1から画像出力要求の指令が
出力されると、記憶装置3に蓄えられたカラー画像デー
タは、CPUバス9および出力インタフェイス部7を介
して画像出力装置5へと送られ、任意のデバイスに出力
される。これらの制御は、全てCPU1が行なってい
る。
When the image output request command is output from the CPU 1, the color image data stored in the storage device 3 is sent to the image output device 5 via the CPU bus 9 and the output interface unit 7. , Output to any device. All of these controls are performed by the CPU 1.

【0014】次に、上記のような構成において、図2に
示すフローチャートを参照して切手検出処理を説明す
る。まず、ステップS1の郵便物カラー画像入力処理で
は、カラー画像入力装置4によって切手が貼付された郵
便物P上のカラー画像を入力し、デジタル化して記憶装
置3に蓄える。記憶装置3に蓄えられた郵便物Pのカラ
ー画像データの一部の例を図3に示す。図3では、カラ
ー画像のうち赤成分データのみを示しており、緑成分デ
ータ、青成分データも同様な分布となる。
Next, the stamp detecting process in the above-mentioned structure will be described with reference to the flow chart shown in FIG. First, in the postal matter color image input process of step S1, the color image on the postal matter P to which the stamp is attached is input by the color image input device 4, digitized, and stored in the storage device 3. FIG. 3 shows an example of a part of the color image data of the postal matter P stored in the storage device 3. FIG. 3 shows only the red component data in the color image, and the green component data and the blue component data have the same distribution.

【0015】次に、ステップS2の郵便物切出し処理で
は、入力した郵便物Pのカラー画像から背景部分を除去
することで、郵便物Pの切出しを行なう。たとえば、図
3のカラー画像データにおいて、背景が黒色だとする
と、黒色のデータが連なって分布している部分(斜線部
分)15を除去する。
Next, in the postal matter cutting process of step S2, the postal matter P is cut out by removing the background portion from the input color image of the postal matter P. For example, in the color image data of FIG. 3, if the background is black, the portion (hatched portion) 15 in which black data is continuously distributed is removed.

【0016】具体的には、たとえば、黒色のデータレベ
ル範囲を「0〜30」とすると、このレベル範囲のデー
タが縦あるいは横に、たとえば10画素以上連なってい
る領域を除去する。図3から背景部分を除去した郵便物
切出し画像データの例を図4に示す。
Specifically, for example, if the black data level range is set to "0 to 30", a region in which the data of this level range is continuous vertically or horizontally, for example, 10 pixels or more is removed. FIG. 4 shows an example of the cut-out image data of postal matter in which the background portion is removed from FIG.

【0017】次に、ステップS3の色変化点検出処理に
ついて説明する。この色変化点検出処理は、たとえば、
図5に示すフローチャートにしたがって処理が行なわれ
る。色変化点とは、たとえば、赤色から青色に変化する
点というように、ある色からある色へ変化する点のこと
である。図6(a)に示すような画像から色変化点を検
出すると、図6(b)に示すように画像のエッジが抽出
される。
Next, the color change point detection processing in step S3 will be described. This color change point detection processing, for example,
The process is performed according to the flowchart shown in FIG. The color change point is a point changing from a certain color to a certain color, for example, a point changing from red to blue. When a color change point is detected from the image shown in FIG. 6A, the edge of the image is extracted as shown in FIG. 6B.

【0018】このような色変化点の検出には様々な手法
が考えられるが、本実施例では、濃淡画像の一次微分に
よるエッジ抽出をカラー画像に拡張した、一次色微分に
よる色変化点の検出について述べる。ここで述べる一次
色微分とは、次のような処理のことである。すなわち、
まず、ステップS11において、カラー画像の赤成分、
緑成分、青成分の各面に対して一次微分を行なう。次
に、ステップS12において、各画素において各色成分
面の中で一次微分値の絶対値の最大値を、その画素の一
次色微分値とする。
Various methods are conceivable for detecting such a color change point, but in the present embodiment, the detection of the color change point by the primary color differential is performed by expanding the edge extraction by the primary differential of the grayscale image into the color image. I will describe. The primary color differentiation described here is the following processing. That is,
First, in step S11, the red component of the color image,
First-order differentiation is performed on each surface of the green component and the blue component. Next, in step S12, the maximum absolute value of the primary differential values in each color component surface of each pixel is set as the primary color differential value of that pixel.

【0019】具体的に説明すると、たとえば、図7に示
すような3×3の一次微分マトリクスを考える。図7
(a)は横方向の一次微分のマトリクス701、図7
(b)は縦方向の一次微分のマトリクス702である。
画像の一次微分は、たとえば、図8に示すフローチャー
トのような手順となる。
More specifically, for example, consider a 3 × 3 first-order differential matrix as shown in FIG. Figure 7
(A) is a matrix 701 of the first-order differential in the horizontal direction, FIG.
(B) is a matrix 702 of the first-order differential in the vertical direction.
The first-order differentiation of the image is performed by the procedure shown in the flowchart of FIG. 8, for example.

【0020】図8において、図4の郵便物切出し画像デ
ータ(赤成分)の一次微分を行なう場合を例にとり説明
する。一次微分を、郵便物切出し画像の座標位置(5,
4)の画素から行なう。ここで言う座標位置とは、メモ
リ上に蓄えられている画像イメージの座標を表してい
る。まず、ステップS21において、(5,4)の画素
を中心とした3×3領域に横方向微分マトリクス701
を掛け、全ての演算結果を加算することにより、その画
素の横方向一次微分値とする。
In FIG. 8, description will be made by taking as an example the case where the first-order differentiation of the cut-out image data (red component) of the postal matter shown in FIG. 4 is performed. The first derivative is the coordinate position (5,
It starts from the pixel of 4). The coordinate position referred to here indicates the coordinates of the image stored in the memory. First, in step S21, a lateral differential matrix 701 is formed in a 3 × 3 area centered on the pixel of (5, 4).
Is multiplied and all the calculation results are added to obtain the horizontal first-order differential value of the pixel.

【0021】次に、ステップS22において、同じ画素
を中心とした3×3領域に縦方向マトリクス702を掛
け、全ての演算結果を加算することにより、縦方向一次
微分値とする。次に、ステップS23において、横方向
一次微分値あるいは縦方向一次微分値のうち絶対値の大
きい値を、その画素の一次微分値とする。
Next, in step S22, a vertical matrix 702 is applied to a 3 × 3 area centered on the same pixel, and all calculation results are added to obtain a vertical primary differential value. Next, in step S23, a value having a larger absolute value out of the horizontal primary differential value or the vertical primary differential value is set as the primary differential value of the pixel.

【0022】次に、ステップS24において、全ての画
素、この例の場合は座標位置(15,19)まで上記の
処理が終了したか否かを判別し、終了していれば、この
一次微分処理を終了する。終了していなければ、ステッ
プS25において次の画素へ進み、ステップS21の処
理から繰り返す。
Next, in step S24, it is judged whether or not the above processing is completed up to all pixels, in this example, the coordinate position (15, 19), and if so, this primary differentiation processing is carried out. To finish. If not completed, the process proceeds to the next pixel in step S25, and the process from step S21 is repeated.

【0023】なお、注意すべき点は、座標位置(4,
3)、(4,4)などの画像の端の画素は一次微分がで
きず、一次微分値は存在しないことである。座標位置
(5,4)の画素の赤成分データの一次微分値の算出結
果を図9に示す。郵便物切出し画像から目的画素の赤成
分データ901を取出し、横方向微分マトリクス701
の各成分を、それぞれの対応する画素に乗算し、全ての
演算結果を加算して横方向一次微分値903とする。
The point to be noted is that the coordinate position (4,
3), (4, 4) and other pixels at the edges of the image cannot be subjected to the first-order differentiation, and there is no first-order differentiation value. FIG. 9 shows the calculation result of the primary differential value of the red component data of the pixel at the coordinate position (5, 4). The red component data 901 of the target pixel is extracted from the cut-out image of the postal matter, and the lateral direction differential matrix 701 is obtained.
The respective corresponding pixels are multiplied by respective corresponding pixels, and all the calculation results are added to obtain a horizontal first-order differential value 903.

【0024】縦方向も同様に、郵便物切出し画像から目
的画素の赤成分データ901を取出し、縦方向微分マト
リクス702の各成分を、それぞれの対応する画素に乗
算し、全ての演算結果を加算して縦方向一次微分値90
5とする。最後に、横方向一次微分値903および縦方
向一次微分値905の絶対値の大きい方を、座標位置
(5,4)の画素における赤成分の一次色微分値906
とする。
Similarly, in the vertical direction, the red component data 901 of the target pixel is extracted from the cut-out image of the postal matter, each component of the vertical differential matrix 702 is multiplied by each corresponding pixel, and all calculation results are added. Vertical direction first derivative value 90
Set to 5. Finally, the larger of the absolute values of the horizontal primary differential value 903 and the vertical primary differential value 905 is the primary color differential value 906 of the red component in the pixel at the coordinate position (5, 4).
And

【0025】緑成分、青成分についても同様に行ない、
最終的に、この赤成分、緑成分、青成分の一次色微分値
の中で絶対値の最大の値を、この画素の一次色微分値と
する。図10には、一次微分の演算式を示した。
The same applies to the green component and the blue component,
Finally, the maximum absolute value among the primary color differential values of the red, green and blue components is set as the primary color differential value of this pixel. FIG. 10 shows an arithmetic expression of the first derivative.

【0026】なお、各色成分の一次微分値の最大の値で
はなく、各色成分の二乗和をその画素の一次色微分値と
してもよい。また、ここでは赤成分、緑成分、青成分の
一次微分を行なったが、カラー画像のRGB成分をHV
C値などに変換し、たとえばH、つまり色相についての
一次微分を行なって、その画素の一次色微分値としても
よい。
The square sum of each color component may be used as the primary color differential value of the pixel, instead of the maximum value of the primary differential value of each color component. Also, here, the first-order differentiation of the red component, the green component, and the blue component was performed.
It may be converted into a C value or the like, and first-order differentiation with respect to H, that is, the hue may be performed to obtain the first-order color differential value of the pixel.

【0027】以上の処理により、カラー画像の一次色微
分画像が得られる。続いて、ステップS13において、
この一次色微分画像の2値化処理を行なう。2値化処理
には、各種手法が提案されているが、本実施例では2値
化のしきい値を固定とした。たとえば、一次微分マトリ
クスを図7のような3×3の値とした場合、しきい値を
「130」とした。図4の郵便物切出し画像を2値化し
た郵便物2値化画像の例を図11に示す。
By the above processing, the primary color differential image of the color image is obtained. Then, in step S13,
Binarization processing of this primary color differential image is performed. Although various methods have been proposed for the binarization process, the threshold value for binarization is fixed in this embodiment. For example, when the first-order differential matrix has 3 × 3 values as shown in FIG. 7, the threshold value is “130”. FIG. 11 shows an example of a binarized image of postal matter obtained by binarizing the cut-out image of postal matter of FIG.

【0028】次に、ステップS4の1枚目切手切出し処
理について説明する。この1枚目切手切出し処理は、た
とえば、図12に示すフローチャートにしたがって処理
が行なわれる。まず、ステップS31において、斜め方
向の検索を行なう。すなわち、先ほど求められた郵便物
2値化画像を、図13(a)に矢印で示すように、斜め
45°方向に向かって検索してゆく。この場合、検索の
始点1201は、郵便物において切手の張られる位置に
近い左上、図11では座標(4,3)の画素とした。
Next, the processing for cutting out the first stamp in step S4 will be described. The processing for cutting out the first stamp is performed, for example, according to the flowchart shown in FIG. First, in step S31, a diagonal search is performed. That is, the binarized image of the postal matter obtained earlier is searched in the direction of an oblique 45 °, as indicated by the arrow in FIG. In this case, the starting point 1201 of the search is the pixel at the upper left near the stamped position in the postal matter, that is, the pixel at coordinates (4, 3) in FIG.

【0029】さて、ステップS32において、‘1’の
画素が検出されたなら、ステップS33に進み、図13
(b)に示すように、その画素位置を1枚目の切手12
02の始点1203とする。一般に、普通切手の大きさ
は一定であるから、カラー画像入力装置4の光学系の倍
率と読取り密度から、その画像における切手の大きさを
あらかじめ求めておき、ステップS34において、1枚
目の切手1202の始点1203からその大きさの領域
を切り出す。
If a "1" pixel is detected in step S32, the process proceeds to step S33, as shown in FIG.
As shown in (b), the pixel position is set to the first stamp 12
The start point 1203 of 02 is set. Generally, since the size of a stamp is constant, the size of the stamp in the image is obtained in advance from the magnification and reading density of the optical system of the color image input device 4, and the first stamp is processed in step S34. A region of that size is cut out from the starting point 1203 of 1202.

【0030】この処理を、図11の郵便物2値化画像で
具体的に説明すると、まず、検索を画素位置(4,3)
から開始する。斜め方向の検索では、画素位置(5,
3)、(4,4)、(6,3)、(5,4)、(4,
5)、(7,3)、…の順に検索してゆくことになる。
This processing will be described in detail with reference to the binary image of the postal matter shown in FIG. 11. First, the search is performed at the pixel position (4, 3).
Start with. In the diagonal search, the pixel position (5,
3), (4,4), (6,3), (5,4), (4
5), (7, 3), ... will be searched in this order.

【0031】この検索により、最初に‘1’の画素とし
て画素位置(5,7)が見つかる。この位置を1枚目の
切手の始点とする。この画像では、切手の大きさは横3
画素、縦4画素ということがあらかじめわかっており、
画素位置(5,7)から、この大きさの領域を切り出
し、1枚目の切手とするものである。
By this search, the pixel position (5, 7) is first found as the pixel of "1". This position is the starting point of the first stamp. In this image, the size of the stamp is 3 horizontal
It is known in advance that the pixel is 4 pixels long,
A region of this size is cut out from the pixel position (5, 7) and is used as the first stamp.

【0032】また、ステップS4の1枚目切手検出部1
1による1枚目切手切出し処理として、たとえば、図1
4に示すフローチャートのような処理も考えられる。ス
テップS41の斜め方向検索、ステップS42の‘1’
画素検出、ステップS43の1枚目の切手の始点とする
処理までは、図12におけるステップS31〜S33ま
での処理と同様である。
Further, the first stamp detecting section 1 in step S4
As the first stamp stamping process according to No. 1, for example, as shown in FIG.
A process like the flowchart shown in FIG. Diagonal direction search in step S41, '1' in step S42
The process up to the pixel detection and the process of setting the start point of the first stamp in step S43 is the same as the process of steps S31 to S33 in FIG.

【0033】ステップS43で1枚目の切手の始点が求
められたら、ステップS44に進み、その始点から所定
距離離れた位置を1枚目の切手の終点検索の開始位置と
する。この所定距離は、カラー画像入力装置4の光学系
の倍率と読取り密度から求まる、その画像における切手
の大きさにマージンを持った量である。図15(a)
に、その終点検索の開始位置のイメージを示す。切手1
501の始点1502が求められたら、その始点150
2から横および縦方向に所定距離1503を離れた点1
504を、1枚目の切手1501の終点検索開始位置と
するものである。
When the starting point of the first stamp is obtained in step S43, the process proceeds to step S44, and a position separated from the starting point by a predetermined distance is set as the starting position of the end point search of the first stamp. This predetermined distance is an amount that is obtained from the magnification and reading density of the optical system of the color image input device 4 and has a margin for the size of the stamp in the image. FIG. 15 (a)
Shows an image of the start position of the end point search. Stamp 1
When the starting point 1502 of 501 is calculated, the starting point 150
Point 1 separated from 2 by a predetermined distance 1503 in the horizontal and vertical directions
504 is set as the end point search start position of the first stamp 1501.

【0034】次に、ステップS45において、求めた終
点検索開始位置1504から、始点検索時と同様に斜め
逆方向に検索を行なう。この検索は、図15(b)に矢
印で示すように、始点検索時の方向とは逆方向に行な
う。
Next, in step S45, a search is performed from the obtained end point search start position 1504 in the diagonally opposite direction, as in the case of the start point search. This search is performed in the direction opposite to the direction at the time of searching the start point, as indicated by the arrow in FIG.

【0035】さて、ステップS46において、‘1’の
画素が検出されたなら、ステップS47に進み、図15
(b)に示すように、その画素位置を1枚目の切手15
01の終点1505とする。次に、ステップS48にお
いて、1枚目の切手1501の始点1502と終点15
05のエリアを切り出す。
If a "1" pixel is detected in step S46, the process proceeds to step S47, as shown in FIG.
As shown in (b), the pixel position is set to the first stamp 15
The end point of 01 is 1505. Next, in step S48, the start point 1502 and end point 15 of the first stamp 1501
Cut out area 05.

【0036】この処理を、図11の郵便物2値化画像で
具体的に説明する。1枚目の切手の始点は、図12の処
理の説明で求めた手法と同様であるので、ここではそれ
以降の切手の終点を検出する具体例を示す。1枚目の切
手の始点位置は(5,7)であり、ここから所定距離、
この例では横方向に4画素、縦方向に6画素離れた点
(9,13)を、1枚目の切手の終点検索開始位置とす
る。この点(9,13)から斜め逆方向に検索を行な
う。
This processing will be specifically described with reference to the binarized image of postal matter in FIG. Since the starting point of the first stamp is the same as the method obtained in the description of the processing of FIG. 12, a specific example of detecting the end points of the subsequent stamps will be shown here. The starting point position of the first stamp is (5, 7), and a predetermined distance from here,
In this example, a point (9, 13) that is 4 pixels in the horizontal direction and 6 pixels in the vertical direction is set as the end point search start position of the first stamp. From this point (9, 13), the search is performed in the diagonally opposite direction.

【0037】検索は、画素位置(8,13)、(9,1
2)、(7,13)、(8,12)、…の順に行ない、
この検索により、最初に‘1’の画素として画素位置
(7,10)が検出される。そこで、この画素位置を1
枚目の切手の終点とする。そして、1枚目の始点(5,
7)と終点(7,10)のエリアを切り出し、1枚目の
切手とするものである。
The search is performed at pixel positions (8, 13), (9, 1).
2), (7,13), (8,12), ...
By this search, the pixel position (7, 10) is first detected as the pixel of “1”. Therefore, set this pixel position to 1
The end of the first stamp. Then, the starting point (5,
The areas of 7) and the end point (7, 10) are cut out and used as the first stamp.

【0038】また、ステップS4の1枚目切手検出部1
1による1枚目切手切出し処理として、たとえば、図1
6に示すフローチャートのような処理も考えられる。ま
ず、ステップS51において、図17(a)に示すよう
に、郵便物2値化画像から、たとえば、切手1701を
含む切手検索エリア1702の射影データを求める。す
ると、縦方向射影データ1703および横方向射影デー
タ1704は図のようになる。
The first stamp detecting section 1 in step S4
As the first stamp stamping process according to No. 1, for example, as shown in FIG.
A process like the flowchart shown in FIG. First, in step S51, as shown in FIG. 17A, projection data of a stamp search area 1702 including a stamp 1701 is obtained from the binarized image of the postal matter. Then, the vertical projection data 1703 and the horizontal projection data 1704 become as shown in the figure.

【0039】あるいは、図17(b)に示すように、縦
方向射影エリア1705と横方向射影エリア1706を
別々に定義し、それぞれ縦方向射影データ1707およ
び横方向射影データ1708を求めることも考えられ
る。また、図14により求められた1枚目の切手の始点
から、図17(a)(b)のような射影エリアを定義す
ることも考えられる。いずれにせよ、この特定領域射影
処理により、縦方向射影データと横方向射影データが得
られる。
Alternatively, as shown in FIG. 17B, it is conceivable that the vertical projection area 1705 and the horizontal projection area 1706 are separately defined, and the vertical projection data 1707 and the horizontal projection data 1708 are respectively obtained. . It is also conceivable to define a projected area as shown in FIGS. 17A and 17B from the starting point of the first stamp obtained from FIG. In any case, this specific area projection processing provides vertical projection data and horizontal projection data.

【0040】次に、この両射影データから1枚目の切手
を切り出す。まず、ステップS52において、縦および
横方向射影データをそれぞれ2値化する。次に、ステッ
プS53において、図18に示すように、縦および横方
向射影データ1801,1802の交差するエリア18
03を切り出し、それを1枚目の切手とする。
Next, the first stamp is cut out from the both projection data. First, in step S52, the vertical and horizontal projection data are binarized. Next, in step S53, as shown in FIG. 18, the area 18 where the vertical and horizontal projection data 1801 and 1802 intersect
Cut out 03 and use it as the first stamp.

【0041】この処理を、図11の郵便物2値化画像で
具体的に説明する。図11から、たとえば、切手検索エ
リアを取出すと図19に示すようになる。この画像の射
影データを求めると、図示のような縦方向射影データ1
901、横方向射影データ1902が得られる。
This processing will be specifically described with reference to the binarized image of postal matter in FIG. For example, when the stamp search area is extracted from FIG. 11, it becomes as shown in FIG. When the projection data of this image is obtained, the vertical projection data 1 as shown
901 and horizontal projection data 1902 are obtained.

【0042】次に、この射影データを、たとえばレベル
「2」で2値化する。この例では、2値化したイメージ
も、図19の射影イメージと同一である。そして、この
それぞれの2値化射影データが交差するエリア(5,
7)から(7,10)を切手エリア1903として切り
出すものである。
Next, this projection data is binarized at level "2", for example. In this example, the binarized image is also the same as the projected image in FIG. Then, the area (5, 5) where the respective binarized projection data intersect
7) to (7, 10) are cut out as a stamp area 1903.

【0043】さらに、ステップS4の1枚目切手検出部
11による1枚目切手切出し処理として、たとえば、図
20に示すフローチャートのような処理も考えられる。
まず、ステップS61において、特定領域のラベリング
を行なう。すなわち、郵便物2値化画像の、たとえば切
手検索エリア内のラベリングを行なう。たとえば、8近
傍ラベリングについて説明すると、画像の1つの画素を
検索し、その画素にラベルを付ける。その画素の8近傍
で1の画素があれば、その画素にも同じラベルを付け
る。さらに、その画素の8近傍で1の画素があれば、そ
の画素にも同じラベルを付ける、といった処理を繰り返
すことにより、1つの領域に同じラベルが付けられてゆ
く。
Further, as the first stamp cutting process by the first stamp detecting unit 11 in step S4, for example, a process shown in the flowchart of FIG. 20 can be considered.
First, in step S61, labeling of a specific area is performed. That is, the binarized image of the postal matter is labeled, for example, in the stamp search area. For example, for 8-neighbor labeling, one pixel in the image is searched and that pixel is labeled. If there is a 1 pixel in 8 neighborhoods of that pixel, that pixel is also labeled with the same label. Further, if there is a pixel of 1 in 8 neighborhoods of the pixel, the same label is added to the pixel, and the same label is attached to one area.

【0044】次に、ステップS62において、図21に
示すように、上記のようにラベリングされた領域210
1を包含する矩形2102でエリアを切り出し、1枚目
の切手とする。
Next, in step S62, as shown in FIG. 21, the area 210 labeled as described above is used.
The area is cut out with a rectangle 2102 including 1 and used as the first stamp.

【0045】この処理を、図11の郵便物2値化画像で
具体的に説明する。特定領域として、ここでは切手検索
エリアを画素位置(4,3)から(9,13)までの領
域とする。まず、この領域内のラベリングを行なう。す
ると、画素位置(5,7)から(7,10)までの領域
に同じラベルが付けられる。ラベリングされたら、続い
て同じラベルが付けられた領域を矩形で切り出す。矩形
として切り出すには、同じラベルが付けられた領域で、
縦方向および横方向から見た画素位置が最大の点と最小
の点を求め、それぞれの点から矩形の4辺を求めればよ
い。図21にしたがって、図11のラベル付けされた領
域を矩形に切り出すと、画素位置(5,7)から(7,
10)のエリアが切り出される。
This processing will be described in detail with reference to the binarized image of postal matter in FIG. As the specific area, here, the stamp search area is an area from pixel positions (4, 3) to (9, 13). First, labeling in this area is performed. Then, the same labels are given to the regions from pixel positions (5, 7) to (7, 10). Once labeled, the area with the same label is then cut out as a rectangle. To cut out as a rectangle, in the same labeled area,
It is only necessary to find the point having the maximum and the minimum pixel position as viewed in the vertical and horizontal directions, and to obtain the four sides of the rectangle from each point. When the labeled area of FIG. 11 is cut out into a rectangle according to FIG. 21, pixel positions (5, 7) to (7,
Area 10) is cut out.

【0046】次に、ステップS5の切手の傾き検出処理
について説明する。たとえば、図22(a)に示すよう
に、切手の始点2201と終点2202が求められたと
する。切手の大きさは、カラー画像入力装置4の光学系
の倍率と密度からわかっているので、切手が真っ直ぐに
貼られているとすると、始点2201が画素位置(1,
1)のとき、終点2202は、この例では画素位置
(3,4)となるはずである。
Next, the inclination detection process of the stamp in step S5 will be described. For example, suppose that the starting point 2201 and the ending point 2202 of a stamp are obtained as shown in FIG. Since the size of the stamp is known from the magnification and density of the optical system of the color image input device 4, if the stamp is stuck straight, the starting point 2201 is the pixel position (1,
In the case of 1), the end point 2202 should be the pixel position (3, 4) in this example.

【0047】ところが、実際には終点2202は画素位
置(4,3)である。したがって、この違いから、この
切手は傾いていることがわかる。傾いている方向は、終
点が横方向に大きく、縦方向に小さくずれていることか
ら、左に傾いていることがわかる。
However, the end point 2202 is actually the pixel position (4, 3). Therefore, from this difference, it can be seen that the stamp is tilted. It can be seen that the end of the inclined direction is large in the horizontal direction and small in the vertical direction, so that the end is inclined to the left.

【0048】この切手の傾き検出処理は、たとえば、図
23に示すフローチャートにしたがって処理が行なわれ
る。まず、ステップS71において、切手の終点の座標
から始点の座標を減算する。次に、ステップS72にお
いて、その減算結果を基準データ、つまり、カラー画像
入力装置4の光学系の倍率と読取り密度から求まる、そ
の画像の切手の大きさと比較する。
The inclination detection process of the stamp is performed according to the flowchart shown in FIG. 23, for example. First, in step S71, the coordinates of the starting point are subtracted from the coordinates of the ending point of the stamp. Next, in step S72, the subtraction result is compared with the reference data, that is, the size of the stamp of the image obtained from the magnification and reading density of the optical system of the color image input device 4.

【0049】この比較の結果、減算結果が基準データと
一致していれば(S73)、その切手は傾きなしで真っ
直ぐに貼られていると判定する(S74)。また、減算
結果が基準データに対して横方向に大きく、縦方向に小
さければ(S75)、左に傾いていると判定する(S7
6)。さらに、減算結果が基準データに対して横方向に
小さく、縦方向に大きければ(S77)、右に傾いてい
ると判定する(S76)。
As a result of this comparison, if the subtraction result matches the reference data (S73), it is determined that the stamp is attached straight without inclination (S74). If the subtraction result is larger in the horizontal direction and smaller in the vertical direction than the reference data (S75), it is determined that the reference data is tilted to the left (S7).
6). Further, if the subtraction result is smaller in the horizontal direction and larger in the vertical direction with respect to the reference data (S77), it is determined that the reference data is tilted to the right (S76).

【0050】また、図22(b)に示すように、切手の
始点2201と終点2202とを結んだ直線2203の
傾きによっても切手の傾きを検出することができる。切
手の大きさから、真っ直ぐに貼られている場合の始点と
終点とを結んだ直線の傾き量はわかっているので、その
傾き量と、実際に検出した切手の始点2201と終点2
202とを結んだ直線2203の傾き量とを比較するこ
とで、切手が傾いているかどうか、どちら方向に傾いて
いるかを検出するというものである。
Further, as shown in FIG. 22B, the inclination of the stamp can be detected also by the inclination of a straight line 2203 connecting the starting point 2201 and the ending point 2202 of the stamp. From the size of the stamp, the amount of inclination of the straight line connecting the start point and the end point when the stamp is attached in a straight line is known. Therefore, the amount of inclination and the actually detected stamp start point 2201 and end point 2
By comparing the amount of inclination of a straight line 2203 connecting 202 and 202, it is detected whether or not the stamp is inclined and in which direction.

【0051】この切手の傾き検出処理は、図24に示す
フローチャートにしたがって処理が行なわれる。まず、
ステップS81において、切手の始点と終点を結んだ直
線の傾き量を計算する。次に、ステップS82におい
て、求めた傾き量を基準データ(あらかじめ設定される
基準の傾き量)と比較する。
The process of detecting the inclination of the stamp is performed according to the flowchart shown in FIG. First,
In step S81, the amount of inclination of the straight line connecting the start point and the end point of the stamp is calculated. Next, in step S82, the calculated tilt amount is compared with reference data (reference tilt amount set in advance).

【0052】この比較の結果、求めた傾き量が基準デー
タと一致していれば(S83)、その切手は傾きなしで
真っ直ぐに貼られていると判定する(S84)。また、
基準データの傾き量は負の値であるので、求めた傾き量
が基準データよりも大きければ(S85)、左に傾いて
いると判定する(S86)。さらに、求めた傾き量が基
準データよりも小さければ(S87)、右に傾いている
と判定する(S88)。
As a result of this comparison, if the calculated inclination amount matches the reference data (S83), it is determined that the stamp is attached straight without inclination (S84). Also,
Since the tilt amount of the reference data is a negative value, if the calculated tilt amount is larger than the reference data (S85), it is determined that the tilt is left (S86). Further, if the calculated tilt amount is smaller than the reference data (S87), it is determined that the tilt is right (S88).

【0053】具体的に説明すると、図25(a)に傾き
のない切手の始点と終点を結んだ直線の傾きの例を示し
た。たとえば、この傾き量−1.33を基準データとす
る。そして、図25(b)の切手の始点と終点を結んだ
直線の傾き量を計算すると、図から−0.75となる。
この値は基準データ(−1.33)よりも大きい。した
がって、図25(b)の切手は左に傾いていることがわ
かる。
More specifically, FIG. 25A shows an example of the inclination of a straight line connecting the starting point and the ending point of a stamp having no inclination. For example, the inclination amount −1.33 is used as the reference data. Then, when the inclination amount of the straight line connecting the start point and the end point of the stamp of FIG. 25 (b) is calculated, it becomes −0.75 from the figure.
This value is larger than the reference data (-1.33). Therefore, it can be seen that the stamp of FIG. 25 (b) is tilted to the left.

【0054】ところで、切手は一般的に真っ直ぐに貼ら
れているものであるから、切手が傾いているということ
は、郵便物に切手が傾いて貼られているということよ
り、郵便物自体が傾いていると考えられる。そこで、切
手の傾きを検出することにより、郵便物自体の傾きを検
出することもできる。郵便物の傾き検出処理としては、
切手の傾き検出と同様な処理で実現される。
By the way, since the stamps are generally stuck straight, the fact that the stamps are tilted means that the postal items are tilted rather than the stamps being stuck to the postal items. It is thought that Therefore, the inclination of the postal matter itself can be detected by detecting the inclination of the stamp. As the inclination detection process for mail,
It is realized by the same processing as the inclination detection of a stamp.

【0055】次に、ステップS6の切手の傾き補正処理
について説明する。この切手の傾き補正処理は、たとえ
ば、図26に示すフローチャートにしたがって処理が行
なわれる。まず、ステップS91において、たとえば、
図24に基づく処理により、切手の傾いている方向およ
び傾き量を検出する。次に、ステップS92において、
切手の始点を中心に、切手の基準データに近付くような
補正、たとえば、図25では、切手の始点を中心に時計
回りに画像を回転させる。
Next, the inclination correction process of the stamp in step S6 will be described. The inclination correction process of the stamp is performed according to the flowchart shown in FIG. 26, for example. First, in step S91, for example,
By the process based on FIG. 24, the tilt direction and the tilt amount of the stamp are detected. Next, in step S92,
The correction is performed so as to approach the standard data of the stamp around the starting point of the stamp, for example, in FIG. 25, the image is rotated clockwise around the starting point of the stamp.

【0056】具体的に説明すると、図25(a)に示し
た傾きのない切手と、図25(b)に示した傾いた切手
の傾き量は、約0.58の差がある。そこで、図25
(b)の切手の各画素位置に対して、数1のような演算
を行なう。
More specifically, there is a difference of about 0.58 between the non-tilted stamp shown in FIG. 25A and the tilted stamp shown in FIG. 25B. Therefore, FIG.
For each pixel position of the stamp shown in (b), the calculation as shown in Expression 1 is performed.

【0057】[0057]

【数1】 [Equation 1]

【0058】ここで、θには、基準データと実データの
傾きの角度の差ををラジアンで表した数値を代入する。
図25の例では、θ=−0.58×π/4=−0.45
5となり、この数値を数1に代入して、たとえば、図2
7の傾いた切手の座標位置(3,3)を補正すると
(2,3)に、座標位置(5,4)を補正すると(4,
5)に、それぞれ変換される。
Here, a value in which the difference in angle of inclination between the reference data and the actual data is expressed in radians is substituted for θ.
In the example of FIG. 25, θ = −0.58 × π / 4 = −0.45
5, and substituting this numerical value into the mathematical expression 1, for example, as shown in FIG.
When the coordinate position (3,3) of the inclined stamp of 7 is corrected to (2,3), the coordinate position (5,4) is corrected to (4,4).
5), respectively.

【0059】次に、ステップS7の切手の複数枚切出し
処理について説明する。この切手の複数枚切出し処理
は、たとえば、図28に示すフローチャートにしたがっ
て処理が行なわれる。まず、ステップS101におい
て、N=2として、1枚目の切手の始点から所定距離離
れた位置を、2枚目の切手検索の始点とする。ここで言
う所定距離とは、カラー画像入力装置4の光学系の倍率
と読取り密度から求まる、切手の大きさに多少のマージ
ンを持った量のことである。
Next, the process of cutting out a plurality of stamps in step S7 will be described. The processing for cutting out a plurality of stamps is performed according to the flowchart shown in FIG. 28, for example. First, in step S101, N = 2 is set, and a position separated by a predetermined distance from the starting point of the first stamp is set as the starting point of the second stamp search. The predetermined distance referred to here is an amount obtained from the magnification and reading density of the optical system of the color image input device 4 with some margin in the size of the stamp.

【0060】次に、ステップS102において、斜め方
向検索を行なう。すなわち、2枚目の切手検索の始点か
ら、図12(a)と同様に郵便物2値化画像を斜め方向
に検索する。次に、ステップS103において、‘1’
の画素が見付かったら、ステップS104に進み、その
画素位置を2枚目の切手の始点とする。そして、ステッ
プS105において、その始点から、カラー画像入力装
置4の光学系の倍率と読取り密度から求まる、その画像
における切手の大きさの領域を切り出す。
Next, in step S102, a diagonal search is performed. That is, the binarized image of the postal matter is searched diagonally from the starting point of the second stamp search, as in FIG. Next, in step S103, "1"
If the pixel is found, the process proceeds to step S104, and the pixel position is set as the starting point of the second stamp. Then, in step S105, a stamp-sized region in the image, which is obtained from the magnification and reading density of the optical system of the color image input device 4, is cut out from the starting point.

【0061】以下、N=3,4,5,…と順次切手を切
り出し、切手の検索範囲としてあらかじめ与えられてい
た領域内を全て検索し終えたら(S106)、処理を終
了する。
After that, stamps are sequentially cut out in the order of N = 3, 4, 5, ... And when the search has been completed for all the areas previously given as the stamp search range (S106), the process is terminated.

【0062】この処理を、図11の郵便物2値化画像で
具体的に説明すると、まず、1枚目の切手の始点は、先
ほど画素位置(5,7)と求まっており、そこから一定
量の、この例では横0画素、縦7画素離れた(5,1
4)位置を、2枚目の切手検索の始点とする。そして、
斜め方向に画素位置(6,14)、(5,15)、
(7,14)、(6,15)、(5,16)、…と順次
検索してゆき、最初に‘1’の画素が(6,16)の位
置で見つかる。
This processing will be specifically described with reference to the binarized image of the postal matter shown in FIG. 11. First, the starting point of the first stamp is found to be the pixel position (5, 7), and it is fixed from there. In this example, the distance is 0 pixels horizontally and 7 pixels vertically (5, 1
4) Let the position be the starting point of the second stamp search. And
Pixel positions (6,14), (5,15) in the diagonal direction,
(7, 14), (6, 15), (5, 16), ... Are sequentially searched, and the pixel of '1' is first found at the position of (6, 16).

【0063】そこで、この位置を2枚目の切手の始点と
し、一定領域、横3画素、縦4画素の領域を切り出す。
この例では、切手の検索範囲を画素位置(4,3)から
(9,20)としており、3枚目の切手はないとして処
理を終了する。
Therefore, using this position as the starting point of the second stamp, a fixed area, an area of 3 pixels in the horizontal direction, and an area of 4 pixels in the vertical direction are cut out.
In this example, the postage stamp search range is from pixel positions (4, 3) to (9, 20), and the process ends because there is no third postage stamp.

【0064】また、ステップS7の切手の複数枚切出し
処理として、たとえば、図29に示すフローチャートの
ような処理も考えられる。この処理は、図14における
1枚目の切手切出し処理を複数枚検出に応用したもので
あり、図30に示すように、1枚目の切手2901の終
点2903から所定距離離れた2枚目の切手2902の
検索始点2904を求め、図14と同様に検索を行な
う。
Further, as the processing of cutting out a plurality of stamps in step S7, for example, a processing as shown in the flowchart of FIG. 29 can be considered. This processing is an application of the stamp cutting processing of the first sheet in FIG. 14 to the detection of a plurality of sheets, and as shown in FIG. 30, the second sheet separated by a predetermined distance from the end point 2903 of the first stamp 2901. The search starting point 2904 of the stamp 2902 is obtained, and the search is performed in the same manner as in FIG.

【0065】すなわち、まず、ステップS111におい
て、N=2として、1枚目の切手の始点から所定距離離
れた位置を、2枚目の切手検索の始点とする。次に、ス
テップS112において、斜め方向検索を行なう。すな
わち、2枚目の切手検索の始点から、図13(a)と同
様に郵便物2値化画像を斜め方向に検索する。
That is, first, in step S111, N = 2 is set, and a position separated from the starting point of the first stamp by a predetermined distance is set as the starting point of the second stamp search. Next, in step S112, a diagonal search is performed. That is, the binarized image of the postal matter is searched diagonally from the starting point of the second stamp retrieval, as in FIG.

【0066】次に、ステップS113において、‘1’
の画素が検出されたなら、ステップS114に進み、そ
の画素位置を2枚目の切手の始点とする。そして、ステ
ップS115において、その始点から所定距離離れた位
置を2枚目の切手の終点検索の開始位置とする。次に、
ステップS116において、先に求めた終点検索開始位
置から、始点検索時と同様に斜め逆方向に検索を行な
う。この検索は、始点検索時の方向とは逆方向に行な
う。
Next, in step S113, "1" is set.
If the pixel is detected, the process proceeds to step S114, and the pixel position is set as the starting point of the second stamp. Then, in step S115, the position distant from the starting point by a predetermined distance is set as the starting position of the end point search of the second stamp. next,
In step S116, the search is performed in the diagonally opposite direction from the previously obtained end point search start position, as in the start point search. This search is performed in the opposite direction to the direction used when searching for the starting point.

【0067】さて、ステップS117において、‘1’
の画素が検出されたなら、ステップS118に進み、そ
の画素位置を2枚目の切手の終点とする。次に、ステッ
プS119において、2枚目の切手の始点と終点のエリ
アを切り出す。以下、N=3,4,5,…と順次切手を
切り出し、切手の検索範囲としてあらかじめ与えられて
いた領域内を全て検索し終えたら(S120)、処理を
終了する。
Now, in step S117, "1" is set.
If the pixel is detected, the process proceeds to step S118, and the pixel position is set as the end point of the second stamp. Next, in step S119, the areas of the start point and the end point of the second stamp are cut out. After that, stamps are sequentially cut out in the order of N = 3, 4, 5, ... And when the search has been completed for all the areas previously given as the stamp search range (S120), the processing is terminated.

【0068】この処理を、図11の郵便物2値化画像で
具体的に説明すると、1枚目の終点が画素位置(7,1
0)と求まり、2枚目の切手を、この画素位置(7,1
0)から一定量、この例では横方向に−3画素、縦方向
に3画素進んだ画素位置(4,13)の画素から検索す
る。
This processing will be specifically described with reference to the binarized image of the postal matter in FIG. 11. The end point of the first sheet is the pixel position (7, 1).
0), the second stamp is displayed at this pixel position (7, 1
The pixel at the pixel position (4, 13), which is advanced by a fixed amount from 0) to -3 pixels in the horizontal direction and 3 pixels in the vertical direction in this example, is searched.

【0069】図14と同様に検索を進めると、画素位置
(6,16)で2枚目の切手の始点が見つかり、画素位
置(6,16)から一定量、この例の場合は横方向に3
画素、縦方向に4画素進んだ点を、2枚目の終点検索の
始点として、2枚目の終点を検索する。検索を進める
と、2枚目の切手の終点として画素位置(8,18)が
見つかる。
When the search is advanced in the same manner as in FIG. 14, the starting point of the second stamp is found at the pixel position (6, 16), and a fixed amount is found from the pixel position (6, 16), in the horizontal direction in this example. Three
The point advanced by 4 pixels in the vertical direction is used as the starting point for searching the ending point of the second sheet, and the ending point of the second sheet is searched. As the search proceeds, the pixel position (8, 18) is found as the end point of the second stamp.

【0070】そこで、画素位置(6,16)から(8,
18)の領域を切り出す。この例では、切手の検索範囲
を画素位置(4,3)から(9,20)としており、3
枚目の切手はないとして処理を終了する。
Therefore, from the pixel position (6, 16) to (8,
The area of 18) is cut out. In this example, the stamp search range is from pixel positions (4,3) to (9,20), and 3
The process ends because there is no stamp of the first sheet.

【0071】また、ステップS7の切手の複数枚切出し
処理として、たとえば、図31に示すフローチャートの
ような処理も考えられる。この処理の流れは、ステップ
S121〜S122までは図16のステップS51〜S
52と同様であるが、それ以降の射影データから複数の
エリアを切り出す点が異なる。
Further, as the process of cutting out a plurality of stamps in step S7, for example, a process as shown in the flowchart of FIG. 31 can be considered. The flow of this processing is as follows: Steps S121 to S122: Steps S51 to S of FIG.
Similar to 52, except that a plurality of areas are cut out from the projection data after that.

【0072】この処理を、図11の郵便物2値化画像で
具体的に説明する。図11から、たとえば複数枚切手検
索エリアを取出すと、図32に示すようになる。この画
像の射影データを求めると、図32に示すような縦方向
射影データ3101、横方向射影3102となる。次
に、この射影データを、たとえばレベル「2」で2値化
する。この例では、縦方向射影2値化イメージが310
5のようになる。
This processing will be specifically described with reference to the binarized image of postal matter in FIG. For example, when a plurality of stamps search area is taken out from FIG. 11, it becomes as shown in FIG. When the projection data of this image is obtained, it becomes vertical projection data 3101 and horizontal projection 3102 as shown in FIG. Next, this projection data is binarized, for example, at level "2". In this example, the vertical projection binary image is 310
It becomes like 5.

【0073】そして、ステップS123の横方向射影領
域切出し処理により、図32の画像イメージが、横方向
射影データを基に図33(a)(b)に示すように2つ
の領域に分割される。次に、ステップS124の縦方向
射影領域切出し処理で、このそれぞれの領域ごとに縦方
向の射影データ3201,3202を求め、その射影デ
ータ3201,3202を2値化し、交差するエリア
(5,7)から(7,10)および(6,16)から
(8,18)の領域3103,3104を切手領域とし
て切り出す。
Then, by the horizontal projection area cutout processing in step S123, the image image of FIG. 32 is divided into two areas as shown in FIGS. 33 (a) and 33 (b) based on the horizontal projection data. Next, in the vertical projection area cutout process of step S124, vertical projection data 3201, 3202 is obtained for each of these areas, the projection data 3201, 3202 is binarized, and the intersecting areas (5, 7) From (7, 10) to (6, 16) to (8, 18) regions 3103 and 3104 are cut out as stamp regions.

【0074】なお、この例では、最初に縦方向射影デー
タによる分割が行なえないため、横方向射影データによ
る分割を最初に行なったが、縦方向射影データによる分
割を最初に行なってもよい。
In this example, since the division by the vertical projection data cannot be performed first, the division by the horizontal projection data is performed first, but the division by the vertical projection data may be performed first.

【0075】さらに、ステップS7の切手の複数枚切出
し処理として、たとえば、図34に示すフローチャート
のような処理も考えられる。この処理の流れは、ステッ
プS131は図20のステップS61と同様であるが、
ステップS132でのラベリングエリアから複数の矩形
領域を切り出す点が異なる。
Further, as the process of cutting out a plurality of stamps in step S7, for example, a process as shown in the flowchart of FIG. 34 can be considered. The flow of this process is the same in step S131 as in step S61 of FIG.
The difference is that a plurality of rectangular areas are cut out from the labeling area in step S132.

【0076】この処理を、図11の郵便物2値化画像で
具体的に説明する。特定領域として、ここでは複数枚切
手検索エリアを画素位置(4,3)から(9,20)ま
での領域とする。まず、この領域内の8近傍ラベリング
を行なう。図11では、画素位置(4,3)から(9,
20)までの領域においてラベリングを行なうと、画素
位置(5,7)から(7,10)までの領域に同じラベ
ルが付き、さらに,画素位置(6,16)から(8,1
8)までの領域にも別の同じラベルが付く。
This processing will be specifically described with reference to the binarized image of postal matter in FIG. As a specific area, here, the plural stamps search area is defined as an area from pixel positions (4, 3) to (9, 20). First, 8-neighbor labeling in this region is performed. In FIG. 11, pixel positions (4, 3) to (9,
When labeling is performed in the regions up to 20), the same labels are attached to the regions from pixel positions (5, 7) to (7, 10), and further, from pixel positions (6, 16) to (8, 1).
The same label is attached to the areas up to 8).

【0077】ラベリングされたら、続いて同じラベルが
付けられた領域を矩形として切り出す。図21にしたが
って、図11のラベル付けされた領域を矩形で切り出す
と、画素位置(5,7)から(7,10)のエリアおよ
びび(6,16)から(8,18)のエリアが切り出さ
れる。
After the labeling, the area with the same label is cut out as a rectangle. When the labeled area in FIG. 11 is cut out into a rectangle according to FIG. 21, the area from pixel positions (5, 7) to (7, 10) and the area from (6, 16) to (8, 18) are extracted. It is cut out.

【0078】なお、切手が複数枚貼られている場合に
は、切手検索の範囲を決めておくだけでなく、切手の枚
数をデータ入力装置8のキーボードなどにより与えても
よい。また、図35に示すように、切手が右隣、あるい
は、下方向に複数枚存在するか否かをあらかじめ検知し
てから、切手の複数枚検出を行なってもよい。図36に
その処理手順のフローチャートを示す。
When a plurality of stamps are pasted, the number of stamps may be specified by the keyboard of the data input device 8 as well as the range of stamp search is determined. Further, as shown in FIG. 35, it may be possible to detect a plurality of stamps after detecting in advance whether or not a plurality of stamps are present on the right side or in the downward direction. FIG. 36 shows a flowchart of the processing procedure.

【0079】すなわち、1枚目の切手3401が検出さ
れたら、まず、ステップS141において、その始点3
402と終点3403との間の中央の点3404を求め
る。次に、ステップS142において、その中点340
4から所定距離離れた点3405あるいは3407を求
める。次に、ステップS143において、その点を中心
に一定範囲を定め、その範囲内に郵便物2値化画像の
‘1’の画素数を求める。
That is, when the first stamp 3401 is detected, first, in step S141, the starting point 3
Find the center point 3404 between the 402 and the end point 3403. Next, in step S142, the midpoint 340
A point 3405 or 3407, which is a predetermined distance from 4, is obtained. Next, in step S143, a certain range is defined around that point, and the number of pixels of "1" of the binarized image of the postal matter is obtained within the certain range.

【0080】そして、ステップS144において、先に
求めた画素数が所定のしきい値以上であれば、その方向
に切手が存在すると判定し(S145)、その方向の切
手検索を進めることもできる。ステップS144におい
て、先に求めた画素数が所定のしきい値以上でなけれ
ば、その方向に切手が存在しないと判定し(S14
6)、処理を終了する。
Then, in step S144, if the number of pixels previously obtained is equal to or larger than a predetermined threshold value, it is determined that a stamp exists in that direction (S145), and the stamp search in that direction can be advanced. In step S144, if the number of pixels obtained previously is not greater than or equal to the predetermined threshold value, it is determined that no stamp exists in that direction (S14).
6), the process ends.

【0081】この処理を、図11の郵便物2値化画像の
例で具体的に説明する。たとえば、1枚目の切手として
画素位置(5,7)から(7,10)のエリアが検出さ
れたとする。まず、ステップS141の処理により、1
枚目の切手の中点(6,8)を求める。次に、この求め
た中点(6,8)から一定量、この例では縦方向に9画
素進んだ点を求め、その点の周り、この例では縦横にそ
れぞれ3画素のエリア内の‘1’の画素を求める。この
範囲に‘1’の画素は6画素あり、しきい値を例えば4
画素とすると、その方向、つまり縦方向に切手が存在す
るという結果が得られる。
This processing will be described in detail with reference to the example of the binarized image of postal matter shown in FIG. For example, it is assumed that the area from pixel positions (5, 7) to (7, 10) is detected as the first stamp. First, by the process of step S141, 1
Find the midpoint (6, 8) of the first stamp. Next, a point that is a fixed amount, which is 9 pixels in the vertical direction in this example, is obtained from the obtained middle point (6, 8), and the point around that point, in this example, 3 pixels in each of the vertical and horizontal directions. 'Pixel is calculated. There are 6 pixels of "1" in this range, and the threshold value is 4
If it is a pixel, the result is that a stamp exists in that direction, that is, in the vertical direction.

【0082】なお、ここでは1枚目の切手から、その右
隣、あるいは、下方向に切手があるか否かの判別につい
て説明したが、これは2枚目以上の任意の切手について
も適用できる。
Here, the determination of whether there is a stamp on the right side of the first stamp or in the downward direction has been described, but this can be applied to any stamp of the second stamp or more. .

【0083】最後に、ステップS8において、上記した
ようにして切り出された切手領域の位置情報を出力し
て、全ての切手検出処理を終了する。この出力された切
手領域の位置情報を基に、たとえば、複合類似度法によ
り切手画像のパターンマッチング処理を行ない、切手の
種類を判別することができる。また、切手領域の位置情
報から、切手を押印するための位置を求めることもでき
る。
Finally, in step S8, the position information of the stamp area cut out as described above is output, and all stamp detection processing is completed. Based on the output position information of the postage stamp area, for example, pattern matching processing of the postage stamp image can be performed by the composite similarity method to determine the type of postage stamp. Further, the position for stamping a stamp can be obtained from the position information of the stamp area.

【0084】以上説明したように上記実施例によれば、
郵便物上の切手切り出しに2次元画像を用いているた
め、切手の2次元的なエリア情報が得られ、切手の範囲
が明確になる。
As described above, according to the above embodiment,
Since the two-dimensional image is used for cutting out the stamp on the mail, the two-dimensional area information of the stamp can be obtained, and the range of the stamp becomes clear.

【0085】また、郵便物上のカラー画像の色変化点を
検出して切手の位置を求めるため、普通切手のようなパ
ターンが特定されている切手だけでなく、記念切手や特
殊切手のように様々な色パターンの切手も高精度に切り
出すことができる。
Further, since the position of the stamp is obtained by detecting the color change point of the color image on the postal matter, not only a stamp with a specified pattern such as a normal stamp but also a memorial stamp or a special stamp. Stamps of various color patterns can be cut out with high precision.

【0086】また、切手の始点だけでなく終点も検出す
ることにより、カラー画像入力装置の光学系の倍率変動
の影響を受けることなく、また、切手の大きさの異なる
記念切手や特殊切手も高精度に切り出すことができる。
Further, by detecting not only the start point but also the end point of the stamp, it is not affected by the magnification change of the optical system of the color image input apparatus, and commemorative stamps and special stamps having different stamp sizes are high. It can be cut out with accuracy.

【0087】さらに、切手の始点だけでなく終点も検出
することにより、切手の傾き、さらには郵便物の傾きを
検出することができ、傾き補正が可能である。また、切
手を複数枚切り出すことにより、切手の存在する範囲が
明確になる。
Further, by detecting not only the starting point but also the ending point of the stamp, the inclination of the stamp and further the inclination of the postal matter can be detected, and the inclination can be corrected. Also, by cutting out a plurality of stamps, the range in which the stamps are present becomes clear.

【0088】なお、前記実施例では、切手の始点を検出
するための検索として、斜め方向に検索していったが、
この検索の方向は逆方向であっても可能である。また、
斜めの方向の角度は45°に限らず、任意の角度であっ
てもよい。切手の終点検出のための検索も同様である。
さらに、検索の始点は、郵便物において切手の貼られる
位置に近い左上としたが、任意の位置から検索を開始し
てもよい。
In the above embodiment, the search for detecting the starting point of the stamp is performed in the diagonal direction.
The direction of this search can be reverse. Also,
The angle in the oblique direction is not limited to 45 ° and may be any angle. The search for detecting the end point of a stamp is similar.
Further, the starting point of the search is the upper left near the position where the stamp is attached in the mail, but the search may be started from any position.

【0089】[0089]

【発明の効果】以上詳述したように本発明によれば、普
通切手のようなパターンが特定されている切手だけでな
く、記念切手や特殊切手のように、様々な色パターンを
有する切手、あるいは、大きさの異なる切手も高精度に
検出すことができる切手検出装置を提供できる。
As described above in detail, according to the present invention, not only stamps whose patterns are usually specified, but also stamps having various color patterns such as commemorative stamps and special stamps, Alternatively, it is possible to provide a stamp detection device that can detect stamps of different sizes with high accuracy.

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

【図1】本発明の実施例に係る切手検出装置の構成を示
すブロック図。
FIG. 1 is a block diagram showing a configuration of a stamp detecting device according to an embodiment of the present invention.

【図2】切手検出処理を説明するフローチャート。FIG. 2 is a flowchart illustrating a stamp detection process.

【図3】郵便物上から得たカラー画像データの一例を示
す図。
FIG. 3 is a diagram showing an example of color image data obtained from a postal matter.

【図4】郵便物切出し画像データの一例を示す図。FIG. 4 is a diagram showing an example of postal image cut-out image data.

【図5】色変化点検出処理を説明するフローチャート。FIG. 5 is a flowchart illustrating color change point detection processing.

【図6】色変化点検出イメージを示す図。FIG. 6 is a diagram showing a color change point detection image.

【図7】一次微分マトリクスの一例を示す図。FIG. 7 is a diagram showing an example of a first-order differential matrix.

【図8】一次微分の手順を示すフローチャート。FIG. 8 is a flowchart showing a procedure of first-order differentiation.

【図9】一次微分イメージを示す図。FIG. 9 is a diagram showing a first-order differential image.

【図10】一次微分の演算を説明する図。FIG. 10 is a diagram illustrating the calculation of the first derivative.

【図11】郵便物2値化画像の一例を示す図。FIG. 11 is a diagram showing an example of a binarized image of postal matter.

【図12】1枚目の切手切出し処理を説明するフローチ
ャート。
FIG. 12 is a flowchart illustrating a stamp cutting process for the first sheet.

【図13】1枚目の切手の始点検出を説明する図。FIG. 13 is a diagram illustrating detection of the starting point of the first stamp.

【図14】1枚目の切手切出し処理の他の例を説明する
フローチャート。
FIG. 14 is a flowchart illustrating another example of the stamp cutting processing for the first sheet.

【図15】1枚目の切手の終点検出を説明する図。FIG. 15 is a diagram illustrating detection of the end point of the first stamp.

【図16】1枚目の切手切出し処理の更に他の例を説明
するフローチャート。
FIG. 16 is a flowchart illustrating still another example of the stamp cutting processing of the first sheet.

【図17】射影データの生成方法を説明する図。FIG. 17 is a diagram illustrating a method of generating projection data.

【図18】射影データによる切手切出し処理を説明する
図。
FIG. 18 is a diagram for explaining stamp cutting processing using projection data.

【図19】射影データによる切手切出し例を説明する
図。
FIG. 19 is a diagram for explaining an example of stamp cutting using projection data.

【図20】1枚目の切手切出し処理の更に他の例を説明
するフローチャート。
FIG. 20 is a flowchart illustrating still another example of the stamp cutting process for the first sheet.

【図21】ラベリングエリアによる矩形切出し処理を説
明する図。
FIG. 21 is a diagram illustrating a rectangular cutout process using a labeling area.

【図22】切手の傾き検出を説明する図。FIG. 22 is a diagram for explaining tilt detection of a stamp.

【図23】切手の傾き検出処理を説明するフローチャー
ト。
FIG. 23 is a flowchart illustrating a tilt detection process of a stamp.

【図24】切手の傾き検出処理の他の例を説明するフロ
ーチャート。
FIG. 24 is a flowchart illustrating another example of the inclination detection process of a stamp.

【図25】切手の傾き検出の他の例を説明する図。FIG. 25 is a diagram illustrating another example of detecting the inclination of a stamp.

【図26】切手の傾き補正処理を説明するフローチャー
ト。
FIG. 26 is a flowchart illustrating a tilt correction process of a stamp.

【図27】切手の傾き補正を説明する図。FIG. 27 is a diagram for explaining tilt correction of a stamp.

【図28】複数枚切手切出し処理を説明するフローチャ
ート。
FIG. 28 is a flowchart illustrating a process of cutting out a plurality of stamps.

【図29】複数枚切手切出し処理の他の例を説明するフ
ローチャート。
FIG. 29 is a flowchart for explaining another example of the processing for cutting out a plurality of stamps.

【図30】複数枚切手検出を説明する図。FIG. 30 is a diagram for explaining detection of a plurality of stamps.

【図31】複数枚切手切出し処理の更に他の例を説明す
るフローチャート。
FIG. 31 is a flowchart for explaining still another example of the multiple-sheet stamp cutting process.

【図32】射影データによる複数枚切手切出し例を説明
する図。
FIG. 32 is a diagram illustrating an example of cutting out a plurality of stamps based on projection data.

【図33】横方向射影データによる領域分割例を説明す
る図。
FIG. 33 is a diagram illustrating an example of region division based on horizontal projection data.

【図34】複数枚切手切出し処理の更に他の例を説明す
るフローチャート。
FIG. 34 is a flowchart for explaining still another example of the multiple-sheet stamp cutting process.

【図35】複数枚切手検出を説明する図。FIG. 35 is a diagram for explaining detection of a plurality of stamps.

【図36】複数枚切手検出処理を説明するフローチャー
ト。
FIG. 36 is a flowchart for explaining a multiple stamp detection process.

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

P……郵便物、1……CPU、2……主記憶部、3……
記憶装置、4……カラー画像入力装置、5……画像出力
装置、6……入力インタフェイス部、7……出力インタ
フェイス部、8……データ入力装置。
P: Mail, 1 ... CPU, 2 ... Main memory, 3 ...
Storage device, 4 ... Color image input device, 5 ... Image output device, 6 ... Input interface unit, 7 ... Output interface unit, 8 ... Data input device.

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G06T 1/00 G06K 9/00 H 8623−5L 8837−5L G06F 15/70 330 A (72)発明者 平沢 利勇 神奈川県川崎市幸区柳町70番地 株式会社 東芝柳町工場内 (72)発明者 宇野 輝比古 神奈川県川崎市幸区柳町70番地 株式会社 東芝柳町工場内─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI Technical display location G06T 1/00 G06K 9/00 H 8623-5L 8837-5L G06F 15/70 330 A (72) Invention Toshiyasu Hirasawa 70 Yanagicho, Saiwai-ku, Kawasaki-shi, Kanagawa Prefecture, Toshiba Yanagimachi Plant (72) Inventor Teruhiko Uno 70, Yanagicho, Sachi-ku, Kawasaki, Kanagawa Prefecture

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 切手が存在する郵便物上のカラー画像を
入力するカラー画像入力手段と、 このカラー画像入力手段で入力されるカラー画像の特定
位置から斜め方向を基準にして走査することにより、前
記郵便物上の色変化点を検出する走査手段と、 この走査手段によって検出される色変化点に基づいて、
前記カラー画像入力手段で入力された郵便物上の切手の
存在する領域を特定する領域特定手段と、 を具備したことを特徴とする切手検出装置。
1. A color image input means for inputting a color image on a postal matter having a stamp, and scanning from a specific position of the color image input by the color image input means with reference to an oblique direction, Scanning means for detecting the color change point on the mail, and based on the color change point detected by the scanning means,
A stamp detecting device comprising: a region specifying unit that specifies a region where a stamp on the mail input by the color image input unit exists.
【請求項2】 前記走査手段は、前記特定位置の座標
(X1 ,Y1 )を基準にして、X座標の増加/減少、Y
座標の増加/減少を順次行なうことにより、前記特定位
置から斜め方向を基準にした走査を行なう手段を有して
いることを特徴とする請求項1記載の切手検出装置。
2. The scanning means increases / decreases the X coordinate and decreases the Y coordinate with reference to the coordinates (X1, Y1) of the specific position.
2. The stamp detecting device according to claim 1, further comprising a unit for performing scanning based on an oblique direction from the specific position by sequentially increasing / decreasing the coordinates.
【請求項3】 前記領域特定手段は、前記走査手段によ
って検出される色変化点を射影した射影データを生成す
る射影データ生成手段と、この射影データ生成手段で生
成された射影データから郵便物上の切手の存在する領域
を切出す切出手段とを具備したことを特徴とする請求項
1記載の切手検出装置。
3. The area specifying means generates projection data for projecting color change points detected by the scanning means, and projection data generation means for generating the projection data on the postal matter from the projection data generated by the projection data generation means. The stamp detecting device according to claim 1, further comprising: a cutting-out unit that cuts out an area where the stamp exists.
【請求項4】 前記領域特定手段は、前記走査手段によ
って検出される色変化点をラベリングするラベリング手
段と、このラベリング手段でラベリングされた領域を矩
形として切出すことにより、郵便物上の切手の存在する
領域を切出す切出手段とを具備したことを特徴とする請
求項1記載の切手検出装置。
4. The area specifying means labels the color change points detected by the scanning means, and cuts out the area labeled by the labeling means as a rectangle, thereby stamping on a postal matter. The stamp detecting device according to claim 1, further comprising a cutting unit that cuts out an existing region.
【請求項5】 切手が存在する郵便物上のカラー画像を
入力するカラー画像入力手段と、 このカラー画像入力手段で入力されるカラー画像の特定
位置から斜め方向を基準にして走査することにより、前
記郵便物上の色変化点を検出する第1の走査手段と、 この第1の走査手段によって検出される第1の色変化点
から所定距離離間した位置から、前記第1の斜め方向と
は反対の方向である第2の斜め方向を基準にして走査し
て、前記カラー画像入力手段で入力される郵便物のカラ
ー画像から郵便物上の第2の色変化点を検出する第2の
走査手段と、 前記第1の走査手段で検出された第1の色変化点と前記
第2の走査手段で検出された第2の色変化点とに基づい
て、前記カラー画像入力手段で入力された郵便物上の切
手の存在する領域を特定する領域特定手段と、 を具備したことを特徴とする切手検出装置。
5. A color image input means for inputting a color image on a postal matter having stamps, and scanning from a specific position of the color image input by the color image input means with reference to an oblique direction, The first scanning means for detecting a color change point on the mail and the first diagonal direction from a position separated from the first color change point detected by the first scanning means by a predetermined distance. A second scan for detecting a second color change point on the mail from the color image of the mail input by the color image input means by scanning with the second diagonal direction being the opposite direction as a reference. Means, and the first color change point detected by the first scanning means and the second color change point detected by the second scanning means, which are input by the color image input means. Identify areas of stamps on postal items A stamp detecting device comprising: an area specifying unit;
【請求項6】 切手が存在する郵便物上のカラー画像を
入力するカラー画像入力手段と、 このカラー画像入力手段で入力されるカラー画像の特定
位置から斜め方向を基準にして走査することにより、前
記郵便物上の色変化点を検出する走査手段と、 この走査手段によって検出される色変化点に基づいて、
前記カラー画像入力手段で入力された郵便物上の切手の
存在する領域を特定する領域特定手段と、 この領域特定手段で特定された切手の存在する領域の位
置情報から、その領域の傾き情報を検出する傾き検出手
段と、 この傾き検出手段によって検出された傾き情報に基づい
て、前記領域特定手段で特定された切手の存在する領域
の位置情報を補正する傾き補正手段と、 を具備したことを特徴とする切手検出装置。
6. A color image input means for inputting a color image on a postal matter having stamps, and scanning from a specific position of the color image input by the color image input means with reference to an oblique direction, Scanning means for detecting the color change point on the mail, and based on the color change point detected by the scanning means,
From the area specifying means for specifying the area of the postage stamp on the mail input by the color image input means and the position information of the area of the postage stamp specified by the area specifying means, the inclination information of the area is obtained. A tilt detecting unit for detecting the tilt; and a tilt correcting unit for correcting the position information of the region where the stamp specified by the region specifying unit is present, based on the tilt information detected by the tilt detecting unit. Characteristic stamp detection device.
JP5176961A 1993-07-16 1993-07-16 Postage stamp detecting device Pending JPH0735509A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5176961A JPH0735509A (en) 1993-07-16 1993-07-16 Postage stamp detecting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5176961A JPH0735509A (en) 1993-07-16 1993-07-16 Postage stamp detecting device

Publications (1)

Publication Number Publication Date
JPH0735509A true JPH0735509A (en) 1995-02-07

Family

ID=16022746

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5176961A Pending JPH0735509A (en) 1993-07-16 1993-07-16 Postage stamp detecting device

Country Status (1)

Country Link
JP (1) JPH0735509A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019187967A1 (en) * 2018-03-30 2019-10-03 日本電産サンキョー株式会社 Image processing device and image processing method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019187967A1 (en) * 2018-03-30 2019-10-03 日本電産サンキョー株式会社 Image processing device and image processing method
JP2019179342A (en) * 2018-03-30 2019-10-17 日本電産サンキョー株式会社 Image processing device and image processing method

Similar Documents

Publication Publication Date Title
US6778703B1 (en) Form recognition using reference areas
CA2196875C (en) Method and apparatus for determining the fine angular orientation of bar code symbols in two-dimensional ccd images
US8254683B2 (en) Code image processing method
US5075895A (en) Method and apparatus for recognizing table area formed in binary image of document
JP2002133426A (en) Ruled line extracting device for extracting ruled line from multiple image
CN113139445A (en) Table recognition method, apparatus and computer-readable storage medium
JPH02306386A (en) Character recognizing device
CN115457559B (en) Method, device and equipment for intelligently correcting texts and license pictures
JPH0735509A (en) Postage stamp detecting device
JP2613959B2 (en) Fingerprint pattern classification device
JP3476595B2 (en) Image area division method and image binarization method
JP3022459B2 (en) Form identification registration device
JP2000187705A (en) Document reader, document reading method and storage medium
JP2964594B2 (en) Mark inspection method
JPH06139338A (en) Fingerprint pattern classifying device
JP3756660B2 (en) Image recognition method, apparatus and recording medium
JPH0573718A (en) Area attribute identifying system
JP3606218B2 (en) Document classification device, character reading device, authenticity determination device, and methods thereof
CN115205876A (en) Method, system, equipment and readable medium for identifying form
JPS61131183A (en) Picture processing system
JP2000207490A (en) Character segmenting device and character segmenting method
JPH06266887A (en) Method for preparing format and optical character reader using the method
JP2975067B2 (en) Character recognition method
JPH06274692A (en) Character extracting device
JPH08147414A (en) Character string reader