JPH0615150U - Optical character reader - Google Patents

Optical character reader

Info

Publication number
JPH0615150U
JPH0615150U JP5026692U JP5026692U JPH0615150U JP H0615150 U JPH0615150 U JP H0615150U JP 5026692 U JP5026692 U JP 5026692U JP 5026692 U JP5026692 U JP 5026692U JP H0615150 U JPH0615150 U JP H0615150U
Authority
JP
Japan
Prior art keywords
inclination
amount
character
calculating
optical
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
JP5026692U
Other languages
Japanese (ja)
Inventor
昇嗣 梶田
直人 青木
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 JP5026692U priority Critical patent/JPH0615150U/en
Publication of JPH0615150U publication Critical patent/JPH0615150U/en
Pending legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)

Abstract

(57)【要約】 【目的】 搬送中に帳票の傾きが変わっても、文字切り
出し位置から文字がずれ出ないようにして、文字の誤読
あるいは不読の発生を防止する。 【構成】 一定間隔毎に帳票Pの左辺(又は右辺)を検
出する辺検出部11を設ける。そして辺検出部11で検
出した位置において帳票Pの傾き量を算出し、算出した
値に基いて文字切り出し位置を補正する制御部13を設
ける。
(57) [Abstract] [Purpose] Even if the inclination of the form changes during transportation, the character does not deviate from the character cutout position to prevent misreading or nonreading. [Arrangement] An edge detecting unit 11 for detecting the left side (or right side) of a form P is provided at regular intervals. A control unit 13 that calculates the amount of inclination of the form P at the position detected by the side detection unit 11 and corrects the character cutout position based on the calculated value is provided.

Description

【考案の詳細な説明】[Detailed description of the device]

【0001】[0001]

【産業上の利用分野】[Industrial applications]

本考案は、光学センサにより帳票上の文字を読み取る光学式文字読取装置(O CR)に関する。 The present invention relates to an optical character reader (OCR) that reads characters on a form by an optical sensor.

【0002】[0002]

【従来の技術】[Prior art]

図6は従来の光学式文字読取装置の一構成例を示すブロック図である。 同図において、光学式文字読取装置は、ローラ1を駆動して帳票Pを搬送する 機構部2、帳票P上のイメージ3を読み取る光学センサ4および、機構部2と光 学センサ4を制御する制御部5とから成っている。制御部内には読み取られたイ メージデータを格納するメモリ6が具えられている。 FIG. 6 is a block diagram showing a configuration example of a conventional optical character reading device. In the figure, the optical character reader controls a mechanical unit 2 that drives a roller 1 to convey a form P, an optical sensor 4 that reads an image 3 on the form P, and a mechanical unit 2 and an optical sensor 4. It is composed of a control unit 5. A memory 6 for storing the read image data is provided in the control unit.

【0003】 図7は従来の光学式文字読取装置の動作を示すフローチャートであり、このフ ローチャートにしたがって動作を説明する。 まず機構部2により帳票Pが装置内に吸入、搬送される(ステップ1)。帳票 Pは、読取位置まで搬送されてくると、光学センサ4により読み取られる(ステ ップ2)。読み取られたイメージデータは制御部5内のメモリ6に格納される。 制御部5はこのイメージデータに基いて帳票先端のエッジ(A)を検出し(ステ ップ3)、帳票Pの光学センサライン(図8に示す)に対する傾き(スキュー) を計算する(ステップ4)。このようにして帳票Pの傾斜角θを求め、この傾斜 角θを補正角として文字切り出し位置を補正し、文字認識を行う(ステップ5) 。なお図8は帳票Pの傾きを示す説明図である。FIG. 7 is a flowchart showing the operation of a conventional optical character reading device, and the operation will be described according to this flow chart. First, the form P is sucked and conveyed into the apparatus by the mechanism unit 2 (step 1). When the form P is conveyed to the reading position, it is read by the optical sensor 4 (step 2). The read image data is stored in the memory 6 in the control unit 5. The control unit 5 detects the edge (A) of the leading edge of the form based on this image data (step 3), and calculates the inclination (skew) of the form P with respect to the optical sensor line (shown in FIG. 8) (step 4). ). In this way, the inclination angle θ of the form P is obtained, the character cutting position is corrected by using this inclination angle θ as a correction angle, and character recognition is performed (step 5). FIG. 8 is an explanatory diagram showing the inclination of the form P.

