JPH0327487A - Optical character reading device - Google Patents

Optical character reading device

Info

Publication number
JPH0327487A
JPH0327487A JP1160928A JP16092889A JPH0327487A JP H0327487 A JPH0327487 A JP H0327487A JP 1160928 A JP1160928 A JP 1160928A JP 16092889 A JP16092889 A JP 16092889A JP H0327487 A JPH0327487 A JP H0327487A
Authority
JP
Japan
Prior art keywords
left end
address
photoelectric conversion
business form
data storage
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
JP1160928A
Other languages
Japanese (ja)
Inventor
Naoto Aoki
直人 青木
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 JP1160928A priority Critical patent/JPH0327487A/en
Publication of JPH0327487A publication Critical patent/JPH0327487A/en
Pending legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)

Abstract

PURPOSE:To shorten time required for reading a business form by limiting the detecting range of the left end of the business form according to the detected result of a detecting means to detect the position and the size of the business form. CONSTITUTION:When the existence of the business form 10 is detected by the detecting means 71, and in addition, the existence of the business form 10 is not detected by the detecting means 72, the left end of the business form 10 is positioned at the left side of the position of the detecting means 71. Therefore, the detection of the left end of the business form 10 needs to be executed only in the range between x11 and x12. Thus, the range in which the left end of the business form 10 is detected by a photoelectric converting part 1 is limited according to the detected state of the business form 10 by the detecting means 71 and 72. Thus, the time required for reading the business form 10 by the photoelectric converting part 1 can be shortened.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、読取るべき帳票の端部を迅速に検出できるよ
うにした光学式文字読取装置に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to an optical character reading device that can quickly detect the edge of a form to be read.

(従来の技術) 第2図は、従来の光学式文字読取装置の構成を示すブロ
ック図である。
(Prior Art) FIG. 2 is a block diagram showing the configuration of a conventional optical character reading device.

図示の装置は、光電変換手段11と、2値化手段6と、
2値データ記憶手段7と、制御部8と、認識部9等から
成る。
The illustrated device includes a photoelectric conversion means 11, a binarization means 6,
It consists of a binary data storage means 7, a control section 8, a recognition section 9, etc.

光電変換手段11は、光電変換部1と、光源2と、集光
レンズ3と、搬送機構4と、多値データ記憶手段5とか
ら成る。
The photoelectric conversion means 11 includes a photoelectric conversion section 1 , a light source 2 , a condensing lens 3 , a transport mechanism 4 , and a multi-value data storage means 5 .

光電変換部1は、ラインセンサ等から成り、帳票10上
のデータの光電変換を行ない、このデータを階調ディジ
タル信号に変換するものである。
The photoelectric conversion unit 1 is composed of a line sensor and the like, and performs photoelectric conversion of data on the form 10, and converts this data into a gradation digital signal.

光源2は、線状の光源であり、帳票10上の所定位置P
を照らすものである。
The light source 2 is a linear light source, and is located at a predetermined position P on the form 10.
It is something that illuminates.

集光レンズ3は、帳票10上の光像を導くものである。The condensing lens 3 guides a light image on the form 10.

搬送機構4は、矢印4Aの方向に帳票10を搬送するた
めのものである。この搬送機構4は、制御部8により制
御される。
The transport mechanism 4 is for transporting the form 10 in the direction of the arrow 4A. This transport mechanism 4 is controlled by a control section 8.

多値データ記憶手段5は、RAM(ランダム・アクセス
・メモリ)等から成り、光電変換部1から送られた多値
データを一時的に記憶するものである。この多値データ
記憶手段5は、帳票10上のすべてのデータを格納でき
る容量を持っている。
The multivalued data storage means 5 is made up of a RAM (random access memory), etc., and temporarily stores the multivalued data sent from the photoelectric conversion section 1. This multivalued data storage means 5 has a capacity to store all data on the form 10.

2値化手段6は、多値データ記憶手段5に格納された多
値データを読出してOか1かの2値データに変換し、2
値データ記憶手段7に格納するものである。
The binarization means 6 reads out the multi-value data stored in the multi-value data storage means 5 and converts it into binary data of O or 1.
It is stored in the value data storage means 7.

2値データ記憶手段7は、2値化手段6により送られる
2値データを格納するためのものである。
The binary data storage means 7 is for storing the binary data sent by the binarization means 6.

