JPH0785264B2 - Imprint input device - Google Patents

Imprint input device

Info

Publication number
JPH0785264B2
JPH0785264B2 JP61106585A JP10658586A JPH0785264B2 JP H0785264 B2 JPH0785264 B2 JP H0785264B2 JP 61106585 A JP61106585 A JP 61106585A JP 10658586 A JP10658586 A JP 10658586A JP H0785264 B2 JPH0785264 B2 JP H0785264B2
Authority
JP
Japan
Prior art keywords
area
block
maximum
value
cutout
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.)
Expired - Lifetime
Application number
JP61106585A
Other languages
Japanese (ja)
Other versions
JPS62263587A (en
Inventor
節正 広垣
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP61106585A priority Critical patent/JPH0785264B2/en
Publication of JPS62263587A publication Critical patent/JPS62263587A/en
Publication of JPH0785264B2 publication Critical patent/JPH0785264B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)
  • Collating Specific Patterns (AREA)
  • Image Input (AREA)
  • Image Analysis (AREA)

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は印影入力装置に関し、特に読取パターンから印
影パターンのみを切り出すことのできる印影入力装置に
関する。
The present invention relates to a seal imprint input device, and more particularly to a seal imprint input device capable of cutting out only a seal imprint pattern from a read pattern.

(従来の技術) 従来、次のような方法が提案されている。先ず、紙面上
に押捺された印影と共に押捺枠は光学的に読取られて白
黒の2値化された読取パターンを作成する。そして、こ
の読取パターンのX及びY方向の黒点分布が抽出され
る。各方向毎に黒点分布の値が連続して0より大きい領
域の中で、領域の長さが最大、かつその領域内で黒点分
布の値が最小であることに基づいて所定値HTを求める。
よつて、前記最大の領域の中で、黒点分布の値が連続し
て所定値HTより大きい領域の中で、領域の長さが最大な
ものを切り出し領域と決定し、印影と共に押捺枠が読取
られた読取パターンから印影パターンのみを切り出す方
法であつた。
(Prior Art) Conventionally, the following methods have been proposed. First, the imprint frame is optically read together with the imprint imprinted on the paper to create a black and white binarized read pattern. Then, the black dot distributions in the X and Y directions of this read pattern are extracted. The predetermined value HT is obtained based on the fact that the length of the area is the largest and the value of the black spot distribution is the smallest within the area in which the value of the black spot distribution is continuously larger than 0 in each direction.
Therefore, in the area of the maximum area where the value of the black spot distribution is continuously larger than the predetermined value HT, the area having the largest area is determined as the cutout area, and the imprint frame is read together with the imprint. This is a method of cutting out only the imprint pattern from the read pattern.

(発明が解決しようとする問題点) しかしながら、上記構成の装置では読取パターン中の押
捺枠の押捺状態によつて印影パターンの一部を切り残し
てしまうという問題点があつた。
(Problems to be Solved by the Invention) However, the apparatus having the above configuration has a problem in that a part of the imprint pattern is left uncut depending on the imprinting state of the imprinting frame in the reading pattern.

本発明はこのような従来技術の問題点を解決するための
もので、印影パターンの切り出し性能の優れた印影入力
装置を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention is intended to solve the above-mentioned problems of the prior art, and an object of the present invention is to provide a seal imprint input device having excellent cut-out performance of a seal imprint pattern.

(問題点を解決するための手段) 本発明は前記問題点を解決するために、印影を光学的に
読取り白黒の2値化された読取パターンを得る読取部
と、この読取部が得た読取パターンを一時格納する読取
メモリと、この読取メモリに格納された読取パターンか
ら印影パターンを切り出す切り出し部を有する印影入力
装置において、読取パターンからX方向及びY方向の所
定領域の座標値毎に黒点分布をそれぞれ抽出する黒点分
布抽出部と、X方向及びY方向の黒点分布毎に、黒点分
布の値が連続して所定値より大きい座標値部分を1つの
領域とし、各領域の中で領域の長さ又は領域内の黒点分
布の値の総和の少なくとも一方が最大となる最大領域を
検出し、この最大領域における黒点分布の値の最小値に
基づいて切り出し閾値を設定し、最大領域内で黒点分布
の値が連続して前記切り出し閾値以下である領域の少な
くとも1つの領域の長さが所定の枠判定閾値より大きい
とき、最大領域内で黒点分布の値が連続して前記切り出
し閾値より大きい領域を1つのブロツクとし、そのブロ
ツクの長さ又はそのブロツク内の黒点分布の値の総和の
少なくとも一方が最大となる最大ブロツクを検出し、そ
の最大ブロツクと他のブロツクとの距離が枠判定閾値以
下であるときその最大ブロツクと他のブロツクを含めて
新たな最大ブロツクとすることを繰り返して最終的に得
られた最大ブロツクの始終点座標に基づいて切り出し領
域を決定し、一方、最大領域内で黒点分布の値が連続し
て切り出し閾値以下である領域の少なくとも1つの領域
の長さが枠判定閾値以下であるときは最大領域を切り出
し領域とし、決定した切り出し領域に基づいて切り出し
部に切り出しの指示を行なう領域決定部とを設けたもの
である。
(Means for Solving Problems) In order to solve the above problems, the present invention provides a reading unit that optically reads a seal imprint to obtain a black and white binarized reading pattern, and a reading obtained by the reading unit. In a seal imprint input device having a read memory for temporarily storing a pattern and a cutout unit for cutting out a seal imprint pattern from the read pattern stored in the read memory, a black dot distribution is obtained for each coordinate value of a predetermined area in the X direction and the Y direction from the read pattern. And a black point distribution extraction unit for extracting each of the X and Y directions, and for each black point distribution in the X direction and the Y direction, a coordinate value portion in which the values of the black point distribution are continuously larger than a predetermined value is defined as one area, and the length of the area in each area is set. The maximum area in which at least one of the sum of the values of the black spot distribution in the area is maximum is detected, and the cutout threshold is set based on the minimum value of the values of the black spot distribution in this maximum area. If the length of at least one of the regions in which the value of the black spot distribution is continuously less than or equal to the cutout threshold value is larger than the predetermined frame determination threshold value, the value of the black spot distribution is continuously set in the maximum region. The larger area is set as one block, and the maximum block with the maximum of at least one of the length of the block or the value of the black spot distribution in the block is detected, and the distance between the maximum block and other blocks is framed. When it is less than the judgment threshold value, the cutout area is determined based on the start and end point coordinates of the maximum block finally obtained by repeatedly setting the maximum block and other blocks as a new maximum block, while the maximum If the length of at least one of the areas in which the value of the black spot distribution is continuously less than or equal to the cutout threshold within the area is less than or equal to the frame determination threshold, the maximum area is cut out. And then, it is provided with a a region determination unit performing clipping instruction in cutout portion on the basis of the determined clipping area.

