[go: up one dir, main page]

JPS5994181A - Pattern recognizing device - Google Patents

Pattern recognizing device

Info

Publication number
JPS5994181A
JPS5994181A JP58202597A JP20259783A JPS5994181A JP S5994181 A JPS5994181 A JP S5994181A JP 58202597 A JP58202597 A JP 58202597A JP 20259783 A JP20259783 A JP 20259783A JP S5994181 A JPS5994181 A JP S5994181A
Authority
JP
Japan
Prior art keywords
paper
circuit
signal
tilt
line sensor
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
JP58202597A
Other languages
Japanese (ja)
Inventor
Hiromichi Fujisawa
藤沢 浩道
Kunihiro Okada
邦弘 岡田
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP58202597A priority Critical patent/JPS5994181A/en
Publication of JPS5994181A publication Critical patent/JPS5994181A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Character Input (AREA)

Abstract

PURPOSE:To recognize exactly a pattern with simple constitution by reading the tip of a sheet of paper and measuring the tilt of the paper by line sensor and correcting the tilting by using measured quantity of the position of left and right ends. CONSTITUTION:A sheet of paper 10 is charged in a paper feeding mechanism 20, and a picture pattern on the paper 10 is photoelectrically converted by an observing mechanism 30 using a line sensor. A signal that indicates this photoelectrically converted image is supplied to a tilt detecting circuit 40, an X-axis direction position detecting circuit 50 and a correcting circuit 60. The circuit 40 works when the paper 10 is fed newly, and reads the tip of the paper 10 and measures the tilt of the paper 10. The circuit 50 detects left and right ends of the paper 10 and measures the position and width of the paper 10 and inputs the result of detection to the circuit 60. The inclination measured by the circuit 40 is added to a recognition processing section 70, and at the same time, the corrected value of deviation in the direction X is added to the processing section 70 by the circuit 60. Recognition of character pattern is performed by the processing section 70 and supplied to a display 80 and a memory 90.

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明は、パターン認識装置、特に光学文字認識装置に
関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Application of the Invention] The present invention relates to a pattern recognition device, particularly an optical character recognition device.

〔発明の背景〕[Background of the invention]

□従来、光電文字認識装置に給紙される用紙は、文字観
測部に対して一定の許容範囲、しかもかなり小さな許容
範囲内の相対的・傾きのみが許されていた。上記一定許
容範囲とは1通常第1図に示す如く、1行分の文字パタ
ーンを囲む長方形3内に上又は下の別の行の文字パター
ンが入らない程度のものであった。したがって、上記範
囲では、文字パターンを切り出す際に、真横に1行毎を
切り出すことが可能であシ、切シ出し方式および、その
実現回路は割合単純であシ得た。
□ Conventionally, paper fed to a photoelectric character recognition device was only allowed to be tilted relative to the character observation unit within a certain tolerance range, and moreover, within a fairly small tolerance range. As shown in FIG. 1, the above-mentioned certain tolerance range is usually such that a character pattern on another line above or below does not fit within a rectangle 3 surrounding one line of character pattern. Therefore, in the above range, when cutting out a character pattern, it is possible to cut out each line horizontally, and the cutting out method and its implementation circuit are relatively simple.

しかしながら、給紙される用紙の大きさが多種多様であ
ったり、更にそれらを高速に搬送し、高速に認識するよ
うな光学文字認識装置においては、用紙を上記の許容範
囲内の傾きで給紙することが帷しい。したがって、上記
許容範囲内に納めるためには、給紙機構は複雑、かつ高
価になる。
However, in optical character recognition devices where paper is fed in a wide variety of sizes, transported at high speed, and recognized at high speed, the paper is fed at an inclination within the above tolerance range. It's hard to do. Therefore, in order to keep the paper feeding mechanism within the above-mentioned tolerance range, the paper feeding mechanism becomes complicated and expensive.

また、第2図に示す程傾いたものに対しては、切υ出し
処理が従来よりも複雑になシ、高速に切シ出すことは極
めて難しい。
Furthermore, for a piece that is as inclined as shown in FIG. 2, the cutting process is more complicated than in the past, and it is extremely difficult to cut it out at high speed.

そこで、従来はフライング・スポット・スキャナ(飛点
走査機構)を観測手段として用いることにより、走査形
態を傾きに合わせて変更して傾きの影響を除去した形で
パターンを取込んでいた。
Therefore, in the past, a flying spot scanner (flying spot scanning mechanism) was used as an observation means to change the scanning form according to the inclination and capture the pattern in a form that removed the influence of the inclination.

しかし、この場合は観測部が高価になるという欠点があ
った。
However, in this case, there was a drawback that the observation section was expensive.

〔発明の目的〕[Purpose of the invention]

したがって、本発明の目的は第2図に示す様な大きな傾
きをも待客することを可能とし、かつ装置全体を高速、
かつ安価にすることである。
Therefore, the purpose of the present invention is to make it possible to wait for customers even on a large inclination as shown in Fig.
And it should be cheap.

〔発明の概要〕[Summary of the invention]

本発明による装置では高速かつ安価という条件を満すた
めに、観測手段として一次元光電変換素子(以下ライン
・センサと呼ぶ)を用い、かつ傾きの補正を可能にする
In order to meet the requirements of high speed and low cost, the apparatus according to the present invention uses a one-dimensional photoelectric conversion element (hereinafter referred to as a line sensor) as an observation means, and also enables tilt correction.