制御部8は、多値データ記憶手段5を介して光電変換部
1の主走査方向の読取を制御し、搬送機構4による副走
査方向の制御を行なうものである.。制御部8は、帳票
の大きさ、連量及び文字を書込む位置を指定する帳票フ
ォーマットを格納している。位置Pは、光源2の反射光
を集光レンズ3を介して光電変換部lの受ける位置を示
す。また、制御部8は、帳票フォーマットにより読取る
べき位置を求め、搬送機構4から送られてくる搬送量か
ら読取るべき位置を判断する。そして、光電変換部1か
ら送られる階調ディジタルデータを、多値データ記憶手
段5へ書込む指示を行なう。
The control section 8 controls the reading of the photoelectric conversion section 1 in the main scanning direction via the multi-value data storage means 5, and controls the conveying mechanism 4 in the sub-scanning direction. . The control unit 8 stores a form format that specifies the size of the form, the length of the form, and the position where characters are written. A position P indicates a position where the photoelectric conversion unit l receives reflected light from the light source 2 via the condensing lens 3. Further, the control unit 8 determines the position to be read based on the document format, and determines the position to be read from the amount of conveyance sent from the conveyance mechanism 4. Then, an instruction is given to write the gradation digital data sent from the photoelectric conversion section 1 into the multi-value data storage means 5.

この書込み手順としては、まず、制御部8は、位置Pに
示すように光電変換部1を矢印1A方向、即ち主走査方
向に走査し、1ライン分の階調ディジタルデータを多値
データ記憶手段5に書込む。次に、制御部8は、搬送機
構4によって帳票10を、矢印4Aの方向に1画素分走
査する。そして、制御部8は、光電変換部1の矢印1A
方向の主走査を繰返す。制御部8は、以上の走査を帳票
10の読取るべき、すべての位置について行なう。
In this writing procedure, first, the control unit 8 scans the photoelectric conversion unit 1 in the direction of the arrow 1A, that is, in the main scanning direction, as shown at position P, and stores one line of gradation digital data in the multi-value data storage means. Write in 5. Next, the control unit 8 causes the transport mechanism 4 to scan the form 10 by one pixel in the direction of the arrow 4A. Then, the control unit 8 controls the photoelectric conversion unit 1 by the arrow 1A.
Repeat the main scan in the direction. The control unit 8 performs the above scanning for all positions on the form 10 to be read.

多値データ記憶手段5に格納された階調デイジタルデー
タは、2値化手段6によりOか1かの2値データに変換
され、2値データ記憶手段7に記憶される。階調ディジ
タルデー夕を2値データに変換する際の閾値は、認識部
9により指定される。
The gradation digital data stored in the multivalued data storage means 5 is converted into binary data of O or 1 by the binarization means 6 and stored in the binary data storage means 7. The recognition unit 9 specifies a threshold value when converting the gradation digital data into binary data.

第3図は、2値データ記憶手段7内の2値データの格納
状態を示す図である。
FIG. 3 is a diagram showing the storage state of binary data in the binary data storage means 7. As shown in FIG.

左端25は、光電変換部1が主走査することができる最
大限の左端位置を示す。また、右端26は、光電変換部
1が主走査することができる最大限の右端位置を示す。
The left end 25 indicates the maximum left end position at which the photoelectric conversion unit 1 can perform main scanning. Further, the right end 26 indicates the maximum right end position at which the photoelectric conversion unit 1 can perform main scanning.

一方、帳票左端21は、帳票10の左端を示す。また、
帳票右端22は、帳票lOの右端を示す。
On the other hand, the left end 21 of the form indicates the left end of the form 10. Also,
The right end 22 of the form indicates the right end of the form IO.

尚、図中矢印Xは、帳票10上の主走査方向を示す。ま
た、図中矢印yは、帳票10上の副走査方向、即ち帳票
の搬送方向と逆方向を示す。
Note that an arrow X in the figure indicates the main scanning direction on the form 10. Further, the arrow y in the figure indicates the sub-scanning direction on the form 10, that is, the direction opposite to the transport direction of the form.

第3図の2値データ記憶手段7上の任意の位置は、座標
(x.y)により表わされる。帳票10の副走査方向の
中心位置なY。、左端25のXアドレスをxffiIn
、右端26のXアドレスなx..l.Xとする。ここに
、Xm+n<Xmaxである。
Any position on the binary data storage means 7 in FIG. 3 is represented by coordinates (x, y). Y is the center position of the form 10 in the sub-scanning direction. , the leftmost 25 X addresses are xffiIn
, the rightmost 26 X address x. .. l. Let it be X. Here, Xm+n<Xmax.

帳票左端21の位置を求めるには、まず、帳票10の左
端部分にある縁の白い部分が所定の幅以上あるか否かを
調べる。縁の白い部分が所定の幅以上あるときは、その
縁の左端を帳票左端21の位置とする。
In order to find the position of the left end 21 of the form, it is first checked whether the white border at the left end of the form 10 has a width greater than a predetermined width. When the white part of the edge is wider than a predetermined width, the left edge of the edge is set as the left edge 21 of the form.

