JP3337592B2 - Mark position detecting device and mark position detecting method - Google Patents

Mark position detecting device and mark position detecting method

Info

Publication number
JP3337592B2
JP3337592B2 JP13210695A JP13210695A JP3337592B2 JP 3337592 B2 JP3337592 B2 JP 3337592B2 JP 13210695 A JP13210695 A JP 13210695A JP 13210695 A JP13210695 A JP 13210695A JP 3337592 B2 JP3337592 B2 JP 3337592B2
Authority
JP
Japan
Prior art keywords
image
mark position
mark
form image
processing means
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 - Fee Related
Application number
JP13210695A
Other languages
Japanese (ja)
Other versions
JPH08329189A (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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP13210695A priority Critical patent/JP3337592B2/en
Publication of JPH08329189A publication Critical patent/JPH08329189A/en
Application granted granted Critical
Publication of JP3337592B2 publication Critical patent/JP3337592B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は,光学式文字読取装置等
に用いられるマーク位置の検出技術に係わり,特に,任
意の向きにセットされた帳票の任意の大きさのマーク位
置を,少ないメモリ量で高速に検出することを可能にし
たマーク位置検出装置およびマーク位置検出方法に関す
るものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a technique for detecting a mark position used in an optical character reader or the like, and more particularly, to a method for storing a mark position of an arbitrary size on a form set in an arbitrary direction with a small memory. The present invention relates to a mark position detecting device and a mark position detecting method capable of detecting a mark at high speed.

【0002】[0002]

【従来の技術】光学式文字読取装置では,通常,認識対
象の文字が記載される帳票として,あらかじめ認識対象
領域の基準となる位置に所定の大きさのマークが記され
た帳票用紙が用いられる。そして,帳票イメージ内の認
識対象とする文字の領域を特定するために,入力した帳
票イメージから最初に帳票位置基準となるマークを検出
することが行われる。
2. Description of the Related Art In an optical character reading apparatus, a form on which a mark of a predetermined size is previously written at a reference position of a recognition target area is usually used as a form on which characters to be recognized are described. . Then, in order to specify a character area to be recognized in the form image, a mark serving as a form position reference is first detected from the input form image.

【0003】図11は帳票の例を示す。この例では,帳
票100内に2つの帳票位置基準マーク110が記さ
れ,その帳票位置基準マーク110の位置に合わせて文
字認識対象領域111が設けられている。従来の光学式
文字読取装置では,これらの帳票位置基準マーク110
が入力した帳票イメージ内のある程度限定した領域内に
存在することを前提にマーク位置の検出を行っており,
この前提のもとで検出速度を高速化することが図られて
いた。
FIG. 11 shows an example of a form. In this example, two form position reference marks 110 are written in the form 100, and a character recognition target area 111 is provided in accordance with the position of the form position reference mark 110. In the conventional optical character reader, these form position reference marks 110 are used.
Mark position is detected on the assumption that it exists in a certain limited area in the input form image.
Under such a premise, the detection speed has been increased.

【0004】[0004]

【発明が解決しようとする課題】最近,例えばファクシ
ミリ装置で受信した帳票イメージについて,文字認識を
行うような需要が増えている。しかし,例えばファクシ
ミリ装置等により受信した帳票イメージについて文字認
識を行うために,帳票イメージ内の帳票位置基準マーク
(以下,FAXマークという)を検出しようとした場
合,イメージの伸びやズレにより,限定した領域内にマ
ークが存在しないことがあり,そのため,マークの検出
ができずに,文字の読み取りが不可能になることがあ
る。
Recently, there is an increasing demand for performing character recognition on a form image received by, for example, a facsimile machine. However, for example, in order to detect a form position reference mark (hereinafter, referred to as a FAX mark) in a form image in order to perform character recognition on a form image received by a facsimile machine or the like, a limitation is imposed due to image expansion or displacement. The mark may not exist in the area, and therefore, the mark may not be detected, and the character may not be readable.

【0005】すなわち,従来技術では,受信した帳票イ
メージに伸びやズレが生じることにより,予定された領
域内にFAXマークが存在しなかった場合には,文字の
読み取りができないという問題があった。逆に,帳票イ
メージ全体を範囲としてマーク検出を行うと,検出速度
が低下してしまうという問題があった。
That is, in the prior art, there is a problem that characters cannot be read when a fax mark does not exist in a predetermined area due to expansion or displacement of a received form image. Conversely, if mark detection is performed for the entire form image as a range, there is a problem that the detection speed is reduced.

【0006】したがって,帳票イメージ内の予定位置か
ら外れた位置にマークが存在する場合であっても,入力
帳票イメージから高速にマークを抽出する技術が必要と
される。
Therefore, even when a mark exists at a position deviating from a predetermined position in a form image, a technique for rapidly extracting the mark from the input form image is required.

【0007】また,ファクシミリ装置の送信原稿は,操
作ミス等により逆向きや横向きの誤った方向でセットさ
れて送信されることがあり,この場合には,受信した帳
票イメージの予定位置においてマークを検出することが
できない。したがって,任意の向きにセットされた帳票
に対しても文字認識を可能にするために,FAXマーク
を手掛かりに帳票イメージの向きを確定することが必要
とされる。特に,この場合に,少ないメモリ量で高速に
帳票イメージの向きを特定することが望まれる。
[0007] In addition, a document to be transmitted by a facsimile apparatus may be set and transmitted in an incorrect direction, such as reverse or horizontal, due to an operation error or the like. In this case, a mark is placed at a predetermined position of the received form image. Not detectable. Therefore, it is necessary to determine the orientation of the form image using the FAX mark as a key to enable character recognition even for a form set in an arbitrary direction. In particular, in this case, it is desired to quickly specify the orientation of the form image with a small amount of memory.

【0008】本発明は上記問題点の解決を図り,帳票位
置基準マークが入力帳票イメージの限定された範囲内に
ない場合であっても,高速にマークを検出する手段を提
供することを目的とする。また,帳票が正しい向きにセ
ットされなかった場合でも,大量のメモリを使用しない
で帳票の向きを特定できるようにすることを目的とす
る。
SUMMARY OF THE INVENTION An object of the present invention is to solve the above problems and to provide a means for detecting a mark at a high speed even when a form position reference mark is not within a limited range of an input form image. I do. It is another object of the present invention to specify the orientation of a form without using a large amount of memory even when the form is not set in the correct direction.

【0009】[0009]

【課題を解決するための手段】本発明は,上記課題を解
決するため,図1に示すような各手段を備える。図1
は,本発明の原理構成図である。図1において,1は文
字読取装置に用いられるマーク位置検出装置,2は間引
きイメージ生成処理手段,3はマーク位置検出処理手
段,4はイメージ回転処理手段,5は分割回転処理手
段,6は第1のバッファ,7はデータ圧縮処理手段,8
は第2のバッファ,9はデータ伸長処理手段,11a〜
11dは帳票イメージを表す。
The present invention is provided with each means as shown in FIG. 1 in order to solve the above problems. FIG.
1 is a diagram illustrating the principle of the present invention. In FIG. 1, 1 is a mark position detecting device used in a character reading device, 2 is a thinned-out image generation processing unit, 3 is a mark position detection processing unit, 4 is an image rotation processing unit, 5 is a division rotation processing unit, and 6 is a second rotation processing unit. 1 is a buffer, 7 is data compression processing means, 8
Denotes a second buffer, 9 denotes data decompression processing means, and 11a to
11d represents a form image.

【0010】間引きイメージ生成処理手段2は,帳票イ
メージの複数行または複数列単位で間引き処理を行い,
複数行または複数列を1行または1列とした間引きイメ
ージを生成する手段である。間引きイメージ生成処理手
段2は,例えば帳票イメージの複数行または複数列の論
理和(OR)をとることにより間引きイメージを生成す
る。
The thinning image generation processing means 2 performs thinning processing in units of a plurality of rows or a plurality of columns of a form image.
This is means for generating a thinned image in which a plurality of rows or a plurality of columns are set to one row or one column. The thinned image generation processing means 2 generates a thinned image by, for example, taking a logical sum (OR) of a plurality of rows or a plurality of columns of a form image.

【0011】マーク位置検出処理手段3は,間引きイメ
ージ生成処理手段2で生成された帳票の間引きイメージ
を用いて,帳票イメージ中のマーク位置を検出する手段
である。
The mark position detection processing means 3 is a means for detecting a mark position in the form image using the thinned image of the form generated by the thinned image generation processing means 2.

【0012】イメージ回転処理手段4は,帳票イメージ
を回転させる手段である。イメージ回転処理手段4は,
図1(B)に示すように,元の帳票イメージ11aの向
きに対して,第1回目には帳票イメージを180度回転
させ(帳票イメージ11b),第2回目には帳票イメー
ジを90度回転させ(帳票イメージ11c),第3回目
には帳票イメージを270度回転させる(帳票イメージ
11d)。
The image rotation processing means 4 is means for rotating a form image. The image rotation processing means 4
As shown in FIG. 1B, the form image is rotated 180 degrees (form image 11b) for the first time with respect to the orientation of the original form image 11a, and the form image is rotated 90 degrees for the second time. Then, the form image is rotated by 270 degrees for the third time (form image 11d).

【0013】すなわち,任意の向きにセットされた帳票
に対して,帳票の正しい向き(正立)を確定するため
に,順次,帳票全体のイメージを回転処理して,間引き
イメージ生成処理手段2およびマーク位置検出処理手段
3を用いて,回転処理後の帳票イメージに対するマーク
検出処理を行い,マークを検出した帳票の向きを正しく
セットされた向き(正立)とする。
That is, in order to determine the correct orientation (erect) of a form set in an arbitrary direction, the image of the entire form is sequentially rotated to determine the thinned image generation processing means 2 and Using the mark position detection processing means 3, mark detection processing is performed on the form image after the rotation processing, and the direction of the form on which the mark is detected is set to the correctly set direction (erect).

【0014】イメージ回転処理手段4による帳票イメー
ジの回転は,一時的な作業用バッファとして第1のバッ
ファ6および第2のバッファ8を用い,分割回転処理手
段5,データ圧縮処理手段7,データ伸長処理手段9に
よって行う。
The rotation of the form image by the image rotation processing means 4 uses the first buffer 6 and the second buffer 8 as temporary work buffers, and uses the divided rotation processing means 5, the data compression processing means 7, and the data decompression. This is performed by the processing means 9.

【0015】分割回転処理手段5は,回転対象の帳票イ
メージを分割し,分割イメージごとに回転処理を行い,
第1のバッファ6に格納する手段である。データ圧縮処
理手段7は,第1のバッファ6に格納された分割イメー
ジを所定のデータ圧縮方法により圧縮し,第2のバッフ
ァ8に格納する手段である。データ伸長処理手段9は,
第2のバッファ8に格納された圧縮帳票イメージをデー
タ圧縮処理手段7で用いたデータ圧縮方法に対応するデ
ータ伸長方法により伸長する手段である。
The division rotation processing means 5 divides the form image to be rotated, performs rotation processing for each divided image,
This is means for storing in the first buffer 6. The data compression processing means 7 is means for compressing the divided image stored in the first buffer 6 by a predetermined data compression method and storing the compressed image in the second buffer 8. The data decompression processing means 9
A means for expanding the compressed form image stored in the second buffer 8 by a data expansion method corresponding to the data compression method used by the data compression processing means 7.

【0016】これにより,第1のバッファ6および第2
のバッファ8を使用するだけで,少量のメモリで帳票の
全体イメージを回転させることが可能となる。
Thus, the first buffer 6 and the second buffer 6
It is possible to rotate the entire image of the form by using a small amount of memory only by using the buffer 8 of FIG.

【0017】[0017]

【作用】本発明では,間引きイメージ生成処理手段2お
よびマーク位置検出処理手段3により,帳票イメージ中
のマーク検出の走査領域を減少させることにより,マー
ク検出の高速化を可能にしている。
According to the present invention, the speed of mark detection can be increased by reducing the scanning area for mark detection in the form image by the thinned image generation processing means 2 and the mark position detection processing means 3.

【0018】また,イメージ回転処理手段4により,2
値のイメージデータの格納の特性を用いて,検出処理の
速度を向上するようにしている。これは,帳票イメージ
を格納するメモリにデータがシーケンシャルに配列され
ていることから,2値のイメージからマーク検出を行う
場合には,横向き(90/270度回転)または逆向き
(180度回転)イメージから直接マーク検出を行うよ
り,正立した(0度)イメージに対してマーク検出する
ほうがより高速に処理できるからである。
Further, the image rotation processing means 4
The speed of the detection process is improved by using the characteristic of storing the image data of the value. This is because the data is sequentially arranged in the memory for storing the form image, so that when the mark is detected from the binary image, the mark is horizontally (90/270 degrees rotated) or reversed (180 degrees rotated). This is because mark detection for an erect (0 degree) image can be processed at higher speed than when mark detection is performed directly from the image.

【0019】加えて,帳票がセットされる場合の操作ミ
スの頻度を考慮して,第1回目に帳票イメージを180
度(逆向き)回転させ,第2回目には90度(右向き)
回転させ,第3回目には270度(左向き)回転させる
ようにすることで,高速に帳票イメージの正しい向きを
特定するようにしている。すなわち,誤った向きでセッ
トされた帳票の向きを特定するとき,オペレータがミス
しやすい逆向きセットの方向を,横向きセットの方向よ
り優先して回転処理することにより,確率的に高速な帳
票の向きの特定を実現する。
In addition, taking into account the frequency of operation errors when a form is set, the form image is
Rotate degrees (reverse), 90 degrees (right) for the second time
By rotating the document image 270 degrees (leftward) at the third time, the correct orientation of the form image is specified at high speed. In other words, when identifying the orientation of a form set in the wrong direction, the rotation of the reverse set direction, which is likely to be mistaken by the operator, is given priority over the horizontal set direction, so that a high-speed stochastic form can be obtained. Achieve orientation identification.

【0020】さらに,分割回転処理手段5,データ圧縮
処理手段7,データ伸長処理手段9,第1のバッファ6
および第2のバッファ7により,回転処理を少量のメモ
リで行うようにしている。もし,帳票イメージを直接回
転させる場合には,現在の帳票イメージを記憶している
メモリと,回転後の帳票イメージを記憶するメモリの2
つの大容量のメモリが必要になる。本発明では,第1の
バッファ6は,帳票イメージをn個に分割したとする
と,帳票イメージの1/nのメモリ量でよく,また第2
のバッファ8はデータの圧縮率に応じたサイズのメモリ
量で十分である。データを伸張した回転結果は,元の帳
票イメージのメモリに書き戻すことができるので,帳票
イメージを回転する場合に全体の帳票イメージの大きさ
の2倍の容量のメモリ(回転前と回転後用)を用意する
必要はない。
Further, divided rotation processing means 5, data compression processing means 7, data decompression processing means 9, first buffer 6
The second buffer 7 performs the rotation processing with a small amount of memory. If the form image is to be rotated directly, there are two memories, one for storing the current form image and the other for storing the rotated form image.
One large memory is required. In the present invention, if the form image is divided into n pieces, the first buffer 6 may have a memory amount of 1 / n of the form image.
Is sufficient for the buffer 8 having a size corresponding to the data compression ratio. The rotation result obtained by expanding the data can be written back to the memory of the original form image. Therefore, when rotating the form image, a memory with twice the size of the entire form image (before and after rotation) ) Is not necessary.

