JPS6339090A - Optical character reader - Google Patents

Optical character reader

Info

Publication number
JPS6339090A
JPS6339090A JP61182729A JP18272986A JPS6339090A JP S6339090 A JPS6339090 A JP S6339090A JP 61182729 A JP61182729 A JP 61182729A JP 18272986 A JP18272986 A JP 18272986A JP S6339090 A JPS6339090 A JP S6339090A
Authority
JP
Japan
Prior art keywords
read
counter
line
reading
scanning
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
JP61182729A
Other languages
Japanese (ja)
Inventor
Akira Sakabe
坂部 明
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 JP61182729A priority Critical patent/JPS6339090A/en
Publication of JPS6339090A publication Critical patent/JPS6339090A/en
Pending legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)

Abstract

PURPOSE:To know the storing direction of the scan data by reading previously slip classification codes described on a slip and recognizing the describing direction of a reading object. CONSTITUTION:The slip classification code showing format information on a slip is read before a reading object on the slip is read. A control part recognizes the describing direction of the reading object from said slip classification code. Then an address to be supplied is controlled so that the storing direction of scanned data is changed in response to the describing direction of the reading object. When the describing direction of the reading object is a 1st direction, for example, the scanned data is stored in the direction where the row addresses are gradually decreased from a row address '4095' and a column address '127' of a memory 1. While the scan data is stored in the direction where the row addresses are gradually increased from a row address '0000' and a column address '0' of the memory 1 when the description of the reading object is set in a 2nd direction.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、光学式文字読取装置(以下、OCRと略す)
に関し、特に帳票上の読取対象を走査して得られた走査
データの格納に関する。
[Detailed Description of the Invention] (Industrial Application Field) The present invention is an optical character reading device (hereinafter abbreviated as OCR).
In particular, the present invention relates to storage of scan data obtained by scanning an object to be read on a form.

(従来の技術) OCRは、帳票上に記載された文字、記号等の読取対象
を光学的に走査し、走査して得られたイメージ・ぐター
ンデータを予め格納した標準・ぐターンとマツチングし
て読取対象の認識を行うものである。
(Prior technology) OCR optically scans the objects to be read, such as characters and symbols written on a form, and matches the image data obtained by scanning with pre-stored standard patterns. The system recognizes the object to be read.

第2図は、従来のOCRの一構成例を示すプロンク図、
第3図は帳票説明図である。これらの図において、搬送
機構部(図中省略)によ、9H方向に搬送される帳票3
0は、帳票搬送基準線31に対して幅広な帳票30a、
または幅狭な帳票30b等の種々のサイズのものがある
。このため、搬送機構部は、どんなサイズの帳票でも正
常に搬送することのできるように、搬送用ロー232を
図面に向かって帳票の右側、つまり帳票搬送基準線31
側に集中して配置している。
FIG. 2 is a Pronk diagram showing an example of the configuration of a conventional OCR.
FIG. 3 is an explanatory diagram of a form. In these figures, the form 3 is transported in the 9H direction by the transport mechanism (not shown).
0 indicates a form 30a that is wide with respect to the form conveyance reference line 31;
Alternatively, there are various sizes such as a narrow form 30b. For this reason, the conveyance mechanism unit moves the conveyance row 232 to the right side of the form when facing the drawing, that is, to the form conveyance reference line 31, so that the document of any size can be conveyed normally.
It is concentrated on the side.

第2図に戻って、光源33は、帳票30の読取対象面を
照光するものである。光電変換部34は、帳票30から
の反射光を電気信号に変換するイメージセンサ35と、
該電気信号をディジタル化するA/D変換回路36とか
ら構成される。
Returning to FIG. 2, the light source 33 illuminates the surface of the form 30 to be read. The photoelectric conversion unit 34 includes an image sensor 35 that converts reflected light from the form 30 into an electrical signal;
It is composed of an A/D conversion circuit 36 that digitizes the electric signal.

認識部37は、ラインバッファメモリ部38と、2値化
回路39と、2値化メモリ40と、文字認識回路41と
から構成される。ラインバッファメモリ部38は、VD
変換回路36でディジタル化された走査データを−ライ
ン分格納する。2値化回路39は、格納された走査デー
タを2値化し、2値化メモリ40は2値化された文字パ
ターンを格納する。文字認識回路41は、ラインバッフ
ァメモリ部38の出力を制御し、2値化回路39及び2
値化メモリ40を介して得られたーライン分の文字ツク
ターンから各文字毎の切出しを行い、切出した文字を予
め格納した標準パターンとマツチングして認識処理する
。認識された゛文字の文字コードは、制御部42へ送出
される。
The recognition section 37 includes a line buffer memory section 38, a binarization circuit 39, a binarization memory 40, and a character recognition circuit 41. The line buffer memory section 38 has VD
The scanning data digitized by the conversion circuit 36 is stored for -line. The binarization circuit 39 binarizes the stored scan data, and the binarization memory 40 stores the binarized character pattern. The character recognition circuit 41 controls the output of the line buffer memory section 38 and the binarization circuits 39 and 2.
Each character is cut out from the -line character pattern obtained through the digitization memory 40, and the cut out characters are matched with a pre-stored standard pattern and recognized. The character code of the recognized character is sent to the control unit 42.

