JPS63103391A - Optical character reader - Google Patents

Optical character reader

Info

Publication number
JPS63103391A
JPS63103391A JP61250136A JP25013686A JPS63103391A JP S63103391 A JPS63103391 A JP S63103391A JP 61250136 A JP61250136 A JP 61250136A JP 25013686 A JP25013686 A JP 25013686A JP S63103391 A JPS63103391 A JP S63103391A
Authority
JP
Japan
Prior art keywords
character
image pattern
axis direction
scanner
paper
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP61250136A
Other languages
Japanese (ja)
Inventor
Kazuo Akiyama
和夫 秋山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP61250136A priority Critical patent/JPS63103391A/en
Publication of JPS63103391A publication Critical patent/JPS63103391A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent the image pattern of a character from protruding out of a frame indicating the character position by correcting the character position given by a format table in accordance with the measured result of a form length. CONSTITUTION:A light/darkness contrast between the back-ground on which a form 1 is placed and the surface of the form 1 is preliminarily set to a high value or proper positions in edge parts of the form 1 are preliminarily marked to detect coordinate positions of form edges with a scanner 4. Both ends in the X-axis direction and both ends in Y-axis direction are detected and are stored in a form end memories 71 and 72. Both ends in the X-axis direction and both ends in the Y-axis direction are preliminarily stored in the format table in a recognizing device 8, and the form length and the character position are obtained by a form length measuring instrument 13 and a correcting device 14. The recognizing device 8 recognizes characters in accordance with the obtained character position.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は帳票上のそれぞれあらかじめ定められている
位置に記入されている文字を読取って、当該文字を表す
文字コードを決定する光学文字読取装置に関するもので
ある。
[Detailed Description of the Invention] [Industrial Application Field] The present invention provides an optical character reading device that reads characters written in predetermined positions on a form and determines the character code representing the character. It is related to.

〔従来の技術〕[Conventional technology]

データ処理装置内ではすべての文字は文字コードの形で
処理される。しかし、人間が文字を認識するのはその文
字の画像からであって、データ処理装置内にはキャラク
タジェネレータを備えていて、文字の文字コードをキャ
ラクタジェネレータC;入力すると、その文字コードに
よって表わされる文字の画像(文字のイメージパターン
と言われている)を出力し、この文字のイメージパター
ンを表示装置上に表示し、又はプリンタで印刷すること
ができるように構成されている。
Within the data processing device, all characters are processed in the form of character codes. However, humans recognize characters from the image of the character, and the data processing device is equipped with a character generator, and when the character code of the character is input to the character generator C; It is configured to output a character image (referred to as a character image pattern) and display this character image pattern on a display device or print it out with a printer.

これとは逆に、帳票上に印字又は手書きにより記入され
ている文字から光電変換により文字のイメージパターン
を生成し、このイメージパターンから当該文字の文字コ
ードを決定する装置を光学文字読取装置と称しており、
光学文字読取装置は人間が認識する形で表されている文
字を読取って文字コードの形に変換してデータ処理装置
に入力する目的に使用される。
On the contrary, a device that generates a character image pattern by photoelectric conversion from characters printed or handwritten on a form and determines the character code of the character from this image pattern is called an optical character reader. and
An optical character reading device is used for the purpose of reading characters expressed in a form that humans can recognize, converting them into a character code form, and inputting the converted character code into a data processing device.

第3図は従来の装置を説明するブロック図で、図におい
て(1)は帳票で、A、B、Cは帳票+1)上のそれぞ
れ所定の位置に記入された文字、(2)は光源、(3)
はセンサで、光源(2)とセンサ(3)とでスキャナ(
4)を構成する。(5)はスキャナ制御装置、(6]は
制御装置、17)はイメージメモリ、(8)は認識装置
である。
FIG. 3 is a block diagram illustrating a conventional device. In the figure, (1) is a form, letters A, B, and C are written at predetermined positions on the form (+1), (2) is a light source, (3)
is a sensor, and a scanner (
4). (5) is a scanner control device, (6) is a control device, 17) is an image memory, and (8) is a recognition device.