【0021】[0021]

【実施例】以下,図を用いて本発明の実施例を説明す
る。図2および図3は,本発明の実施例における論理和
(OR)による間引きイメージ生成処理およびマーク位
置検出処理を説明する図である。
An embodiment of the present invention will be described below with reference to the drawings. FIGS. 2 and 3 are diagrams for explaining a thinned-out image generation process using a logical sum (OR) and a mark position detection process in the embodiment of the present invention.

【0022】 図2(A)に示すように,帳票全体の
2値のイメージに対して,1/nの論理和(OR)間引
き処理を行う。すなわち,帳票イメージ11の各nライ
ン分の値について論理和(OR)をとり,1ラインとし
て出力して間引きイメージ12を生成する。これによ
り,マーク検出のための走査ライン数を1/nに減らす
ことができ,検出の高速化を実現することができる。
As shown in FIG. 2A, a 1 / n logical OR (OR) thinning process is performed on a binary image of the entire form. That is, a logical sum (OR) is performed on the values of each of the n lines of the form image 11 and output as one line to generate the thinned image 12. As a result, the number of scanning lines for mark detection can be reduced to 1 / n, and high-speed detection can be realized.

【0023】 次に,間引きイメージ12の左右方向
(x方向)に対し,マーク幅と近似した幅の黒イメージ
を探す。マーク幅と近似していない黒イメージは,図2
(B)に示すように,マーク候補から削除する。図2
(C)は,比較の対象となる間引き処理したイメージで
のマークの大きさを示す図である。この間引き処理した
標準のマークの大きさは,予め算出しておく。
Next, a black image having a width similar to the mark width is searched for in the left-right direction (x direction) of the thinned image 12. The black image that does not approximate the mark width is shown in Fig. 2.
As shown in (B), it is deleted from the mark candidates. FIG.
(C) is a diagram showing the size of the mark in the thinned image to be compared. The size of the thinned standard mark is calculated in advance.