制御部42は、主制御部43と機構制御部44とから構
成される。主制御部43は、文字認識回路41から出力
された文字コードを内部メモリに格納し、必要に応じて
格納された文字コードを上位装置(例えば認識文字を表
示するデイスプレィ装置)へ送出する。機構制御部44
は、主制御部43から帳票の属性を示すフォーマット情
報(後述する)を受取シ、このフォーマット情報に基づ
き搬送機構部(図中省略)及びラインバッファメモリ部
38の格納動作を制御する。
The control section 42 includes a main control section 43 and a mechanism control section 44. The main control unit 43 stores the character code output from the character recognition circuit 41 in an internal memory, and sends the stored character code to a host device (for example, a display device for displaying recognized characters) as necessary. Mechanism control section 44
receives format information (described later) indicating attributes of the form from the main control unit 43, and controls storage operations of the transport mechanism unit (not shown) and the line buffer memory unit 38 based on this format information.

次に、OCRの初期動作について説明する。Next, the initial operation of OCR will be explained.

先ず、OCRは読取る帳票の属性(例えば、帳票がどの
ようなサイズ、文字種等を有するものなのか)を認知す
るために、帳票種別コード(以下、IDコードと略す)
が記載されたID行を無条件に読取る。ID行45は、
一番最初に読取られる必要があるので、第3図に示すよ
うに、帳票30の先端に位置し、ID行45が読取られ
ると、前述したように、光電変換部34、認識部37を
介して得られたIDコード情報が主制御部43に送られ
る3(第2図参照)。主制御部43は、このIDコード
情報に基づき読取るべき帳票30のフォーマット情報を
認知し、このフォーマット情報を機構制御部44へ送出
する。フォーマット情報とは、例えば、帳票に記載され
た各文字行の位置(又は間隔)、文字種、文字の大きさ
等を示すものである。このような情報を有するフォーマ
ット情報は。
First, OCR uses a form type code (hereinafter abbreviated as ID code) in order to recognize the attributes of the form to be read (for example, what size, character type, etc. the form has).
Reads the ID line where is written unconditionally. ID line 45 is
Since it needs to be read first, as shown in FIG. The ID code information obtained is sent to the main control section 43 (see FIG. 2). The main control section 43 recognizes the format information of the form 30 to be read based on this ID code information, and sends this format information to the mechanism control section 44 . Format information indicates, for example, the position (or spacing) of each character line written on a form, character type, character size, etc. Format information containing such information is:

帳票の搬送や、光電変換部34からの走査データの格納
を制御するのに用いられる。従って、フォーマット情報
、即ちIDコードは、OCRにとって必須なものとなっ
ている。
It is used to control the transportation of forms and the storage of scan data from the photoelectric conversion unit 34. Therefore, format information, ie, an ID code, is essential for OCR.

以下、フォーマット情報に基づく帳票搬送及びラインバ
ッファメモリ部38の格納についての動作を、第4図を
参照して説明する。第4図は、帳票上の読取対象行を走
査して得られた走査データの格納を説明する図である。
Hereinafter, operations for transporting forms and storing them in the line buffer memory unit 38 based on format information will be described with reference to FIG. FIG. 4 is a diagram illustrating storage of scan data obtained by scanning a line to be read on a form.