より具体的には、第3図中X方向の白の連続画素数を計
数し、これが所定値以上のとき、その左端を帳票左端2
1とする。
More specifically, the number of consecutive white pixels in the X direction in FIG.
Set to 1.

第4図は、帳票左端を求める処理手順を示すフローチャ
ートである。
FIG. 4 is a flowchart showing the processing procedure for determining the left edge of a form.

まず、ステップS31では、認識部9は、例えば、中央
位置Y。を制御部8から受ける。この中央位置Y.は、
認識部9が多値データ記憶手段5から読取るべき位置と
して制御部8により指定されるものである。次のステッ
プS32では、2値データ記憶手段7のXアドレスなx
4。として設定する。
First, in step S31, the recognition unit 9 detects the center position Y, for example. is received from the control unit 8. This central position Y. teeth,
This is designated by the control unit 8 as the position where the recognition unit 9 should read from the multi-value data storage means 5. In the next step S32, the X address of the binary data storage means 7 is
4. Set as .

ステップS33では、2値データ記憶手段7上で調べた
結果、白の連続画素数を計数する連続計数値NをOとす
る。ステップS34では、座標(x,Yo )のアドレ
スのデータがOか1かを調べる。0の場合は、ステップ
S35で、連続計数値に1を加算する。そして、次のス
テップS36で、この連続計数値Nが所定値Noか否か
を判別する。連続計数値Nが所定値N。と等しくない場
?には、ステップS37で、Xアドレスに1を加算する
。即ち、Xアドレスを右へ1つ移す。そして、次のステ
ップS38では、XアドレスがX maXを超えている
か否かを調べる。XアドレスがX■8を超えていない場
合には前述したステップS34に戻り、ステップ334
〜S37の処理を繰返す。
In step S33, as a result of checking on the binary data storage means 7, the continuous count value N, which counts the number of continuous white pixels, is set to O. In step S34, it is checked whether the data at the address at the coordinates (x, Yo) is O or 1. If it is 0, 1 is added to the continuous count value in step S35. Then, in the next step S36, it is determined whether this continuous count value N is a predetermined value No or not. The continuous count value N is the predetermined value N. Where is not equal to ? In step S37, 1 is added to the X address. That is, move the X address one place to the right. Then, in the next step S38, it is checked whether the X address exceeds X maX. If the X address does not exceed X8, the process returns to step S34 described above, and step 334
- Repeat the process of S37.

一方、XアドレスがX■エを超えている場合には、ステ
ップS39で、帳票10の左端が検出できないという情
報を制御部8へ送り、本プログラムを終了する。
On the other hand, if the X address exceeds X■E, in step S39, information that the left end of the form 10 cannot be detected is sent to the control section 8, and the program is terminated.

また、ステップS36で、連続計数値NがN0と等しい
場合、ステップS303で、帳票左端位置としての左端
アドレスをx−No+1として制御部8へ送り、本プロ
グラムを終了する。
If the continuous count value N is equal to N0 in step S36, then in step S303, the left end address as the left end position of the form is sent to the control unit 8 as x-No+1, and this program is ended.

一方、ステップS34で、座標(x,Yo )のデータ
が1の場合、ステップS301で、Xアドレスを右へ1
つ移す。そして、次のステップS302で、Xアドレス
がX■8を超えているか否かを判別する。Xアドレスが
X。Xを超えていない場合には、ステップS33に戻る
。XアドレスがX m..を超えている場合には、ステ
ップS39で、左端検出エラーとし、本プログラムを終
了する。
On the other hand, in step S34, if the data of the coordinates (x, Yo) is 1, in step S301, the X address is moved right by 1.
Move one. Then, in the next step S302, it is determined whether the X address exceeds X8. The X address is X. If it does not exceed X, the process returns to step S33. X address is X m. .. If it exceeds , it is determined that a left edge detection error has occurred in step S39, and the program is terminated.

上述した処理により、求めた帳票の左端アドレスx−N
o+1をもとに、読取るべき文字の書かれた位置を求め
る。
Through the process described above, the left end address x-N of the obtained form
Based on o+1, find the written position of the character to be read.

第5図は、制御部8に格納された帳票フォーマットに指
定された情報を示す図である。
FIG. 5 is a diagram showing information specified in the form format stored in the control unit 8. As shown in FIG.

図示の帳票フォーマットは、帳票左端4lから所定の距
離に文字フィールド42があることを示している。即ち
、帳票左端41と文字フィールド左端44との間には、
距離43が隔てられている。また、帳票左端41と文字
フィールド右端45との間には、距離46が隔てられて
いる。これらの距離43及び46は、制御部8に格納さ
れている。
The illustrated form format indicates that the character field 42 is located at a predetermined distance from the left edge 4l of the form. That is, between the left edge 41 of the form and the left edge 44 of the character field,
A distance 43 separates them. Further, a distance 46 is provided between the left end 41 of the form and the right end 45 of the character field. These distances 43 and 46 are stored in the control unit 8.