センサ(3)は横方向(以下X軸方向とする)に多数の
光電変換素子が配列されていて、光源(2)で照射され
た帳票(1]からの反射光の強さを電気信号に変換する
The sensor (3) has a large number of photoelectric conversion elements arranged in the horizontal direction (hereinafter referred to as the X-axis direction), and converts the intensity of the reflected light from the form (1) illuminated by the light source (2) into an electrical signal. Convert.

すなわち、帳票(1)のX軸方向の1ラスタ分に相当す
る光情報が電気信号に変換されてスキャナ制御装!11
51に入力される。帳票(1)上の白地の部分からの反
射光の強さは強く、文字の線上の各点からの反射光の強
さは弱く、この強弱に応じて出力電気信号の強弱が定ま
る。スキャナ(4)からの電気信号は2値信号化されて
スキャナ制御装置(5)及び制御装置(61を経てイメ
ージメモリ(7)(二格納される。
That is, optical information corresponding to one raster in the X-axis direction of form (1) is converted into an electrical signal and sent to the scanner control device! 11
51. The intensity of the reflected light from the white area on the form (1) is strong, and the intensity of the reflected light from each point on the character line is weak, and the intensity of the output electrical signal is determined according to this intensity. The electrical signal from the scanner (4) is converted into a binary signal and stored in the image memory (7) via the scanner control device (5) and the control device (61).

また、スキャナ制御装置(5)はスキャナ(4)からX
軸方向の1ラスタ分の情報の入力を終了すると、X軸に
直角なY軸方向にスキャナ(4)を移動させて次のラス
ク分の入力を行い、このようC二して帳票(1)の全表
面をスキャンしてその出力な1m次イメージメモリ(7
)に書込む。イメージメモリ(7)内の各ビットのアド
レス位置は当該ビットに対応する画素の帳票fil上の
座標位置に対応する。
In addition, the scanner control device (5) also controls the
When you have finished inputting information for one raster in the axial direction, move the scanner (4) in the Y-axis direction perpendicular to the X-axis to input the next raster, and in this way, form the form (1). scans the entire surface of the 1m-order image memory (7
). The address position of each bit in the image memory (7) corresponds to the coordinate position on the form file of the pixel corresponding to the bit.

認識装置(8)はイメージメモリ(7)から各文字のイ
メージパターンを読出して、パターン1dil&として
従来よく知られている方法により当該イメージパターン
に対応する文字コードを決定する。
The recognition device (8) reads out the image pattern of each character from the image memory (7) and determines the character code corresponding to the image pattern by a method conventionally known as pattern 1dil&.

第4図はパターン認識の処理をなるべく容易にするため
に、鯰識装fl+81内にあらかじめ記憶されているフ
ォーマットテーブルの内容とイメージメモリ(7)の内
容とを対比して示す説明図であって、(9)はフォーマ
ットテーブルの帳票用紙の縁を示す座標位置と、帳票(
1)内に文字の記入さるべき位置を示す枠(10)の座
標位置とを仮に図面を用いて表示してあり、(11)は
イメージメモリ(7)においてフォーマットテーブルの
(9)に対応するアドレス位if、(12)はイメージ
メモリ(7)においてフォーマットテーブルの枠(10
)に対応する枠であり、A、B、Cはイメージメモリ(
7)内の各文字のイメージパターンが実際に記憶される
アドレス位置である。
FIG. 4 is an explanatory diagram showing a comparison between the contents of the format table stored in advance in the catfish identification device fl+81 and the contents of the image memory (7) in order to make pattern recognition processing as easy as possible. , (9) is the coordinate position indicating the edge of the form paper in the format table and the form (
1) The coordinate position of the frame (10) indicating the position where the character should be written is tentatively displayed using a drawing, and (11) corresponds to (9) of the format table in the image memory (7). Address position if, (12) is stored in the image memory (7) in the frame (10) of the format table.
), and A, B, and C are the frames corresponding to the image memory (
7) is the address position where the image pattern of each character is actually stored.

イメージメモリ(7)全領域内のイメージパターンから
各文字をそれぞれ区別して認識するよりも、各文字が記
入されることに定められている各枠(10)内のイメー
ジパターンから当該文字を認識する方がより容易である
ため、&i!1m装置(8)内には第4図に示す枠(1
0)の座標位置がフォーマットテーブルとして記憶され
ており、枠(10)に対応する枠(12)のアドレス範
囲内だけのイメージパターンを読出して文字認識を行っ
ている。
Image memory (7) Rather than recognizing each character separately from the image pattern in the entire area, the character is recognized from the image pattern in each frame (10) in which each character is written. &i! Inside the 1m device (8) there is a frame (1) shown in Figure 4.
The coordinate position of 0) is stored as a format table, and character recognition is performed by reading image patterns only within the address range of the frame (12) corresponding to the frame (10).

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