【0004】[0004]

【考案が解決しようとする課題】[Problems to be solved by the device]

しかしながら上記従来の装置においては、次のような問題があった。即ち、特 に帳票の搬送方向の長さが長い場合、搬送中に帳票が蛇行することがあり、こう した場合、搬送に伴って帳票上の読取位置の光学センサラインに対する傾きが変 化する。その結果、帳票上の文字の位置と文字切り出し位置との間にずれが生じ 、文字の誤読又は不読(文字が読み取れないこと)が発生するという問題があっ た。 However, the above conventional device has the following problems. That is, especially when the length of the form in the conveyance direction is long, the form may meander during the conveyance. In such a case, the inclination of the reading position on the form with respect to the optical sensor line changes with the conveyance. As a result, there was a problem that the position of the character on the form and the position where the character was cut out were misaligned, resulting in erroneous reading or non-reading of the character (unreadable character).

【0005】 本考案は上記問題点に鑑みてなされたもので、その目的は、搬送中に帳票の傾 きが変わっても、その傾きの変化に対応して文字切り出し位置を補正することに より、切り出し位置から文字がずれ出ないようにして、文字の誤読あるいは不読 の発生を防止し認識率の向上した優れた光学式文字読取装置を提供することであ る。The present invention has been made in view of the above problems, and an object of the present invention is to correct a character cutout position in response to a change in the inclination of a form during conveyance even if the inclination of the form changes. It is an object of the present invention to provide an excellent optical character reading device that prevents misreading or non-reading of characters by preventing the characters from shifting from the cutout position and improves the recognition rate.

【0006】[0006]

【課題を解決するための手段】[Means for Solving the Problems]

上記課題を解決するために本考案は、搬送される帳票上の文字を光学センサで 読み取るとともに、帳票の傾斜量を算出し、算出した傾斜量に基いて文字切り出 し位置を補正して文字認識を行う光学式文字読取装置において、帳票の傾斜量を 一定間隔毎に算出する傾斜量算出手段を設け、傾斜量算出手段で算出した傾斜量 に基いて文字切り出し位置を補正するようにしたものである。 In order to solve the above problems, the present invention reads characters on a conveyed form with an optical sensor, calculates the amount of inclination of the form, and corrects the character cutting position based on the calculated amount of inclination to correct the character. An optical character reading device for recognition, which is provided with an inclination amount calculating means for calculating the inclination amount of a form at regular intervals, and corrects the character cutout position based on the inclination amount calculated by the inclination amount calculating means. Is.

【0007】[0007]

【作用】[Action]

上記構成を有する本考案によれば、傾斜量算出手段により、搬送される帳票の 傾斜量を一定間隔毎に算出する。したがって、帳票が蛇行して搬送された場合で も、読み取り位置における傾斜量をより正確に求めることができる。そして算出 した傾斜量に基いて文字切り出し位置を補正する。 According to the present invention having the above-mentioned configuration, the tilt amount calculating means calculates the tilt amount of the conveyed form at regular intervals. Therefore, even when the form is meandered and conveyed, the tilt amount at the reading position can be more accurately obtained. Then, the character cutout position is corrected based on the calculated inclination amount.

【0008】[0008]

【実施例】【Example】

以下本考案に係る実施例を図面にしたがって説明する。なお各図面に共通する 要素には同一の符号を付す。 図1は本考案に係る第1実施例の光学式文字読取装置を示すブロック図である 。 図1において、本実施例の光学式文字読取装置には、従来例と同様に、ローラ 1を駆動帳票Pを搬送する機構部2、帳票P上のイメージ3を読み取る光学セン サ4が具備されている。 Embodiments according to the present invention will be described below with reference to the drawings. Note that elements common to the drawings are given the same reference numerals. 1 is a block diagram showing an optical character reader according to a first embodiment of the present invention. In FIG. 1, the optical character reading apparatus of the present embodiment is provided with a mechanism section 2 that conveys a driving form P through a roller 1 and an optical sensor 4 that reads an image 3 on the form P, as in the conventional example. ing.