制御部8は、認識回路9から帳票左端41のアドレスを
受取り、2値データ記憶手段7での帳票フィールド左端
44と帳票フィールド右端45とを算出し、この算出結
果を認識回路9へ送信し、以下、認識回路9で文字フィ
ールド42についての文字読取処理を行なう。
The control unit 8 receives the address of the left edge 41 of the form from the recognition circuit 9, calculates the left edge 44 of the form field and the right edge 45 of the form field in the binary data storage means 7, and transmits the calculation result to the recognition circuit 9. Thereafter, the recognition circuit 9 performs character reading processing for the character field 42.

(発明が解決しようとする課題) ところが、以上の構成の光学式文字読取装置には、次の
ような問題点があった。
(Problems to be Solved by the Invention) However, the optical character reading device having the above configuration has the following problems.

即ち、第3図に示すように、制御部8が、光電変換部1
を左端25から右端26まで走査することにより、帳票
左端21を検出する場合、この検出のために時間がかか
ることがあった。つまり、帳票幅の小さい帳票10の左
端の検出に時間がかかるという問題があった。
That is, as shown in FIG. 3, the control section 8 controls the photoelectric conversion section 1
When detecting the left edge 21 of a form by scanning from the left edge 25 to the right edge 26, this detection sometimes takes time. In other words, there is a problem in that it takes time to detect the left end of the form 10, which has a small form width.

第5図は、上述した事情を説明する図である。FIG. 5 is a diagram illustrating the above-mentioned situation.

帳票データ51及び52は、2値データ記憶手段7に格
納された帳票データを示す。帳票10は、右端を搬送機
構4に保持させて読取を行なうため、多値データ記憶手
段5及び2値データ記憶手段7には、帳票10上のデー
タが右側に詰めて格納される。従って、帳票10の幅が
小さいときは、帳票左端がかなり右よりになる。帳票デ
ータ5lの帳票左端53は、帳票データ51の中央より
左側にある。帳票データ52の帳票左端54は、帳票デ
ータ5lの中央より右側にある。従って、帳票データ5
2については、帳票データ51と比較して、帳票左端5
4の検出に時間がかかる。
Form data 51 and 52 indicate form data stored in the binary data storage means 7. Since the right end of the form 10 is held by the conveying mechanism 4 and read, the data on the form 10 is stored in the multi-value data storage means 5 and the binary data storage means 7, with the data on the form 10 shifted to the right side. Therefore, when the width of the form 10 is small, the left edge of the form is far to the right. The left edge 53 of the form data 5l is to the left of the center of the form data 51. The left edge 54 of the form data 52 is on the right side of the center of the form data 5l. Therefore, form data 5
2, compared with the form data 51, the left end 5 of the form
It takes time to detect 4.

尚、帳票の左端を搬送機構に保持させて読取を行なう場
合は、帳票の右端を検出するのに、同様の問題が生じる
のは、言うまでもない。
It goes without saying that a similar problem occurs in detecting the right end of the form when the left end of the form is held by the conveying mechanism and read.

本発明は以上の点に着目してなされたもので、帳票の幅
が小さい場合にも、帳票の端部の検出に時間がかからな
いようにした光学式文字読取装置を提供することを目的
とするものである。
The present invention has been made with attention to the above points, and an object of the present invention is to provide an optical character reading device that does not take much time to detect the edge of a form even when the width of the form is small. It is something.

(課題を解決するための手段) 本発明の光学式文字読取装置は、光電変換手段により帳
票上のデータを読取る光学式文字読取装置において、帳
票の位置を検知する検知手段と、当該検知手段の検知結
果に応じて光電変換手段の帳票端の検出範囲を限定する
範囲限定手段とを備え、当該範囲限定手段により限定さ
れた範囲内で帳票の端部な検出するようにしたことを特
徴とするものである。
(Means for Solving the Problems) The optical character reading device of the present invention is an optical character reading device that reads data on a form using photoelectric conversion means, and includes a detection means for detecting the position of the form, and a detection means for detecting the position of the form. The present invention is characterized by comprising a range limiting means for limiting the detection range of the edge of the form of the photoelectric conversion means according to the detection result, and detecting the edge of the form within the range limited by the range limiting means. It is something.