然し、帳票用紙は湿度の変化等により伸縮したり、スキ
ャナ(4)に対する位置すれがありたりしてイメージメ
モリ(7)内の文字の実際座標位置が、当該文字位置を
表すとしてあらかじめ与えられた枠(12)の座標位置
からはみ出して、第4図に示す関係位置となり、文字認
識の障害となるという問題があった。
However, the actual coordinate position of the character in the image memory (7) may not be the same as the one given in advance as representing the character position because the form expands or contracts due to changes in humidity, etc., or there is misalignment with the scanner (4). There was a problem in that it protruded from the coordinate position of the frame (12) and reached the relative position shown in FIG. 4, which hindered character recognition.

この発明は上記のような問題点を解決するためになされ
たもので、枠の座標位置から文字のイメージパターンが
はみ出すことのない光学文字読取り装置を得ることを目
的としている。
The present invention has been made to solve the above-mentioned problems, and an object of the present invention is to provide an optical character reading device in which a character image pattern does not protrude from the coordinate position of a frame.

〔問題点を解決するための手段〕[Means for solving problems]

この発明では帳票用紙の用紙長を測定する用紙長測定装
置を設(す、実際に測定した用紙長とフォーマットテー
ブルにより与えられた用紙長との比を求め、この比を用
いて枠のアドレス位置を補正し、枠から文字のイメージ
パターンがはみ出さぬようにした。
In this invention, a paper length measuring device is provided to measure the paper length of form paper.The ratio between the actually measured paper length and the paper length given by the format table is determined, and this ratio is used to determine the address position of the frame. was corrected so that the character image pattern did not protrude from the frame.

〔作用〕[Effect]

枠から文字のイメージパターンがはみ出すことがないの
で、文字認識率が向上する。
Since the character image pattern does not protrude from the frame, the character recognition rate is improved.

〔実施例〕〔Example〕

以下この発明の実施例を図面について説明する。 Embodiments of the present invention will be described below with reference to the drawings.

第1図はこの発明の一実施を示すブロック図で、第1図
において第3図と同一符号は同−又は相当部分を示し、
(13)は制御装ft+61内に設けられる用紙長測定
装置としての機能、(14)は認識装置(8)内に設け
られる補正装置としての機能を示し、(71)、(72
)はそれぞれ用紙端メモリである。また第2図は認識装
置(8)内のフォーマットテーブルとイメージメモリ(
7)の内容とを対比した説明図で、第4図と同一符号は
同−又は相当部分を示し、(12a)は補正装置(14
)により補正された枠の座標位置を示す。
FIG. 1 is a block diagram showing one implementation of the present invention, and in FIG. 1, the same reference numerals as in FIG. 3 indicate the same or corresponding parts,
(13) shows the function as a paper length measuring device provided in the control device ft+61, (14) shows the function as a correction device provided in the recognition device (8), (71), (72)
) are paper edge memories. Figure 2 also shows the format table and image memory (
7), the same reference numerals as in FIG. 4 indicate the same or corresponding parts, and (12a) is the correction device (14).
) shows the coordinate position of the frame corrected by