【0024】 マーク幅と近似した幅の黒イメージを
検出したならば,その幅で上下方向(y方向)に全部白
となるラインを探してその黒イメージの高さを算出す
る。 黒イメージの高さが,図2(C)に示す1/nのマ
ーク高に近似していたならば,この黒イメージをマーク
候補とする。図2(D)に示す3つの黒イメージは,マ
ーク幅およびマーク高について近似しているマーク候補
である。
When a black image having a width similar to the mark width is detected, a line that is entirely white in the vertical direction (y-direction) is searched by the width, and the height of the black image is calculated. If the height of the black image is close to the 1 / n mark height shown in FIG. 2C, this black image is set as a mark candidate. The three black images shown in FIG. 2D are mark candidates that are similar in mark width and mark height.

【0025】 図2(E)に示すように,前述した
からまでの処理で選ばれたマーク候補について,元の
帳票全体のイメージからそのマーク候補の外接矩形の幅
および高さを算出し,マーク候補をさらに絞る。図2
(F)は,帳票イメージ11での実物大のマークの大き
さを示す図である。
As shown in FIG. 2E, for the mark candidate selected in the above-described processing, the width and height of the circumscribed rectangle of the mark candidate are calculated from the image of the entire original form, and the mark Refine candidates further. FIG.
(F) is a diagram showing the size of the actual size mark in the form image 11.

【0026】 算出した外接矩形の幅および高さがマ
ークの幅・高さと近似している場合には,帳票全体のイ
メージに対して,そのマーク候補の正しい幅・高さを以
下に示す方法で求め,マークを確定する。以下に示す方
法を用いるのは,例えば,帳票が傾いてセットされ,帳
票イメージ11内のマークが傾いている場合には,外接
矩形の幅・高さと実際のマーク幅・マーク高では誤差が
生じるためである。
If the calculated width and height of the circumscribed rectangle are similar to the width and height of the mark, the correct width and height of the mark candidate are determined for the image of the entire form by the following method. Find and confirm the mark. The following method is used, for example, when a form is set to be inclined and a mark in the form image 11 is inclined, an error occurs between the width and height of the circumscribed rectangle and the actual mark width and mark height. That's why.

【0027】1)図3(A)に示すように,幅(x)・
高さ(y)方向にそれぞれマークの画素数のヒストグラ
ムを作成する。 2)x方向・y方向それぞれのヒストグラムについて正
規分布を求め,その最大分布位置を確定する。
1) As shown in FIG. 3A, the width (x)
A histogram of the number of pixels of each mark is created in the height (y) direction. 2) A normal distribution is obtained for each of the histograms in the x and y directions, and the maximum distribution position is determined.

【0028】3)幅(x)・高さ(y)のいずれか長い
方の方向については,その幅が全体の代表となるかどう
かを判断する。具体的には,全体の1/2以上がその幅
に該当すれば代表とする。
3) For the longer one of the width (x) and the height (y), it is determined whether the width is representative of the whole. Specifically, if at least 1/2 of the entire width corresponds to the width, it is regarded as a representative.