(作用) 以上のような構成を有する本発明によれば、読取部は紙
面上に押捺された印影を光学的に読取り、白黒の2値化
された読取パターンを作成する。読取メモリは読取部が
作成した読取パターンを一時格納する。そして、黒点分
布抽出部は読取メモリに格納されている読取パターンか
らX方向及びY方向の所定領域の座標値毎に黒点分布を
それぞれ抽出する。領域決定部は黒点分布抽出部により
抽出されたX方向及びY方向の黒点分布毎に以下の処理
を施す。先ず、黒点分布の値が連続して所定値例えば0
より大きい座標値部分を1つの領域とし、各領域の中で
領域の長さ又は領域内の黒点分布の値の総和の少なくと
も一方が最大となる領域を最大領域として検出する。そ
して、この最大領域における黒点分布の値の最小値に基
づいて切り出し閾値を設定する。また、この最大領域内
で黒点分布の値が連続して切り出し閾値以下である領域
の少なくとも1つの領域の長さが所定の枠判定閾値より
大きいとき、最大領域内で黒点分布の値が連続して切り
出し閾値より大きい領域を1つのブロツクとする。そし
て、そのブロツクの長さ又はそのブロツク内の黒点分布
の値の総和の少なくとも一方が最大となるブロツクを最
大ブロツクとして検出する。次に、その最大ブロツクと
他のブロツクとの距離が枠判定閾値以下であるとき、そ
の最大ブロツクと他のブロツクを含めて新たな最大ブロ
ツクとすることを繰り返して最終的な最大ブロツクを得
る。よつて、この最終的に得られた最大ブロツクの始終
的座標に基づいて切り出し領域を決定する。一方、最大
領域内で黒点分布の値が連続して切り出し閾値以下であ
る領域の少なくとも1つの領域の長さが枠判定閾値以下
であるときは最大領域を切り出し領域とする。このよう
に決定した切り出し領域に基づいて、読取メモリに格納
された読取パターンから印影パターンを切り出す切り出
し部に対して切り出しの指示を行なう。
(Operation) According to the present invention having the above-described configuration, the reading unit optically reads the imprint imprinted on the paper surface and creates a black and white binarized reading pattern. The reading memory temporarily stores the reading pattern created by the reading unit. Then, the black spot distribution extraction unit extracts a black spot distribution for each coordinate value of a predetermined area in the X direction and the Y direction from the read pattern stored in the read memory. The area determination unit performs the following processing for each X-direction and Y-direction black spot distribution extracted by the black spot distribution extraction unit. First, the values of the black spot distribution are continuously set to a predetermined value, for example, 0.
A larger coordinate value portion is set as one area, and an area in which at least one of the length of the area and the sum of the values of the black spot distribution in the area is maximum is detected as the maximum area. Then, the clipping threshold is set based on the minimum value of the black spot distribution values in this maximum area. Further, when the length of at least one of the areas where the value of the black spot distribution is continuously less than or equal to the cutout threshold value within the maximum area is greater than the predetermined frame determination threshold value, the value of the black dot distribution is continued within the maximum area. The area larger than the cutout threshold value is set as one block. Then, a block having at least one of the length of the block and the sum of the values of the black spot distribution within the block is detected as the maximum block. Next, when the distance between the maximum block and another block is equal to or less than the frame determination threshold value, a new maximum block including the maximum block and another block is repeatedly set to obtain a final maximum block. Therefore, the cutout area is determined based on the final coordinates of the finally obtained maximum block. On the other hand, if the length of at least one of the areas in which the value of the black dot distribution is continuously less than or equal to the cutout threshold within the maximum area is less than or equal to the frame determination threshold, the maximum area is set as the cutout area. Based on the cut-out area determined in this way, a cut-out instruction is given to the cut-out unit that cuts out the imprint pattern from the read pattern stored in the read memory.