【0009】 また光学センサ4に接続して辺検出部11が設けられている。辺検出部11は 、光学センサ4から送られてくるイメージデータを格納するメモリ12を有し、 帳票Pの左辺(または右辺)を検出するものである。制御部13は、機構部2、 光学センサ4および辺検出部11を制御するもので、イメージデータを格納する メモリ14を具えている。制御部13は、帳票Pの傾斜量の計算、文字切り出し および文字認識を行う。A side detector 11 is provided so as to be connected to the optical sensor 4. The side detection unit 11 has a memory 12 that stores image data sent from the optical sensor 4, and detects the left side (or right side) of the form P. The control unit 13 controls the mechanism unit 2, the optical sensor 4, and the side detection unit 11, and includes a memory 14 that stores image data. The control unit 13 calculates the amount of inclination of the form P, cuts out characters, and recognizes characters.

【0010】 次に本実施例の動作を主に図2に示すフローチャートにしたがって説明する。 まず制御部13が機構部2を駆動してローラ1を回転させ、帳票Pを装置内に 吸入する(ステップ11)。帳票Pが読み取り位置まで搬送されると、光学セン サ4により帳票P上のイメージ3が読み取られる(ステップ12)。Next, the operation of this embodiment will be described mainly with reference to the flowchart shown in FIG. First, the control unit 13 drives the mechanism unit 2 to rotate the roller 1 and suck the form P into the apparatus (step 11). When the form P is conveyed to the reading position, the image 3 on the form P is read by the optical sensor 4 (step 12).

【0011】 読み取られたイメージのデータは、辺検出部11のメモリ12と制御部13内 のメモリ14に格納される。制御部13は、このイメージデータから帳票先端の 左辺のエッジ位置(図3に示すA0 の位置)を検出する(ステップ13)。なお 図3は本実施例の読取動作を説明するための説明図である。 次にこの位置A0 における帳票Pの傾き(スキュー)を計算する(ステップ1 4)。この傾きは、図3において光学センサラインに対する帳票P先端の傾きθ 0 であり、その計算式は次の通りとなる。The read image data is stored in the memory 12 of the side detection unit 11 and the memory 14 of the control unit 13. From this image data, the control unit 13 determines the edge position on the left side of the leading edge of the form (A shown in FIG. 3).0Position) is detected (step 13). FIG. 3 is an explanatory diagram for explaining the reading operation of this embodiment. Next this position A0The skew (skew) of the form P in (1) is calculated (step 14). This inclination is the inclination θ of the leading edge of the form P with respect to the optical sensor line in FIG. 0 The calculation formula is as follows.

【数1】 ここで帳票P先端の左辺位置A0 の座標を(xA0,yA0),帳票P先端の右辺 位置B0 の座標を(xB0,yB0)とする。[Equation 1] Here, the coordinates of the left side position A 0 of the leading edge of the form P are (x A0 , y A0 ) and the coordinates of the right side position B 0 of the leading edge of the form P are (x B0 , y B0 ).

【0012】 制御部13は、算出した傾き量θ0 を補正角とし、この補正角θ0 に基いて、 文字切り出し位置を図3に破線で示す位置Qから実線で示す位置Q′に補正する 。そして補正した切り出し位置Q′において文字認識を行う(ステップ15)。The control unit 13 sets the calculated inclination amount θ 0 as a correction angle, and corrects the character cut-out position from the position Q shown by the broken line in FIG. 3 to the position Q ′ shown by the solid line based on this correction angle θ 0 . . Then, character recognition is performed at the corrected cut-out position Q '(step 15).

【0013】 先端から一定量L搬送された時点において、辺検出部11により帳票Pの左辺 を検出する(ステップ16)。そしてこの位置(図3に示すA1 )における帳票 Pの傾きθ1 を求める(ステップ14)。この傾きθ1 は、位置A1 の座標を( xA1,yA1)とすると、次式で求められる。即ち、At the time point when a predetermined amount L is conveyed from the leading edge, the left side of the form P is detected by the side detecting unit 11 (step 16). Then, the inclination θ 1 of the form P at this position (A 1 shown in FIG. 3) is obtained (step 14). This inclination θ 1 is obtained by the following equation, where the coordinates of the position A 1 are (x A1 , y A1 ). That is,