フライング・スポット・スキャナを観測手段とした場合
には、用紙の任意の点を自由にランダムアクセスして光
電変換することが可能であるため傾きの補正をしながら
文字パターンを取込むことが割合容易であった。しかし
ながら、本考案による装置では、上記目的のために観測
手段としてライン・センサを採用しているため、従来の
フライング・スポット・スキャナを用いた際の方式は役
に立たない。
When using a flying spot scanner as an observation method, it is possible to randomly access any point on the paper and photoelectrically convert it, making it relatively easy to capture character patterns while correcting the inclination. Met. However, since the device according to the present invention employs a line sensor as an observation means for the above purpose, the conventional method using a flying spot scanner is useless.

したがって、本発明による装置では、ライン・センサに
より用紙の先端をも読取ることにより用紙の傾き(ライ
ン・センサに対する相対的な傾き)を測定し、更にライ
ン・センサにより用紙の左右端の位置を測定することに
より、同測定量を用いて傾きの補正を行う手段を設けて
いる。
Therefore, in the apparatus according to the present invention, the line sensor also reads the leading edge of the paper to measure the inclination of the paper (relative inclination to the line sensor), and the line sensor further measures the positions of the left and right edges of the paper. By doing so, a means for correcting the inclination using the same measured quantity is provided.

一般に、用紙が傾いて給紙された場合は、横方向(以後
X軸と称する)にもパターンのずれが生じるので、ここ
で言う傾きの補正とはX軸のずれの補正をも含む。
In general, when paper is fed at an angle, a pattern shift also occurs in the lateral direction (hereinafter referred to as the X-axis), so the correction of the inclination referred to here also includes the correction of the shift in the X-axis.

〔発明の実施例〕[Embodiments of the invention]

以下、本発明を実施例を参照して詳細に説明する。 Hereinafter, the present invention will be explained in detail with reference to Examples.

第3図に本発明による装置の機能ブロック図を示す。同
図において、用紙10は給紙機構20に装填され、ライ
ン・センサを用いた観測機構30によって光電変換され
る。光電変換されたイメージを表わす信号は傾き検出回
路40、X軸方向位置検出回路50、および傾き補正回
路60に供給される。
FIG. 3 shows a functional block diagram of the device according to the invention. In the figure, a paper 10 is loaded into a paper feed mechanism 20, and photoelectrically converted by an observation mechanism 30 using a line sensor. A signal representing the photoelectrically converted image is supplied to a tilt detection circuit 40, an X-axis direction position detection circuit 50, and a tilt correction circuit 60.

傾き検出回路40は用紙が新しく給紙さ扛たときに動作
し、用紙の先端を読取ることにより傾き量を測定する。
The tilt detection circuit 40 operates when paper is newly fed and measures the amount of tilt by reading the leading edge of the paper.

X軸方向位置検出回路50は用紙が観測機構の元にある
とき常時動作し、用紙の左端、および右端を検出して位
置および用紙の横幅を測定する。
The X-axis position detection circuit 50 operates constantly when the paper is under the observation mechanism, detects the left edge and right edge of the paper, and measures the position and width of the paper.

上記3つの信号を受ける傾き補正回路60は。A tilt correction circuit 60 receives the above three signals.

傾いたイメージを、傾きのない場合のイメージに変換し
、更にX軸方向のずれの補正を適用して認識処理部70
に転送する。ここで認識処理には切り出し処理をも含む
。認識した結果は、結果表示用のディスプレイ80、あ
るいは認識結果記憶用のメモリ90に転送される。
The recognition processing unit 70 converts the tilted image into an image without tilt, and further applies correction for the deviation in the X-axis direction.
Transfer to. Here, the recognition process also includes a cutting process. The recognized results are transferred to a display 80 for displaying the results or a memory 90 for storing the recognition results.

ここで、給紙機構20、ライン・センサを用いた観測機
構30、認識処理部70.ディスプレイ80、メモリ9
0については公知の技術で構成できるので説明を省略す
る。
Here, a paper feeding mechanism 20, an observation mechanism 30 using a line sensor, a recognition processing section 70. Display 80, memory 9
0 can be configured using a known technique, so the explanation will be omitted.

以下1本発明で重要な傾き検出回路40.X軸方向位置
検出回路50、および傾き補正回路60について詳細に
説明する。
Inclination detection circuit 40, which is important in the present invention, is as follows: The X-axis direction position detection circuit 50 and the tilt correction circuit 60 will be explained in detail.

まず傾き検出回路を説明する。第4図は傾き検出の原理
を説明するだめの図である。同図において、枠101は
ライン・センサで観測できる領域であり、白い部分10
2が用紙のイメージ、斜線の部分103が紙の存在しな
い部分のイメージである。適当な手段を講じることによ
り、紙のない部分のパターン・イメージ(バイナリ・パ
ターン)は値1をもち、白い部分は値0をもつようにす
る。
First, the tilt detection circuit will be explained. FIG. 4 is a diagram for explaining the principle of tilt detection. In the figure, a frame 101 is an area that can be observed by a line sensor, and a white part 10
2 is an image of paper, and the shaded area 103 is an image of the area where no paper exists. By taking appropriate measures, the pattern image (binary pattern) in the areas without paper is made to have the value 1, and the white areas are made to have the value 0.