帳票(1)を載置する背景と、帳票(1)の用紙の面と
の明暗のコントラストを良くしておくか、又は帳票(1
)の縁部の適当な位置にマークを付しておけば、スキャ
ナ(4)により容易に用紙への座標位置を検出すること
ができる。X軸方向の両端、Y軸方向の両端を検出しこ
れを用紙端メモIJ (71)、(72)に記憶する。
Make sure that there is a good contrast between the background on which the form (1) is placed and the surface of the form (1), or
), the coordinate position on the paper can be easily detected by the scanner (4). Both ends in the X-axis direction and both ends in the Y-axis direction are detected and stored in paper end notes IJ (71) and (72).

X軸方向の両端、Y軸方向の両端は認識装置1tist
内のフォーマットテーブルに記憶されているので用紙長
測定装[(13)と補正装置1ft (14)とにより
、x= aXo+ x6−fil * y= byo+
 ye−+21の補正式で示される定数ar b + 
X6 t 76の値を決定することができる。但し、式
fil 、 +21におけるxo、yoはフォーマット
テーブル上の座標位置を表し、X r )’はイメージ
メモリ上の座標位置を表すO 認識装置(8)内の補正装置(14)はフォーマットテ
ーブル内の枠(lO)の座標位置を弐Fil 、 +2
1を用いてイメージメモリ上の枠(12a)の座標位置
に変換する。枠(12a)の位置は文字のイメージパタ
ーンABCの位置と正確に一致する。
Both ends of the X-axis direction and both ends of the Y-axis direction are recognition devices 1tist.
Since it is stored in the format table in the paper length measuring device [(13) and the correction device 1ft (14),
Constant ar b + expressed by the correction formula of ye-+21
The value of X6 t 76 can be determined. However, xo and yo in the formula fil, +21 represent the coordinate position on the format table, and X r )' represents the coordinate position on the image memory. The coordinate position of the frame (lO) is 2Fil, +2
1 to convert to the coordinate position of the frame (12a) on the image memory. The position of the frame (12a) exactly matches the position of the character image pattern ABC.

従って枠(12a)の座標位置に従って各文字のイメー
ジパターンを認識すれば、認識処理が容易になり、文字
読取率を向上することができる。
Therefore, by recognizing the image pattern of each character according to the coordinate position of the frame (12a), the recognition process becomes easier and the character reading rate can be improved.

〔発明の効果〕〔Effect of the invention〕

以上のようにこの発明によれば、用紙長の測定結果に従
ってフォーマットテーブルにより与えられた文字位置を
補正するので、文字のイメージパターンが文字位置を示
す枠からはみ出すことがなく、読取率の高い光学文字読
取装置を得ることができる。
As described above, according to the present invention, since the character position given by the format table is corrected according to the paper length measurement result, the character image pattern does not protrude from the frame indicating the character position, and the optical system has a high reading rate. A character reading device can be obtained.

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

第1図はこの発明の一実施例を示すブロック図、第2図
は第1図の装置において認識装置内のフォーマットテー
ブルとイメージメモリの内容とを対比した説明図、第3
図は従来の装置を示すブロック図、第4図は第3図の装
置において認識装置内のフォーマットテーブルとイメー
ジメモリの内容とを対比した説明図。 (1)は帳票、(4)はスキャナ、(5)はスキャナ制
#装置、(6)は用紙長測定装置It(13)を含む制
御装置、(7)はイメージメモリ、(8)は補正J&t
(14)を含む認識装置。 尚、各図中同一符号は同−又は相当部分を示す。
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is an explanatory diagram comparing the format table in the recognition device and the contents of the image memory in the device shown in FIG. 1, and FIG.
The figure is a block diagram showing a conventional device, and FIG. 4 is an explanatory diagram comparing the format table in the recognition device and the contents of the image memory in the device of FIG. (1) is a form, (4) is a scanner, (5) is a scanner system # device, (6) is a control device including a paper length measuring device It (13), (7) is an image memory, and (8) is a correction J&t
(14) A recognition device comprising: Note that the same reference numerals in each figure indicate the same or corresponding parts.