【数2】 そしてこの傾きθ1 を補正角として、文字切り出し位置を前述と同様に補正し 、文字認識を行う。[Equation 2] Then, using this inclination θ 1 as a correction angle, the character cutout position is corrected in the same manner as described above, and character recognition is performed.

【0014】 このように一定量L搬送するごとに帳票Pの傾きを算出し、これに基いて文字 切り出し位置を補正し、認識を行う。帳票Pの先端からn×L搬送された左辺位 置An (xAn,yAn)における傾きθn は、次式で求められる。即ち、In this way, the inclination of the form P is calculated every time the fixed amount L is conveyed, and the character cutout position is corrected based on this, and recognition is performed. The inclination θ n at the left side position A n (x An , y An ) conveyed n × L from the leading edge of the form P is calculated by the following equation. That is,

【数3】 [Equation 3]

【0015】 次に本考案の第2の実施例について説明する。 第2実施例は、帳票Pの傾きθを算出し、その傾きθとその時の補正角との差 が一定角度より大きいか否かを判断し、大きい場合にその読取位置における傾き θを文字切り出し位置の補正角とするものである。図4は第2実施例の動作を説 明するための説明図である。Next, a second embodiment of the present invention will be described. In the second embodiment, the inclination θ of the form P is calculated, and it is determined whether the difference between the inclination θ and the correction angle at that time is larger than a certain angle. If the difference is large, the inclination θ at the reading position is cut out as a character. This is the correction angle of the position. FIG. 4 is an explanatory diagram for explaining the operation of the second embodiment.

【0016】 図4において、帳票P先端での傾きをθ0 とすると、先端からA1 までの補正 角はθ0 である。位置A1 における傾きをθ1 とすると、この角度θ1 とθ0 と の差(θ1 −θ0 )が一定値S(たとえば0.03°〜0.05°)より大きい か否かを判断し、θ1 −θ0 <Sの場合はA1 からA2 までの補正値をθ0 とし 、θ1 −θ0 >Sの場合はA1 からA2 までの補正値をθ1 とする。このように することにより第2実施例では、帳票Pの傾きが少ない場合には、文字切り出し 位置を補正しないので、処理速度の向上が期待できる。[0016] In FIG 4, when the slope at the form P tip and theta 0, the correction angle from the tip to the A 1 is a theta 0. If the inclination at the position A 1 is θ 1 , it is determined whether the difference (θ 1 −θ 0 ) between the angles θ 1 and θ 0 is larger than a constant value S (for example, 0.03 ° to 0.05 °). When θ 1 −θ 0 <S, the correction value from A 1 to A 2 is θ 0 , and when θ 1 −θ 0 > S, the correction value from A 1 to A 2 is θ 1 . To do. By doing this, in the second embodiment, when the inclination of the form P is small, the character cut-out position is not corrected, so that an improvement in processing speed can be expected.

【0017】 次に本考案の第3実施例について説明する。 第3実施例は、ある傾き算出位置において、それまでの文字切り出し位置補正 角と、その算出位置における補正角との差が一定値(T1 )を越える場合は次の 傾き算出位置を小さくとり、また一定値(T2 )(T2 <T1 )より小さい場合 は、次の傾き算出位置を大きくとるようにしたものである。図5は第3実施例の 動作を説明するための説明図である。Next, a third embodiment of the present invention will be described. In the third embodiment, at a certain tilt calculation position, if the difference between the character cutout position correction angle up to that point and the correction angle at that calculation position exceeds a certain value (T 1 ), the next tilt calculation position is set smaller. When the value is smaller than the constant value (T 2 ) (T 2 <T 1 ), the next tilt calculation position is set to be large. FIG. 5 is an explanatory diagram for explaining the operation of the third embodiment.

