JPH036553B2 - - Google Patents

Info

Publication number
JPH036553B2
JPH036553B2 JP56067026A JP6702681A JPH036553B2 JP H036553 B2 JPH036553 B2 JP H036553B2 JP 56067026 A JP56067026 A JP 56067026A JP 6702681 A JP6702681 A JP 6702681A JP H036553 B2 JPH036553 B2 JP H036553B2
Authority
JP
Japan
Prior art keywords
photoelectric conversion
image memory
conversion signal
signal
mask
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
JP56067026A
Other languages
Japanese (ja)
Other versions
JPS57182873A (en
Inventor
Masaki Komya
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
Tokyo Shibaura Electric 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 Tokyo Shibaura Electric Co Ltd filed Critical Tokyo Shibaura Electric Co Ltd
Priority to JP56067026A priority Critical patent/JPS57182873A/en
Publication of JPS57182873A publication Critical patent/JPS57182873A/en
Publication of JPH036553B2 publication Critical patent/JPH036553B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/14Image acquisition
    • G06V30/146Aligning or centring of the image pick-up or image-field
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Character Input (AREA)

Description

【発明の詳細な説明】 本発明は文字行間が接近している帳票の読取り
を可能にした光学的文字読取装置に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an optical character reading device that is capable of reading forms in which character lines are close to each other.

従来の光学的文字読取装置では、帳票のスキユ
ーによる読取対象行に対して上下の行から文字パ
ターンの侵入を防ぐために行ピツチに一定の制限
があり、接近した文字行の読取りはできなかつ
た。文字行が接近した帳票の読取りで問題になる
のは、読取対象行に対して上下の行の文字パター
ンが侵入するため、行間の分離ができないことで
ある。即ち、水平並びに垂直斜影の分離ができな
いことである。
In conventional optical character reading devices, there is a certain limit on the line pitch to prevent character patterns from entering the line to be read from lines above and below the line to be read due to skew of the form, and it is not possible to read character lines that are close to each other. A problem when reading forms with close character lines is that the character patterns of the lines above and below the line to be read invade, making it impossible to separate the lines. That is, it is impossible to separate horizontal and vertical oblique shadows.

本発明はこれら従来の欠点を解決し、文字行間
が接近している帳票の読取りができる光学的文字
読取装置を提供することを目的とする。
SUMMARY OF THE INVENTION An object of the present invention is to solve these conventional drawbacks and to provide an optical character reading device that can read forms in which character lines are close to each other.

以下図面を用いて本発明を詳細に説明する。第
1図は本発明の一実施例を示すブロツク図であ
る。符号1で示すものは、装置全体の制御を行な
う制御部である。符号2で示すものはバスであ
る。符号3で示すものは、帳票上に記録された文
字パターンを電気信号に変換し、量子化、前処理
を行なう光電変換部である。スキユー検出部4
は、光電変換部3から出力される光電変換信号か
ら帳票のスキユーを検出する。画像メモリ7は、
光電変換信号を記憶することにより約一行分の帳
票イメージを記憶する。画像メモリ制御部6は、
この画像メモリ7の主にアドレス制御をする。マ
スク部5は、画像メモリ7のY方向アドレスに合
わせて相対的にその位置が可変となる射影マスク
を発生する。
The present invention will be explained in detail below using the drawings. FIG. 1 is a block diagram showing one embodiment of the present invention. Reference numeral 1 indicates a control section that controls the entire device. What is indicated by the reference numeral 2 is a bus. Reference numeral 3 denotes a photoelectric conversion unit that converts a character pattern recorded on a form into an electrical signal, and performs quantization and preprocessing. Skew detection unit 4
detects the skew of the form from the photoelectric conversion signal output from the photoelectric conversion unit 3. The image memory 7 is
By storing the photoelectric conversion signal, a form image for about one line is stored. The image memory control unit 6
Address control of this image memory 7 is mainly performed. The mask unit 5 generates a projection mask whose position is relatively variable according to the Y-direction address of the image memory 7.

符号8で示すものはゲート回路である。符号9
で示すものは、画像メモリ7に記憶された光電変
換信号を用いて文字パターンのX軸に写る垂直射
影をとり、それを記憶する垂直射影部、符号10
で示すものは水平射影部である。文字認識部11
は、特徴抽出法、構造解析法、パターンマツチン
グなど公知の認識法により文字パターンの認識及
びリジエクト判定をする。符号12で示すものは
1行または1帳票分の認識結果を記憶するバツフ
ア、符号13で示すものはインタフエース部であ
る。
What is indicated by the reference numeral 8 is a gate circuit. code 9
10 is a vertical projection unit that takes a vertical projection of the character pattern on the X axis using the photoelectric conversion signal stored in the image memory 7 and stores it.
The part shown by is the horizontal projection part. Character recognition section 11
recognizes character patterns and makes reject decisions using known recognition methods such as feature extraction, structural analysis, and pattern matching. 12 is a buffer for storing recognition results for one line or one form, and 13 is an interface section.

以下、第1図乃至第3図を用いて本発明の一実
施例を詳細に説明する。光電変換部3は帳票を走
査して得た光電変換信号を出力する。この光電変
換信号はスキユー検出部4、画像メモリ7、ゲー
ト回路8に与えられる。次に第2図を用いてスキ
ユー検出部4のスキユー検出動作を説明する。符
号20で示すものは帳票で矢印C方向へ搬送され
る。帳票20の横幅lに対し一定の値n(0<n
≦0.5)を掛けてl・nとl−l・nを算出し、
その値をスキユー検出部4内のレジスタに格納し
ておく。スキユー検出部4は光電変換部3から出
力される光電変換信号を入力し、この光電変換信
号の白レベルの幅を検出する。この白レベルの幅
がl・n及びl−l・nの長さになつた時点でス
キユー検出部4は、それぞれ帳票20の先端の白
紙部分を検出したことを示すステータスを発生す
る。制御部1は、この両ステータスが発生する時
間差又は帳票搬送系のドライブ信号を計数して、
両ステータスが発生する間に帳票20が搬送され
る距離Lを算出する。帳票20上のA点及びB点
は、それぞれ左右端より距離l・nにある点であ
る。帳票20が搬送されて光電変換部3に達した
時、スキユーがなければA,B両点は同時に検出
され前記両ステータスが同時に発生する。スキユ
ーが発生した時帳票の傾斜度Dは、D=L÷(l
−2ln)≒1÷dとして算出する。またスキユー
の方向は、光電変換信号の一走査において、白レ
ベルが左右どちら側から先に出現するかによつて
検出できる。これらステータス及び算出されたテ
ータは、全てスキユー検出部4内のレジスタに格
納される。
Hereinafter, one embodiment of the present invention will be described in detail using FIGS. 1 to 3. The photoelectric conversion unit 3 outputs a photoelectric conversion signal obtained by scanning the form. This photoelectric conversion signal is given to the skew detection section 4, the image memory 7, and the gate circuit 8. Next, the skew detection operation of the skew detection section 4 will be explained using FIG. What is indicated by the reference numeral 20 is a form and is conveyed in the direction of arrow C. A certain value n (0<n
≦0.5) to calculate l・n and l−l・n,
The value is stored in a register within the skew detection section 4. The skew detection section 4 inputs the photoelectric conversion signal output from the photoelectric conversion section 3 and detects the width of the white level of this photoelectric conversion signal. When the width of the white level reaches the lengths l.n and l-l.n, the skew detection section 4 generates a status indicating that a blank portion at the leading edge of the form 20 has been detected. The control unit 1 counts the time difference between the two statuses or the drive signal of the form conveyance system, and
The distance L that the form 20 is transported while both statuses occur is calculated. Point A and point B on the form 20 are points located at distances l and n from the left and right ends, respectively. When the form 20 is conveyed and reaches the photoelectric conversion unit 3, if there is no skew, both points A and B are detected at the same time, and both of the above-mentioned statuses occur simultaneously. When skew occurs, the inclination D of the form is D=L÷(l
-2ln)≒1÷d. Furthermore, the direction of skew can be detected by determining which side, left or right, the white level appears first in one scan of the photoelectric conversion signal. These statuses and calculated data are all stored in a register within the skew detection section 4.

いま、第3図に示すように帳票20が左にスキ
ユーしながら搬送されたとする。光電変換部3は
A点−B点間の距離の中間点Mを帳票20の仮想
始端とし、中間点Mから距離F離れた点を中心と
し垂直方向の視野をJとする点線で囲んだ領域E
を走査する。画像メモリ7は画像メモリ制御部6
の制御のもとに、この走査の得られた帳票イメー
ジを示す光電変換信号を格納する。画像メモリ7
の記憶内容は、帳票のスキユーをカバーできるよ
うに文字行一行分より大きくしておく。第3図で
示した例では距離Gの範囲にわたつて、下側の文
字行から文字パターンが侵入した状態で画像メモ
リ7に帳票イメージが光電変換信号として格納さ
れる。このままでは画像メモリ7の内容から垂直
斜影を取つても、下から侵入した文字パターンの
影響で距離Gにわたる部分の垂直斜影がつながつ
てしまい1文字の検出切り出しができない。
Now, suppose that the form 20 is conveyed while skewing to the left as shown in FIG. The photoelectric conversion unit 3 takes the midpoint M of the distance between points A and B as the virtual starting end of the form 20, and forms an area surrounded by a dotted line centered on a point a distance F away from the midpoint M, with a vertical field of view J. E
scan. The image memory 7 is an image memory control unit 6
Under the control of this scan, a photoelectric conversion signal representing the form image obtained from this scan is stored. Image memory 7
The memory content of is set to be larger than one line of text to cover skew in the form. In the example shown in FIG. 3, the form image is stored in the image memory 7 as a photoelectric conversion signal over a range of distance G with the character pattern intruding from the lower character line. If this continues, even if the vertical diagonal shadows are removed from the contents of the image memory 7, the vertical diagonal shadows over a distance G will be connected due to the effect of the character pattern entering from below, making it impossible to detect and cut out one character.

また、同時に光電変換信号はゲート回路8に与
えられている。ゲート回路8ではマスク部5から
出力されるマスク信号をゲート信号とし、このゲ
ート信号が与えられたとき光電変換信号が通過し
て出力されるようになつている。マスク部5は、
スキユー検出部4から得たスキユーの方向及び傾
斜度Dから次のようにしてマスク信号を発生す
る。マスク信号は読取対象行の仮想中心線Nを中
心として一定の幅yをもつて位置しており、光電
変換部3がx方向へdビツト走査する毎に1ビツ
ト上下いずれかスキユー方向にあわせて移動する
ものである。第3図の帳票20は左に傾斜して搬
送されているので、マスク信号は帳票20の左端
では仮掃中心線Nから下にyの幅のところに位置
しており、右端では仮想中心線Nの上に位置して
いる。このようにゲート回路8を介して得た光電
変換信号で垂直射影部9が垂直射影をとれば、下
の文字行からの文字侵入の影響を受けずに射影が
とれる。次にこの垂直射影をもとに画像メモリ制
御部6が画像メモリ7から1文字づつ光電変換さ
れた文字パターンを切り出す。この切り出された
文字パターンは、オープン状態のゲート回路8を
介して文字認識部11へ与えられる。文字認識部
11では、切り出された文字パターンの認識を行
ないその答をバツフア12へ出力する。このバツ
フアに格納された答は、インタフエース部13を
介して外部へ出力する。また、切り出された文字
パターンは、水平射影部10で水平射影がとら
れ、そこで文字のはみ出しや侵入の確認が行なわ
れる。
Further, at the same time, the photoelectric conversion signal is given to the gate circuit 8. The gate circuit 8 uses the mask signal output from the mask section 5 as a gate signal, and when this gate signal is applied, the photoelectric conversion signal passes through and is output. The mask part 5 is
A mask signal is generated from the skew direction and inclination D obtained from the skew detection section 4 in the following manner. The mask signal is positioned with a constant width y centered on the virtual center line N of the row to be read, and every time the photoelectric conversion unit 3 scans d bits in the x direction, it is shifted one bit either up or down in the skew direction. It is something that moves. Since the form 20 in FIG. 3 is conveyed with an inclination to the left, the mask signal is located at a width of y downward from the temporary sweeping center line N at the left end of the form 20, and at the virtual center line at the right end. It is located above N. If the vertical projection unit 9 performs vertical projection using the photoelectric conversion signal obtained via the gate circuit 8 in this manner, the projection can be performed without being affected by character intrusion from the character line below. Next, based on this vertical projection, the image memory control section 6 cuts out a photoelectrically converted character pattern from the image memory 7 one character at a time. This extracted character pattern is given to the character recognition section 11 via the gate circuit 8 which is in an open state. The character recognition unit 11 recognizes the extracted character pattern and outputs the answer to the buffer 12. The answer stored in this buffer is output to the outside via the interface section 13. Further, the cut out character pattern is subjected to horizontal projection in a horizontal projection section 10, where it is checked whether the characters protrude or intrude.

以上の説明では光電変換信号を画像メモリ7に
格納するのと並行して垂直射影をとる実施例を示
したが、次のようにしてもよい。一担画像メモリ
7に光電変換信号を格納した後、画像メモリ7か
ら読出す文字パターンをマスク信号によつてゲー
ト回路8でマスクした文字パターンで垂直射影を
とつてもよい。更に次のようにしてもよい。一担
画像メモリ7に光電変換信号を格納した後、スキ
ユー検出部4で得られたスキユー方向と傾斜度D
をもとに画像メモリ制御部6がアドレス制御し
て、画像メモリ7から文字パターンの侵入を排除
して残つた部分を読出すようにする。このとき画
像メモリ7から読出された文字パターンをゲート
回路8でマスクなしに通過させ垂直射影部9で垂
直射影をとる。
In the above description, an embodiment has been described in which vertical projection is performed in parallel with storing the photoelectric conversion signal in the image memory 7, but the following method may also be used. After storing the photoelectric conversion signal in the image memory 7, the character pattern read out from the image memory 7 may be vertically projected using the character pattern masked by the gate circuit 8 using a mask signal. Furthermore, you may do as follows. After storing the photoelectric conversion signal in the single image memory 7, the skew direction and inclination degree D obtained by the skew detection section 4 are
Based on this, the image memory control section 6 performs address control to eliminate the intrusion of the character pattern from the image memory 7 and read out the remaining portion. At this time, the character pattern read out from the image memory 7 is passed through a gate circuit 8 without a mask, and a vertical projection section 9 takes a vertical projection.

以上の詳細な説明から明らかなように、本発明
によれば次のような効果がある。文字行間が接近
している帳票の読取りが可能になつた。垂直射影
をとるときに、帳票のスキユーによる影響が取り
除けるので、垂直射影を利用した文字パターンの
検出切り出しができる。
As is clear from the above detailed description, the present invention has the following effects. It is now possible to read forms with text lines that are close together. When vertical projection is taken, the influence of form skew can be removed, so character patterns can be detected and extracted using vertical projection.

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

第1図は本発明の一実施例を示すブロツク図、
第2図は帳票を説明するための図、第3図はスキ
ユーした状態で搬送されている帳票を示す図であ
る。 3……光電変換部、4……スキユー検出部、5
……マスク部、6……画像メモリ制御部、7……
画像メモリ、8……ゲート回路、9……垂直射影
部、11…水平射影部。
FIG. 1 is a block diagram showing one embodiment of the present invention;
FIG. 2 is a diagram for explaining a form, and FIG. 3 is a diagram showing a form being conveyed in a skewed state. 3... Photoelectric conversion section, 4... Skew detection section, 5
...Mask section, 6... Image memory control section, 7...
Image memory, 8...gate circuit, 9...vertical projection section, 11...horizontal projection section.

Claims (1)

【特許請求の範囲】 1 帳票を走査して帳票イメージを光電変換し光
電変換信号を出力する光電変換部と、一行分以上
の光電変換信号を記憶する画像メモリと、帳票の
傾き方向と傾斜度を検出するスキユー検出部と、
前記帳票の傾き方向と傾斜度を用いてマスク信号
を発生するマスク部と、このマスク信号を用いて
前記画像メモリから読出した光電変換信号に対し
マスク処理を行うゲート回路と、マスク処理によ
り抽出した読取対象行に対して垂直射影をとる垂
直射影部と、この垂直射影を用いて前記画像メモ
リから読出した文字パターンを認識する認識部と
を具備することを特徴とする光学的文字読取装
置。 2 前記光電変換信号を前記画像メモリに記憶さ
せ、これと平行して前記マスク信号を用いて該光
電変換信号に対しマスク処理を行うゲート回路と
を具備することを特徴とする特許請求の範囲第1
項記載の光学的文字読取装置。 3 帳票を走査して帳票イメージを光電変換し光
電変換信号を出力する光電変換部と、前記光電変
換信号から帳票の傾き方向と傾斜度を検出するス
キユー検出部と、前記帳票の傾き方向と傾斜度を
用いてマスク信号を発生するマスク部と、このマ
スク信号を用いて前記光電変換部より出力された
光電変換信号に対しマスク処理を行うゲート回路
と、マスク処理により抽出した光電変換信号を記
憶する画像メモリと、この画像メモリから読出し
た光電変換信号に対して垂直射影をとる垂直射影
部と、この垂直射影を用いて前記画像メモリから
読出した文字パターンを認識する認識部とを具備
することを特徴とする光学的文字読取装置。
[Scope of Claims] 1. A photoelectric conversion unit that scans a form, photoelectrically converts the form image, and outputs a photoelectric conversion signal, an image memory that stores photoelectric conversion signals for one or more lines, and a direction and degree of inclination of the form. a skew detection unit that detects
a mask unit that generates a mask signal using the inclination direction and degree of inclination of the form; a gate circuit that uses the mask signal to perform mask processing on the photoelectric conversion signal read out from the image memory; An optical character reading device comprising: a vertical projection unit that takes a vertical projection on a line to be read; and a recognition unit that uses the vertical projection to recognize a character pattern read from the image memory. 2. A gate circuit that stores the photoelectric conversion signal in the image memory and performs mask processing on the photoelectric conversion signal using the mask signal in parallel. 1
Optical character reading device as described in Section 1. 3. A photoelectric conversion unit that scans a form, photoelectrically converts the form image, and outputs a photoelectric conversion signal, a skew detection unit that detects the direction and degree of inclination of the form from the photoelectric conversion signal, and a skew detection unit that detects the direction and degree of inclination of the form from the photoelectric conversion signal. a gate circuit that uses the mask signal to perform mask processing on the photoelectric conversion signal output from the photoelectric conversion section; and a gate circuit that stores the photoelectric conversion signal extracted by the mask processing. a vertical projection unit that performs a vertical projection on a photoelectric conversion signal read from the image memory, and a recognition unit that uses the vertical projection to recognize a character pattern read from the image memory. An optical character reading device featuring:
JP56067026A 1981-05-06 1981-05-06 Optical character reader Granted JPS57182873A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP56067026A JPS57182873A (en) 1981-05-06 1981-05-06 Optical character reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP56067026A JPS57182873A (en) 1981-05-06 1981-05-06 Optical character reader

Publications (2)

Publication Number Publication Date
JPS57182873A JPS57182873A (en) 1982-11-10
JPH036553B2 true JPH036553B2 (en) 1991-01-30

Family

ID=13332958

Family Applications (1)

Application Number Title Priority Date Filing Date
JP56067026A Granted JPS57182873A (en) 1981-05-06 1981-05-06 Optical character reader

Country Status (1)

Country Link
JP (1) JPS57182873A (en)

Also Published As

Publication number Publication date
JPS57182873A (en) 1982-11-10

Similar Documents

Publication Publication Date Title
US4516265A (en) Optical character reader
US4355301A (en) Optical character reading system
JPH02306386A (en) Character recognizing device
EP0809205A2 (en) Character line detecting apparatus using simplified projection information and method thereof and character recognition apparatus thereof and method thereof
JPH036553B2 (en)
EP0076332A1 (en) Optical character reader with pre-scanner
JPH0548510B2 (en)
JPH07230525A (en) Method for recognizing ruled line and method for processing table
JPH0373916B2 (en)
JPH0564396B2 (en)
JPH036552B2 (en)
CA1148656A (en) Optical character reading system
JPH0728953A (en) Character detecting device
JPH0225553B2 (en)
JPS62200486A (en) Character reader
JP2888885B2 (en) Character extraction device
JPH07271902A (en) Optical character reader
JP2832035B2 (en) Character recognition device
JPS6149554A (en) Image segmenting circuit
JPS5953983A (en) Detecting and segmenting method of character
JPH03230289A (en) Method for determining ruled line and character recognizing device
JPH04148391A (en) Optical character reader
JPS6362025B2 (en)
JPH01305488A (en) Character inclination angle detector
JPS62194590A (en) Character recognizing system