(作用) 以上の装置においては、帳票の位置を検知する検知手段
の検知結果に応じて、範囲限定手段により限定された検
出範囲内で、光電変換手段が帳票の読取を行なう。これ
により、帳票の端部な検出するための時間が短縮される
(Operation) In the above device, the photoelectric conversion means reads the form within the detection range limited by the range limiting means according to the detection result of the detection means for detecting the position of the form. This reduces the time required to detect the edges of a form.

(実施例) 第1図は、本発明の光学式文字読取装置の実施例を示す
ブロック図である。
(Embodiment) FIG. 1 is a block diagram showing an embodiment of an optical character reading device of the present invention.

図示の装置は、従来のものと同様に、光電変換手段11
と、2値化手段6と、2値データ記憶手段7と、制御部
8′と、認識部9等から戊る。光電変換手段11は、光
電変換部1と、光源2と、集光レンズ3と、搬送機構4
と、多値データ記憶手段5とから成る。各部の詳細につ
いては、前述した従来のものと同様であるので、重複す
る説明を省略する。
The illustrated device has a photoelectric conversion means 11 similar to the conventional one.
, the binarization means 6, the binary data storage means 7, the control section 8', the recognition section 9, etc. The photoelectric conversion means 11 includes a photoelectric conversion section 1, a light source 2, a condensing lens 3, and a transport mechanism 4.
and a multi-value data storage means 5. The details of each part are the same as those of the conventional device described above, so a redundant explanation will be omitted.

また、図示の装置は、検知手段71及び72と、範囲限
定手段73とを備えている。
The illustrated device also includes detection means 71 and 72 and range limiting means 73.

検知手段71及び72は、それぞれ発光部71a及び7
2aと、受光部7lb及び72bとから成る。発光部7
1a及び72aは、発光ダイオード等から成り、それぞ
れ受光部7lb及び72bに対し、光線を発光する。受
光部7lb及び72bは、フォトトランジスタ等から或
り、それぞれ発光部71a及び72aにより発光された
光線を受ける。従って、検知手段71または72の位置
に帳票10があるときは、この帳票10により光線が遮
られて受光部7lbまたは72bに届かなくなる。これ
により、帳票の存在する範囲を検出することができる。
The detection means 71 and 72 are light emitting parts 71a and 7, respectively.
2a, and light receiving sections 7lb and 72b. Light emitting part 7
1a and 72a are comprised of light emitting diodes and the like, and emit light to light receiving sections 7lb and 72b, respectively. The light receiving sections 7lb and 72b receive light beams emitted from the light emitting sections 71a and 72a, respectively, from a phototransistor or the like. Therefore, when the form 10 is located at the position of the detection means 71 or 72, the light beam is blocked by the form 10 and does not reach the light receiving section 7lb or 72b. This makes it possible to detect the range in which the form exists.

範囲限定手段73は、光電変換手段1の主走査方向の走
査範囲を限定するためのものである。この範囲限定手段
73については、以下に詳細に説明する。
The range limiting means 73 is for limiting the scanning range of the photoelectric conversion means 1 in the main scanning direction. This range limiting means 73 will be explained in detail below.

第7図は、第1図の検知手段71及び72の2値データ
記憶手段7上に対応する位置を示す図である。また、第
8図は、第1図の光電変換手段11 l 2 ?の走査の限定範囲を指定するためのXアドレスを格納
したテーブルの内容を示す図である。
FIG. 7 is a diagram showing the corresponding positions of the detection means 71 and 72 of FIG. 1 on the binary data storage means 7. Moreover, FIG. 8 shows the photoelectric conversion means 11 l 2 ? of FIG. 1. FIG. 3 is a diagram showing the contents of a table storing X addresses for specifying a limited range of scanning.

光電変換部1による主走査方向、即ちX方向にはs  
XIl%  X21%  Xl2%  X31% X2
2及びx32の各Xアドレスが設定されている。これら
のアドレス値は、第8図に示すテーブルに記憶されてい
る。ここに、各Xアドレスの間には、X++<X2+<
X12<X31<X22<X32の関係がある。
In the main scanning direction by the photoelectric conversion unit 1, that is, in the X direction, s
XIl% X21% Xl2% X31% X2
Each X address of 2 and x32 is set. These address values are stored in the table shown in FIG. Here, between each X address, X++<X2+<
There is a relationship of X12<X31<X22<X32.

第7図に示すように、アドレスX21及びx1■の間に
は、検知手段7lが設けられている。また、アドレスx
3,及びx22の間には、検知手段72が設けられてい
る。従って、検知手段71及び72のいずれによっても
、帳票10の存在が検知されないときは、帳票10は、
検知手段72の位置よりも右側にある。このため、帳票
10の左端の検出は、X31と、x32との間の範囲で
行なえばよい。
As shown in FIG. 7, a detection means 7l is provided between addresses X21 and x1■. Also, address x
A detection means 72 is provided between 3 and x22. Therefore, when the presence of the form 10 is not detected by either of the detection means 71 and 72, the form 10 is
It is located on the right side of the position of the detection means 72. Therefore, the left end of the form 10 may be detected in the range between X31 and x32.