【0029】4)マークの全体画素数と1)〜3)で求
めた代表幅・代表高さの面積が近似していれば,そのマ
ーク候補をマークとして確定する。 図3(B)は,図3(A)に示すマークのx方向のヒス
トグラムの画素分布を示す図である。図3(B)の場
合,代表幅は画素数10である。図3(C)は,y方向
のヒストグラムの画素分布を示す図である。図3(C)
の場合,代表高さは画素数9である。
4) If the total number of pixels of the mark and the area of the representative width / representative height obtained in 1) to 3) are similar, the mark candidate is determined as a mark. FIG. 3B is a diagram showing a pixel distribution of a histogram of the mark shown in FIG. 3A in the x direction. In the case of FIG. 3B, the representative width is 10 pixels. FIG. 3C is a diagram showing the pixel distribution of the histogram in the y direction. FIG. 3 (C)
In the case of, the representative height is 9 pixels.

【0030】これにより,マーク検出の精度が向上し,
傾いた帳票イメージからでも高速かつ正確にマークを検
出することが可能となる。なお,メモリのアクセス効率
は多少悪くなるが,複数行を1行とした間引きイメージ
を生成するのではなく,複数列を1列とした間引きイメ
ージを生成してマーク検出を行ってもよい。
As a result, the accuracy of mark detection is improved,
Marks can be detected quickly and accurately even from a slanted form image. Although the access efficiency of the memory is slightly deteriorated, the mark detection may be performed by generating a thinned image having a plurality of columns as one column, instead of generating a thinned image having a plurality of rows as one line.

【0031】次に,図4および図5を用いて,帳票の全
体のイメージの回転を高速かつ省メモリで行う分割回転
処理について説明する。任意の向きにセットされた帳票
に対して,正しい向きを確定するために,上述したマー
ク検出処理を行いながら,マークが検出できなかった場
合に順次帳票イメージを回転して,回転後の帳票イメー
ジに対してマーク検出を行い,マークを発見した向きを
正しい帳票の向きとして確定する。これを小容量のメモ
リで行うため,以下のように処理する。回転処理のため
に,一時的な作業用バッファとして,第1のバッファ6
と第2のバッファ8とを用意する。
Next, with reference to FIGS. 4 and 5, a description will be given of a division rotation process in which the entire image of a form is rotated at high speed and with a small amount of memory. In order to determine the correct orientation for a form set in an arbitrary direction, the above-described mark detection processing is performed, and when a mark is not detected, the form image is sequentially rotated, and the rotated form image , And the direction in which the mark was found is determined as the correct form direction. To perform this in a small-capacity memory, the following processing is performed. For the rotation processing, the first buffer 6 is used as a temporary working buffer.
And a second buffer 8 are prepared.

【0032】 図4(A)に示すように,全体の帳票
イメージ11を部分a,b,cに分割する。ここでは,
説明をわかりやすくするために,帳票イメージ11を3
個に分割しているが,分割数はいくつでもよい。第1の
バッファ6のサイズは,分割した帳票イメージの1つが
格納可能な大きさとする。まず,帳票イメージの部分a
を回転処理し,第1のバッファ6に出力する。
As shown in FIG. 4A, the entire form image 11 is divided into parts a, b, and c. here,
To make the explanation easier to understand, 3
Although it is divided into pieces, the number of divisions may be any number. The size of the first buffer 6 is such that one of the divided form images can be stored. First, the form image part a
Is rotated and output to the first buffer 6.

【0033】 次に,第1のバッファ6に格納された
回転処理後の帳票イメージの部分aを圧縮処理して第2
のバッファ8に出力する。この圧縮方法として,例えば
MR符号化方式など,任意の圧縮方法を用いることがで
きる。
Next, the part a of the form image after the rotation processing stored in the first buffer 6 is compressed and subjected to the second processing.
To the buffer 8. As this compression method, an arbitrary compression method such as an MR encoding method can be used.

【0034】 次に,図4(B)に示すように,帳票
イメージの部分bを回転処理し,空になった第1のバッ
ファ6に出力する。 第1のバッファ6に格納された回転処理後の帳票イ
メージの部分bを圧縮処理して第2のバッファ8に出力
する。
Next, as shown in FIG. 4B, the portion b of the form image is rotated and output to the empty first buffer 6. The part b of the form image after the rotation processing stored in the first buffer 6 is compressed and output to the second buffer 8.

【0035】 図4(C)に示すように,帳票全体の
イメージの部分cについても同様に,回転処理,圧縮処
理して第2のバッファ8に出力する。 分割した全ての部分について回転処理,圧縮処理が
終了したならば,図5(A)〜(C)に示すように,第
2のバッファ8に格納した部分a〜部分cの圧縮データ
の先頭から,順次,イメージ伸長処理を行う。全体の帳
票イメージを回転圧縮した後は,元の帳票イメージのメ
モリ領域は不必要になるので,元の帳票イメージのメモ
リ領域に,伸長処理した回転後の帳票イメージを上書き
する。
As shown in FIG. 4C, the image portion c of the entire form is similarly subjected to rotation processing and compression processing and output to the second buffer 8. When the rotation processing and the compression processing have been completed for all the divided parts, as shown in FIGS. 5A to 5C, from the beginning of the compressed data of the parts a to c stored in the second buffer 8 , And sequentially perform image decompression processing. After rotationally compressing the entire form image, the memory area of the original form image becomes unnecessary, so the decompressed rotated form image is overwritten on the memory area of the original form image.

【0036】これにより,第1のバッファ6および第2
のバッファ8を使用するだけで帳票全体のイメージを回
転させることが可能となる。図6は,本発明のマーク位
置検出装置を利用した文字認識装置の構成例を示す図で
ある。図6において,20は所定のプログラムによって
各部を制御するマイクロプロセッサ,21は高速マーク
検出処理部,22は高速帳票全面イメージ回転処理部,
23は帳票位置決め処理部,24は1文字切出し処理
部,25は1文字認識部,26はファクシミリ(FA
X)アダプタ,27はファクシミリ(FAX)装置,2
8はイメージスキャナ,29は画像格納用共用メモリ,
30はワークメモリを表す。
Thus, the first buffer 6 and the second buffer 6
It is possible to rotate the image of the entire form only by using the buffer 8 of. FIG. 6 is a diagram illustrating a configuration example of a character recognition device using the mark position detection device of the present invention. In FIG. 6, reference numeral 20 denotes a microprocessor for controlling each unit according to a predetermined program; 21, a high-speed mark detection processing unit;
23, a form positioning processing unit, 24, a one-character cutout processing unit, 25, a one-character recognition unit, and 26, a facsimile (FA)
X) Adapter, 27 is a facsimile (FAX) device, 2
8 is an image scanner, 29 is a shared memory for storing images,
Reference numeral 30 denotes a work memory.