同図においで縦軸は観測の時刻に対応する。用紙は、固
定されたライン・センサの元を一定の速度で通過するの
で、ライン・センサの目かう見り用紙のイメージは同図
に示すように傾いて見える。
In the figure, the vertical axis corresponds to the time of observation. Since the paper passes at a constant speed past the fixed line sensor, the line sensor's image of the paper appears to be tilted as shown in the figure.

そこで、ライン・センサの数箇所において紙の無い時刻
t。から紙の有る時刻t1までの黒の長さ11,12、
・・・・・・を測定すれは、用紙の傾きは13−11 
 、14−12・・・・・・から簡単に求められる。
Therefore, there is a time t when there is no paper at several locations on the line sensor. The length of black from t1 to time t1 where there is paper 11, 12,
If you measure ......, the inclination of the paper is 13-11
, 14-12... can be easily obtained.

本実施例では第4図に示すごとく4点で黒の長さを測定
する。ライン・センサの長さは2048ビツトで、測定
点の間隔は13  と’I”4  と柱の測定点間とも
にそれぞれ512(ビット)である。したがって傾きθ
8は(1)式のように求まる。
In this embodiment, the length of black is measured at four points as shown in FIG. The length of the line sensor is 2048 bits, and the distance between measurement points is 512 (bits) between 13 and 'I'4 and the measurement points of the pillars. Therefore, the slope θ
8 can be found as in equation (1).

上記傾きθSを求めるための回路40のより詳細なブロ
ック図を第5図に示す。
A more detailed block diagram of the circuit 40 for determining the above-mentioned slope θS is shown in FIG.

傾き検出回路40の動作および構成を第5図を参照しな
がら説明する。
The operation and configuration of the tilt detection circuit 40 will be explained with reference to FIG.