したがつて、本発明は前記問題点を解決でき、読取パタ
ーンのうち印影以外の不要なパターンを除く印影パター
ンのみを切り出すことができる切り出し性能の優れた印
影入力装置を提供できる。
Therefore, the present invention can solve the above-mentioned problems, and can provide a seal imprint input device having excellent cutting-out performance, which can cut out only the imprint pattern excluding unnecessary patterns other than the seal imprint from the read pattern.

(実施例) 第1図は本発明の一実施例の印影入力装置の構成を示す
ブロツク図である。同図に示すように、この印影入力装
置は読取部1、読取メモリ2、黒点分布抽出部3、領域
決定部4、切り出し部5及び印影メモリ6から構成され
る。接続関係について述べると、読取部1は読取メモリ
2に接続され、読取メモリ2は黒点分布抽出部3と切り
出し部5に接続され、切り出し部5は印影メモリ6に接
続される。黒点分布抽出部3と領域決定部4は相互に接
続され、領域決定部4は切り出し部5に接続される。読
取部1は紙面上に押捺された印影を光学的に読み取り、
2値化された白黒の読取パターンを作成する。読取メモ
リ2は読取部1が読み取つた読取パターンを記憶する。
黒点分布抽出部3は読取メモリ2に格納されている読取
パターンをX及びY方向にスキヤンして黒点分布を抽出
する。この黒点分布抽出部3は、図示はしていないが、
黒点分布カウンタXHIST,YHIST及びアドレスカウンタX,Y
を有している。領域決定部4は黒点分布抽出部3が得た
黒点分布データに基き、切り出し領域の決定、又は黒点
分布抽出部3に対する再度の黒点分布抽出の指示を行
う。この領域決定部4は、図示はしていないが、ブロツ
ク数カウンタXB、連続性カウンタCNT、最大値レジスタM
AXを有している。切り出し部5は領域決定部4からの切
り出し指示及び切り出し領域に関するデータを受取り、
切り出しを行う。印影メモリ6は切り出し部5が切り出
した印影部分のみのデータを格納する。
(Embodiment) FIG. 1 is a block diagram showing a configuration of a seal imprint input device according to an embodiment of the present invention. As shown in the figure, this seal imprint input device comprises a reading unit 1, a reading memory 2, a black spot distribution extracting unit 3, an area determining unit 4, a clipping unit 5, and a seal imprint memory 6. Regarding the connection relationship, the reading unit 1 is connected to the reading memory 2, the reading memory 2 is connected to the black spot distribution extracting unit 3 and the cutout unit 5, and the cutout unit 5 is connected to the imprint memory 6. The black spot distribution extraction unit 3 and the region determination unit 4 are connected to each other, and the region determination unit 4 is connected to the cutout unit 5. The reading unit 1 optically reads the imprint imprinted on the paper surface,
A binarized black-and-white reading pattern is created. The reading memory 2 stores the reading pattern read by the reading unit 1.
The black spot distribution extraction unit 3 scans the read pattern stored in the read memory 2 in the X and Y directions to extract the black spot distribution. The black spot distribution extraction unit 3 is not shown in the figure,
Black spot distribution counter XHIST, YHIST and address counter X, Y
have. Based on the black spot distribution data obtained by the black spot distribution extracting unit 3, the region determining unit 4 determines the cutout region or instructs the black spot distribution extracting unit 3 to extract the black spot distribution again. Although not shown, the area determining unit 4 includes a block number counter XB, a continuity counter CNT, and a maximum value register M.
I have an AX. The cutout unit 5 receives the cutout instruction and the data regarding the cutout region from the region determination unit 4,
Cut out. The seal imprint memory 6 stores data of only the seal imprint portion cut out by the cutout unit 5.