また、第8図に示すように、検知手段71によって帳票
10の存在が検知されず、且つ検知手段72によって帳
票10の存在が検知されるときは、帳票10は、検知手
段7lの位置よりも右側にあり、帳票10の左端は、検
知手段72の位置よりも左側にある。このため、帳票1
0の左端の検出は、X2+と、X22どの間の範囲で行
なえばよい。
Further, as shown in FIG. 8, when the presence of the form 10 is not detected by the detection means 71 and the presence of the form 10 is detected by the detection means 72, the form 10 is located at a position lower than the position of the detection means 7l. It is located on the right side, and the left end of the form 10 is located on the left side of the position of the detection means 72. For this reason, form 1
The left end of 0 may be detected in the range between X2+ and X22.

さらに、検知手段71及び72の双方によって帳票10
の存在が検知されるときは、帳票10の左端は、検知手
段71の位置よりも左側にある。
Furthermore, both the detection means 71 and 72 detect the form 10.
When the presence of the document 10 is detected, the left end of the form 10 is on the left side of the position of the detection means 71.

このため、帳票10の左端の検出は、x目と、Xl2と
の間の範囲で行なえばよい。
Therefore, the left end of the form 10 may be detected in the range between the x-th point and Xl2.

さらにまた、検知手段71によって帳票10の存在が検
知され、且つ検知手段72によって帳票10の存在が検
知されないときは、帳票10の左端は、検知手段71の
位置よりも左側にある。このため、帳票10の左端の検
出は、X++と、Xl2との間の範囲で行なえばよい。
Furthermore, when the presence of the form 10 is detected by the detection means 71 and the presence of the form 10 is not detected by the detection means 72, the left end of the form 10 is to the left of the position of the detection means 71. Therefore, the left end of the form 10 may be detected in the range between X++ and Xl2.

以上のようにして、検知手段71及び72による帳票1
0の検知状態に応じて、光電変換部1による帳票10の
左端を検出する範囲が限定される。この結果、光電変換
部1による帳票10の読1 3 1  A ?のための時間が短縮される。
As described above, the form 1 detected by the detection means 71 and 72 is
Depending on the detection state of 0, the range in which the photoelectric conversion unit 1 detects the left end of the form 10 is limited. As a result, the reading of the form 10 by the photoelectric conversion unit 1 1 3 1 A ? time is reduced.

第9図は、本発明の装置による帳票左端を求める処理手
順を示すフローチャートである。
FIG. 9 is a flowchart showing the processing procedure for determining the left edge of a form by the apparatus of the present invention.

まず、ステップS90では、検知手段71及び72によ
る帳票10の検知結果に応じて、ステップS92で用い
るXアドレスとしてxn,を決定し、ステップS98及
びS902で用いるXアドレスとしてX。2を決定する
。ここに、x0は、第8図に示すように、x3,%X2
■またはXl1であり、XI12は、x3。、x2■ま
たはXI2である。ステップS91では、認識部9は、
例えば、中央位置Y。を制御部8′から受ける。制御部
8′は、多値データ記憶手段5に読取るべき位置として
中央位置Y。を指定する。この中央位置Y。は、多値デ
ータ記憶手段5から読取るべき位置として制御部8′に
より指定されるものである。次のステップS92では、
2値データ記憶手段7のXアドレスをxn,として設定
する。
First, in step S90, xn, is determined as the X address to be used in step S92, and X as the X address to be used in steps S98 and S902, according to the detection results of the form 10 by the detection means 71 and 72. Determine 2. Here, x0 is x3,%X2 as shown in Figure 8.
■or Xl1, and XI12 is x3. , x2■ or XI2. In step S91, the recognition unit 9
For example, center position Y. is received from the control section 8'. The control unit 8' selects the center position Y as the position to be read into the multivalued data storage means 5. Specify. This central position Y. is designated by the control unit 8' as a position to be read from the multivalued data storage means 5. In the next step S92,
The X address of the binary data storage means 7 is set as xn.