前述したように1機構制御部44は、主制御部43から
読取るべき帳票30のフォーマット情報を受は取ると、
搬送機構部を制御して第4図に示す帳票3oの一ライン
目の読取領域46を走査可能な読取位置まで搬送させる
。また、機構制御部44は、ラインバッファメモリ部3
8に対して、−ライン目の読取領域46に対応したメモ
リ領域38a(ローアドレス:0000”〜’ 409
5”、カラムアドレス二″0”〜″127”)を割当て
、格納される走査データのローアドレスを指定するXカ
ウンタ38bK″oooo”を、カラムアドレスを指定
するYカウンタ38eに01を初期セットする。つ−1
シ、読取領域46は副走査方向に128本の走査線で走
査され、読取領域46の左上端部(図中向って)が、ラ
イフ ハッ7アメモ!738aのローアドレス” oo
oo ”とカラムアドレス′O#とで指定される領域に
対応し、イメージセンサ35の走査開始点がこの領域に
一致する。−ライン目の読取領域46の前記左上端部か
ら右方に向けて走査が開始されると、この主走査方向の
走査速度に応じてXカウンタ38bが1”ずつ加算され
、走査点が読取領域46の右上端部に位置したとき、X
カウンタ38bは4095”に達する。これで、読取領
域46の第1走査線の走査データが、カラムアドレス“
0”上に全て格納される。機構制御部44は、Xカウン
タ38bが” 4085 ’に達すると、搬送機構部に
よシ帳票30をH方向に搬送させ、Xカウンタ38bに
” oooo ”をリセットする。これと同時に、副走
査方向の走査速度に応じて、Yカウンタ38cは11を
加算する。上記動作はYカウンタ38cが“127”に
達するまで、即ち読取領域46が128本の走査線で走
査されるまで行われ、Xカウンタ38bが4095”で
Yカウンタ38cが′127”のとき、読取領域46の
全ての走査データがラインバッファメモリ38aに格納
される。
As mentioned above, upon receiving the format information of the form 30 to be read from the main control unit 43, the one-mechanism control unit 44 performs the following operations.
The transport mechanism section is controlled to transport the reading area 46 of the first line of the form 3o shown in FIG. 4 to a reading position where it can be scanned. The mechanism control unit 44 also controls the line buffer memory unit 3.
8, the memory area 38a corresponding to the −th line reading area 46 (row address: 0000''~' 409
5", column address 2"0" to "127"), and initializes the X counter 38bK"oooo", which specifies the row address of the scanned data to be stored, and the Y counter 38e, which specifies the column address, to 01. .tsu-1
The reading area 46 is scanned with 128 scanning lines in the sub-scanning direction, and the upper left end of the reading area 46 (facing in the figure) is the life 7 amemo! 738a low address” oo
oo'' and the column address 'O#, and the scanning start point of the image sensor 35 coincides with this area. When scanning is started, the X counter 38b is incremented by 1" in accordance with the scanning speed in the main scanning direction, and when the scanning point is located at the upper right end of the reading area 46,
The counter 38b reaches 4095". Now, the scanning data of the first scanning line in the reading area 46 is transferred to the column address "4095".
0". When the X counter 38b reaches "4085', the mechanism control unit 44 causes the transport mechanism to transport the form 30 in the H direction, and resets the X counter 38b to "oooo". do. At the same time, the Y counter 38c adds 11 according to the scanning speed in the sub-scanning direction. The above operation is performed until the Y counter 38c reaches "127", that is, until the reading area 46 is scanned with 128 scanning lines. When the X counter 38b is 4095" and the Y counter 38c is 127", the reading All scan data of area 46 is stored in line buffer memory 38a.

その結果、第4図に示すように、読取領域46に記載さ
れた2.3.4”の数字は、あたかもそのまま投影した
ような正像として格納されたことになる。
As a result, as shown in FIG. 4, the number 2.3.4" written in the reading area 46 is stored as a normal image as if it were projected as is.

一ライン目の読取領域46の全ての走査データがライン
バックアメモリ38aに格納されると。
When all the scan data of the first line reading area 46 is stored in the line backer memory 38a.

走査データは格納した順番に従って第2図に示す2値化
回路39.2値化メモIJ 40を介して文字認識回路
41へ供給される。その後、帳票30の2ライン目の読
取領域47が、1ライン目のときと同様にして走査され
、その走査データがラインバッファメモリ38aに格納
される。
The scan data is supplied to the character recognition circuit 41 via the binarization circuit 39 and binarization memo IJ 40 shown in FIG. 2 in the order in which they were stored. Thereafter, the reading area 47 of the second line of the form 30 is scanned in the same manner as the first line, and the scanned data is stored in the line buffer memory 38a.

(発明が解決しようとする問題点) しかしながら、上記構成のOCRでは、次のような問題
点があった。
(Problems to be Solved by the Invention) However, the OCR having the above configuration has the following problems.

第5図及び第6図は、それぞれ帳票上の読取対象及びI
D行の記載例である。
Figures 5 and 6 show the target to be read on the form and the I
This is an example of the description in line D.

上記OCRで、捺印を有する帳票の読取シを行う場合、
前述したように帳票の右側に集中して配置された各搬送
用ローラ(第3図参照)が、押捺された捺印の朱肉と接
触して汚損されないように、帳票のフォーマットは第5
図に示すように捺印欄51を日本語文書の氏名記入欄5
2の左側(図面に向って)に設ける等の工夫が成されて
いた。このため、帳票は、一般の日本語文書と異なる書
式を有し、またこのような書式によシ帳票設計上におい
ても制約を受けていた。
When reading a form with a seal using the above OCR,
As mentioned above, the format of the form is set to 5 so that the conveyance rollers (see Figure 3), which are concentrated on the right side of the form, do not come into contact with the vermillion ink of the stamp and become soiled.
As shown in the figure, the seal field 51 is the name entry field 5 of the Japanese document.
The device was devised such as installing it on the left side of 2 (facing the drawing). For this reason, the form has a format different from that of general Japanese documents, and this format also imposes restrictions on the design of the form.

また、上記欠点の解決策として、第6図に示すように日
本語文書の氏名記入欄52の右側て捺印欄51を設けた
帳票を反転させて読取ることが考えられる。しかし、こ
のような場合においても上記OCRでは、ID行45の
文字向きAと、読取行52の文字向きB′とが一致して
おらず(第5図のID行45の文字向きAと読取行の文
字向きBは一致)、即ち帳票搬送方向に対して読取行5
2の文字が逆さまになっているため(第5図の文字と比
較して)、ラインバックアメモリに格納される各文字の
走査データは正像として格納されず(第4図参照)、反
転した像として格納されてしまう。
Further, as a solution to the above-mentioned drawback, it is conceivable to invert and read a document in which a stamp field 51 is provided on the right side of a name entry field 52 of a Japanese document, as shown in FIG. However, even in such a case, in the above OCR, the character orientation A of the ID line 45 and the character orientation B' of the reading line 52 do not match (the character orientation A of the ID line 45 and the character orientation B' of the reading line 52 in FIG. The character direction B of the lines is the same), that is, the reading line 5 is aligned with the document conveyance direction.
Because the characters in Figure 2 are upside down (compared to the characters in Figure 5), the scanned data for each character stored in the linebacker memory is not stored as a normal image (see Figure 4), but as an inverted image. It will be stored as an image.