【0037】高速マーク検出処理部21は,図1に示す
間引きイメージ生成処理手段2およびマーク位置検出処
理手段3を実現するプログラムからなる処理手段であ
る。高速帳票全面イメージ回転処理部22は,図1に示
すイメージ回転処理手段4を実現するプログラムからな
る処理手段である。帳票位置決め処理部23は,高速マ
ーク検出処理部21で検出したマークから帳票の位置お
よび向きを決定するプログラムからなる処理手段であ
る。1文字切出し処理部24および1文字認識部25
は,帳票の読み取りフィールドから1文字ずつ切出し,
切出した文字を認識するプログラムからなる処理手段で
ある。
The high-speed mark detection processing section 21 is processing means comprising a program for realizing the thinned image generation processing means 2 and the mark position detection processing means 3 shown in FIG. The high-speed form entire image rotation processing unit 22 is a processing unit including a program for realizing the image rotation processing unit 4 shown in FIG. The form positioning processing unit 23 is a processing unit including a program that determines the position and orientation of the form from the marks detected by the high-speed mark detection processing unit 21. One-character extraction processing unit 24 and one-character recognition unit 25
Is cut out one character at a time from the form reading field,
This is processing means comprising a program for recognizing the extracted characters.

【0038】画像格納用共用メモリ29は,ファクシミ
リ装置27またはイメージスキャナ28から入力した帳
票イメージを格納するメモリである。ワークメモリ30
は,高速マーク検出処理部21により生成した間引きイ
メージの格納や,図1に示す第1のバッファ6および第
2のバッファ8に用いるメモリである。
The shared image storage memory 29 is a memory for storing a form image input from the facsimile machine 27 or the image scanner 28. Work memory 30
Is a memory used for storing the thinned image generated by the high-speed mark detection processing section 21 and for the first buffer 6 and the second buffer 8 shown in FIG.

【0039】1文字切出し処理部24および1文字認識
部25による文字認識は,周知の文字認識技術を用いて
実現できるので,ここでの詳細な説明は省略する。図7
は,本発明のマーク位置検出装置を利用した文字認識装
置の他の構成例を示す図である。
Since the character recognition by the one-character cut-out processing unit 24 and the one-character recognition unit 25 can be realized by using a well-known character recognition technology, detailed description is omitted here. FIG.
FIG. 3 is a diagram showing another configuration example of a character recognition device using the mark position detection device of the present invention.

【0040】高速マーク検出処理部21および高速帳票
全面イメージ回転処理部22で行う間引きイメージ生成
処理,イメージ回転処理,イメージ圧縮処理,イメージ
伸長処理を,例えば図7に示すように,間引き処理用L
SI32,回転用LSI31,イメージ圧縮用LSI3
3,イメージ伸長用LSI34などを用いて,高速に行
うことも可能である。これらの各LSIについては,既
存のデータ処理用LSIを用いるか,または周知のLS
I化技術から容易に実現することができるので,個々の
詳しい説明は省略する。
The thinning image generation processing, image rotation processing, image compression processing, and image decompression processing performed by the high-speed mark detection processing section 21 and the high-speed form full-page image rotation processing section 22 are performed, for example, as shown in FIG.
SI32, LSI for rotation 31, LSI for image compression3
3. It is also possible to perform the processing at a high speed by using an image decompression LSI 34 or the like. For each of these LSIs, an existing data processing LSI is used, or a known LSI is used.
Since it can be easily realized from the I technology, individual detailed description is omitted.

【0041】図8ないし図10は,本発明の実施例の処
理フローチャートである。図8において,ステップS1
では,帳票イメージを入力して,画像格納用共用メモリ
29に格納する。
FIGS. 8 to 10 are processing flowcharts of the embodiment of the present invention. In FIG. 8, step S1
Then, the form image is input and stored in the image storage shared memory 29.

【0042】ステップS2では,帳票イメージに対して
1/nにOR間引きしたイメージを生成する。なお,こ
の間引きイメージは,必ずしも元の帳票イメージの全体
について生成する必要はなく,例えば帳票イメージ全体
における上方の5分の1の領域というように,帳票イメ
ージの一部の領域に対してだけ生成するようにしてもよ
い。
In step S2, an image is generated by thinning out the form image by 1 / n. Note that this thinned image does not necessarily need to be generated for the entire original form image, but is generated only for a partial area of the form image, for example, the upper fifth area of the entire form image. You may make it.

【0043】ステップS3では,OR間引きしたイメー
ジを1ラインずつ走査し,セグメント(黒のドット群)
を検査する。ステップS4では,全てのセグメントにつ
いて検査が終了したかどうかを判定する。全てのセグメ
ントの検査が終了したならばステップS12の処理(図
9)へ進み,終了していないセグメントがまだあればス
テップS5の処理を行う。
In step S3, the OR-thinned image is scanned line by line, and the segment (black dot group) is scanned.
To inspect. In step S4, it is determined whether the inspection has been completed for all segments. If the inspection of all the segments has been completed, the process proceeds to step S12 (FIG. 9), and if there is any segment that has not been completed, the process of step S5 is performed.

【0044】ステップS5では,予め記憶されたマーク
の幅と近似した幅を持つセグメント(黒)を見つけたか
どうかを判定する。マーク幅と近似した幅を持つセグメ
ントを見つけた場合にはステップS6の処理へ進み,見
つけていない場合にはステップS11の処理へ進む。
In step S5, it is determined whether a segment (black) having a width similar to the width of the mark stored in advance has been found. If a segment having a width similar to the mark width is found, the process proceeds to step S6; otherwise, the process proceeds to step S11.

【0045】ステップS6では,マークの高さの1/n
と近似した高さを持つセグメント(黒)かどうかを判定
する。そのセグメントがマークの高さの1/nと近似し
ていればステップS7の処理へ進み,近似していなけれ
ばステップS11の処理へ進む。
In step S6, 1 / n of the mark height
It is determined whether or not the segment (black) has a height similar to the above. If the segment is close to 1 / n of the mark height, the process proceeds to step S7, and if not, the process proceeds to step S11.

【0046】ステップS7では,元の間引き前の帳票イ
メージから該当するセグメントの外接矩形の幅・高さを
算出する。該当するセグメントの位置は,間引きしたイ
メージにおけるセグメントの位置から計算することがで
きる。
In step S7, the width and height of the circumscribed rectangle of the corresponding segment are calculated from the original form image before thinning. The position of the corresponding segment can be calculated from the position of the segment in the thinned image.

【0047】ステップS8では,幅(x),高さ(y)
方向について,それぞれ図3に示すようなヒストグラム
を作成し,黒の画素数の正規分布から代表幅・代表高さ
を算出する。
In step S8, the width (x) and the height (y)
For each direction, a histogram as shown in FIG. 3 is created, and the representative width and the representative height are calculated from the normal distribution of the number of black pixels.