まず、信号5YNO201は基本クロック信号であり、
ライン・センサの各ビットをサンプリングするのと同期
したパルス信号である。信号5LNO205は一走査(
2048ビツト)ごちに出力される行同期信号である。
First, the signal 5YNO201 is a basic clock signal,
This is a pulse signal synchronized with sampling each bit of the line sensor. Signal 5LNO205 is one scan (
(2048 bits) This is a row synchronization signal output to each row synchronization signal.

信号5PF204 は新しい用紙が給紙されたときに出
力さ詐る初期リセット信号である。信号P2O2は映像
信号(ライン・センサの出力を適当な二値化処理を旋し
て得られる)であり、パターンが白のとき(又は紙があ
るとき)0.黒のとき(又は紙がないとき)1の値を取
る。
Signal 5PF204 is an initial reset signal that is output when a new sheet is fed. The signal P2O2 is a video signal (obtained by subjecting the output of the line sensor to appropriate binarization processing) and is 0.0 when the pattern is white (or when there is paper). It takes a value of 1 when it is black (or when there is no paper).

回路120はX軸方向の現時点でサンプリングしている
点のアドレスを示すアドレス・カウンタであり0〜20
47の値をとる。アドレス・カウンタ120は新しい行
毎に信号205にニジリセットされ、サンプリング毎に
信号201により+1される。
The circuit 120 is an address counter indicating the address of the point currently being sampled in the X-axis direction, and is 0 to 20.
It takes a value of 47. Address counter 120 is reset to signal 205 for each new row and incremented by one by signal 201 for each sampling.

回路131はアドレス・カウンタ120の内容と値70
4とを比較し、一致していnは信号211を1として出
力する比較回路である。回路132゜133.134は
それぞれ同様に、値1216゜832.1344と比較
する比較回路である。従って信号211,213,21
2.および214はそれぞれ、11.12,13および
t4の測定点をサンプリングしている時点でのみ値1が
出力される信号である。
Circuit 131 stores the contents of address counter 120 and the value 70.
4, and if they match, n is a comparison circuit that outputs the signal 211 as 1. Circuits 132, 133, and 134 are respectively comparison circuits that similarly compare with the values 1216, 832, and 1344. Therefore, signals 211, 213, 21
2. and 214 are signals whose value is 1 only when sampling measurement points 11, 12, 13, and t4, respectively.

AND回路141は信号211.201 、および映像
信号の反転した信号203のANDをとり、該当する測
定点で白すなわち紙の部分を検知したときのみ1の信号
241を出力する。回路142゜143および144は
回路141に同様である。
The AND circuit 141 ANDs the signals 211.201 and the inverted video signal 203, and outputs a signal 241 of 1 only when white, that is, a paper portion is detected at the corresponding measurement point. Circuits 142, 143 and 144 are similar to circuit 141.

回路151は信号204によってリセットされ。Circuit 151 is reset by signal 204.

それ以後の信号241が1である回数を計数し、同回数
が所定の数(nl)を越えると信号221を1とするよ
うな計数回路である。これは給紙直後における用紙の不
安定状態の影響を避けるために設けられ、nl は16
程度に設定しておけば十分である。すなわち、信号22
1は新しい用紙が給紙され始めてから、同用紙の先端が
センサの11の測定点の元を通過するまでOで、その後
は1となる信号である。回路152,153、および1
54は回路151に同様である。
This is a counting circuit that counts the number of times that the signal 241 is 1 after that, and sets the signal 221 to 1 when the number of times that the signal 241 is 1 is greater than a predetermined number (nl). This is provided to avoid the influence of the unstable state of the paper immediately after feeding, and nl is 16
It is sufficient to set it to a certain degree. That is, signal 22
1 is a signal that is O from when a new sheet of paper begins to be fed until the leading edge of the same sheet passes through the 11 measurement points of the sensor, and then becomes 1. Circuits 152, 153, and 1
54 is similar to the circuit 151.

回路161は!、を計数するカウンタで信号204に二
ってリセットされ、信号205によって+1され、更に
信号221が1になったとき以後のカウントアツプを禁
止する。信号205はライン毎に出力されるパルスであ
るのでカウンタ161は白が到達するまでの黒のライン
数を計数していることになる。回路162,1638よ
び164は回路161に同様である。
Circuit 161 is! , is reset by the signal 204, is incremented by 1 by the signal 205, and furthermore, when the signal 221 becomes 1, further counting up is prohibited. Since the signal 205 is a pulse output for each line, the counter 161 counts the number of black lines until the white one arrives. Circuits 162, 1638 and 164 are similar to circuit 161.

回路171は13−1.を、回路172は!4−12を
それぞれ演算する減算回路である。回路173は回路1
71と172の減算結果を更に加算する加算回路である
。加算結果251はラッチ回路183に、ラッチ信号2
31に工ってラッチされる。信号252は値θ8を表わ
す二進数であり、小数点はL S B (Least、
 51gn1jic、anti Bi t)から数えて
10ビツト目と考えればよい。しかし実際には、ラッチ
回路183は6ビツトからなっているOラッチ信号23
1はANDゲート181と、上記加算回路における遅延
時間と同等以上の遅延時間をもつ遅延回路182によっ
て作られる。
The circuit 171 is 13-1. , the circuit 172 is! This is a subtraction circuit that calculates 4-12, respectively. Circuit 173 is circuit 1
This is an addition circuit that further adds the subtraction results of 71 and 172. The addition result 251 is sent to the latch circuit 183 as a latch signal 2.
31 and latched. The signal 252 is a binary number representing the value θ8, and the decimal point is LSB (Least,
It can be considered as the 10th bit counting from 51gn1jic, anti Bit). However, in reality, the latch circuit 183 uses the O latch signal 23 consisting of 6 bits.
1 is created by an AND gate 181 and a delay circuit 182 having a delay time equal to or greater than the delay time in the adder circuit.

ANDゲート181はすべての測定点(4点)の元の用
紙の先端が通過したとき1を出力する。また信号231
は信号PPR,として認識処理部70に対しでも出力さ
れる。
The AND gate 181 outputs 1 when the leading edge of the original sheet passes through all measurement points (4 points). Also signal 231
is also output to the recognition processing section 70 as a signal PPR.

次にX軸方向位置検出回路50を説明する。同回路の詳
細なブロック図を第6図に示す。検出する位置情報は第
4図に示すし。およびり、(Lo。
Next, the X-axis direction position detection circuit 50 will be explained. A detailed block diagram of the same circuit is shown in FIG. The position information to be detected is shown in FIG. Andori, (Lo.

L、は1走査内の左側および右側の黒地長である)から
求まるL3とり。である。ただし、L3−L、−L。 
     (2) 同回路は以下のように動作する。すなわら、映像信号P
321と基本クロック信号5YNO322との論理積を
ANDゲート301で作り、黒地で1となるパルス信号
331を作る。又、ANDゲート302で白地で1とな
るパルス信号332を作る。Lo はカウンタ31】で
計数される。カウンタ311は行同期信号5LNO32
3でOにリセットされ、信号331でカウントアツプ(
+1)される。またカウンタ311は信号334が一旦
1となるとカウントアンプの禁止状態となる。
L is the length of black ground on the left and right sides within one scan. It is. However, L3-L, -L.
(2) The circuit operates as follows. In other words, the video signal P
321 and the basic clock signal 5YNO 322 are generated by an AND gate 301 to generate a pulse signal 331 which becomes 1 on a black background. Further, an AND gate 302 generates a pulse signal 332 that becomes 1 on a white background. Lo is counted by a counter 31]. The counter 311 uses the row synchronization signal 5LNO32
3 is reset to O, and signal 331 counts up (
+1). Further, once the signal 334 becomes 1, the counter 311 becomes in a count amplifier inhibited state.

信号334は次のように作られる。回路303は白地で
1となるパルス信号332と基本クロック信号322を
受け、白地パルスが連続して所定の個数n2だけ続いて
いる時点のみ1となる信号:334を作る。これは、白
地上にノイズとして黒い点が加わったとき、これを検出
して白地を黒地と誤認識することを避けるだめのもので
、n2 は8程度の値であれば十分である。
Signal 334 is created as follows. The circuit 303 receives the pulse signal 332 that becomes 1 on a white background and the basic clock signal 322, and generates a signal 334 that becomes 1 only when the white background pulse continues for a predetermined number n2. This is to avoid detecting a black dot added as noise on a white background and erroneously recognizing the white background as a black background, and a value of about 8 is sufficient for n2.

Llはカウンタ312によって計数する。カウンタ31
2は信号334又は信号323が1のとき、すなわち信
号333が1のときOにリセットされ、信号331によ
ってカウントアツプされる。
Ll is counted by a counter 312. counter 31
2 is reset to O when the signal 334 or the signal 323 is 1, that is, when the signal 333 is 1, and is counted up by the signal 331.

信号5LN1324は一走査の終了時点でのみ1となる
パルスで、カウンタ311と312の内容をラッチ31
3と314へそれぞれラッチするだめの信号である。
The signal 5LN1324 is a pulse that becomes 1 only at the end of one scan, and the contents of the counters 311 and 312 are latched to the latch 31.
3 and 314, respectively.

ラッチ313と314にラッチされたし。とLlは減算
回路315に入力さ扛る。減算回路315の出力がL3
である。
It is latched by latches 313 and 314. and Ll are input to the subtraction circuit 315. The output of the subtraction circuit 315 is L3
It is.

次に頑き補正回路60の説明をする。第7図に同回路の
ブロック図を示す。第8図および第9図は同回路の主要
な信号の波形図である。また、第10図は同回路内の主
要なレジスタのピット構成である。
Next, the stubborn correction circuit 60 will be explained. FIG. 7 shows a block diagram of the same circuit. 8 and 9 are waveform diagrams of main signals of the circuit. Further, FIG. 10 shows the pit configuration of the main registers in the same circuit.

第7図において、傾き補正回路60は2048X32ビ
ツトのRAM(ランダム・アクセス・メモIJ ) 4
01どそのためのアドレス計算回路部がらなっている。
In FIG. 7, the tilt correction circuit 60 is a 2048 x 32 bit RAM (random access memory IJ) 4.
It consists of an address calculation circuit section for 01 and so on.

これより、紙面上のX軸方向で2048ビツトからなる
1走査線の32本分に相当する領域を見て傾き補正を行
なうことができる。
From this, it is possible to perform tilt correction by looking at an area corresponding to 32 one scanning line consisting of 2048 bits in the X-axis direction on the paper.

傾き補正の原理は、几AM401  に対して書きこみ
モードが、読み出しモードかを指定する同期信号(SY
N2)483に同期して映像信号P471をR,AM4
01に逐次書き込み、その内容を同じく信号5YN2に
同期して、傾きに応じてアドレスを変化させながら読み
出すものである。書き込み用のアドレスは(yo、xo
)、読み出し用のアドレスは(y、x)である。これら
のアドレスはY。
The principle of tilt correction is based on the synchronization signal (SY) that specifies whether the write mode is the read mode for the AM401.
N2) In synchronization with 483, video signal P471 is R, AM4
01 sequentially, and the contents are read out in synchronization with the signal 5YN2 while changing the address according to the slope. The address for writing is (yo, xo
), the read address is (y, x). These addresses are Y.