ステップS93では、2値データ記憶手段7上で調べた
結果、白の連続画素数を計数する連続計数値NをOとす
る。ステップS94では、座標(x.Yo )のアドレ
スのデータがOかlかを調べる。Oの場合は、ステップ
S95で、連続計数値に1を加算する。そして、次のス
テップS96で、この連続計数値Nが所定値Noか否か
を判別する。連続計数値Nが所定値N。と等しくない場
合には、ステップS97で、Xアドレスに1を加算する
。即ち、Xアドレスを右へ1つ移す。そして、次のステ
ップS98では、XアドレスがX。2を超えているか否
かを調べる。XアドレスがX。2を超えていない場合に
は前述したステップS94に戻り、ステップS94〜S
97の処理を繰返す。
In step S93, as a result of checking on the binary data storage means 7, a continuous count value N for counting the number of continuous white pixels is set to O. In step S94, it is checked whether the data at the address of the coordinate (x.Yo) is O or I. In the case of O, 1 is added to the continuous count value in step S95. Then, in the next step S96, it is determined whether this continuous count value N is a predetermined value No or not. The continuous count value N is the predetermined value N. If not equal, 1 is added to the X address in step S97. That is, move the X address one place to the right. Then, in the next step S98, the X address is X. Check whether it exceeds 2. X address is X. If it does not exceed 2, the process returns to step S94 described above, and steps S94 to S
97 is repeated.

一方、XアドレスがXn2を超えている場合には、ステ
ップS99で、帳票10の左端が検出できないという情
報を制御部8′へ送り、本プログラムを終了する。
On the other hand, if the X address exceeds Xn2, in step S99, information that the left end of the form 10 cannot be detected is sent to the control section 8', and the program is ended.

また、ステップS96で、連続計数値NがN。Further, in step S96, the continuous count value N is N.

と等しい場合、ステップS903で、帳票左端位置とし
ての左端アドレスなx−No+1として制御部8′15 1 6 ヘ送り、本プログラムを終了する。
If it is equal to, in step S903, the left end address as the left end position of the form is sent to the control unit 8'15 1 6 as x-No+1, and this program is terminated.

一方、ステップS94で、座標(x,Yo )のデータ
が1の場合、ステップS 901で、Xアドレスを右へ
lつ移す。そして、次のステップS902で、Xアドレ
スがxn2を超えているか否かを判別する。Xアドレス
がX。2を超えていない場合には、ステップS93に戻
る。XアドレスがX。2を超えている場合には、ステッ
プS99で、左端検出エラーとし、本プログラムを終了
する。
On the other hand, if the data of the coordinates (x, Yo) is 1 in step S94, the X address is moved one position to the right in step S901. Then, in the next step S902, it is determined whether the X address exceeds xn2. The X address is X. If it does not exceed 2, the process returns to step S93. The X address is X. If the number exceeds 2, a left edge detection error is determined in step S99, and the program is terminated.

上述した処理により、求めた帳票の左端アドレスx−N
o+1をもとに、読取るべき文字の書かれた位置を求め
る。これは、前述したように、第5図に示す帳票フォー
マットに従って行なわれる。
Through the process described above, the left end address x-N of the obtained form
Based on o+1, find the written position of the character to be read. This is done according to the form format shown in FIG. 5, as described above.

本発明の光学式文字読取装置は、以上の実施例に限定さ
れない。
The optical character reading device of the present invention is not limited to the above embodiments.

即ち、上述した実施例においては、検知手段71及び7
2の2つの検知手段を設けるようにしたが、これに限ら
ず、検知手段の数は、3つ以上であってもよい。検知手
段の数を3つ以上にすれば、帳票10の左端の検出範囲
をより細かく限定することができる。また、検知手段の
数は、1つだけであってもよい。さらに、左端と右端の
役割を入れ替えて右端位置を検出するようにしてもよい
ことは勿論である。
That is, in the embodiment described above, the detection means 71 and 7
Although two detection means (2) are provided, the number of detection means is not limited to this, and may be three or more. If the number of detection means is three or more, the detection range of the left end of the form 10 can be more finely limited. Further, the number of detection means may be only one. Furthermore, it goes without saying that the roles of the left end and right end may be switched to detect the right end position.

(発明の効果) 以上の構成の本発明の光学式文字読取装置は、帳票の位
置及び大きさを検知する検知手段を設け、この検知手段
の検知結果に応じて帳票の左端の検、出範囲を限定する
ようにしたので、帳票の端部を検出する時間を短縮する
ことができ、帳票を読取る時間を短縮することができる
(Effects of the Invention) The optical character reading device of the present invention configured as described above is provided with a detection means for detecting the position and size of a form, and detects and outputs the left end of the form according to the detection result of the detection means. By limiting the number of times, it is possible to shorten the time to detect the edge of the form, and the time to read the form can be shortened.

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