【0048】ステップS9では,マークの幅・高さと代
表幅・高さは近似しているかどうかを判定する。マーク
の幅・高さと代表幅・高さが近似している場合にはステ
ップS10の処理を行い,近似していない場合にはステ
ップS11の処理へ進む。
In step S9, it is determined whether or not the width / height of the mark and the representative width / height are similar. When the width / height of the mark and the representative width / height are approximate, the process of step S10 is performed, and when they are not approximate, the process proceeds to step S11.

【0049】ステップS10では,近似しているセグメ
ント(黒)を帳票位置基準のマークとして確定する。ス
テップS11では,処理対象を次のセグメントとし,ス
テップS4へ戻って同様にマークの検出を繰り返す。
In step S10, an approximate segment (black) is determined as a form position reference mark. In step S11, the process target is set to the next segment, and the process returns to step S4 to repeat the mark detection in the same manner.

【0050】図9において,ステップS12では,マー
クが確定して帳票の向きが特定できたかどうかを判定す
る。帳票の向きが確定した場合にはステップS24(図
10)の処理へ進み,帳票の向きが確定しない場合には
ステップS13の処理を行う。
In FIG. 9, in step S12, it is determined whether or not the mark has been determined and the orientation of the form has been specified. When the orientation of the form is determined, the process proceeds to step S24 (FIG. 10), and when the orientation of the form is not determined, the process of step S13 is performed.

【0051】ステップS13では,全ての回転方向を試
行したかどうかを判定する。全ての回転方向を試行した
場合にはステップS30の処理へ進み,試行していない
回転方向がまだある場合にはステップS14の処理を行
う。
In step S13, it is determined whether all rotation directions have been tried. If all rotation directions have been tried, the process proceeds to step S30. If there are still rotation directions that have not been tried, the process of step S14 is performed.

【0052】ステップS14では,未試行の回転方向に
帳票を回転処理する。回転は,逆向き(180度),右
向き(90度),左向き(270度)の順番で行う。ス
テップS15では,第1のバッファ6に納まる分ずつ帳
票イメージ11を分割する。
In step S14, the form is rotated in an untried rotation direction. The rotation is performed in the order of reverse (180 degrees), right (90 degrees), and left (270 degrees). In step S15, the form image 11 is divided by an amount that fits in the first buffer 6.

【0053】ステップS16では,全ての分割イメージ
に対する処理が終了したかどうかを判定する。全ての分
割イメージに対する処理が終了した場合にはステップS
19の処理へ進み,終了していない場合にはステップS
17の処理を行う。
In step S16, it is determined whether or not the processing for all the divided images has been completed. If the processing for all divided images is completed, step S
Proceeds to the process of No. 19, and if not completed, proceeds to step S
Step 17 is performed.

【0054】ステップS17では,分割イメージを回転
処理して第1のバッファ6に出力する。ステップS18
では,第1のバッファ6に回転して出力した分割イメー
ジを,所定のデータ圧縮方法により圧縮処理して第2の
バッファ8にスタックしていく。
In step S17, the divided image is rotated and output to the first buffer 6. Step S18
Then, the divided image rotated and output to the first buffer 6 is compressed by a predetermined data compression method and stacked in the second buffer 8.

【0055】ステップS19では,第2のバッファ8に
スタックした回転・圧縮イメージを順次伸長処理する。
ステップS20では,全ての回転・圧縮イメージの伸長
処理が終了したかどうかを判定する。全ての圧縮イメー
ジの伸長処理が終了した場合にはステップS23の処理
へ進み,終了していない場合にはステップS21の処理
を行う。
In step S19, the rotated and compressed images stacked in the second buffer 8 are sequentially expanded.
In step S20, it is determined whether or not expansion processing of all rotated / compressed images has been completed. If the decompression process of all the compressed images has been completed, the process proceeds to step S23, and if not completed, the process of step S21 is performed.

【0056】ステップS21では,未処理部分の回転・
圧縮イメージを伸長処理して第1のバッファ6に出力す
る。ステップS22では,第1のバッファ6に出力した
回転したイメージを画像格納用共用メモリ29の帳票イ
メージ上に上書きしていく。なお,第1のバッファ6を
用いないで,直接画像格納用共用メモリ29に展開して
もよい。
In step S21, rotation of the unprocessed portion
The compressed image is expanded and output to the first buffer 6. In step S22, the rotated image output to the first buffer 6 is overwritten on the form image in the shared image storage memory 29. The image data may be directly developed in the shared image storage memory 29 without using the first buffer 6.

【0057】ステップS23では,帳票イメージの全面
回転が完了したことにより,再度マーク検出を行うた
め,図8のステップS2へ制御を移す。マークが確定し
て,帳票の向きが特定できた場合,図10のステップS
24により,確定したマーク位置をもとに帳票の位置決
めを行う。
In step S23, control is transferred to step S2 in FIG. 8 to perform mark detection again when the full rotation of the form image is completed. When the mark is determined and the orientation of the form can be specified, the process proceeds to step S in FIG.
24, the form is positioned based on the determined mark position.

【0058】ステップS25では,帳票の全ての読み取
りフィールドについての文字認識が終了したかどうかを
判定する。全ての読み取りフィールドが終了した場合に
はステップS29の処理へ進み,終了していない場合に
はステップS26の処理を行う。
In step S25, it is determined whether character recognition has been completed for all read fields of the form. If all the reading fields have been completed, the process proceeds to step S29, and if not, the process of step S26 is performed.

【0059】ステップS26では,読み取りフィールド
内の全ての文字を1文字単位に切り出す。ステップS2
7では,全ての文字の認識処理が終了したかどうかを判
定する。全ての文字の認識処理が終了した場合にはステ
ップS25の処理へ進み,処理が終了していない場合に
はステップS28の処理を行う。
In step S26, all characters in the reading field are cut out in units of one character. Step S2
At 7, it is determined whether or not the recognition processing of all the characters has been completed. If all characters have been recognized, the process proceeds to step S25, and if not, the process proceeds to step S28.

【0060】ステップS28では,1文字ごとの認識処
理を行う。全ての読み取りフィールドについての文字認
識が終了したならば,ステップS29で文字認識結果を
出力し,帳票の読み取りを完了する。
In step S28, a recognition process is performed for each character. When the character recognition for all the reading fields is completed, the character recognition result is output in step S29, and the reading of the form is completed.

【0061】ステップS13の判定により,全ての回転
方向を試行してもマークが確定しなかった場合,ステッ
プS30(図9)により,帳票の読み取り方向が未確定
として処理を終了する。
If it is determined in step S13 that the mark has not been determined after all the rotation directions have been tried, the processing is terminated in step S30 (FIG. 9) assuming that the form reading direction has not been determined.

【0062】以上の実施例は,帳票イメージの全体につ
いて回転する例であるが,帳票の全体イメージのうちマ
ークの存在が予測される領域(以下,マーク可能領域と
いう)についてだけ,イメージの回転処理を行う実施例
も可能である。以下,この第2の実施例について説明す
る。
The above embodiment is an example in which the entire form image is rotated. However, the image rotation processing is performed only on an area where the presence of a mark is predicted in the entire form image (hereinafter referred to as a markable area). Is also possible. Hereinafter, the second embodiment will be described.