次に、本実施例の動作について説明すると、読取部1は
押捺された印影を光学的に読取り、2値化された読取パ
ターンを作成する。読取メモリ2はこの読取パターンを
格納する。黒点分布抽出部3は読取部1にて読取つた読
取データが格納されている読取メモリ2をX及びY方向
にスキヤンして黒点分布を抽出する。黒点分布抽出部3
の動作を第2図に示すフローチヤートを用いて詳細に説
明する。まず、読取メモリ2に存在する黒点数をX及び
Yの座標値毎に加算する黒点分布カウンタXHIST,YHIST
に初期値0をセツトする(ステツプ)。次に、読取メ
モリ2のアドレスカウンタY及びXに黒点分布を抽出す
る領域の始点座標YS及びXSを各々セツトする(ステツプ
,)。次に、読取メモリ2の点(X,Y)が黒点であ
つた場合にはX及びY座標値に対応する黒点分布カウン
タXHIST(X),YHIST(7)に各々1を加算するが、点
(X,Y)が黒点でない場合には加算しない(ステツプ
〜)。次に、アドレスカウンタXに1を加算する(ス
テツプ)。そして、黒点分布を抽出する領域のX方向
の終点座標XEを越えるまでステツプ〜をくり返し、
Xの値がXEを越えたときアドレスカウンタYに1を加算
する(ステツプ,)。Yの値が黒点分布を抽出する
領域のY方向の終点座標YEを越えるまでステツプ〜
をくり返し、Yの値がYEを越えたとき黒点分布抽出の動
作を終了する(ステツプ)。
Next, the operation of this embodiment will be described. The reading unit 1 optically reads the imprint imprinted and creates a binarized reading pattern. The reading memory 2 stores this reading pattern. The black spot distribution extraction unit 3 scans the reading memory 2 storing the read data read by the reading unit 1 in the X and Y directions to extract the black spot distribution. Black spot distribution extraction unit 3
The operation will be described in detail with reference to the flow chart shown in FIG. First, a black spot distribution counter XHIST, YHIST for adding the number of black dots existing in the reading memory 2 for each X and Y coordinate value.
The initial value 0 is set to (step). Next, the start point coordinates YS and XS of the area for extracting the black spot distribution are set in the address counters Y and X of the reading memory 2 (step,). Next, if the point (X, Y) in the reading memory 2 is a black point, 1 is added to each of the black point distribution counters XHIST (X) and YHIST (7) corresponding to the X and Y coordinate values. If (X, Y) is not a black point, it is not added (step ~). Next, 1 is added to the address counter X (step). Then, the steps are repeated until the end point coordinate XE in the X direction of the area for extracting the black spot distribution is exceeded,
When the value of X exceeds XE, 1 is added to the address counter Y (step,). Step until the Y value exceeds the Y-direction end point coordinate YE of the area for extracting the black spot distribution.
When the value of Y exceeds YE, the operation of extracting the black spot distribution is terminated (step).

ここで、黒点分布抽出領域の始終点座標XS,XE,YS,YE
は、まず読取メモリ2の全領域の黒点分布を抽出するよ
うな値に初期設定されているが、領域決定部4の指示に
より再度黒点分布を抽出するときには領域決定部4で指
定された新たな値をとる。
Here, the start / end coordinates XS, XE, YS, YE of the black spot distribution extraction area
Is initially set to a value that extracts the black spot distribution of the entire area of the reading memory 2, but when the black spot distribution is extracted again by the instruction of the area determining unit 4, the new value specified by the region determining unit 4 is set. Takes a value.

領域決定部4は黒点分布抽出3で得られた黒点分布に基
づいて、まず黒点分鵜の値が連続して0より大きい各領
域の中で領域の長さが最大な領域の始点及び終点の座標
ST及びEDを求める。そして、STとEDの間で黒点分布の最
小値MINを求め、切り出し閾値HTをHT=MIN+4とする。
ここで、HTをこのようにしたのは、読取られた押捺枠デ
ータに1画素程度の凹凸があることを考慮したためであ
る。次に、STとEDの間で黒点分布の値が連続してHT以下
である領域の長さLが枠判定閾値LTより大きい場合押捺
枠があると判定し、LがLT以下の場合押捺枠はないと判
定する。
Based on the black point distribution obtained by the black point distribution extraction 3, the area determination unit 4 first determines the start point and the end point of the area having the maximum area length among the areas in which the value of the black spot cormorant is continuously larger than 0. Coordinate
Calculate ST and ED. Then, the minimum value MIN of the black spot distribution is obtained between ST and ED, and the cutout threshold HT is HT = MIN + 4.
Here, the HT is set in this way because it is considered that the read imprinting frame data has irregularities of about one pixel. Next, if the length L of the region where the value of the black dot distribution is continuously HT or less between ST and ED is larger than the frame determination threshold LT, it is determined that there is an impression frame, and if L is LT or less, the impression frame is Judge that there is no.

押捺枠があると判定されると、STとEDの間で黒点分布の
値が連続して切り出し閾値HTより大きい領域を1つのブ
ロツクとし、そのうち長さが最大であるブロツクを求め
る。そして、求めた長さの最大なブロツクとそのブロツ
クの前後のブロツクとの距離がLT以下であるとき、その
前後のブロツクを含めたブロツクを新たな最大ブロツク
とする。この新たな最大ブロツクはさらにそのブロツク
とその前後のブロツクとの距離がLT以下であるとき、そ
の前後のブロツクを含めたブロツクを新たな最大ブロツ
クとする。このように、STとEDの間で繰り返して最終的
に得られた最大ブロツクの始点及び終点の座標iS及びiE
を求める。そして、切り出し領域の始点及び終点の座標
BS及びBEは切り出すべき印影の一部を除外しないように
BS=iS−2及びBE=iS+2とする。
When it is determined that there is an imprint frame, a block having a maximum black dot distribution value between ST and ED that is continuously larger than the cutout threshold value HT is set as one block, and a block having the maximum length is obtained. Then, when the distance between the largest block of the obtained length and the blocks before and after the block is LT or less, the block including the blocks before and after the block is set as the new maximum block. When the distance between this block and the blocks before and after the new maximum block is LT or less, the block including the blocks before and after that block is set as the new maximum block. Thus, the coordinates iS and iE of the start and end points of the maximum block finally obtained by repeating between ST and ED.
Ask for. And the coordinates of the start and end points of the cutout area
BS and BE should not exclude some of the imprints to be cut out
BS = iS-2 and BE = iS + 2.