第1図は本発明の光学式文字読取装置の実施例を示すブ
ロック図、第2図は従来の光学式文字読取装置を示すブ
ロック図、第3図は2値データ記憶手段内の帳票データ
の格納状態を示す図、第4図は従来の帳票左端の検出手
順を示すフローチャート、第5図は帳票のフォーマット
の構成図、第6図は帳票の設定位置の相違による2値デ
ータ記憶手段内の帳票データの格納状態の差を1 7 1 只 説明する図、第7図は検知手段の2値データバッファに
対応する位置関係の説明図、第8図は帳票左端の検出範
囲を限定する情報を格納したテーブルの内容を示す図、
第9図は本発明に係る帳票左端の検出手順を示すフロー
チャートである。 1・・・光電変換部、2・・・光源、3・・・集光レン
ズ、4・・・搬送機構、5・・・多値データ記憶手段、
6・・・2値化手段、7・・・2値データ記憶手段、8
.8′・・・制御部、9・・・認識部、71.72・・
・検知手段、73・・・範囲限定手段。
FIG. 1 is a block diagram showing an embodiment of the optical character reading device of the present invention, FIG. 2 is a block diagram showing a conventional optical character reading device, and FIG. 3 is a block diagram showing an example of the optical character reading device of the present invention. FIG. 4 is a flowchart showing the conventional procedure for detecting the left edge of a form, FIG. Figure 7 is an explanatory diagram of the positional relationship corresponding to the binary data buffer of the detection means, and Figure 8 is a diagram that simply explains the difference in the storage state of form data. A diagram showing the contents of the stored table,
FIG. 9 is a flowchart showing a procedure for detecting the left edge of a form according to the present invention. DESCRIPTION OF SYMBOLS 1... Photoelectric conversion unit, 2... Light source, 3... Condensing lens, 4... Transport mechanism, 5... Multi-value data storage means,
6... Binarization means, 7... Binary data storage means, 8
.. 8'...Control unit, 9...Recognition unit, 71.72...
- Detection means, 73... range limiting means.

Claims (1)

【特許請求の範囲】 光電変換手段により帳票上のデータを読取る光学式文字
読取装置において、 帳票の位置を検知する検知手段と、 当該検知手段の検知結果に応じて光電変換手段の帳票端
の検出範囲を限定する範囲限定手段とを備え、 当該範囲限定手段により限定された範囲内で帳票の端部
を検出するようにしたことを特徴とする光学式文字読取
装置。
[Scope of Claims] An optical character reading device that reads data on a form using photoelectric conversion means, comprising a detection means for detecting the position of the form, and a detection means for detecting the edge of the form by the photoelectric conversion means in accordance with a detection result of the detection means. What is claimed is: 1. An optical character reading device comprising: range limiting means for limiting a range; and detecting an edge of a form within the range limited by the range limiting means.
JP1160928A 1989-06-26 1989-06-26 Optical character reading device Pending JPH0327487A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1160928A JPH0327487A (en) 1989-06-26 1989-06-26 Optical character reading device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1160928A JPH0327487A (en) 1989-06-26 1989-06-26 Optical character reading device

Publications (1)

Publication Number Publication Date
JPH0327487A true JPH0327487A (en) 1991-02-05

Family

ID=15725293

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1160928A Pending JPH0327487A (en) 1989-06-26 1989-06-26 Optical character reading device

Country Status (1)

Country Link
JP (1) JPH0327487A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0616464A (en) * 1993-01-26 1994-01-25 Nippon Insulation Kk Calciumsilicate molded body

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0616464A (en) * 1993-01-26 1994-01-25 Nippon Insulation Kk Calciumsilicate molded body

Similar Documents

Publication Publication Date Title
US7471424B2 (en) Original size detecting apparatus, original size detecting method, and program for original size detection
KR100900777B1 (en) Apparatus for optically reading information stored in graphic symbol
US20190311486A1 (en) Method, system and apparatus for correcting translucency artifacts in data representing a support structure
JP2000501209A (en) Sub-pixel data form reader
CN102640165A (en) Imaging-based scanner including border searching for image acquisition
JPH10198754A (en) Code reader
JPH0327487A (en) Optical character reading device
US5504320A (en) Bar-code information reading apparatus
JP2000337853A (en) Detecting device for record position of information code, and optical information reading device
JP3493115B2 (en) Image reader for circular objects
JPH0327486A (en) Optical character reading device
JPS62128380A (en) Character-bar code reader
JPS6152518B2 (en)
JPH05268419A (en) Picture reader
JPH0469788A (en) Optical information reader
JPS63211082A (en) Character reader
JP5267108B2 (en) Image processing device
JP2000293617A (en) Optical information reader
JP2787515B2 (en) Optical character reader
JPH06231301A (en) Optical character reader
JPH04195274A (en) Document terminal detecting method for optical character reader
JPH0447387A (en) Binarizing system
JPH0326591B2 (en)
JP2514660B2 (en) Optical character reader
JPH07271902A (en) Optical character reader