【0063】 まず,画像格納用共用メモリ中の帳票
イメージのマーク可能領域について,間引きイメージ生
成処理を行いマーク位置を検出する。 マーク位置が検出できなかった場合には,全体の帳
票イメージにおける回転後に予想されるマーク可能領域
部分だけを抽出し,回転処理を行う。
First, with respect to a markable area of a form image in the image storage shared memory, a thinned image generation process is performed to detect a mark position. If the mark position cannot be detected, only a markable area portion expected after rotation in the entire form image is extracted and rotation processing is performed.

【0064】 回転処理したマーク領域について,間
引きイメージ生成処理を行い,マーク位置の検出を行
う。以下,マーク位置を検出するまで,同様に回転を繰
り返す。
The thinned image generation processing is performed on the rotated mark area to detect the mark position. Thereafter, the rotation is similarly repeated until the mark position is detected.

【0065】先に説明した帳票イメージの全体について
回転する実施例の場合,マーク位置を検出した時点で,
正しい向きの帳票イメージが画像格納用共用メモリ中に
存在することになる。したがって,直ちにその帳票イメ
ージを用いて文字認識を行うことができる。また,処理
も簡易であるという長所がある。これに対し,第2の実
施例の場合には,マーク可能領域においてマーク位置を
検出した後,文字認識のために,さらに全体の帳票イメ
ージを正しい向きに回転させる必要がある。しかし,個
々の回転処理は,回転対象となるデータ量が少ないだけ
高速になるという長所がある。
In the embodiment described above in which the entire form image is rotated, when the mark position is detected,
The form image of the correct orientation exists in the shared memory for storing images. Therefore, character recognition can be immediately performed using the form image. Another advantage is that the processing is simple. On the other hand, in the case of the second embodiment, after detecting the mark position in the markable area, it is necessary to further rotate the entire form image in a correct direction for character recognition. However, each rotation process has the advantage of being faster as the amount of data to be rotated is smaller.

【0066】[0066]

【発明の効果】以上説明したように,本発明によれば,
帳票が正しくセットされずに帳票イメージが読み込まれ
た場合でも,帳票のマーク位置を正しくかつ高速に検出
することが可能になる。特に,ファクシミリ装置により
受信した帳票イメージの文字認識を行うような場合に,
帳票セット方向の人的ミスや,帳票イメージのズレ,傾
き等があっても,帳票の向きを正しく高速に特定するこ
とができるので,効果が大きい。また,一般に帳票イメ
ージはデータ量が膨大であるが,帳票イメージを回転さ
せるにあたって,少ないメモリ量で回転させ,帳票の向
きを特定することが可能になる。
As described above, according to the present invention,
Even when the form image is read without the form set correctly, the mark position of the form can be detected correctly and at high speed. In particular, when performing character recognition of a form image received by a facsimile machine,
Even if there is a human error in the form setting direction, a form image misalignment, a tilt, or the like, the direction of the form can be correctly and quickly specified, so that the effect is large. In general, a form image has an enormous amount of data. However, when rotating a form image, it is possible to rotate the form image with a small amount of memory and specify the orientation of the form.

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

【図1】本発明の原理構成図である。FIG. 1 is a principle configuration diagram of the present invention.

【図2】間引きイメージ生成処理およびマーク位置検出
処理を説明する図である。
FIG. 2 is a diagram illustrating a thinned image generation process and a mark position detection process.

【図3】間引きイメージ生成処理およびマーク位置検出
処理を説明する図である。
FIG. 3 is a diagram illustrating a thinned image generation process and a mark position detection process.

【図4】分割回転処理およびデータ圧縮処理を説明する
図である。
FIG. 4 is a diagram illustrating a division rotation process and a data compression process.

【図5】分割・圧縮したデータのデータ伸長処理を説明
する図である。
FIG. 5 is a diagram for explaining data expansion processing of divided and compressed data.

【図6】本発明のマーク位置検出装置を利用した文字認
識装置の構成例を示す図である。
FIG. 6 is a diagram showing a configuration example of a character recognition device using the mark position detection device of the present invention.

【図7】本発明のマーク位置検出装置を利用した文字認
識装置の他の構成例を示す図である。
FIG. 7 is a diagram illustrating another configuration example of the character recognition device using the mark position detection device of the present invention.

【図8】本発明の実施例の処理フローチャートである。FIG. 8 is a processing flowchart of the embodiment of the present invention.

【図9】本発明の実施例の処理フローチャートである。FIG. 9 is a processing flowchart of the embodiment of the present invention.

【図10】本発明の実施例の処理フローチャートであ
る。
FIG. 10 is a processing flowchart according to the embodiment of the present invention.

【図11】帳票の例を示す図である。FIG. 11 is a diagram illustrating an example of a form.

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