またはYを表現するための上位5ピツトとX。またはX
を表現するだめの下位11ビツトとの合計16ビツトの
長さを有する。
Or the top 5 pits and X to represent Y. or X
It has a total length of 16 bits including the lower 11 bits that represent the .

書き込みに際しては、XoをOから2047まで順次+
1し、Xoが2047から再度0に戻るときにY。は+
1されるoXoおよびYoはレジスタ402.および4
03にそれぞれ保持されていて、これらのレジスタの内
容はそれぞれ信号5YNOおよび5LNOによシ+1さ
れる。
When writing, write Xo sequentially from O to 2047 +
1, and Y when Xo returns to 0 again from 2047. Ha+
oXo and Yo that are set to 1 are stored in register 402. and 4
The contents of these registers are set to 1 by signals 5YNO and 5LNO, respectively.

読み出しに際しで、読み出しアドレスの下位11ビツト
に相当するXは次式によシ計算される。
When reading, X corresponding to the lower 11 bits of the read address is calculated using the following equation.

X=Lo+Xo       (3) (3)式の加算は加算回路411で行なわれる。X=Lo+Xo (3) The addition of equation (3) is performed by the addition circuit 411.

Loは前述のX軸方向位置検出回路50の出力で、用紙
左端のアドレスを示す。(3)式にニジ読み出しは用紙
左端よ如始めら扛るからX軸方向の位置ずれ分は実効的
に取シ除か牡たことに相当する。
Lo is the output of the aforementioned X-axis direction position detection circuit 50 and indicates the address of the left end of the paper. In Equation (3), since the blank reading starts from the left edge of the paper, the positional deviation in the X-axis direction is effectively removed.

なお、ライン・センサの長さく2048ビツト)に比較
して用紙の幅は小さく、通常の位置ずれでは用紙がライ
ン・センサの走査領域より外に出ることはないので、X
は11ビツトで十分である。
Note that the width of the paper is small compared to the length of the line sensor (2048 bits), and normal misalignment will not cause the paper to go outside the scanning area of the line sensor.
11 bits is sufficient.

つぎに、読み出しアドレスの上位5ビツトに相当するY
はつぎのようにして求めら扛る。
Next, Y corresponding to the upper 5 bits of the read address
You can ask for it in the following way.