一方、押捺枠がないと判定されると、黒点分布の値が連
続して0より大きい各領域の中で領域の長さが最大であ
る領域の始点及び終点の座標ST及びEDから、切り出し領
域の始点及び終点の座標BS及びBEはBS=ST及びBE=EDと
する。
On the other hand, when it is determined that there is no imprint frame, the cutout area is calculated from the coordinates ST and ED of the start point and end point of the area having the maximum length among the areas where the value of the black spot distribution is continuously greater than 0. The coordinates BS and BE of the start point and the end point of are BS = ST and BE = ED.

このような切り出し領域の決定手順はX及びY方向の黒
点分布XHIST,YHISTの各々について実行されて、X及び
Y方向の切り出し領域を決定する。
The procedure for determining the cutout region is executed for each of the black spot distributions XHIST and YHIST in the X and Y directions to determine the cutout regions in the X and Y directions.

そして、切り出し部5は読取メモリ2から領域決定部4
により得られた切り出し領域に関するデータを切り出し
て印影メモリ6に格納する。
Then, the cutout unit 5 moves from the reading memory 2 to the area determination unit 4
The data relating to the cutout area obtained by the above is cut out and stored in the seal imprint memory 6.

次に、本実施例における印影パターン切り出し動作につ
いて、具体例を挙げて説明する。
Next, the seal imprint pattern cutting operation in the present embodiment will be described with reference to a specific example.

第3図は読取メモリ2上の読取パターンとこの読取パタ
ーンから得られる黒点分布を示す図である。第3図
(A)に示される読取パターンは印影P1と共に、押捺枠
の一部P2が第1図の読取部1により読取られたものであ
る。
FIG. 3 is a diagram showing a read pattern on the read memory 2 and a black spot distribution obtained from this read pattern. Read pattern shown in FIG. 3 (A) together with seal image P 1, in which a portion of the inked frame P 2 is read by the reading unit 1 of FIG. 1.

まず、黒点分布抽出部3が読取メモリ2の全領域からX
及びY方向黒点分布を抽出すると各々第3図(B),
(C)となる。次に、領域決定部4は第3図(B)のX
方向黒点分布から切り出し領域を決定する。この場合、
黒点分布の値が連続して0より大きい領域を調べ、その
領域の長さが最大である領域の始点及び終点の座標XS1
及びXE1を求める。そして、XS1≦X≦XE1の領域での黒
点分布の最小値MINXを求め、切り出し閾値HTXをHTX=MI
NX+4とする。次に、XS1≦X≦XE1の領域で黒点分布の
値が連続してHTX以下である領域のうち長さが最大とな
る領域の長さLXを求める。この場合、LXの値が枠判定閾
値LTより大きいので、押捺枠があると判定される。押捺
枠があると判定されると、XS1≦X≦XE1の領域での黒点
分布の値が連続してHTXより大きい領域を1つのブロツ
クとし、そのうち長さが最大であるブロツクを求める。
その結果、XS2≦X≦XE2,XS3≦X≦XE3,XS4≦X≦XE4の
3つのブロツクのうちXS3≦X≦XE3のブロツクが最大ブ
ロツクとして得られる。
First, the black spot distribution extraction unit 3 reads X from the entire area of the reading memory 2.
And the black dot distribution in the Y direction is extracted, as shown in FIG.
(C). Next, the area determining unit 4 sets X in FIG. 3 (B).
The cutout area is determined from the directional sunspot distribution. in this case,
The area where the value of the sunspot distribution is continuously larger than 0 is examined, and the coordinates XS 1 of the start point and the end point of the area having the maximum length
And XE 1 . Then, the minimum value MIN X of the black spot distribution in the region of XS 1 ≤X≤XE 1 is obtained, and the cutout threshold value HT X is HT X = MI.
N X +4. Next, in the region of XS 1 ≦ X ≦ XE 1 , the length L X of the region having the maximum length among the regions where the value of the black spot distribution is continuously H T X or less is obtained. In this case, since the value of L X is larger than the frame determination threshold value LT, it is determined that there is an imprint frame. When it is judged that there is an imprint frame, one block is a region where the value of the black spot distribution in the region of XS 1 ≤ X ≤ XE 1 is continuously larger than HT X , and the block with the maximum length is obtained. .
As a result, among the three blocks of XS 2 ≤X≤XE 2 , XS 3 ≤X≤XE 3 , and XS 4 ≤X≤XE 4 , the block of XS 3 ≤X≤XE 3 is obtained as the maximum block.

従来の方法では、この時点で切り出し領域を決定してい
たので、印影P1の一部を取り残してしまうことになる。
すなわち、XS3≦X≦XE3のブロツクを切り出し領域と決
定することになり、印影P1の一部に相当するXS2≦X≦X
S3の領域が取り残されることになる。
In the conventional method, since the cutout area is determined at this point, a part of the seal imprint P 1 is left behind.
That is, the block of XS 3 ≤X≤XE 3 is determined as the cutout area, and XS 2 ≤X≤X corresponding to a part of the imprint P 1
The area of S 3 will be left behind.