このため、各文字の正しい認識処理を行うことは不可能
であった。
For this reason, it has been impossible to perform correct recognition processing for each character.

そこで、本発明は上記各問題点を解決し、種々の書式を
有する帳票に対して読取対象の記載向きにかかわらず読
取対象の読取シを行える、優れた読取機能を有するOC
Rを提供することを目的とする。
Therefore, the present invention solves the above-mentioned problems and provides an OC with an excellent reading function that can read documents with various formats regardless of the direction in which they are written.
The purpose is to provide R.

(問題点を解決すΣための手段) 本発明は、前記問題点を解決するために、帳票上の読取
対象を光学的に走査することにより得られた走査データ
を、走査速度に同期して制御部から供給されるアドレス
に基づきメモリに格納し、該メモリに格納された走査デ
ータに基づき前記読取対象の認識を行う光学式文字読取
装置を対象とする。
(Means for Solving the Problems) In order to solve the above problems, the present invention provides scanning data obtained by optically scanning an object to be read on a form in synchronization with the scanning speed. The present invention is directed to an optical character reading device that stores data in a memory based on an address supplied from a control unit and recognizes the object to be read based on scan data stored in the memory.

上記光学式文字読取装置の制御部は、予め帳票に記載さ
れた、帳票のフォーマット情報を示す帳票種別コードを
読取ることによシ読取対象の記載方向を認識し、認識し
た読取対象の記載方向に応じて走査データの格納方向が
かわるように、供給するアドレスの制御を行うものであ
る。
The control unit of the optical character reading device recognizes the written direction of the object to be read by reading the form type code that is written in advance on the form and indicates the format information of the form, and The supplied address is controlled so that the storage direction of scan data changes accordingly.

(作用) 本発明によれば、以上のように光学式文字読取装置を構
成したので、技術的手段は次のように作用する。
(Operation) According to the present invention, since the optical character reading device is configured as described above, the technical means operates as follows.

先ず、帳票上の読取対象を読取る前に、帳票のフォーマ
ット情報を示す帳票種別コードを読取る。
First, before reading the object to be read on the form, the form type code indicating the format information of the form is read.

このフォーマット情報とは、例えば読取対象領域位置、
文字種等の各種情報を含むものであり、ここでは、読取
対象の記載方向を示すフォーマント情報を帳票種別コー
ドから得る。
This format information includes, for example, the position of the area to be read,
It includes various information such as character type, and here, formant information indicating the writing direction of the object to be read is obtained from the form type code.

制御部は、読取られた帳票種別コーPから、読取対象の
記載方向を認識し、この認識した読取対象の記載向きに
応じて走査データの格納方向がかわるように、供給する
アドレスを制御する。例えば、読取対象の記載方向が、
第1の方向の場合には、走査データをメモリのローアド
レス″’ 4095”。
The control unit recognizes the written direction of the read object from the read document type code P, and controls the supplied address so that the storage direction of the scan data changes according to the recognized written direction of the read object. For example, if the writing direction of the object to be read is
For the first direction, scan data to memory row address "'4095".