X方向1ビツトあたりのX方向のずれ、すなわち頌きを
5KEWとすれば (リ 8KEW(0のとき 第12図(a)に示すごとく、曹き込みアドレス(Yo
 、Xo)の内容A、ではなく、紙面102上ノ傾いた
部分の内容B1が読み出されるように読み出しアドレス
(y、x)を設定すればよいから、Yは(4)式の漸化
式によシ計算される。
If the shift in the X direction per 1 bit in the X direction, that is, the value of
, Xo), but the read address (y, Well calculated.

(nl  5KEW>0のとき 第12図(b)に示すごとく、書き込みアドレス(Yo
 、Xo)の内容A2ではなく、紙面102上の頌いた
部分の内容B2が読み出されるように読み出しアドレス
(y、x)を設定すればよいから、Yは(5)式の漸化
式により計算さ扛る。
(nl When 5KEW>0, write address (Yo
, Xo), so that the read address (y, x) is set so that the content B2 of the part written on the paper 102 is read out, instead of the content A2 of the content A2 of Explode.

(4)式および(5)式の計算をおこなう回路が加算回
路413であり、初期値H1を計算する回路が減算回路
412である。
The circuit that calculates equations (4) and (5) is the addition circuit 413, and the circuit that calculates the initial value H1 is the subtraction circuit 412.

2048=2  を掛ける回路部484の演算は小数点
位置のシフトだけでよく、掛算をおこなう必要はない。
The operation of the circuit unit 484 for multiplying 2048=2 only requires shifting the decimal point position, and there is no need to perform multiplication.

マルチプレクサ415は、値5KEWを保持しているレ
ジスタ405の符号ビット461によって、(4)式の
初期値Y。か(5)式の初期値(Yo−2048xSK
f2W)のいずれか一方を選択する。
The multiplexer 415 uses the sign bit 461 of the register 405, which holds the value 5KEW, to set the initial value Y in equation (4). The initial value of equation (5) (Yo-2048xSK
f2W).

マルチプレクサ416は選択信号(8LCT)462に
よってマルチプレクサ413.415の出力のいづれか
一方を選択するが、初期値設定時に限りマルチプレクサ
415の出力を選択する。
The multiplexer 416 selects one of the outputs of the multiplexers 413 and 415 according to the selection signal (8LCT) 462, but selects the output of the multiplexer 415 only when setting an initial value.

RAM401の読み出し用アドレスの上位ビットYはレ
ジスタ404に信号463によってラッチされる。
The upper bit Y of the read address of the RAM 401 is latched into the register 404 by the signal 463.

ラッチ信号463はセット信号(SgTY )464か
、前述のりo、り信号(SYNO)466と後述の同期
信号(PPRI)465とのアンドゲート426の出力
かのいずれか一方が1になるとオアゲート426の出力
として1になる。
The latch signal 463 is activated by the OR gate 426 when either the set signal (SgTY) 464 or the output of the AND gate 426 between the above-mentioned signal (SYNO) 466 and the synchronization signal (PPRI) 465 described below becomes 1. The output will be 1.

5KEWは、前記傾き検出回路40の出力θ8であるが
、X軸方向の走査線で32本分を超える傾きについては
32本分に相当する傾きとして補正することにすnば、
リミッタ421により次の計算をおこなうことにより求
めることができる。
5KEW is the output θ8 of the tilt detection circuit 40, and if the tilt exceeds 32 scanning lines in the X-axis direction, it is corrected as the tilt equivalent to 32 scanning lines.
It can be obtained by performing the following calculation using the limiter 421.

ただしsign(θ8)の符号を示す。However, the sign of sign(θ8) is shown.

実際に発生する傾きの程度によ如、レジスタ422に格
納される数値は32以外の適当な値を選択することも可
能である。
It is also possible to select an appropriate value other than 32 as the numerical value stored in the register 422, depending on the degree of slope that actually occurs.

第8図における信号を説明する。信号SPFは用紙を新
たに給紙したときに1となるパルス信号信号PPRは用
紙がライン・センサの下に到達したときに1となるレベ
ル信号、信号5LNOは1行の走査を行うのと同期して
1となる走査開始信号、信号PPRIは、信号PPRが
1となった後、32本分の走査が完了したとき、すなわ
ちRAM401の内容が新しい映像信号で満たされたと
きに1となるレベル信号である。信号5ETYはレジス
タ404に初期値をラッチするだめの信号である。
The signals in FIG. 8 will be explained. Signal SPF is a pulse signal that becomes 1 when paper is newly fed. Signal PPR is a level signal that becomes 1 when paper reaches below the line sensor. Signal 5LNO is synchronized with scanning one line. The scanning start signal, signal PPRI, which becomes 1 when signal PPR becomes 1, becomes 1 when 32 scans are completed, that is, when the contents of RAM 401 are filled with new video signals. It's a signal. The signal 5ETY is a signal used to latch the initial value in the register 404.

第9図は前述のレジスタ404のラッチ信号463をよ
シ詳細に示したものである。
FIG. 9 shows the latch signal 463 of the register 404 described above in more detail.

第9図に示すように、5LCT信号が1のときにSgT
Y信号が1となり、MUX416により選択された値Y
。がレジスタ404にセット(ラッチ)さ扛る。信号5
YNQはXの値に1を加えるための2048個のパルス
列である。
As shown in FIG. 9, when the 5LCT signal is 1, the SgT
The Y signal becomes 1, and the value Y selected by MUX416
. is set (latched) in the register 404. signal 5
YNQ is a 2048 pulse train for adding 1 to the value of X.

第10図はレジスタ(sxgw)405、レジスタ(Y
) 404、レジスタ(Yo)403、 およびレズス
タ(Xo)402のビット構成を示す。レジスタ405
は15ビツトからなり、下位の6ビツトに信号252(
第5図のθ、)がセットされ、上位の9ビツトには0が
セットされる。
Figure 10 shows register (sxgw) 405, register (Y
) 404, register (Yo) 403, and register (Xo) 402. register 405
consists of 15 bits, and the lower 6 bits contain the signal 252 (
θ, ) in FIG. 5 is set, and the upper 9 bits are set to 0.

第11図でRAM401の動作を簡単に説明する。RA
M401は2ボ一トRAMと呼ばれるもので、同期信号
(SYN2)483が1のときに書き込みモードとなシ
、0のときに読み出しモードとなる。書き込みは1から
0に立下る時点で行われる。第11図において、501
および502は、それぞれ書込みデータお!び読み出し
データの値が正しく定義されている時間を示す波形図で
ある。
The operation of the RAM 401 will be briefly explained with reference to FIG. R.A.
M401 is called a 2-bot RAM, and when the synchronization signal (SYN2) 483 is 1, it is in the write mode, and when it is 0, it is in the read mode. Writing is performed at the time of falling from 1 to 0. In Figure 11, 501
and 502 are the write data! FIG. 4 is a waveform diagram showing the time when the value of read data is correctly defined.

ハツチング部が値が不定である時間である。The hatched portion is the time when the value is undefined.

以上説明した傾き正規化回路60の出力は補正映像信号
(CP)472  (第3図における信号61)である
。第3図における回路40.50および60を付加する
のみで、用紙が傾いた場合にも、傾いていない場合と同
じ映像信号が信号61として得られる点が本発明による
装置の特徴である。
The output of the slope normalization circuit 60 described above is a corrected video signal (CP) 472 (signal 61 in FIG. 3). A feature of the apparatus according to the present invention is that, by simply adding the circuits 40, 50 and 60 shown in FIG. 3, even when the paper is tilted, the same video signal as when it is not tilted can be obtained as the signal 61.

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

以上説明したごとく、本発明による装置においては、文
字パターン観測部と認識処理部の間に、傾き補正を行う
処理部を設けることにより、用紙がライン・センサ(パ
ターン観測部)に対して大きく傾いて給紙された場合も
、傾いていないとき9 と全く同様に処理することができる。
As explained above, in the apparatus according to the present invention, by providing a processing section that performs tilt correction between the character pattern observation section and the recognition processing section, the paper is greatly tilted with respect to the line sensor (pattern observation section). Even if the paper is fed in the same way as in 9 when the paper is not tilted, it can be processed in exactly the same way.

傾きの補正は、切シ出し処理部で切り出し処理に含めて
行うことも原理的には可能であるが、その場合は処理内
容が複雑となり、演算量が増すために、高速性を要求さ
れる装置には向かない手法である。それに反し、本発明
では切り出し処理とは独立して、その前処理として傾き
を補正しているため、従来の簡単かつ高速処理が可能な
切シ出し方式をそのまま採用することができる。
In principle, it is possible to correct the tilt by including it in the cutting processing in the cutting processing section, but in that case, the processing content becomes complicated and the amount of calculation increases, so high speed is required. This method is not suitable for devices. On the other hand, in the present invention, since the tilt is corrected as a pre-processing independent of the cutting process, the conventional cutting method that allows simple and high-speed processing can be used as is.

したがって、本発明による装置では、特に高速な給紙を
行う際に傾きの許容範囲が広いため割合安価な給紙機構
が採用できること、高速な切り出し処理が行えること、
構造的にすぐれたライン・センサが採用できること、な
どの利点がある。
Therefore, in the apparatus according to the present invention, since the permissible range of inclination is wide especially when performing high-speed paper feeding, a relatively inexpensive paper feeding mechanism can be adopted, and high-speed cutting processing can be performed.
Advantages include the ability to use line sensors with superior structure.

なお、本実施例は1本のライン・センサで全画面を被う
ものであるが、用紙サイズがより大きい場合、またはラ
イン・センサのビット数がよシ少い場合には、複数のラ
イン・センサを複合して映像をとることが考えられるが
、このような場合にも本発明の方式を各ライン・センサ
に対して適用0 することができる。ただし、この場合はX軸方向の位置
補正は行わずに、傾きのみの補正を行い、位置の情報り
。は切り出し部で利用し1位置の補正を等制約に行う。
In this embodiment, one line sensor covers the entire screen, but if the paper size is larger or the number of bits of the line sensor is smaller, multiple lines/sensors may be used. It is conceivable to take images by combining sensors, but even in such a case, the method of the present invention can be applied to each line sensor. However, in this case, only the tilt is corrected without performing position correction in the X-axis direction, and the position information is not corrected. is used in the cutting section to correct one position with equal constraints.

また、本実施例では用紙の傾きを検出するのに4点の測
定点を用いているが、これは用紙の先端が直線状になっ
でいず凹凸している場合の誤差を少なくするためである
。この数は4に限られることはなく、それ以外の個数の
測定点を用いたものも本発明に含まれる〇
Additionally, in this embodiment, four measurement points are used to detect the inclination of the paper, but this is to reduce errors when the leading edge of the paper is not straight but uneven. be. This number is not limited to four, and the present invention also includes methods using other numbers of measurement points.

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

第1図は従来許容されていた程度に頃いた用紙例を示す
図、第2図はそれ以上に大きく傾いた用紙の例を示す図
、第3図は本発明による装置の一実施例の機能的ブロッ
ク図、第4図は傾きの検出原理を説明するだめの図、第
5図は傾き正規化回路のブロック図、第6図はX軸方向
位置検出回路のブロック図、第7図は傾き補正回路のブ
ロック図、第8図お工び第9図は第7図の回路の主要な
信号の波形図、第10図は同回路の各レジスタのビット
構成を示す図、第11図は同回路に用いる2ボ一トRA
Mの動作波形図、第12図は傾き補正の原理を説明する
だめの図である。 猶11図 −441− (^〕 ) (?) >        5にεルンθ
FIG. 1 is a diagram showing an example of paper that is tilted to a conventionally allowable degree, FIG. 2 is a diagram showing an example of paper that is tilted to a greater extent than that, and FIG. 3 is a diagram showing the functions of an embodiment of the apparatus according to the present invention. Figure 4 is a diagram for explaining the principle of tilt detection, Figure 5 is a block diagram of the tilt normalization circuit, Figure 6 is a block diagram of the X-axis direction position detection circuit, and Figure 7 is a diagram of the tilt detection circuit. A block diagram of the correction circuit is shown in Figure 8. Figure 9 is a waveform diagram of the main signals of the circuit in Figure 7. Figure 10 is a diagram showing the bit configuration of each register in the circuit. Figure 11 is the same. 2-bot RA used in circuit
The operating waveform diagram of M, FIG. 12, is a diagram for explaining the principle of tilt correction. Figure 11 - 441 - (^) ) (?) > ε run θ in 5

Claims (1)

【特許請求の範囲】[Claims] 1、光電変換部に一次元光電変換素子を用いたパターン
認識装置において、−次元光電変換素子に対するパター
ン記入用紙の相対的傾きを検出する手段と、−次元光電
変換素子の長手方向における該−次元光電変換素子に対
する前記パターン記入用紙の相対的位置を検出する手段
と、検出された上記相対的傾きと相対的位置とを用いて
該相対的傾きを補正する手段とを備えたことを特徴とす
るパターン認識装置。
1. In a pattern recognition device using a one-dimensional photoelectric conversion element as a photoelectric conversion part, means for detecting the relative inclination of a pattern entry sheet with respect to the -dimensional photoelectric conversion element, The present invention is characterized by comprising means for detecting the relative position of the pattern entry sheet with respect to the photoelectric conversion element, and means for correcting the relative inclination using the detected relative inclination and relative position. Pattern recognition device.
JP58202597A 1983-10-31 1983-10-31 Pattern recognizing device Pending JPS5994181A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58202597A JPS5994181A (en) 1983-10-31 1983-10-31 Pattern recognizing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58202597A JPS5994181A (en) 1983-10-31 1983-10-31 Pattern recognizing device

Publications (1)

Publication Number Publication Date
JPS5994181A true JPS5994181A (en) 1984-05-30

Family

ID=16460101

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58202597A Pending JPS5994181A (en) 1983-10-31 1983-10-31 Pattern recognizing device

Country Status (1)

Country Link
JP (1) JPS5994181A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62177688A (en) * 1986-01-30 1987-08-04 Nec Corp Skew quantity detecting system
JPH01180077A (en) * 1988-01-11 1989-07-18 Fujitsu Ltd Data collating device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS49135534A (en) * 1973-04-28 1974-12-27
JPS5284923A (en) * 1976-01-06 1977-07-14 Sharp Corp Optical character reader
JPS54122934A (en) * 1978-03-17 1979-09-22 Nec Corp Graph conversion and correction unit
JPS54151452A (en) * 1978-05-19 1979-11-28 Canon Inc Thermal head

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS49135534A (en) * 1973-04-28 1974-12-27
JPS5284923A (en) * 1976-01-06 1977-07-14 Sharp Corp Optical character reader
JPS54122934A (en) * 1978-03-17 1979-09-22 Nec Corp Graph conversion and correction unit
JPS54151452A (en) * 1978-05-19 1979-11-28 Canon Inc Thermal head

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62177688A (en) * 1986-01-30 1987-08-04 Nec Corp Skew quantity detecting system
JPH01180077A (en) * 1988-01-11 1989-07-18 Fujitsu Ltd Data collating device

Similar Documents

Publication Publication Date Title
US6873728B2 (en) Vertical black line removal implementation
JP3254272B2 (en) Apparatus and method for determining background level of an image
US4607385A (en) Character recognition apparatus
JPS6357831B2 (en)
EP0524797B1 (en) Image processing method and apparatus
CA1316605C (en) Method of searching binary images to find search regions in which straight lines may be found
JPS5994181A (en) Pattern recognizing device
JPS5914782B2 (en) Binary pattern digitization processing method
JP2973789B2 (en) Label area perimeter calculation device
JP2589729Y2 (en) Shape discriminator
JP2777048B2 (en) How to read barcodes
JPS6227435B2 (en)
JP3408869B2 (en) Image processing device
JPS6029881A (en) Optical character reader
JPS5627478A (en) Scan curvature detector
JPH04236576A (en) Run pattern extraction device
JPH0371326A (en) Scanning adding device
JPH0950523A (en) Image smoothing circuit
JPH06215135A (en) Picture processor
JPS635797B2 (en)
JPH0199182A (en) Image processor
JPH0750504B2 (en) Pattern recognition device
JPS6162982A (en) Musical score staff detection device
JPH0814845B2 (en) Area detection method and area detection apparatus
JPH0562293B2 (en)