ところで、本実施例における枠判定閾値LTは従来の方法
と同様に印影枠と印影内部の文字との間隔、印影内部の
文字と文字の間隔の各長さより、やや大きい値に設定さ
れている。よつて、最大ブロツクとその前後のブロツク
との距離がLTより大きいときはその前後のブロツクは押
捺枠に起因するブロツクであり、LT以下であるときはそ
の前後のブロツクは印影の一部に起因するブロツクであ
ると考えられるので、現在の最大ブロツクとその前後の
ブロツクとの距離について調べる。先ず、最大ブロツク
XS3≦X≦XE3とその前のブロツクXS2≦X≦XE2との距離
l1はl1=XS3−XE2−1であり、かつl1≦LTであるので、
新たな最大ブロツクがXS2≦X≦XE2と定められる。この
ブロツクの前には他のブロツクはないので、次に後のブ
ロツクとの距離について調べる。先ず、新たな最大ブロ
ツクXS2≦X≦XE3とその後のブロツクXS4≦X≦XE4との
距離l2はl2=XS4−XE3−1(=Lx)であり、かつ明らか
にl2>LTであるので、新たな最大ブロツクが定められる
ことはない。したがつて、最終的な最大ブロツクの始点
及び終点の座標はXS2及びXE3となり、X方向の切り出し
領域の始点及び終点の座標BSX及びBEXがBSX=XS2−2及
びBEX=XE3+2と定められる。
By the way, the frame determination threshold value LT in the present embodiment is set to a value that is slightly larger than the distance between the imprint frame and the characters inside the imprint and the lengths of the characters inside the imprint as in the conventional method. Therefore, when the distance between the maximum block and the blocks before and after it is larger than LT, the blocks before and after that are blocks caused by the imprint frame, and when it is less than LT, the blocks before and after it are caused by part of the imprint. Since it is considered to be a block that moves, the distance between the current maximum block and the blocks before and after it is investigated. First, the maximum block
Distance between XS 3 ≤ X ≤ XE 3 and the preceding block XS 2 ≤ X ≤ XE 2
Since l 1 is l 1 = XS 3 −XE 2 −1 and l 1 ≦ LT,
The new maximum block is defined as XS 2 ≤X≤XE 2 . There are no other blocks before this block, so we will check the distance to the next block. First, the distance l 2 between the new maximum block XS 2 ≦ X ≦ XE 3 and the subsequent block XS 4 ≦ X ≦ XE 4 is l 2 = XS 4 −XE 3 −1 (= Lx), and obviously Since l 2 > LT, no new maximum block is set. Therefore, the coordinates of the starting point and the ending point of the final maximum block are XS 2 and XE 3 , and the coordinates of the starting point and the ending point of the cutout region in the X direction BS X and BE X are BS X = XS 2 -2 and BE X. = XE 3 +2.

次に、領域決定部4は第3図(C)のY方向黒点分布か
ら切り出し領域をX方向黒点分布について行なつた同じ
手順で決定する。
Next, the area determination unit 4 determines the cut-out area from the Y-direction black point distribution shown in FIG. 3C by the same procedure as for the X-direction black point distribution.

先ず、黒点分布の値が連続して0より大きい領域を調
べ、その領域の長さが最大である領域の始点及び終点の
座標YS1及びYE1を求める。そして、YS1≦Y≦YE1の領域
での黒点分布の最小値MINYを求め、切り出し閾値HTYをH
TY=MINY+4とする。次に、YS1≦Y≦YE1の領域で黒点
分布の値が連続してHTY以下である領域のうち長さが最
大となる領域の長さLYを求める。この場合、LYの値が枠
判定閾値LTより大きいので、押捺枠があると判定され
る。押捺枠があると判定されると、YS1≦Y≦YE1の領域
での黒点分布の値が連続してHTYより大きい領域を1つ
のブロツクとし、そのうち長さが最大なブロツクをを求
める。その結果、YS2≦Y≦YE2,YS3≦Y≦YE3の2つの
ブロツクのうちYS2≦Y≦YE2のブロツクが最大ブロツク
として得られる。次に、この最大ブロツクとその前後の
ブロツクとの距離について調べるが、この最大ブロツク
の前には他のブロツクはないので、この最大ブロツクと
その後のブロツクとの距離を調べる。先ず、最大ブロツ
クYS2≦Y≦YE2とその後のブロツクYS3≦Y≦YE3との距
離l3はl3=YS3−YE2−1(=LY)であり、かつ明らかに
l3>LTであるので、新たな最大ブロツクが定められるこ
とはない。したがつて、最終的な最大ブロツクの始点及
び終点の座標はYS2及びYE2となり、Y方向の切り出し領
域の始点及び終点の座標BSY及びBEYがBSY=YS2−2及び
BEY=YE2+2と定められる。
First, an area where the value of the black spot distribution is continuously larger than 0 is examined, and the coordinates YS 1 and YE 1 of the start point and the end point of the area having the maximum length are obtained. Then, the minimum value MIN Y of the black spot distribution in the area of YS 1 ≤ Y ≤ YE 1 is obtained, and the cutout threshold value HT Y is set to H
Let T Y = MIN Y +4. Next, in the region of YS 1 ≤ Y ≤ YE 1 , the length L Y of the region having the maximum length among the regions where the value of the black spot distribution is continuously H Y Y or less is obtained. In this case, since the value of L Y is larger than the frame determination threshold value LT, it is determined that there is an imprint frame. If it is determined that there is an imprint frame, the area where the value of the black dot distribution in the area of YS 1 ≤ Y ≤ YE 1 is continuously larger than HT Y is set as one block, and the block with the maximum length is obtained. . As a result, YS 2 ≦ Y ≦ YE 2 , YS 3 ≦ Y ≦ YE 3 of two blocks of YS 2 ≦ Y ≦ YE 2 of block is obtained as the maximum block. Next, the distance between this maximum block and the blocks before and after it is checked, but since there is no other block before this maximum block, the distance between this maximum block and the subsequent blocks is checked. First, the maximum block YS 2 ≦ Y ≦ YE 2 and the distance l 3 of the subsequent block YS 3 ≦ Y ≦ YE 3 is l 3 = YS 3 -YE 2 -1 (= L Y), and obviously
Since l 3 > LT, no new maximum block is set. Therefore, the coordinates of the start point and the end point of the final maximum block are YS 2 and YE 2 , and the coordinates of the start point and the end point of the cutout area in the Y direction BS Y and BE Y are BS Y = YS 2 -2 and
BE Y = YE 2 +2.