カラムアドレス″127”からローアドレスが順次小さ
くなる方向に向けて格納し、又読取対象の記載方向が第
2の方向の場合には、走査データをメモリのローアドレ
ス″″oooo”、カラムアドレス″O”からローアド
レスが順次大きくなる方向に向けて格納する。
The row address is stored in the direction in which the row address becomes smaller sequentially from the column address "127", and if the written direction of the object to be read is the second direction, the scan data is stored at the memory row address ""oooo" and the column address " The row addresses are stored in the direction in which the row addresses become larger sequentially from "0".

従って、本発明によれば、読取対象の記載向きにかかわ
らず種々の書式を有する帳票の読取りを行うことができ
、よって前記問題点を解決できるのである。
Therefore, according to the present invention, it is possible to read documents having various formats regardless of the direction in which they are written, thereby solving the above-mentioned problems.

(実施例) 以下、本発明の一実施例を図面を参照して詳細に説明す
る。
(Example) Hereinafter, an example of the present invention will be described in detail with reference to the drawings.

第1図は1本発明の一実施例によるOCRの、認識部の
一部のラインバッファメモリ部と、その格納を制御する
制御部との構成を示すブロック図である。本実施例は、
従来の説明で用いた第2図中のラインバッファメモリ部
38及び制御部42を除去し、その代わりに第1図に示
す構成のラインバッファメモリ部1と制御部2とを設け
て構成され、その他の各構成要素は従来と同一である。
FIG. 1 is a block diagram showing the configuration of a part of a line buffer memory section of a recognition section of an OCR according to an embodiment of the present invention, and a control section that controls storage thereof. In this example,
The line buffer memory section 38 and control section 42 in FIG. 2 used in the conventional explanation are removed, and instead, the line buffer memory section 1 and control section 2 having the configuration shown in FIG. 1 are provided. The other components are the same as before.

第1図において、ラインバッファメモリ部1の構成は、
光電変換部34からの走査データを格納するラインパッ
クアメモリ5と、加減算機能を有し、ラインバッファメ
モリ5に格納される走査データのローアドレス、カラム
アドレスを指定するXカウンタ6及びXカウンタ7と、
制御部2の指令によシXカウンタ6とYカランタフの加
算又は減算動作の切換を行うアンドグー)8.9,10
゜11及び反転ダート12とから成る。
In FIG. 1, the configuration of the line buffer memory section 1 is as follows:
A line pack memory 5 that stores scan data from the photoelectric converter 34, and an X counter 6 and an X counter 7 that have addition and subtraction functions and specify the row address and column address of the scan data stored in the line buffer memory 5. and,
8.9, 10
11 and an inverted dart 12.

制御部2は、主制御部3と機構制御部4とから構成され
る。主制御部3は、第2図に示す主制御部3の動作機能
に加えて、読取ったIDコードから読取対象の記載向を
判別する機能を有する(後述する)。機構制御部4は、
主制御部3の制御によシラインパックアメモリ部1の格
納を制御する。
The control section 2 includes a main control section 3 and a mechanism control section 4. In addition to the operational functions of the main control section 3 shown in FIG. 2, the main control section 3 has a function of determining the orientation of the object to be read from the read ID code (described later). The mechanism control unit 4 is
Storage in the cylinder pack memory section 1 is controlled under the control of the main control section 3.

機構制御部4は、格納される走査データの初期アドレス
を指定するために、Xカウンタ6とXカウンタ7に対し
て初期カウンタデータバス13によシ初期データをセッ
トする。また、機構制御部4はXカウンタ6とXカウン
タ7の加算又は減算の選択を行うために、カウンタ制御
信号14により論理″1”又は0”をセットする。この
カウンタ制御信号14は、ラインバッファメモリ部1内
のアンドグ”−)8.10及び反転ゲート12の入力に
それぞれ供給される。更に、機構制御部4から送出され
るX信号15は、主走査方向の走査速度に対応し、論理
”1″、“0″に対応したパルス列を有するパルス信号
であり、この信号はアンドゲート8,9の入力に供給さ
れる。Y信号16は、副走査方向の走査速度に対応し、
X信号15と同様に論理″1″、′0”に対応した・ぐ
ルス列を有する・5ルス信号であシ、このY信号16は
、アンドグー)10.11の入力に供給される。また、
カウンタ制御信号14を受取った反転ゲート12は、そ
の出力全アンドグー)9.11の入力へ供給する。この
ように機構制御部4がらの各信号と接続された各ダート
において、アンドr−)8.9の出力はそれぞれXカウ
ンタ6のアップカウント端子UCとダウンカウント端子
DCへ供給され、アンドグー)10.11の出力はそれ
ぞれXカウンタ8のアップカウント端子UCとダウンカ
ウント端子DCへ供給される。
The mechanism control unit 4 sets initial data to the X counter 6 and the X counter 7 on the initial counter data bus 13 in order to designate the initial address of the scan data to be stored. Further, the mechanism control unit 4 sets the logic "1" or "0" by the counter control signal 14 in order to select addition or subtraction between the X counter 6 and the X counter 7. The input signals are supplied to the inputs of ANDG () 8 and 10 in the memory section 1 and the inverting gate 12, respectively. Further, the X signal 15 sent from the mechanism control unit 4 is a pulse signal having a pulse train corresponding to the scanning speed in the main scanning direction and corresponding to logic "1" and "0", and this signal is sent to the AND gate 8. , 9. The Y signal 16 corresponds to the scanning speed in the sub-scanning direction,
Similar to the X signal 15, this Y signal 16 is a 5 pulse signal having a pulse train corresponding to logic "1" and '0'. ,
Inverting gate 12, which receives counter control signal 14, supplies its output to the input of 9.11. In each dart connected to each signal from the mechanism control section 4 in this way, the outputs of ANDr-)8.9 are supplied to the up-count terminal UC and down-count terminal DC of the X counter 6, respectively, and the outputs of ANDr-)10 The outputs of .11 are respectively supplied to the up count terminal UC and down count terminal DC of the X counter 8.