Claims (1)

【特許請求の範囲】 それぞれあらかじめ定められた位置に文字が記入されて
いる帳票を走査して、この帳票からの反射光を電気信号
に変換するスキャナと、このスキャナにより電気信号に
変換された情報を上記帳票上の各文字のイメージパター
ンを含むイメージパターンに変換してイメージメモリに
格納する制御装置と、上記イメージメモリに格納されて
いる文字のイメージパターンを読出して当該文字を表す
文字コードを決定する認識装置とを有する光学文字読取
装置において、 上記スキャナにより上記帳票の用紙の端の位置を読取る
手段、 上記用紙の端の位置から用紙長を算出する用紙長測定装
置、 この用紙長測定装置により算出された実際の用紙長と、
あらかじめ与えられた用紙長との比を求め、この比を用
いて各文字に対応してあらかじめ定められた文字位置を
各文字の帳票上の実際位置に変換する補正装置、 この補正装置により変換された帳票上の各文字の実際位
置に従って、上記認識装置においてそれぞれの文字を認
識する手段、 を備えたことを特徴とする光学文字読取装置。
[Claims] A scanner that scans a form on which characters are written in predetermined positions and converts reflected light from the form into an electrical signal, and information converted into an electrical signal by the scanner. a control device that converts the image pattern into an image pattern including an image pattern of each character on the form and stores it in an image memory; and a control device that reads the image pattern of the character stored in the image memory and determines a character code representing the character. an optical character reading device comprising: a means for reading the position of the edge of the paper of the form by the scanner; a paper length measuring device for calculating the paper length from the position of the edge of the paper; The calculated actual paper length and
A correction device that calculates a ratio to a predetermined paper length and uses this ratio to convert a predetermined character position corresponding to each character to an actual position of each character on a form; An optical character reading device comprising: means for recognizing each character in the recognition device according to the actual position of each character on the written form.
JP61250136A 1986-10-21 1986-10-21 Optical character reader Pending JPS63103391A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61250136A JPS63103391A (en) 1986-10-21 1986-10-21 Optical character reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61250136A JPS63103391A (en) 1986-10-21 1986-10-21 Optical character reader

Publications (1)

Publication Number Publication Date
JPS63103391A true JPS63103391A (en) 1988-05-09

Family

ID=17203360

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61250136A Pending JPS63103391A (en) 1986-10-21 1986-10-21 Optical character reader

Country Status (1)

Country Link
JP (1) JPS63103391A (en)

Similar Documents

Publication Publication Date Title
KR920022125A (en) Character data entry system
US5293469A (en) Apparatus for generating a graphic image having symbols whose centers and aligned with each other and whose sizes are adjusted to accord with each other
JPH08190610A (en) Optical character reader
JPS63103391A (en) Optical character reader
JP2000022869A (en) Non-contact type image reader
TW390072B (en) Method for obtaining relative and absolute errors in longitudinal and latitudinal amplification ratio from a scanner
JPH0239387A (en) Reader
JPH04151785A (en) Optical character reader
JPS61289476A (en) Format forming system for character reader
JP2001126025A (en) For ocr format parameter generation method
JPH07160814A (en) Optical character recognizing method
JP2798013B2 (en) Two-dimensional code reading method and apparatus
JP2004318896A (en) Non-contact image reading apparatus
JPH05314311A (en) Optical character reader
JPH02272688A (en) Optical character reader
JPH03189781A (en) Optical character reader
JPH02153488A (en) Marking character reader
JPS62160590A (en) Format generating system for character reader
JPH02187883A (en) Document reader
JPH01180081A (en) Optical character reader
JPH01284990A (en) Optical character reading system
JPH09153111A (en) Optical character reader
JPS6134683A (en) Optical character reader
JPH0357066A (en) Document proofreading device
JPH05298484A (en) Optical character reader