1 マーク位置検出装置 2 間引きイメージ生成処理手段 3 マーク位置検出処理手段 4 イメージ回転処理手段 5 分割回転処理手段 6 第1のバッファ 7 データ圧縮処理手段 8 第2のバッファ 9 データ伸長処理手段 11a〜11d 帳票イメージ REFERENCE SIGNS LIST 1 mark position detection device 2 thinned image generation processing means 3 mark position detection processing means 4 image rotation processing means 5 division rotation processing means 6 first buffer 7 data compression processing means 8 second buffer 9 data decompression processing means 11 a to 11 d Form image

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06K 9/00 - 9/82 G06K 7/00,7/10 ──────────────────────────────────────────────────続 き Continued on the front page (58) Fields surveyed (Int. Cl. 7 , DB name) G06K 9/00-9/82 G06K 7/00, 7/10

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 帳票に記されたマークの位置を検出する
ことにより,帳票における処理対象の位置を特定するマ
ーク位置検出装置において, 帳票イメージの複数行または複数列単位で間引き処理を
行い,複数行または複数列を1行または1列とした間引
きイメージを生成する間引きイメージ生成処理手段と, 前記帳票の間引きイメージを用いて,帳票イメージ中の
マーク位置を検出するマーク位置検出処理手段とを備え
たことを特徴とするマーク位置検出装置。
1. A mark position detecting device for identifying a position of a processing target in a form by detecting a position of a mark written on the form, performing a thinning process in units of a plurality of rows or a plurality of columns of the form image. A thinned image generation processing means for generating a thinned image in which a row or a plurality of columns is one row or one column; and a mark position detection processing means for detecting a mark position in the form image by using the thinned image of the form. A mark position detecting device.
【請求項2】 請求項1記載のマーク位置検出装置にお
いて, 前記間引きイメージ生成処理手段は,帳票イメージの複
数行または複数列の論理和をとることにより,前記間引
きイメージを生成することを特徴とするマーク位置検出
装置。
2. The mark position detecting device according to claim 1, wherein the thinned image generation processing means generates the thinned image by taking a logical sum of a plurality of rows or a plurality of columns of a form image. Mark position detection device.
【請求項3】 帳票に記されたマークの位置を検出する
ことにより,帳票における処理対象の位置および向きを
特定するマーク位置検出装置において, 帳票イメージの正立方向を基準とした所定の範囲で帳票
イメージ中のマーク位置を検出するマーク位置検出処理
手段と, 帳票イメージを回転させる帳票イメージ回転処理手段と
を備え,かつ,前記帳票イメージ回転処理手段は, 回転対象の帳票イメージを分割し,その分割イメージご
とに回転処理する分割回転処理手段と, 分割し回転した分割イメージを格納する第1のバッファ
と, 前記第1のバッファ内の分割イメージを所定のデータ圧
縮方法により圧縮するデータ圧縮処理手段と, 圧縮した帳票イメージを格納する第2のバッファと, 前記第2のバッファ内の圧縮帳票イメージを前記データ
圧縮方法に対応するデータ伸張方法により伸張するデー
タ伸張処理手段とを備え, 前記マーク位置検出処理手段により帳票イメージ中のマ
ーク位置が検出できなかった場合に,前記帳票イメージ
回転処理手段により帳票イメージを回転させ, 再度前記マーク位置検出処理手段によるマーク位置の検
出を行うようにしたことを特徴とするマーク位置検出装
置。
3. A mark position detecting device for specifying a position and an orientation of a processing target in a form by detecting a position of a mark written on the form, wherein the mark position is detected within a predetermined range based on an erect direction of the form image. Mark position detection processing means for detecting a mark position in the form image; form image rotation processing means for rotating the form image; and the form image rotation processing means divides the form image to be rotated, Split image
Division rotation processing means for performing rotation processing on a divided image, and a first buffer for storing the divided and rotated divided image.
And dividing the divided image in the first buffer into a predetermined data pressure.
Data compression processing means for compressing the compressed form image by a compression method, a second buffer for storing the compressed form image, and a compressed form image stored in the second buffer.
Data expanded by a data expansion method corresponding to the compression method
When the mark position in the form image cannot be detected by the mark position detection processing means, the form image is rotated by the form image rotation processing means, and the mark position is detected again by the mark position detection processing means. A mark position detecting device for detecting a mark position.
【請求項4】 請求項3記載のマーク位置検出装置にお
いて, 前記帳票イメージ回転処理手段は,元の帳票イメージの
向きに対して,時計回りまたは反時計回りに,第1回目
には帳票イメージを180度回転させ,第2回目には帳
票イメージを90度回転させ,第3回目には帳票イメー
ジを270度回転させることを特徴とするマーク位置検
出装置。
4. The mark position detecting device according to claim 3, wherein the form image rotation processing means rotates the form image clockwise or counterclockwise with respect to the direction of the original form image. A mark position detecting apparatus characterized in that the form image is rotated by 180 degrees, the form image is rotated by 90 degrees for the second time, and the form image is rotated by 270 degrees for the third time.
【請求項5】 帳票に記されたマークの位置を検出する
ことにより,帳票における処理対象の位置を特定するマ
ーク位置検出方法において, マーク検出対象の帳票イメージを複数行または複数列単
位で間引いたイメージを生成する第1の過程と, 前記間引いたイメージを用い,帳票イメージの正立方向
を基準とした所定の範囲で帳票イメージ中のマーク位置
を検出する第2の過程と, 帳票イメージ中のマーク位置が検出できなかった場合
に,帳票イメージを所定の優先順位に従った回転角度で
回転する第3の過程とを有し, 前記第1ないし第3の過程をマーク位置を検出するまで
繰り返すことを特徴とするマーク位置検出方法。
5. A mark position detecting method for specifying a position of a processing target in a form by detecting a position of a mark written on the form, wherein a form image to be detected is thinned out in units of a plurality of rows or a plurality of columns. A first step of generating an image, a second step of using the thinned image to detect a mark position in the form image within a predetermined range based on the erect direction of the form image, And a third step of rotating the form image by a rotation angle according to a predetermined priority when the mark position cannot be detected, and repeating the first to third steps until the mark position is detected. And a mark position detecting method.
JP13210695A 1995-05-30 1995-05-30 Mark position detecting device and mark position detecting method Expired - Fee Related JP3337592B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13210695A JP3337592B2 (en) 1995-05-30 1995-05-30 Mark position detecting device and mark position detecting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13210695A JP3337592B2 (en) 1995-05-30 1995-05-30 Mark position detecting device and mark position detecting method

Publications (2)

Publication Number Publication Date
JPH08329189A JPH08329189A (en) 1996-12-13
JP3337592B2 true JP3337592B2 (en) 2002-10-21

Family

ID=15073595

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13210695A Expired - Fee Related JP3337592B2 (en) 1995-05-30 1995-05-30 Mark position detecting device and mark position detecting method

Country Status (1)

Country Link
JP (1) JP3337592B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102651796B (en) * 2011-02-28 2014-09-17 株式会社理光 Residual image correcting method of electronic images and electronic image forming device

Also Published As

Publication number Publication date
JPH08329189A (en) 1996-12-13

Similar Documents

Publication Publication Date Title
EP0431962B1 (en) Method and apparatus for identification of document skew
US5822454A (en) System and method for automatic page registration and automatic zone detection during forms processing
US5410611A (en) Method for identifying word bounding boxes in text
US5748809A (en) Active area identification on a machine readable form using form landmarks
EP0843275B1 (en) Pattern extraction apparatus and method for extracting patterns
JP3278471B2 (en) Area division method
US7969631B2 (en) Image processing apparatus, image processing method and computer readable medium storing image processing program
JPH08123900A (en) Method and apparatus for decision of position for line scanning image
JPH02277185A (en) Extracting method for rectangle coordinates
JP3616256B2 (en) Image processing device
JP3062382B2 (en) Image processing apparatus and method
JP3337592B2 (en) Mark position detecting device and mark position detecting method
US5361309A (en) Character recognition apparatus and method with low-resolution storage for character extraction
US6356657B1 (en) Image processing method and apparatus for discriminating an input image area or an attribute of image information in the discriminated area
JP4146047B2 (en) Image tilt detection method and document image processing apparatus
JPH08329187A (en) Document reader
JP2803736B2 (en) Character recognition method
JP2908495B2 (en) Character image extraction device
JPH04276888A (en) Character reader
JP2004013188A (en) Business form reading device, business form reading method and program therefor
JPH09269970A (en) Method for recognizing character and its device
JP2954218B2 (en) Image processing method and apparatus
JP2933947B2 (en) Image processing method and apparatus
JPH08321942A (en) Image processing unit and method for linking image of split pattern
JPH0728934A (en) Document image processor

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20020723

LAPS Cancellation because of no payment of annual fees