尚、下表に各信号線とダート出力の論理関係を示す。The table below shows the logical relationship between each signal line and dart output.

表1かられかるように、カウンタ制御信号14が論理″
1”のときアンドデート8と10が開き、論理″0”の
ときアンドダート9と11が開く。
As can be seen from Table 1, the counter control signal 14 is
When the logic is ``1'', AND dates 8 and 10 are open, and when the logic is ``0'', AND darts 9 and 11 are open.

次に1本実施例によるOCRの動作、特にラインバッフ
ァメモリ部の格納動作について説明するが、ここでは前
述した第5図及び第6図に示される帳票を読取の対象と
する。尚、本実施例では、読取対象の記載向きを判別す
るために、帳票に記載されるZDコードの文字向きと読
取対象の記載向きとが一致するか否かを示す方向情報を
、予めIDコート9に付与しておく。
Next, the operation of the OCR according to the present embodiment, particularly the storage operation of the line buffer memory section, will be described.Here, the documents shown in FIGS. 5 and 6 mentioned above are to be read. In this embodiment, in order to determine the writing orientation of the object to be read, direction information indicating whether or not the character orientation of the ZD code written on the form matches the writing direction of the object to be read is stored in advance in the ID code. Give it to 9.

先ず、帳票先端に記載されたIDコート9の読取りが行
われると、主制御部3は、該帳票の読取対象の記載向き
がIDコードの文字向きと一致するか否か、即ち、該帳
票が第5図に示す書式のものかあるいは第6図に示す書
式のものかを認識する。
First, when the ID code 9 written on the leading edge of the form is read, the main control unit 3 determines whether the written orientation of the object to be read on the form matches the character orientation of the ID code, that is, whether the form is It recognizes whether it is in the format shown in FIG. 5 or in the format shown in FIG.