以上のようにして、領域決定部4により第3図(A)の
読取パターンから切り出し領域が決定されると、切り出
し部5により読取パターンからBSX≦X≦BEX,BSY≦Y≦
BEYの領域から印影P1のみに騒動する印影パターンが切
り出されて印影メモリ6に格納される。
As described above, when the cutout area is determined from the read pattern of FIG. 3A by the area determination unit 4, the cutout unit 5 determines BS X ≦ X ≦ BE X , BS Y ≦ Y ≦ from the read pattern.
A seal imprint pattern that makes a noise only in the seal imprint P 1 is cut out from the area of BE Y and stored in the seal imprint memory 6.

尚、本実施例では、黒点分布の値が連続して0より大き
い領域の長さを調べその長さが最大である領域を切り出
し領域と決定したが、黒点分布の値が連続して0より大
きい領域の黒点数の総和が最大である領域を切り出し領
域と決定することにしても上記実施例と同様な効果が得
られる。
In this embodiment, the length of the area where the value of the black dot distribution is continuously larger than 0 is checked and the area having the maximum length is determined as the cutout area. The same effect as that of the above-described embodiment can be obtained even if the area having the maximum total number of black dots in the large area is determined as the cutout area.

また、本実施例では指令領域内の黒点分布の値が連続し
て切り出し閾値HTより大きいブロツクの長さを調べその
長さが最大となるブロツクを求めるとしたが、黒点分布
の値が連続して切り出し閾値HTより大きいブロツクの黒
点数の総和が最大であるブロツクを求めることとしても
上記実施例と同様な効果が得られる。
Further, in this embodiment, the value of the black spot distribution in the command area is continuously determined to find the block whose length is the maximum by examining the length of the block larger than the clipping threshold HT, but the value of the black spot distribution is continuous. The same effect as in the above embodiment can be obtained by obtaining the block having the maximum total number of black spots of the block larger than the cutout threshold HT.

(発明の効果) 以上説明したように、本発明によれば、切り出し領域と
定められた領域の前後の領域の黒点分布状態に基づいて
新たな切り出し領域を決定することにより、読取パター
ンのうち印影以外の不要なパターン例えば押捺枠が存在
したとしても印影パターンのみを切り出すことができ
る。
(Effects of the Invention) As described above, according to the present invention, a new cutout area is determined based on the black spot distribution states of the areas before and after the area defined as the cutout area. Even if an unnecessary pattern other than the above, for example, a printing frame exists, only the imprint pattern can be cut out.

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

