JPH02222084A - Optical character reader - Google Patents
Optical character readerInfo
- Publication number
- JPH02222084A JPH02222084A JP1043534A JP4353489A JPH02222084A JP H02222084 A JPH02222084 A JP H02222084A JP 1043534 A JP1043534 A JP 1043534A JP 4353489 A JP4353489 A JP 4353489A JP H02222084 A JPH02222084 A JP H02222084A
- Authority
- JP
- Japan
- Prior art keywords
- slip
- read
- graphic
- character
- control information
- 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
Links
Landscapes
- Character Input (AREA)
Abstract
Description
【発明の詳細な説明】
皮丘蓋1
本発明は光学式文字読取装置に関し、特に光学式文字読
取装置における伝票の読取り方向の識別制御方式に関す
る。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an optical character reading device, and more particularly to a method for identifying and controlling the reading direction of a slip in an optical character reading device.
良米弦且
従来、光学式文字読取装置においては、伝票の読取り方
向が予め設定されており、その読取り方向で送られてき
た伝票上の文字を該当する書式制御情報によって読取っ
ていた。Conventionally, in optical character reading devices, the reading direction of a slip is set in advance, and the characters on the slip sent in that reading direction are read according to the corresponding format control information.
このような従来の光学式文字読取装置では、予め設定さ
れた伝票の読取り方向で読取りを行う必要があったので
、読取り方向が異なる伝票が混在した状態で搬送されて
くる伝票すべての読取りを行うことが不可能であるとい
う欠点がある。With such conventional optical character reading devices, it was necessary to read the slips in a preset reading direction, so it is necessary to read all the slips that are conveyed in a mixed state with different reading directions. The disadvantage is that it is impossible.
九肌曵■若
本発明は上記のような従来のものの欠点を除去すべくな
されたもので、読取り方向が異なる伝票が混在した状態
での自動読取りが可能な光学弐文字読取装置の提供を目
的とする。The present invention was made in order to eliminate the drawbacks of the conventional ones as described above, and aims to provide an optical two-character reading device that can automatically read a mixture of slips with different reading directions. shall be.
丸肌立璽蔦
本発明による光学式文字読取装置は、予め設定された所
定方向を基準軸として文字認識が行われ、前記所定方向
が任意の方向に向いて搬送されてくる用紙上の文字およ
び図形を光電変換する光電変換手段と、前記光電変換手
段により光電変換された前記用紙上の文字および図形を
搬送方向を前記基準軸として記憶する記憶手段と、前記
用紙の四辺のうち少なくとも一辺に予め記載された識別
情報により前記用紙の所定方向の向きを識別する識別手
段と、前記識別手段により識別された前記所定方向の向
きが前記基準軸方向になるように、前記記憶手段に記憶
された前記用紙上の文字および図形の方向変換を行う方
向変換手段と、前記方向変換手段により方向変換された
前記用紙上の文字および図形の文字認識を行う文字認識
手段とを含むことを特徴とする。The optical character reading device according to the present invention performs character recognition using a predetermined direction as a reference axis, and recognizes characters and characters on a sheet of paper conveyed with the predetermined direction facing in an arbitrary direction. a photoelectric conversion means for photoelectrically converting figures; a storage means for storing characters and figures on the paper photoelectrically converted by the photoelectric conversion means with the transport direction as the reference axis; identification means for identifying the orientation of the paper in a predetermined direction based on written identification information; The present invention is characterized in that it includes a direction conversion means for changing the direction of characters and figures on a sheet of paper, and a character recognition means for recognizing the characters and figures on the sheet whose direction has been changed by the direction conversion means.
夫甚忽
次に、本発明の一実施例について図面を参照して説明す
る。Next, an embodiment of the present invention will be described with reference to the drawings.
第1図は本発明の一実施例の構成を示すブロック図であ
り、第2図は本発明の一実施例における伝票例を示す図
である。これらの図において、光電検出部1は光電変換
部2の前に設置され、矢印Bの方向で搬送されてきた伝
票aの先端位置を検出し、光電変換部2を伝票aの搬送
に同期させて起動する。また、光電検出部1は伝票aの
長さしを測定して記憶するとともに、この伝票aの長さ
しを図形記憶制御部4に送出する。FIG. 1 is a block diagram showing the configuration of one embodiment of the present invention, and FIG. 2 is a diagram showing an example of a slip in one embodiment of the present invention. In these figures, a photoelectric detection unit 1 is installed in front of a photoelectric conversion unit 2, detects the position of the leading edge of a slip a conveyed in the direction of arrow B, and synchronizes the photoelectric conversion unit 2 with the conveyance of the slip a. and start it. Further, the photoelectric detection section 1 measures and stores the length of the slip a, and sends the length of the slip a to the graphic storage control section 4.
光電変換部2で光電変換された1伝票分の図形情報は図
形情報記憶部3に送出され、図形記憶制御部4の制御に
より図形情報記憶部3に格納される。The graphic information for one slip photoelectrically converted by the photoelectric converter 2 is sent to the graphic information storage section 3 and stored in the graphic information storage section 3 under the control of the graphic storage control section 4.
その後に、図形記憶制御部4は図形情報記憶部3に格納
された該伝票aの図形情報のうち伝票先端部の両端から
特定領域幅W2、すなわち伝票aのラインマークa1と
伝票端とを含む領域幅の図形情報を読出して伝票幅検出
部5に送出する。Thereafter, the graphic storage control unit 4 includes a specific area width W2 from both ends of the leading edge of the voucher, that is, the line mark a1 of the voucher a and the voucher edge, among the graphic information of the voucher a stored in the graphic information storage unit 3. The area width graphic information is read out and sent to the slip width detection section 5.
光電変換部2では背景の黒色と伝票aの白色とがともに
光電変換されているので(背景の黒レベルは“1”、伝
票aの地色である白レベルは“o゛となる)、伝票幅検
出部5は特定領域幅w2の情報によりこれら黒レベルと
白レベルとの変化点を検出し、すなわち伝票aの左端お
よび右端を検出して伝票幅W1を算出する。伝票幅検出
部5は算出した伝票aの伝票幅W1を図形記憶制御部4
に送出する。In the photoelectric conversion unit 2, the black background and the white color of the slip a are both photoelectrically converted (the black level of the background is "1" and the white level of the ground color of the slip a is "o"). The width detecting section 5 detects the change point between the black level and the white level based on the information of the specific area width w2, that is, detects the left end and right end of the slip a, and calculates the slip width W1. The calculated document width W1 of document a is stored in the figure storage control unit 4.
Send to.
図形記憶制御部4は光電検出部1から送られてきた伝票
aの長さしと伝票幅検出部5から送られてきた伝票aの
伝票幅W1とにより、図形情報記憶部3に格納されてい
る図形情報のうち伝票aの各辺a2〜a5からラインマ
ークa1の幅(以下ラインマーク幅とする)W3分の図
形情報を読出し、夫々各辺a2〜a5に対応するライン
マーク検出部(LM検出部)6〜9に送出する。The graphic storage control section 4 stores the length of the document a sent from the photoelectric detection section 1 and the document width W1 of the document a sent from the document width detection section 5 in the graphic information storage section 3. Among the graphic information contained in the figure information, graphic information corresponding to the width W3 of line mark a1 (hereinafter referred to as line mark width) is read from each side a2 to a5 of slip a, and the line mark detection unit (LM Detection unit) Sends to 6 to 9.
ラインマーク検出部6〜9各々は図形情報記憶部3から
送られてきた各辺a2〜a5に対応する図形情報毎にそ
の全ての情報の論理オアをとり、その結果を方向決定部
10に出力する。Each of the line mark detection units 6 to 9 performs a logical OR on all of the graphic information corresponding to each side a2 to a5 sent from the graphic information storage unit 3, and outputs the result to the direction determination unit 10. do.
すなわち、各辺a2〜a5に対応する図形情報各々はラ
インマークa1が印刷された辺a2以外は伝票aの白レ
ベルだけなので、その各辺a3〜a5に対応するライン
マーク検出部7〜9各々からは論理“0′°が方向決定
部10に出力され、ラインマークa1が印刷された辺a
2に対応するラインマーク検出部6からは論理“1”が
方向決定部10に出力される。That is, since the graphic information corresponding to each side a2 to a5 is only the white level of the slip a except for side a2 on which line mark a1 is printed, the line mark detection units 7 to 9 corresponding to each side a3 to a5 are , a logic "0'° is output to the direction determining unit 10, and the side a on which the line mark a1 is printed is
The line mark detection unit 6 corresponding to the line mark detection unit 6 outputs a logic “1” to the direction determination unit 10.
方向決定部10ではラインマーク検出部6〜9各々から
の出力信号により読取り方向Aが決定され、その読取り
方向情報を書式制御情報選択部15および文字認識部1
6に送出する。In the direction determining section 10, a reading direction A is determined based on the output signal from each of the line mark detection sections 6 to 9, and the reading direction information is sent to the format control information selection section 15 and the character recognition section 1.
Send on 6.
書式制御情報選択部15は方向決定部10からの読取り
方向情報により書式制御情報記憶部11〜14に格納さ
れた書式制御情報の中から一つを選択して文字認識部1
6に送出する。The format control information selection unit 15 selects one of the format control information stored in the format control information storage units 11 to 14 based on the reading direction information from the direction determination unit 10 and selects one of the format control information stored in the format control information storage units 11 to 14 to select the character recognition unit 1.
Send on 6.
ここで、各書式制御情報記憶部11〜14には夫々読取
り方向く各ラインマーク検出部6〜9での検出結果に応
じて決定される読取り方向)に対応する書式制御情報、
すなわち伝票a内における読取り対象の文字枠の位置情
報などが格納されている。Here, each of the format control information storage units 11 to 14 includes format control information corresponding to a reading direction (a reading direction determined according to the detection result of each line mark detection unit 6 to 9),
That is, the position information of the character frame to be read within the slip a is stored.
文字認識部16では書式制御情報選択部15から送られ
てきた書式制御情報に基づいて図形情報記憶部3から送
られてきた図形情報から読取り対象の文字枠が読取られ
、この読取られた文字枠の方向変換が方向決定部10か
らの読取り方向情報に基づいて行われる。すなわち、本
実施例では文字枠が90°右回転され、その文字枠の方
向変換後に文字認識が行われる。The character recognition unit 16 reads the character frame to be read from the graphic information sent from the graphic information storage unit 3 based on the format control information sent from the format control information selection unit 15, and reads the character frame to be read from the graphic information sent from the graphic information storage unit 3. The direction conversion is performed based on the reading direction information from the direction determining section 10. That is, in this embodiment, the character frame is rotated to the right by 90 degrees, and character recognition is performed after the direction of the character frame is changed.
また、各書式制御情報記憶部11〜14に夫々各種伝票
に対応する書式制御情報を予め格納しておいた場合には
、まず文字認識部16で方向決定部10からの読取り方
向情報に基づいて図形情報記憶部3から送られてきた図
形情報全体の方向変換が行われる。すなわち、本実施例
では図形情報全体が904右回転される。In addition, if the format control information storage units 11 to 14 respectively store format control information corresponding to various types of slips in advance, the character recognition unit 16 first reads the reading direction information from the direction determination unit 10. The direction of the entire graphic information sent from the graphic information storage section 3 is changed. That is, in this embodiment, the entire graphic information is rotated to the right by 904.
その後に、文字認識部16は方向変換された図形情報の
うち予め設定されている読取り位置からその伝票aのI
Dコード(本実施例では「04」)を読取り、該IDコ
ードを書式制御情報選択部15に出力する。Thereafter, the character recognition unit 16 reads the I of the slip a from the preset reading position of the direction-converted graphic information.
It reads the D code (“04” in this embodiment) and outputs the ID code to the format control information selection unit 15.
書式制御情報選択部15では文字認識部16がら送られ
てきたIDコードにより書式制御情報記憶部11〜14
に格納された書式制御情報の中から一つを選択し、該書
式制御情報を文字認識部16に送出する。この場合、方
向決定部10から書式制御情報選択部15に読取り方向
情報が送出されることはなく、方向決定部10からの読
取り方向情報は文字認識部16にのみ送出される。The format control information selection unit 15 uses the ID code sent from the character recognition unit 16 to select the format control information storage units 11 to 14.
The character recognition unit 16 selects one of the format control information stored in the character recognition unit 16 and sends the selected format control information to the character recognition unit 16. In this case, the reading direction information is not sent from the direction determining section 10 to the format control information selecting section 15, and the reading direction information from the direction determining section 10 is sent only to the character recognition section 16.
文字認識部16では上記の方向変換された図形情報の文
字認識が書式制御情報選択部15から送られてきた書式
制御情報に基づいて行われる。The character recognition section 16 performs character recognition of the above direction-converted graphic information based on the format control information sent from the format control information selection section 15.
このように、矢印Bの方向に搬送されてきた伝票aをそ
のままの向きで光電変換部2により光電変換して図形情
報記憶部3に格納しておき、ラインマーク検出部6〜9
での検出結果により方向決定部10で該伝票aの読取り
方向Aを決定し、文字認識部16でこの読取り方向Aに
基づいて図形情報の方向変換を行って文字認識を行うよ
うにすることによって、伝票読取り時に読取り方向が異
なる伝票が混在した状態、すなわち読取り方向が任意の
方向を向いて搬送されてくる状態での伝票すべての自動
読取りが可能となる。In this way, the slip a conveyed in the direction of the arrow B is photoelectrically converted by the photoelectric conversion unit 2 in the same direction and stored in the graphic information storage unit 3, and the line mark detection units 6 to 9
The direction determining unit 10 determines the reading direction A of the slip a based on the detection result, and the character recognition unit 16 converts the direction of the graphic information based on the reading direction A to perform character recognition. , it becomes possible to automatically read all the slips in a state in which slips with different reading directions are mixed together, that is, in a state in which the slips are conveyed with the reading direction facing in an arbitrary direction.
また、書式制御情報記憶部11〜14に夫々各種伝票に
対応する書式制御情報を予め格納しておくことにより、
読取り方向が異なりかつ種類の異なる伝票が混在した状
態での伝票すべての読取りも可能となる。In addition, by storing format control information corresponding to various types of slips in the format control information storage units 11 to 14 in advance,
It is also possible to read all the slips in a state where the slips are mixed in different reading directions and of different types.
よって、伝票の種類および読取り方向を意識することな
く、自由度の高い装置の運用が可能となる。Therefore, the device can be operated with a high degree of freedom without being aware of the type of slip and the reading direction.
尚、本発明の一実施例では従来から伝票に印刷されてい
るラインマークa1を読取り方向の識別に用いたが、伝
票の四辺のうち少なくとも一辺に読取り方向の識別用の
情報を印刷または記入しておいてもよく、これに限定さ
れない。In one embodiment of the present invention, the line mark a1 conventionally printed on the slip is used to identify the reading direction, but information for identifying the reading direction may be printed or written on at least one of the four sides of the slip. However, it is not limited to this.
え班五皇1
以上説明したように本発明によれば、予め設定された所
定方向を基準軸として文字認識が行われ、所定方向が任
意の方向に向いて搬送されてくる用紙の四辺のうち少な
くとも一辺に予め記載された識別情報により用紙の所定
方向の向きを識別し、識別された所定方向の向きが基準
軸方向になるように用紙上の文字および図形の方向変換
を行って文字認識を行うようにすることによって、読取
り方向が異なる伝票が混在した状態での自動読取りが可
能な光学式文字読取装置を提供することができるという
効果がある。Eban Goko 1 As explained above, according to the present invention, character recognition is performed using a preset predetermined direction as a reference axis, and one of the four sides of the paper being conveyed with the predetermined direction facing any direction. Character recognition is performed by identifying the orientation of the paper in a predetermined direction using identification information written in advance on at least one side, and converting the orientation of the characters and figures on the paper so that the identified orientation becomes the reference axis direction. By doing so, it is possible to provide an optical character reading device that can automatically read a mixture of slips with different reading directions.
第1図は本発明の一実施例の構成を示すブロック図、第
2図は本発明の一実施例における伝票例を示す図である
。
主要部分の符号の説明
1・・・・・・光電検出部
2・・・・・・光電変換部
3・・・・・・図形情報記憶部
4・・・・・・図形記憶制御部
5・・・・・・伝票幅検出部
6〜9・・・・・・ラインマーク検出部0・・・・・・
方向決定部
4・・・・・・書式制御情報記憶部
5・・・・・・書式制御情報選択部
6・・・・・・文字認識部FIG. 1 is a block diagram showing the configuration of one embodiment of the present invention, and FIG. 2 is a diagram showing an example of a slip in one embodiment of the present invention. Explanation of symbols of main parts 1...Photoelectric detection section 2...Photoelectric conversion section 3...Graphic information storage section 4...Graphic storage control section 5. ... Slip width detection section 6 to 9 ... Line mark detection section 0 ...
Direction determining unit 4...Format control information storage unit 5...Format control information selection unit 6...Character recognition unit
Claims (1)
が行われ、前記所定方向が任意の方向に向いて搬送され
てくる用紙上の文字および図形を光電変換する光電変換
手段と、前記光電変換手段により光電変換された前記用
紙上の文字および図形を搬送方向を前記基準軸として記
憶する記憶手段と、前記用紙の四辺のうち少なくとも一
辺に予め記載された識別情報により前記用紙の所定方向
の向きを識別する識別手段と、前記識別手段により識別
された前記所定方向の向きが前記基準軸方向になるよう
に、前記記憶手段に記憶された前記用紙上の文字および
図形の方向変換を行う方向変換手段と、前記方向変換手
段により方向変換された前記用紙上の文字および図形の
文字認識を行う文字認識手段とを含むことを特徴とする
光学式文字読取装置。(1) Character recognition is performed using a preset predetermined direction as a reference axis, and a photoelectric conversion means photoelectrically converts characters and figures on paper that is conveyed with the predetermined direction facing in an arbitrary direction; a storage means for storing the characters and figures on the paper photoelectrically converted by the conversion means with the transport direction as the reference axis; and a storage means for storing the characters and figures on the paper photoelectrically converted by the conversion means; an identification means for identifying the orientation; and a direction for changing the direction of the characters and figures on the paper stored in the storage means so that the orientation of the predetermined direction identified by the identification means becomes the reference axis direction. An optical character reading device comprising: a conversion means; and a character recognition means for recognizing characters and graphics on the paper whose direction has been changed by the direction conversion means.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1043534A JPH02222084A (en) | 1989-02-23 | 1989-02-23 | Optical character reader |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1043534A JPH02222084A (en) | 1989-02-23 | 1989-02-23 | Optical character reader |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH02222084A true JPH02222084A (en) | 1990-09-04 |
Family
ID=12666406
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1043534A Pending JPH02222084A (en) | 1989-02-23 | 1989-02-23 | Optical character reader |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH02222084A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH06342481A (en) * | 1993-05-31 | 1994-12-13 | Nippon Arugo Rizumu Kk | Form reading system |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS59148985A (en) * | 1983-02-14 | 1984-08-25 | Nec Corp | Identification circuit of direction of medium |
| JPS59191679A (en) * | 1983-04-15 | 1984-10-30 | Nippon Telegr & Teleph Corp <Ntt> | Reader for identification symbol or character of disk-shaped matter |
-
1989
- 1989-02-23 JP JP1043534A patent/JPH02222084A/en active Pending
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS59148985A (en) * | 1983-02-14 | 1984-08-25 | Nec Corp | Identification circuit of direction of medium |
| JPS59191679A (en) * | 1983-04-15 | 1984-10-30 | Nippon Telegr & Teleph Corp <Ntt> | Reader for identification symbol or character of disk-shaped matter |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH06342481A (en) * | 1993-05-31 | 1994-12-13 | Nippon Arugo Rizumu Kk | Form reading system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS63211082A (en) | Character reader | |
| JPH0228785A (en) | Optical character reading device | |
| JP2894095B2 (en) | Character recognition device | |
| JPH07160805A (en) | Optical character reader for simultaneous double-sided reading | |
| JPS62160590A (en) | Format generating system for character reader | |
| JPH05342406A (en) | Optical character reader | |
| JPH029415Y2 (en) | ||
| JP3162575B2 (en) | Character recognition device | |
| JPH06348886A (en) | Optical data reader | |
| JPS58109973A (en) | Printing device with printed character echo check function | |
| JPS60254382A (en) | Detecting method of character line | |
| JPH04225489A (en) | Optical character reader | |
| JPH0258959A (en) | Image processing device | |
| JPH05205100A (en) | Re-input OCR device and re-input method by facsimile | |
| JPH0291788A (en) | character recognition device | |
| JPH0239825B2 (en) | ||
| JPH0272497A (en) | Optical character reader | |
| JPH04192090A (en) | Optical character reader | |
| JPS5854431B2 (en) | Misreading detection method for character recognition device | |
| JP2001285545A (en) | Communication terminal device with destination recognition function | |
| JPS60257661A (en) | Facsimile equipment | |
| JPS6262659A (en) | Facsimile equipment | |
| JPH05324904A (en) | Optical character reading system | |
| JPH01181370A (en) | Facsimile machines and computer systems | |
| JPS63231688A (en) | Document reader |