この認識結果を受取った機構制御部4は、読取る帳票が
第5図に示す書式であれば、従来と同様に帳票の1ライ
ン目の読取領域を読取位置まで搬送させ、ラインバッフ
ァメモリ5に1ライン目の読取領域に対応したメモリ領
域(ローアドレス” oooo ’から′4095’、
カラムアドレス″0#から“127″)を割当て、走査
データの初期アドレスを決定するためにXカウンタ6に
oooo”を、Xカウンタ7に′0”を初期データセッ
トする(第4図参照)。そして、機構制御部4は、読取
走査開始とともに、カウンタ制御信号14を論理″′1
#にセットし、X信号15及びY信号16を出力する。
When the mechanism control unit 4 receives this recognition result, if the document to be read has the format shown in FIG. Memory area corresponding to the reading area of the line (from row address "oooo' to '4095',
Column addresses "0# to "127") are assigned, and oooo" is set in the X counter 6 and "0" is set in the X counter 7 as initial data to determine the initial address of the scan data (see FIG. 4). Then, the mechanism control unit 4 converts the counter control signal 14 to the logic "'1" at the start of the reading scan.
#, and outputs the X signal 15 and Y signal 16.

すると、各アン11’−)8 、9 、10゜11の動
作によシ(第1表参照)、Xカウンタ6とXカウンタ7
のアップカウント端子UCが活性化され、各X、Yカウ
ンタ6.7は共にアップカラン′りとしてイネーブルさ
れる。このため、Xカウンタ6は0000 、0001
・・・4095″′と、Xカウンタ7は′″0,1・・
・1271とカウント動作分行う。従って第1ライン目
の読取領域から得られた第1走査線の走査データは従来
と同様に、格納方向が左から右へ(第4図に示すように
ローアドレス”oooo”から4095 ’へ向けて)
ラインバッファ5に格納される。以後、’ 4095 
’に達したXカウンタ6は、機構制御部4によシ″oo
oo ’にリセットされ、第2、第3.・・・第128
走査線の各走査データは、それぞれカラムアドレス″1
”、”2”、・−”127”上に格納される。
Then, due to the operation of each angle 11'-)8, 9, 10°11 (see Table 1), the X counter 6 and the X counter 7
The up-count terminal UC of is activated, and each X and Y counter 6.7 is enabled as an up-counter. Therefore, the X counter 6 is 0000, 0001
...4095'', and X counter 7 is ''0, 1...
・Perform 1271 and count operations. Therefore, the scanning data of the first scanning line obtained from the reading area of the first line is stored from left to right (from the row address "oooo" to 4095' as shown in Figure 4), as in the past. hand)
It is stored in the line buffer 5. From then on, '4095
When the X counter 6 reaches 'oo
oo', the second, third . ...No. 128
Each scan data of a scan line is assigned a column address "1".
","2", . . . -"127".

次に、読取るべき帳票が第6図に示すような書式(ID
コードの文字向きが読取対象の記載向きと反対)である
と認識された場合、先ず機構制御部4は帳票の1ライン
目の読取領域を読取位置まで搬送させ、Xカウンタ6に
” 4095”を、Xカウンタ7に127”を初期デー
タセットし、走査開始に伴ってカウンタ制御信号14を
論理″0”にセットする。この場合、第1表に示すよう
に、Xカウンタ6とXカウンタ7のダウンカウント端子
は、それぞれX信号15とY信号16が論理″1″のと
きダウンカウンタとしてイネーブルされ、Xカウンタ6
は4095、−、、0001 、0000”と、Xカウ
ンタ7は’127.・・・1,0”とカウント動作を行
う。従って、第1ライン目の読取領域から得られた第1
走査線の走査データは、前述の第5図の帳票の場合にお
ける走査データの格納方向と異なシ、ラインバッファメ
モリの右下すみ(ローアドレス“4095”と力ジムア
ドレス”127’の領域、第4図参照)から屓次左方へ
向けて格納される。以後、oooo ’に達したXカウ
ンタ6は、機構制御部4によシ″4095 ’にリセッ
トされ、第2.第3・・・・・・第128走査線の走査
データは、それぞれカラムアドレス″126′、”12
5’、・・・0”上に格納される。従って、読取行の各
文字の記載向きが、10コーげの文字向きと一致しなく
ても、走査データは正像としてラインバッファメモリに
格納される。
Next, the form to be read is in the format shown in Figure 6 (ID
If it is recognized that the character direction of the code is opposite to the writing direction of the object to be read, the mechanism control unit 4 first transports the reading area of the first line of the form to the reading position and sets "4095" on the X counter 6. , 127" is set as initial data in the X counter 7, and the counter control signal 14 is set to logic "0" at the start of scanning. In this case, as shown in Table 1, the X counter 6 and the X counter 7 are The down count terminal is enabled as a down counter when the X signal 15 and Y signal 16 are logic "1", respectively, and the X counter 6
is 4095, -, 0001, 0000'', and the X counter 7 performs a counting operation as ``127...1,0''. Therefore, the first
The scanning data of the scanning line is stored in the lower right corner of the line buffer memory (the area of the row address "4095" and the gym address "127'," Afterwards, the X counter 6, which has reached oooo', is reset to ``4095'' by the mechanism control unit 4, and the second. The scanning data of the 3rd...128th scanning line are at column addresses "126' and "12," respectively.
5',...0''. Therefore, even if the writing direction of each character in the reading line does not match the character direction of the 10th line, the scanned data is stored as a normal image in the line buffer memory. be done.

このように、本実施例によれば、読取対象の記載向きを
認識することにより、その記載向きに応じて走査データ
の格納方向をかえるようにしたので、搬送ローラの汚損
を心配することなく、日本文の文書の生活習慣に順応し
たような、自己のサイン欄の右側に捺印欄を設けたよう
な帳票設計が可能となり、一般文書のOCR帳票への適
用が非常に円滑に成されることが期待できる。
In this way, according to this embodiment, by recognizing the written orientation of the object to be read, the storage direction of the scanned data is changed according to the written orientation, so there is no need to worry about the conveyance roller getting dirty. It is possible to create a form design in which a stamp field is provided to the right of the signature field, which is adapted to the lifestyle habits of Japanese-language documents, and application of general documents to OCR forms can be achieved very smoothly. can be expected.

(発明の効果) 以上、詳細に説明したように本発明によれば、予め帳票
に記載された帳票種別コードを読取ることにより、読取
対象の記載方向を認識し、この認識した読取対象の記載
方向に応じて走査データの格納方向がかわるようにした
ので、読取対象の記載方向にかかわらず、種々の書式を
有する帳票の読取りを行うことができる。このため、一
般文書のOCRの帳票への適用が非常に幅広く行え、ひ
いてはOCRの適用範囲を拡張することができる。
(Effects of the Invention) As described above in detail, according to the present invention, by reading the form type code written on the form in advance, the writing direction of the reading object is recognized, and the writing direction of the reading object is recognized. Since the storage direction of the scan data is changed according to the direction of the scan data, documents having various formats can be read regardless of the writing direction of the object to be read. Therefore, OCR of general documents can be widely applied to forms, and the range of application of OCR can be expanded.

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

第1図は本発明の一実施例を示すブロック図、第2図は
従来のOCRの一構成例を示すブロック図、第3図は帳
票説明図、第4図は帳票上の読取対象行の格納説明図、
第5図及び第6図は帳票上に記載、れた読取対象とID
コードの記載例図である。 1・・・ラインパンツアメモリ部、2・・・制御部、3
・・・、制御部、4・・・機構制御部、6・・・Xカウ
ンタ、7・・・Yカウンタ、8,9.10.11・・・
アンドデート、12・・・反転ダート、13・・・初期
カウンタデータバス、14・・・カウンタ制御信号、1
5・・・X信号、16・・・Y信号、30・・・帳票、
34・・・光電変換部、37・・・認識部。
Fig. 1 is a block diagram showing an embodiment of the present invention, Fig. 2 is a block diagram showing an example of the configuration of a conventional OCR, Fig. 3 is an explanatory diagram of a form, and Fig. 4 shows a line to be read on a form. Storage diagram,
Figures 5 and 6 show the reading target and ID written on the form.
It is a diagram showing an example of code description. 1... Line pants amemory part, 2... Control part, 3
..., control section, 4... mechanism control section, 6... X counter, 7... Y counter, 8, 9.10.11...
AND date, 12... Inverted dart, 13... Initial counter data bus, 14... Counter control signal, 1
5...X signal, 16...Y signal, 30... form,
34... Photoelectric conversion unit, 37... Recognition unit.

Claims (1)

【特許請求の範囲】 帳票上の読取対象を光学的に走査することにより得られ
た走査データを、走査速度に同期して制御部から供給さ
れるアドレスに基づきメモリに格納し、該メモリに格納
された走査データに基づき前記読取対象の認識を行う光
学式文字読取装置において、前記制御部は、 予め帳票に記載された、帳票のフォーマット情報を示す
帳票種別コードを読取ることにより、読取対象の記載方
向を認識し、認識した読取対象の記載方向に応じて走査
データの格納方向がかわるように、供給するアドレスの
制御を行うことを、特徴とする光学式文字読取装置。
[Claims] Scanning data obtained by optically scanning an object to be read on a form is stored in a memory based on an address supplied from a control unit in synchronization with the scanning speed; In the optical character reading device that recognizes the object to be read based on scanned data, the control unit reads a form type code that is written in advance on the form and indicates the format information of the form, thereby recognizing the description of the object to be read. What is claimed is: 1. An optical character reading device that recognizes a direction and controls a supplied address so that the storage direction of scanned data changes according to the recognized writing direction of a reading target.
JP61182729A 1986-08-05 1986-08-05 Optical character reader Pending JPS6339090A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61182729A JPS6339090A (en) 1986-08-05 1986-08-05 Optical character reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61182729A JPS6339090A (en) 1986-08-05 1986-08-05 Optical character reader

Publications (1)

Publication Number Publication Date
JPS6339090A true JPS6339090A (en) 1988-02-19

Family

ID=16123422

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61182729A Pending JPS6339090A (en) 1986-08-05 1986-08-05 Optical character reader

Country Status (1)

Country Link
JP (1) JPS6339090A (en)

Similar Documents

Publication Publication Date Title
US4516265A (en) Optical character reader
JP2553608B2 (en) Optical character reader
JPS5975375A (en) Character recognizer
JPS6339090A (en) Optical character reader
EP0076332A1 (en) Optical character reader with pre-scanner
JPH0391884A (en) Address detector
JP3926944B2 (en) Mail reading device and mail reading method
JPS6152518B2 (en)
JPH0225553B2 (en)
JPH07271902A (en) Optical character reader
JPH03123989A (en) Character recognition device
JPS6242284A (en) Character and mark reader
JPS6239458B2 (en)
JPS63177284A (en) Optical character reader
JPH0696273A (en) Recognition field retrieving method in business form reader
JPS61196382A (en) Character segmenting system
JPH0478981A (en) Optical character reader
JPH11338969A (en) Optical character reader
JPS63311491A (en) Optical character reader
JPH01102691A (en) Address detecting device for business form end in image buffer
JPS59216281A (en) Optical character reading device
JPS6358587A (en) Mark reader
JP2001259532A (en) Reader, paper sheet treatment apparatus, reading method and paper sheet treatment method
JPH09282468A (en) Image processor and its method
JPS648392B2 (en)