第1図は本発明の一実施例の構成を示すブロツク図、第
2図は本実施例における黒点分布抽出部の動作を示すフ
ローチヤート、第3図は本実施例における切り出し領域
決定動作を説明するための図である。 1……読取部、2……読取メモリ、3……黒点分布抽出
部、4……領域決定部、5……切り出し部、6……印影
メモリ。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, FIG. 2 is a flow chart showing the operation of the black spot distribution extraction unit in this embodiment, and FIG. 3 is a description of the cutout area determination operation in this embodiment. FIG. 1 ... reading unit, 2 ... reading memory, 3 ... black spot distribution extraction unit, 4 ... region determining unit, 5 ... cutout unit, 6 ... imprint memory.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】印影を光学的に読取り白黒の2値化された
読取パターンを得る読取部と、 該読取部が得た読取パターンを一時格納する読取メモリ
と、 該読取メモリに格納された前記読取パターンから印影パ
ターンを切り出す切り出し部を有する印影入力装置にお
いて、 前記読取パターンからX方向及びY方向の所定領域の座
標値毎に黒点分布をそれぞれ抽出する黒点分布抽出部
と、 X方向及びY方向の黒点分布毎に、 黒点分布の値が連続して所定値より大きい座標値部分を
1つの領域とし、各領域の中で領域の長さ又は領域内の
黒点分布の値の総和の少なくとも一方が最大となる最大
領域を検出し、 該最大領域における黒点分布の値の最小値に基づいて切
り出し閾値を設定し、前記最大領域内で黒点分布の値が
連続して前記切り出し閾値以下である領域の少なくとも
1つの領域の長さが所定の枠判定閾値より大きいとき、
前記最大領域内で黒点分布の値が連続して前記切り出し
閾値より大きい領域を1つのブロツクとし、そのブロツ
クの長さ又はそのブロツク内の黒点分布の値の総和の少
なくとも一方が最大となる最大ブロツクを検出し、 その最大ブロツクと他のブロツクとの距離が前記枠判定
閾値以下であるときその最大ブロツクと他のブロツクを
含めて新たな最大ブロツクとすることを繰り返して最終
的に得られた最大ブロツクの始終点座標に基づいて切り
出し領域を決定し、 一方、前記最大領域内で黒点分布の値が連続して前記切
り出し閾値以下である領域の少なくとも1つの領域の長
さが枠判定閾値以下であるときは前記最大領域を切り出
し領域とし、 決定した切り出し領域に基づいて前記切り出し部に切り
出しの指示を行なう領域決定部とを設けたことを特徴と
する印影入力装置。
1. A reading unit for optically reading a seal imprint to obtain a black and white binarized reading pattern, a reading memory for temporarily storing the reading pattern obtained by the reading unit, and the reading memory stored in the reading memory. A seal imprint input device having a cutout unit that cuts out a seal imprint pattern from a reading pattern, wherein a black spot distribution extracting unit that extracts a black spot distribution for each coordinate value of a predetermined region in the X direction and the Y direction from the reading pattern, and an X direction and a Y direction For each sunspot distribution, the coordinate value part where the sunspot distribution value is continuously larger than a predetermined value is defined as one area, and at least one of the area length or the sum of the sunspot distribution values in each area is defined as one area. The maximum area that is the maximum is detected, and the clipping threshold is set based on the minimum value of the black spot distribution values in the maximum area. When the length of the at least one region of the regions is greater than a predetermined frame determination threshold,
An area in which the value of the black spot distribution is continuously larger than the cut-out threshold value in the maximum area is defined as one block, and at least one of the length of the block and the sum of the values of the black spot distribution in the block is the maximum block. Detected, and when the distance between the maximum block and another block is equal to or less than the frame determination threshold value, the maximum block finally obtained by repeating the maximum block and another block and setting a new maximum block. The cutout area is determined based on the start and end coordinates of the block, and the length of at least one of the areas in which the value of the black spot distribution is continuously less than or equal to the cutout threshold within the maximum area is less than or equal to the frame determination threshold. In some cases, the maximum area is set as the cutout area, and the cutout section is provided with an area determination section for instructing cutout based on the determined cutout area. Imprint input device comprising and.
JP61106585A 1986-05-12 1986-05-12 Imprint input device Expired - Lifetime JPH0785264B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61106585A JPH0785264B2 (en) 1986-05-12 1986-05-12 Imprint input device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61106585A JPH0785264B2 (en) 1986-05-12 1986-05-12 Imprint input device

Publications (2)

Publication Number Publication Date
JPS62263587A JPS62263587A (en) 1987-11-16
JPH0785264B2 true JPH0785264B2 (en) 1995-09-13

Family

ID=14437277

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61106585A Expired - Lifetime JPH0785264B2 (en) 1986-05-12 1986-05-12 Imprint input device

Country Status (1)

Country Link
JP (1) JPH0785264B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6175974A (en) * 1984-09-22 1986-04-18 Toshiba Corp Pattern detector

Also Published As

Publication number Publication date
JPS62263587A (en) 1987-11-16

Similar Documents

Publication Publication Date Title
KR20020064350A (en) Image data compressing method and restoring method
JP2001148009A (en) Image processing apparatus and storage medium storing image processing program
US7206463B2 (en) Image processing method, device and system
US5475807A (en) Character processing apparatus
JPH0832471B2 (en) output method
JP3717357B2 (en) Binary threshold calculation method and apparatus
EP0450940A1 (en) Character processing method and apparatus
JP2957729B2 (en) Line direction determination device
JP3236410B2 (en) Contour line forming method
JPS62263587A (en) Seal print input device
JP2933828B2 (en) Image pattern processing device
JPH0388085A (en) Optical character reader
JP4206606B2 (en) Image processing apparatus, image processing method, and recording medium recording image processing program
JPH0467668B2 (en)
JPH0713996A (en) Character recognition device
JPS63163684A (en) Character pattern segmentation device
JP3566738B2 (en) Shaded area processing method and shaded area processing apparatus
JP2960241B2 (en) Ruled line development control method
JP3359166B2 (en) Printer device and line segment division drawing method of printer device
JP3193135B2 (en) Dot pattern dot position detection method
JPS62125480A (en) Seal print input device
JPH0341360U (en)
JPH11102177A (en) Typeface data creation device, typeface data creation method, and storage medium
JPH0916716A (en) Character recognition method and device and character normalization method and device
JPH05128305A (en) Area division method