【0018】 図5において、A0 における傾きをθ0 ,A0 からL0 だけ搬送された位置A 1 における傾きをθ1 とすると、θ0 とθ1 の差(θ1 −θ0 )が一定値T1 ( たとえば0.2°〜0.3°)より大きい場合は、A1 から次の傾き算出位置A 2 まで距離L1 をL0 より小さくする(L1 <L0 )。またθ0 とθ1 の差(θ 1 −θ0 )が一定値T2 (たとえば0.03°〜0.05°)より小さい場合は 、A1 からA2 までの距離L1 をL0 より大きくする(L1 >L0 )。またT1 >θ1 −θ0 >T2 の場合は、L1 =L0 とする。In FIG. 5, A0The slope at0, A0To L0Position A transported only 1 The slope at1Then, θ0And θ1Difference (θ1−θ0) Is a constant value T1If it is larger than (for example, 0.2 ° to 0.3 °), A1To the next tilt calculation position A 2 Distance to L1To L0Make it smaller (L1<L0). Also θ0And θ1Difference (θ 1 −θ0) Is a constant value T2If it is smaller than (for example, 0.03 ° to 0.05 °), A1To A2Distance to1To L0Make it larger (L1> L0). See also T1 > Θ1−θ0> T2If, L1= L0And

【0019】 以上のように第3実施例では、帳票Pの蛇行量(θn −θn-1 )が小さい場合 は次の傾き算出位置を大きくとるので、処理速度が速くなり、また蛇行量が大き い場合には次の傾き算出位置を小さくとるので、文字切り出し位置が更にずれに くくなる。As described above, in the third embodiment, when the meandering amount (θ n −θ n-1 ) of the form P is small, the next inclination calculation position is set to a large value, so that the processing speed is increased and the meandering amount is increased. If is large, the next tilt calculation position is made smaller, and the character cutout position becomes even more difficult to shift.

【0020】[0020]

【考案の効果】[Effect of device]

以上詳細に説明したように本考案によれば、読取中に帳票の蛇行が発生しても 、一定間隔毎に傾きを算出して文字切り出し位置を補正するので、文字切り出し 位置から帳票の文字がはみ出すことがなくなり、誤読,不読の発生が少なくなる 。 As described in detail above, according to the present invention, even if the form is meandered during reading, the inclination is calculated at a constant interval and the character cutout position is corrected, so that the characters on the form can be corrected from the character cutout position. It will not stick out, and the chances of misreading and non-reading will be reduced.

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

【図1】本考案に係る第1実施例を示すブロック図であ
る。
FIG. 1 is a block diagram showing a first embodiment according to the present invention.

【図2】第1実施例の動作を示すフローチャートであ
る。
FIG. 2 is a flowchart showing the operation of the first embodiment.

【図3】第1実施例の動作を示す説明図である。FIG. 3 is an explanatory diagram showing the operation of the first embodiment.

【図4】第2実施例の動作を示す説明図である。FIG. 4 is an explanatory diagram showing the operation of the second embodiment.

【図5】第3実施例の動作を示す説明図である。FIG. 5 is an explanatory diagram showing the operation of the third embodiment.

【図6】従来の光学式文字読取装置を示すブロック図で
ある。
FIG. 6 is a block diagram showing a conventional optical character reader.

【図7】従来例の動作を示すフローチャートである。FIG. 7 is a flowchart showing the operation of a conventional example.

【図8】帳票の傾きを示す説明図である。FIG. 8 is an explanatory diagram showing the inclination of a form.

【符号の説明】[Explanation of symbols]

2 機構部 4 光学センサ 11 辺検出部 13 制御部 P 帳票 2 Mechanism part 4 Optical sensor 11 Edge detection part 13 Control part P form

Claims (3)

【実用新案登録請求の範囲】[Scope of utility model registration request] 【請求項1】 搬送される帳票上の文字を光学センサで
読取るとともに、帳票の傾斜量を算出し、算出した傾斜
量に基いて文字切り出し位置を補正して文字認識を行う
光学式文字読取装置において、 帳票の傾斜量を一定間隔毎に算出する傾斜量算出手段を
設け、 傾斜量算出手段で算出した傾斜量に基いて文字切り出し
位置を補正することを特徴とする光学式文字読取装置。
1. An optical character reading device for reading characters on a conveyed form by an optical sensor, calculating the amount of inclination of the form, and correcting the character cut-out position based on the calculated amount of inclination for character recognition. 2. An optical character reading device, comprising: a tilt amount calculating means for calculating the tilt amount of a form at regular intervals, and correcting the character cutout position based on the tilt amount calculated by the tilt amount calculating means.
【請求項2】 搬送される帳票上の文字を光学センサで
読み取るとともに、帳票の傾斜量を算出し、算出した傾
斜量に基いて文字切り出し位置を補正して文字認識を行
う光学式文字読取装置において、 帳票の傾斜量を一定間隔毎に算出する傾斜量算出手段を
設け、 傾斜量算出手段で算出した傾斜量が所定量を越えた場合
に該傾斜量に基いて文字切り出し位置を補正することを
特徴とする光学式文字読取装置。
2. An optical character reading device for reading characters on a conveyed form by an optical sensor, calculating the amount of inclination of the form, correcting the character cut-out position based on the calculated amount of inclination, and performing character recognition. In (1), a tilt amount calculation means for calculating the tilt amount of the form is provided, and when the tilt amount calculated by the tilt amount calculation means exceeds a predetermined amount, the character cutout position is corrected based on the tilt amount. An optical character reader characterized by.
【請求項3】 搬送される帳票上の文字を光学センサで
読み取るとともに、帳票の傾斜量を算出し、算出した傾
斜量に基いて文字切り出し位置を補正して文字認識を行
う光学式文字読取装置において、 帳票の傾斜量を間隔を持って算出する傾斜量算出手段を
設け、 傾斜量の変化量により前記間隔を変えることを特徴とす
る光学式文字読取装置。
3. An optical character reading device for reading characters on a conveyed form by an optical sensor, calculating the amount of inclination of the form, correcting the character cut-out position based on the calculated amount of inclination, and performing character recognition. 2. An optical character reader according to claim 1, further comprising: an inclination amount calculating means for calculating the inclination amount of the form with a gap, and changing the gap according to a change amount of the inclination amount.
JP5026692U 1992-07-17 1992-07-17 Optical character reader Pending JPH0615150U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5026692U JPH0615150U (en) 1992-07-17 1992-07-17 Optical character reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5026692U JPH0615150U (en) 1992-07-17 1992-07-17 Optical character reader

Publications (1)

Publication Number Publication Date
JPH0615150U true JPH0615150U (en) 1994-02-25

Family

ID=12854167

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5026692U Pending JPH0615150U (en) 1992-07-17 1992-07-17 Optical character reader

Country Status (1)

Country Link
JP (1) JPH0615150U (en)

Similar Documents

Publication Publication Date Title
EP0103788B1 (en) Method and apparatus for reading mark sheets
US6533182B1 (en) Two-dimensional dot code and reader thereof
EP0849929A3 (en) Sheet conveying apparatus
JPH0615150U (en) Optical character reader
JPS58100568A (en) Skew detecting method
JP6330506B2 (en) Image reading device
US11082576B2 (en) Image reading apparatus, image reading method, and image reading system
JPH08324062A (en) Image processor
JPH06245032A (en) Optical recognition device
JPS6033332B2 (en) Information input method using facsimile
JP2963321B2 (en) Border cutting method in character recognition
JP2000259764A (en) Medium processor
JP2718382B2 (en) Mark sheet reader
JP2009069951A (en) Character recognition device and character recognition method in character recognition device
JP2608943B2 (en) Optical mark reading method
JPH0221385A (en) Printer
JPS6156657B2 (en)
KR950020297A (en) Mark sheet reader
JPH07192087A (en) Optical character reader
JPH0727541B2 (en) Optical character reading method
JPH05174184A (en) Optical character reader
JP2570570B2 (en) Optical character reader
JPH05233874A (en) Optical character reader
JPH09305708A (en) Vertically stretched data correction method for optical character reader
JP2001344608A (en) Paper sheet edge detecting method and method for calculating oblique angle using it