JPH0120795B2 - - Google Patents

Info

Publication number
JPH0120795B2
JPH0120795B2 JP54147667A JP14766779A JPH0120795B2 JP H0120795 B2 JPH0120795 B2 JP H0120795B2 JP 54147667 A JP54147667 A JP 54147667A JP 14766779 A JP14766779 A JP 14766779A JP H0120795 B2 JPH0120795 B2 JP H0120795B2
Authority
JP
Japan
Prior art keywords
character
detection
pattern
frame
identification
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.)
Expired
Application number
JP54147667A
Other languages
Japanese (ja)
Other versions
JPS5672778A (en
Inventor
Yoshikatsu Nakamura
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.)
Toshiba Corp
Original Assignee
Tokyo Shibaura Electric 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 Tokyo Shibaura Electric Co Ltd filed Critical Tokyo Shibaura Electric Co Ltd
Priority to JP14766779A priority Critical patent/JPS5672778A/en
Priority to AU64321/80A priority patent/AU533978B2/en
Priority to EP80107030A priority patent/EP0029943B1/en
Priority to DE8080107030T priority patent/DE3070178D1/en
Priority to CA000364679A priority patent/CA1159568A/en
Priority to US06/206,832 priority patent/US4389634A/en
Publication of JPS5672778A publication Critical patent/JPS5672778A/en
Publication of JPH0120795B2 publication Critical patent/JPH0120795B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Character Discrimination (AREA)
  • Character Input (AREA)

Description

【発明の詳細な説明】 この発明は文字読取装置に関する。近年、百貨
店、スーパーマーケツト等の小売業界に於て勘定
場に於ける、会計時間の短縮による接客サービス
の向上、誤キーインによるインプツト・ミスの防
止、電算機による会計管理、在庫管理、補充業務
の自動化等を計る為、商品の値札に印刷された文
字を手動で走査することにより、光学的に読取
り、POS装置に自動入力する装置が開発され実
用化されている。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a character reading device. In recent years, in the retail industry such as department stores and supermarkets, improvements have been made to improve customer service by shortening checkout time at checkout counters, to prevent input errors caused by incorrect key-ins, and to improve accounting management, inventory management, and replenishment operations using computers. In order to achieve automation, a device has been developed and put into practical use that manually scans the characters printed on product price tags, optically reads them, and automatically inputs them into POS devices.

このような文字読取装置は手動走査によつて帳
票上の文字を走査するものであるため、走査速度
の変動がある。この変動に対して走査器によつて
観測される文字パターンが歪みなく出力され、以
降の認識論理を簡易化する為、2次元配列の光電
変換素子デバイスを有する面走査器が手動走査文
字読取装置に於て一般的に使用されている。
Since such a character reading device scans characters on a form by manual scanning, the scanning speed varies. In order to deal with this variation, the character pattern observed by the scanner is output without distortion, and to simplify the subsequent recognition logic, a surface scanner with a two-dimensional array of photoelectric conversion element devices is used as a manual scanning character reading device. It is commonly used in

一方このような面走査器を使用した従来の装置
に於てはその識別処理方法として類似度法を用い
てその読取りを行う方法があるが、この方法は比
較パターンの設計が自動化し得、かつ高い識別性
能を得ることが出来る反面、その読取対象文字種
の増加に従つて処理時間が増大することである。
このような識別処理方法の欠点をカバーする為、
面走査器によつて観測された文字パターンの検出
に次のような工夫が必要である。
On the other hand, in conventional devices using such surface scanners, there is a method of reading the data using a similarity method as an identification processing method, but this method allows the design of comparison patterns to be automated and Although high identification performance can be obtained, the processing time increases as the number of character types to be read increases.
In order to cover the shortcomings of such identification processing methods,
The following measures are required to detect character patterns observed by a surface scanner.

つまり面走査器によつて観測された文字パター
ンが走査器の観測領域の大約中央にあること、こ
れは文字パターンの一部が欠けることなく又隣接
文字の侵入がないと言う条件を文字幅方向、なら
びに文字高方向の射影によつて検出して判断する
もので、このようにして検出された文字パターン
について識別処理を行うと同時に観測領域の文字
幅方向射影によつて媒体上の文字間余白の検出を
行い、文字間余白の検出がなされるまでは同一文
字の観測であると判断するものである。
In other words, the character pattern observed by the surface scanner is approximately in the center of the scanner's observation area, which is the condition that no part of the character pattern is missing and that there is no intrusion of adjacent characters in the character width direction. , and the projection in the character height direction.The character pattern detected in this way is identified and judged, and at the same time, the character pattern margin on the medium is determined by projecting the observation area in the character width direction. is detected, and it is determined that the observations are of the same character until the space between characters is detected.

しかしながら、第1図aに示すように文字列に
対して走査器を斜めに移動させた場合、第1図b
に示すように文字列の一部に大きな文字が印刷さ
れた場合、第1図cに示すように文字間の余白に
雑音等が入つた場合、あるいは第1図dに示すよ
うに印刷濃度がうすく量子化パターンが切れ切れ
になつた場合には、文字間余白が正確に検出する
ことができない。このため、文字の読みとばし、
あるいは同一文字について複数回読取り出力を行
なうことがあつた。また文字間余白が文字の検出
後ある一定時間経過しても検出されない場合には
文字行の終端であると判定していた。これらに起
因して走査器に許容される移動速度の許容範囲は
狭いものとなり、改善が望まれていた。
However, if the scanner is moved diagonally with respect to the character string as shown in Figure 1a, then Figure 1b
If large characters are printed in part of the character string as shown in Figure 1c, if noise etc. appears in the margins between characters as shown in Figure 1c, or if the print density is too low as shown in Figure 1d. If the thin quantization pattern becomes discontinuous, the space between characters cannot be detected accurately. For this reason, the ability to skip letters,
Alternatively, the same character may be read and output multiple times. Furthermore, if the space between characters is not detected even after a certain period of time has elapsed after a character is detected, it is determined that the character line is at the end. Due to these factors, the allowable range of movement speed of the scanner has become narrow, and improvements have been desired.

この発明は上記欠点を除き印刷条件、走査器の
移動速度の自由度を向上させた文字読取装置を提
供することを目的とする。
SUMMARY OF THE INVENTION An object of the present invention is to provide a character reading device which eliminates the above-mentioned drawbacks and improves the flexibility of printing conditions and scanner movement speed.

本発明によれば、走査器として2次元に配列さ
れた光電変換素子からなる光電変換デバイスを有
するものを用いる。光電変換デバイスは走査制御
部の出力するクロツクパルスに応じて各光電変換
素子が走査され、光電変換デバイスに投影された
文字像に応じた電気信号を出力する。光電変換デ
バイスは走査器自体の移動速度に比して充分早い
周期で繰り返し文字像を出力する。以下これをフ
レーム走査と呼ぶ。あるフレームでは媒体上に並
んだ2つの文字のそれぞれ一部が同時に観測され
るであろう。
According to the present invention, a scanner having a photoelectric conversion device consisting of two-dimensionally arranged photoelectric conversion elements is used as the scanner. Each photoelectric conversion element of the photoelectric conversion device is scanned in response to a clock pulse output from a scanning control section, and outputs an electrical signal corresponding to a character image projected onto the photoelectric conversion device. The photoelectric conversion device repeatedly outputs character images at a sufficiently fast cycle compared to the moving speed of the scanner itself. Hereinafter, this will be referred to as frame scanning. In a given frame, parts of each of two characters lined up on the medium will be observed simultaneously.

このため、得られた観測パターンは検出条件を
満たすものであるか否かが判定される。ここで検
出条件とは文字の識別に充分な観測パターンが得
られているか否かを示すもので、文字の一部が欠
損していたり、文字が存在するか否か等が検出さ
れる。この検出条件が満たされた観測パターンは
その中から文字パターンが切り出され識別部に送
られて識別処理が開始される。一方光電変換デバ
イスからは次のフレームにおいて同様に観測パタ
ーンを出力する。この観測パターンも検出条件を
満たすことは充分生じ得る。そして連続するフレ
ームで観測パターンの検出条件が満足されている
ならば、それらは実に同一文字が観測されている
という事実が容易に理解される。そして、媒体上
の次に走査される隣接する文字が検出条件を満足
するフレームに至るまでには検出条件を満足しな
いフレームがいくつか存在しなければならないこ
とも理解される。
Therefore, it is determined whether the obtained observed pattern satisfies the detection conditions. Here, the detection condition indicates whether or not an observation pattern sufficient for character identification is obtained, and detects whether a part of a character is missing or whether a character exists. Character patterns are cut out from the observed patterns that satisfy this detection condition and sent to the identification section, where identification processing is started. On the other hand, the photoelectric conversion device similarly outputs an observation pattern in the next frame. It is quite possible that this observation pattern also satisfies the detection conditions. If the observation pattern detection condition is satisfied in consecutive frames, it is easily understood that the same character is actually observed in the consecutive frames. It is also understood that there must be some frames in which the detection condition is not satisfied before the next scanned adjacent character on the medium reaches a frame in which the detection condition is satisfied.

したがつて、本発明においては、検出条件を満
足する観測パターンのフレーム数を計数する手段
を設け、その後の検出条件を満足しない観測パタ
ーンのフレーム数を計数監視することによつて媒
体上の同一文字と隣接文字とを区別を行なうよう
に構成されている。
Therefore, in the present invention, means is provided for counting the number of frames of an observation pattern that satisfies the detection condition, and by counting and monitoring the number of frames of the observation pattern that does not satisfy the detection condition, it is possible to detect the same number of frames on the medium. It is configured to distinguish between characters and adjacent characters.

第2図は本発明で用いられる走査器を示す図で
ある。媒体1に印刷された文字はランプ2により
照明される。この反射光はレンズ3を介して光電
変換デバイス4上に適当な縮小率をもつて投影さ
れる。光電変換デバイス4は例えばm×n個の2
次元配列された光電変換素子で構成され、後述す
る走査制御部の出力するクロツクパルスに応じて
各光電変換素子の出力が走査的に取り出される。
1回の走査によつて(1フレーム走査)得られる
一群の電気信号は夫々投影された光量に応じたア
ナログ信号である。このアナログ信号はドライバ
ー回路5を介して外部に取り出される。
FIG. 2 is a diagram showing a scanner used in the present invention. Characters printed on medium 1 are illuminated by lamp 2. This reflected light is projected onto the photoelectric conversion device 4 through the lens 3 with an appropriate reduction ratio. The photoelectric conversion device 4 is, for example, m×n 2
It is composed of photoelectric conversion elements arranged in a dimensional array, and the output of each photoelectric conversion element is taken out in a scanning manner in response to a clock pulse output from a scan control section, which will be described later.
A group of electrical signals obtained by one scan (one frame scan) are analog signals each corresponding to the amount of projected light. This analog signal is taken out to the outside via the driver circuit 5.

第3図は本発明の一実施例の全体構成を示すブ
ロツク図である。走査器7から取り出されたアナ
ログ信号は量子化回路8によつて1/0の量子化信
号に変換される。以下これを観測パターンと呼
ぶ。あるフレームでの観測パターンはm×n個の
量子化信号からなる。観測パターンは文字検出切
出部9に送られ、検出条件を満足するか否かが判
定される。検出条件を満足する観測パターンは文
字パターン(m′×n′個の量子化信号からなる)が
切り出されて識別部10へ送られる。識別部10
は例えば類似度法を用いて文字パターンを識別
し、その答を出力する。走査制御部11は走査器
7内の光電変換デバイス4を周期的に走査すると
ともに1フレームの終了により走査同期信号
EOFを出力する。
FIG. 3 is a block diagram showing the overall configuration of an embodiment of the present invention. The analog signal taken out from the scanner 7 is converted into a 1/0 quantized signal by a quantization circuit 8. Hereinafter, this will be referred to as an observation pattern. An observed pattern in a certain frame consists of m×n quantized signals. The observed pattern is sent to the character detection and cutting section 9, and it is determined whether or not it satisfies the detection conditions. Character patterns (consisting of m'×n' quantized signals) are extracted from the observed patterns that satisfy the detection conditions and sent to the identification section 10. Identification unit 10
identifies character patterns using a similarity method, for example, and outputs the answer. The scan control unit 11 periodically scans the photoelectric conversion device 4 in the scanner 7 and generates a scan synchronization signal at the end of one frame.
Output EOF.

なお、一般に手動の走査器を用いた場合、識別
部10は媒体上の1行分の読取りが終了した時点
で1行分の読取結果を一括して出力する。
In general, when a manual scanner is used, the identification unit 10 outputs the reading results for one line at once when the reading for one line on the medium is completed.

第4図は文字検出切出部9の一構成例を示す。
量子化回路8から得られる量子化信号は文字幅検
出回路13、文字高さ検出回路14及び検出切出
回路15に供給され、これらは制御部16によつ
て制御されている。文字幅検出回路13は文字幅
方向射影レジスタ17を有し、観測パターンの文
字幅方向への射影を求める。文字高さ検出回路1
4は文字高さ方向射影レジスタ18及び高さ計数
器19を有し、観測パターンの高さ方向への射影
とその高さを求めている。これらの具体的回路構
成はよく知られているのでその詳細な説明は省略
する。
FIG. 4 shows an example of the structure of the character detection and cutting section 9.
The quantization signal obtained from the quantization circuit 8 is supplied to a character width detection circuit 13, a character height detection circuit 14, and a detection cutting circuit 15, which are controlled by a control section 16. The character width detection circuit 13 has a character width direction projection register 17, and obtains the projection of the observed pattern in the character width direction. Character height detection circuit 1
Reference numeral 4 has a character height direction projection register 18 and a height counter 19, and calculates the projection of the observed pattern in the height direction and its height. Since these specific circuit configurations are well known, detailed explanation thereof will be omitted.

制御部16は例えばマイクロコンピユータから
なり、上記各部を制御するとともに、文字幅検出
回路13、文字高さ検出回路14によつて得られ
たデータを用いて、入力された観測パターンが検
出条件を満足するものであるか否かを判定する。
The control unit 16 is composed of, for example, a microcomputer, and controls each of the above-mentioned units, and uses data obtained by the character width detection circuit 13 and character height detection circuit 14 to ensure that the input observation pattern satisfies the detection conditions. Determine whether or not it is.

文字の検出条件は文字高さがあらかじめ用意さ
れた範囲の中にあるかがチエツクされる。文字高
さ検出回路14は第5図に示す観測パターン30
を行走査31を列方向に順次行なう。一行走査毎
にその行中に黒(文字部分32)があつたか否か
が判断され、文字の下端、例えば黒の行の後に白
の行が2行検出されたEOC33の時点において、
射影レジスタ18内のパターン射影34の長さを
高さ計数器19で求め、求められた高さHを制御
部16へ送る。制御部16はこの値Hが一規定の
文字高さの範囲内か否かをチエツクし、範囲外で
あれば次の行の走査を行ない新たなパターンの検
出動作を行なう。一方制御部16は検出された値
Hが規定の文字高さの範囲内である場合には、文
字幅検出回路13を駆動し、文字幅方向のパター
ン射影を求め、検出条件を満足するか否かをチエ
ツクする。文字幅方向の検出条件は観測パターン
の文字幅方向のビツト数を12とした場合のパタ
ーン射影35が第6図に示す検出条件(1)〜(5)のい
ずれかに合致した場合に満足するものとする。第
6図において斜線を施されたビツトは必ず黒(文
字部分)であり、空白のビツトは必ず白(バツク
グラウンド)であり、×印のビツトは白・黒いず
れであつてもよいものとする。
The character detection condition is checked to see if the character height is within a predetermined range. The character height detection circuit 14 uses an observation pattern 30 shown in FIG.
Row scanning 31 is performed sequentially in the column direction. Every time one line is scanned, it is determined whether or not there is black (character part 32) in that line, and at the time of EOC33 when two white lines are detected at the bottom of the character, for example, after a black line,
The length of the pattern projection 34 in the projection register 18 is determined by a height counter 19, and the determined height H is sent to the control section 16. The control unit 16 checks whether this value H is within a predetermined character height range, and if it is outside the range, it scans the next line and performs a new pattern detection operation. On the other hand, if the detected value H is within the specified character height range, the control unit 16 drives the character width detection circuit 13 to obtain pattern projection in the character width direction, and determines whether the detection conditions are satisfied. Check. The detection condition in the character width direction is satisfied if the pattern projection 35, assuming that the number of bits in the character width direction of the observed pattern is 12, matches any of the detection conditions (1) to (5) shown in FIG. shall be taken as a thing. In Figure 6, the hatched bits are always black (character parts), the blank bits are always white (background), and the bits marked with an x can be either white or black. .

第6図では左から番号付けしたとして1から12
までの12ビツトのレジスタで構成された例を示
す。例えば条件(1)の例で示すと、ビツト4から9
までの6ビツトに文字パターンの射影があり、ビ
ツト1と12は文字パターンの射影がないことが必
要条件として与えられている。つまり入力文字パ
ターンが2次元配列された光電変換デバイスの大
約中央に検出された例で、文字幅が1.2mm(解像
度0.2mmとして0.2×6)から2.0mm(0.2×10)の
文字が検出される場を示す。
In Figure 6, numbering from 1 to 12 from the left.
The example below shows an example consisting of 12-bit registers. For example, in the example of condition (1), bits 4 to 9
A necessary condition is that there is a projection of a character pattern on the first 6 bits, and that there is no projection of a character pattern on bits 1 and 12. In other words, in an example where an input character pattern is detected approximately at the center of a two-dimensional array of photoelectric conversion devices, characters with a character width of 1.2 mm (0.2 x 6 with a resolution of 0.2 mm) to 2.0 mm (0.2 x 10) are detected. Indicates a place where

条件(1)における自由度は(つまり×印のビツト
数は)4ビツトでありその組合せは16種、同様に
条件(2)は16種、条件(3)(4)は各2種、条件(5)は4種
となり、検出条件を満足するものは全体12ビツト
分、4096種の内40種のみとなる。
The degree of freedom in condition (1) (that is, the number of bits marked with an x) is 4 bits, and there are 16 combinations of them.Similarly, condition (2) has 16 types, conditions (3) and (4) have 2 types each, and conditions There are four types of (5), and only 40 out of 4096 types, which are 12 bits in total, satisfy the detection conditions.

第6図に示す条件は一フレーム走査時間が0.5
msec、1光電変換素子当りの解像度が0.2mmと設
定し、0.2mm/0.5msec=400mm/secの移動速度で
走査器が文字幅8ビツトの文字を走査した場合
に、第6図の検出条件(1)を満足できるように定め
られ、しかもその検出条件は走査移動方向に対
し、第7図の第nフレーム41、第(n+1)フ
レーム42、第(n+2)フレーム43の各時間
において検出されるものである。
The conditions shown in Figure 6 are that the scanning time for one frame is 0.5.
msec, the resolution per photoelectric conversion element is set to 0.2 mm, and when the scanner scans a character with a character width of 8 bits at a moving speed of 0.2 mm/0.5 msec = 400 mm/sec, the detection conditions shown in Figure 6 are satisfied. (1), and the detection condition is such that detection is performed at each time of the n-th frame 41, the (n+1)-th frame 42, and the (n+2)-th frame 43 in FIG. 7 in the scanning movement direction. It is something that

このようにして、400mm/secの移動速度におい
て観測される1〜12ビツトの文字幅からなる文字
パターンについては第6図の各検出条件の組合せ
によつて、最底でも3回の検出条件満足のチヤン
スが与えられている。このことは走査器の移動速
度が3倍の1200mm/secに高まつた場合において
も文字の読み飛ばしが生ずることなく文字の検出
が可能であることを示している。
In this way, for a character pattern with a character width of 1 to 12 bits observed at a moving speed of 400 mm/sec, by combining each detection condition shown in Figure 6, the detection condition can be satisfied at least three times. are given the opportunity to This shows that even when the moving speed of the scanner is tripled to 1200 mm/sec, characters can be detected without skipping characters.

一方、このような検出条件においては、走査器
の移動が著しく遅くなつた場合には、媒体上の同
一文字を何回にもわたつて検出する。例えば上記
例において走査器の移動速度が200mm/secとなつ
た場合には6回、40msecになつた場合には30回
の検出条件満足の状態が発生するであろう。した
がつて、識別部10での一文字の識別処理が1フ
レームで終了するとすれば、同一文字の検出であ
ることを知らない限り、媒体上の一文字に対し複
数の識別結果を出力することとなる。したがつて
後述するように、同一文字の検出であるか、次の
文字の検出であるかを判断する必要がある。
On the other hand, under such detection conditions, if the movement of the scanner becomes significantly slow, the same character on the medium will be detected many times. For example, in the above example, if the moving speed of the scanner becomes 200 mm/sec, the detection condition will be satisfied 6 times, and if it becomes 40 msec, the detection condition will be satisfied 30 times. Therefore, if the identification process for one character in the identification unit 10 is completed in one frame, multiple identification results will be output for one character on the medium unless it is known that the same character is being detected. . Therefore, as will be described later, it is necessary to determine whether the same character or the next character is being detected.

再び第4図において、制御部16は観測パター
ンが検出条件を満足すると判断したら、検出切出
回路15を駆動する。検出切出回路15の構成も
よく知られているので詳細な説明を省略するが、
観測パターンから文字パターンの部分を予じめ定
められた大きさ(m′×n′)に変換し、識別部10
内のパターンメモリへ転送する。この際、制御部
16は検出された文字幅及び文字高さデータから
文字パターンの中心を求め、上記パターンメモリ
の中心に文字パターンの中心が一致するように検
出切出回路を制御している。この文字パターンの
転送が終了したら、制御部16は識別部10に対
し識別開始信号を出力し、以下の識別処理は識別
部10内の図示しない制御部にゆだねる。そして
制御部16は以下のフレームで供給される観測パ
ターンについて夫々同様に検出条件を満足するも
のであるか否かチエツクを行なう。観測パターン
が検出条件を満足しない場合には制御部16は検
出切出回路15を駆動しない。
Referring again to FIG. 4, when the control unit 16 determines that the observed pattern satisfies the detection conditions, it drives the detection cutout circuit 15. Since the configuration of the detection cutout circuit 15 is also well known, a detailed explanation will be omitted.
The character pattern portion is converted from the observed pattern into a predetermined size (m'×n'), and the identification unit 10
Transfer to the internal pattern memory. At this time, the control section 16 determines the center of the character pattern from the detected character width and character height data, and controls the detection cutting circuit so that the center of the character pattern coincides with the center of the pattern memory. When the transfer of this character pattern is completed, the control section 16 outputs an identification start signal to the identification section 10, and entrusts the following identification processing to a control section (not shown) in the identification section 10. Then, the control unit 16 similarly checks whether the observation patterns supplied in the following frames satisfy the detection conditions. If the observed pattern does not satisfy the detection conditions, the control section 16 does not drive the detection cutout circuit 15.

ところで、上記したように、第iフレームで検
出条件を満足した文字パターンがあつた場合、そ
れ以降のフレームで検出条件を満足する文字パタ
ーンは第iフレームの文字パターンと同一文字で
ある場合が殆んどである。このため、文字検出切
出部9には同一文字の再読を防止するため回路が
設けられている。
By the way, as mentioned above, when there is a character pattern that satisfies the detection condition in the i-th frame, the character patterns that satisfy the detection condition in subsequent frames are almost always the same as the character pattern in the i-th frame. It is. For this reason, the character detection and cutting section 9 is provided with a circuit to prevent the same character from being reread.

第4図においてフリツプフロツプ(PASS)2
0は検出条件を満足させる文字パターンが検出さ
れたときにセツトされ、検出条件を満足する文字
パターンが検出されなくなつた場合にリセツトさ
れる。カウンタ(SCTR)21は検出条件を満足
する文字パターンを有するフレームの数を計数す
る。カウンタ(NSCTR)22は検出条件を満足
しなくなつたフレームからフレーム数を計数す
る。セレクタ(SEL)23はSCTR21の計数値
の2倍値又は4倍値を選択的に出力する。比較器
24はSEL23の出力とNSCTR22の出力とを
比較し、一致した場合に識別許可信号を出力す
る。フリツプフロツプ(ABFF)25は射影レジ
スタ17がすべて黒の場合にセツトされ、その出
力でSEL23の4倍値を指定する。
In Figure 4, flip-flop (PASS) 2
0 is set when a character pattern that satisfies the detection condition is detected, and is reset when a character pattern that satisfies the detection condition is no longer detected. A counter (SCTR) 21 counts the number of frames having a character pattern that satisfies the detection conditions. A counter (NSCTR) 22 counts the number of frames starting from frames that no longer satisfy the detection conditions. A selector (SEL) 23 selectively outputs a double value or a quadruple value of the count value of the SCTR 21. The comparator 24 compares the output of the SEL 23 and the output of the NSCTR 22, and outputs an identification permission signal if they match. Flip-flop (ABFF) 25 is set when projection register 17 is all black, and its output specifies a value four times SEL 23.

これらの動作を第8図を参照して説明する。同
図は媒体上の文字列と、射影レジスタ7との相対
関係を模式的に示したものである。501,502
は媒体上の連続する文字を表わし、51〜58は
特定のフレームでの射影レジスタ17で得られる
文字幅方向射影を表わすものとする。
These operations will be explained with reference to FIG. This figure schematically shows the relative relationship between character strings on the medium and the projection register 7. 50 1 , 50 2
represents consecutive characters on the medium, and 51 to 58 represent character width direction projections obtained by the projection register 17 in a particular frame.

文字行の最初の文字501を検知する以前にお
いて、PASS20、SCTR21、NSCTR22は
クリアされている。第1フレーム〜第(n−1)
フレームでの射影51,52は検出条件を満足し
ないのでSCTR21,NSCTR22とも変化はな
い。第nフレームの射影53は検出条件を満足す
るので、制御部16は検出切出回路15を駆動
し、識別開始信号を出力する(これに従い、検出
切出回路15は第nフレームから文字パターンを
切出して識別部10へ送る)。又、制御部16は
PASS20をセツトし、SCTR21を計数可能状
態にする。(PASS20のセツト後、制御部16
は後述する識別許可信号を受け取るまで検出切出
回路15を駆動しない。)SCTR21はPASS2
0のQ端子に接続されているので、走査制御部1
1から送られるフレーム同期信号EOFに同期し
て+1される。NSCTR22はPASS20の端
子に接続されているので計数できない。
PASS20, SCTR21, and NSCTR22 are cleared before the first character 501 of the character line is detected. 1st frame to (n-1)th frame
Since the projections 51 and 52 in the frame do not satisfy the detection condition, there is no change in the SCTR 21 and NSCTR 22. Since the projection 53 of the n-th frame satisfies the detection condition, the control unit 16 drives the detection cut-out circuit 15 and outputs an identification start signal (accordingly, the detection cut-out circuit 15 extracts the character pattern from the n-th frame). cut out and send to the identification section 10). Moreover, the control section 16
Set PASS20 and make SCTR21 countable. (After setting PASS20, control unit 16
does not drive the detection cutout circuit 15 until it receives an identification permission signal, which will be described later. ) SCTR21 is PASS2
Since it is connected to the Q terminal of 0, the scan control unit 1
It is incremented by 1 in synchronization with the frame synchronization signal EOF sent from 1. Since NSCTR22 is connected to the terminal of PASS20, it cannot be counted.

次の第(n+1)フレームの射影54も検出条
件を満足するが、識別許可信号27が得られてい
ないので制御部16は検出切出回路15を駆動せ
ず、識別開始信号も出力しない(従つて第(n+
1)フレームの文字パターンは識別部10へは送
られない)。しかしながらSCTR21はEOFに同
期して+1される。第(n+2)フレームでも同
様にSCTR21が+1される。
The projection 54 of the next (n+1)th frame also satisfies the detection conditions, but since the identification permission signal 27 has not been obtained, the control unit 16 does not drive the detection cutout circuit 15 and does not output the identification start signal (follows Tetsute (n+
1) The character pattern of the frame is not sent to the identification unit 10). However, SCTR21 is incremented by 1 in synchronization with EOF. SCTR21 is similarly incremented by 1 in the (n+2)th frame.

第(n+3)フレームでは射影56が検出条件
を満足しないので制御部16はPASS20をクリ
アする。このためSCTR21は計数を禁止され、
その計数値を保持する(ここでは3)。その代わ
りにNSCTR22がEOFに同期して計数を開始す
る。以下第mフレームまでは検出条件を満足しな
いフレームが続くのでそのフレーム数がNSCTR
22により計数される。一方、SEL23はこの間
ABFF25の出力によつてSCTR21の2倍値
(ここでは6)を選択しCOMP24に供給してい
る。このためCOMP24はNSCTR22の計数値
が6になると識別許可信号27を出力する。制御
部16はこの信号を入力すると、検出条件を満足
する新たなフレームを持つことになる。
In the (n+3)th frame, the projection 56 does not satisfy the detection condition, so the control unit 16 clears PASS20. For this reason, SCTR21 was prohibited from counting.
The count value is held (here, 3). Instead, the NSCTR 22 starts counting in synchronization with EOF. Thereafter, frames that do not satisfy the detection conditions continue until the mth frame, so the number of frames is NSCTR
It is counted by 22. On the other hand, SEL23 recently
Based on the output of ABFF25, the double value of SCTR21 (6 in this case) is selected and supplied to COMP24. For this reason, the COMP 24 outputs the identification permission signal 27 when the count value of the NSCTR 22 reaches 6. When the control unit 16 receives this signal, it will have a new frame that satisfies the detection conditions.

第(m+1)フレームで検出条件を満足した文
字パターンが得られる場合、識別許可信号27が
既に出力されているので、制御部16は新しい文
字パターンであるとして検出切出回路15を駆動
し、識別開始信号を識別部10へ出力する(従つ
て第(m+1)フレームの文字パターンは識別部
10へ送られる)。このようにして検出条件が連
続して満足する事に対し、同一文字の複数回識別
を文字ピツチまで考慮して防止できる。(尚、こ
こでは識別許可信号が与えられた直後の第(m+
1)フレームで検出条件を満足する文字パターン
が得られたが、第(m+1)フレームが検出条件
を満足しない文字パターンであり、その後のフレ
ームが検出条件を満足する文字パターンである場
合も起こり得る。要するに識別許可信号が与えら
れた以降にあつて、検出条件を満足する最初のフ
レームが識別処理に供される。) 第9図はSCTR21(実線)、NSCTR22
(破線)の計数値変化とPASS20(Q)の状態
を縦軸に、時間を横軸にとつてその相関関係を示
すグラフである。ここでaは時間taからtbまでの
検出条件満足期間のフレーム数(SCTR21によ
る)であり、その後に続くtbからtdまでの検出条
件不満足の期間はNSCTR22がフレーム数を計
数する。NSCTR22の計数値はSCTR21の計
数値aの2倍値2a(一点鎖線)と比較され、一
致した時(te)から次の文字パターンの識別処理
が許容される。
If a character pattern that satisfies the detection conditions is obtained in the (m+1)th frame, the identification permission signal 27 has already been output, so the control unit 16 determines that the character pattern is new and drives the detection cutout circuit 15 to identify the character pattern. A start signal is output to the identification section 10 (therefore, the character pattern of the (m+1)th frame is sent to the identification section 10). In this way, it is possible to prevent the same character from being identified multiple times by considering the character pitch even though the detection condition is satisfied continuously. (Here, the (m+
1) It may happen that a character pattern that satisfies the detection condition is obtained in a frame, but the (m+1)th frame is a character pattern that does not satisfy the detection condition, and the subsequent frame is a character pattern that satisfies the detection condition. . In short, after the identification permission signal is given, the first frame that satisfies the detection conditions is subjected to identification processing. ) Figure 9 shows SCTR21 (solid line) and NSCTR22.
It is a graph showing the correlation between the count value change (broken line) and the state of PASS20 (Q) on the vertical axis and time on the horizontal axis. Here, a is the number of frames (according to SCTR 21) during the detection condition satisfaction period from time ta to tb, and the NSCTR 22 counts the number of frames during the subsequent detection condition unsatisfaction period from tb to td. The count value of the NSCTR 22 is compared with the double value 2a (dotted chain line) of the count value a of the SCTR 21, and when they match (te), the next character pattern identification process is allowed.

尚、SEL23はABFF25がセツトされたと
き、すなわち第10図a,bに示すように文字パ
ターンの傾きが大きかつたり、大きな文字パター
ンが観測された場合に、その後に続く識別許可し
ないフレーム数を通常の文字幅のものに比べて2
倍設定するようにしたものである。
Furthermore, when ABFF25 is set, that is, when the slope of the character pattern is large or a large character pattern is observed as shown in Fig. 10a and b, SEL23 determines the number of subsequent frames in which identification is not permitted. 2 compared to the normal character width.
It is set to double.

ここで通常の場合に、SCTR21の計数値の2
倍としたのは、帳票上の印刷文字ピツチに対し文
字の検出条件を満足する距離が約3/12(印字ピツ
チ10文字/インチ)と小さいことから求めたもの
で、SEL23によつてその倍率を変えたのは第1
0図a,bに示す様に、傾きが大きかつたり、大
きな文字が観測されたりして検出条件がその片側
でのみしか満足されなかつた場合に、その後に続
く識別許可しないフレーム数を通常の文字幅のも
のに比べて2倍設定するためである。その倍率の
値は一例であつてSCTR21の計数値によつて同
様の考えに基づきその値を設定してもよいもので
ある。
Here, in the normal case, 2 of the count value of SCTR21
The reason for multiplying it was determined from the fact that the distance that satisfies the character detection conditions relative to the printed character pitch on the form is as small as approximately 3/12 (printing pitch 10 characters/inch), and the magnification was calculated using SEL23. The first thing that changed was
As shown in Figures a and b, when the detection condition is satisfied only on one side due to a large inclination or a large character being observed, the number of subsequent frames for which identification is not permitted is set to the normal number. This is because it is set twice as wide as the character width. The value of the magnification is just an example, and the value may be set based on the same idea based on the count value of the SCTR 21.

以上のように、本実施例によれば検出条件を満
足するフレーム数を計数し、その計数値に応じて
定められるフレームにおいては、検出条件を満足
する文字パターンが検出されたとしても識別を行
なわない。つまり検出条件を最初に満足したフレ
ーム以降は計数値に応じて定められるフレーム期
間終了まで識別許可しないので、同一文字の複数
回識別を文字ピツチまで加味して防止できる。従
つて、走査器の移動速度の許容範囲を従来のもの
に比べ格段に広げることができる。
As described above, according to this embodiment, the number of frames that satisfy the detection conditions is counted, and in the frames determined according to the counted value, even if a character pattern that satisfies the detection conditions is detected, identification is not performed. do not have. In other words, since identification is not permitted after the first frame in which the detection condition is satisfied until the end of the frame period determined according to the count value, multiple identifications of the same character can be prevented by taking into account the character pitch. Therefore, the permissible range of the moving speed of the scanner can be greatly expanded compared to the conventional scanner.

この発明によつて文字幅の大きな入力、又走査
器と媒体上の文字の傾きが大きかつた場合、又は
印刷コントラストが低く量子化パターンが切れ切
れに出力された場合、さらにこれらの状態下で走
査器の移動速度が遅い場合、早い場合に関わらず
確実に文字の検出が得られ、しかも複数読みが発
生しない、従来と同様文字読取装置にない自由度
の高い文字読取装置が提供出来る。
With this invention, it is possible to scan in cases where the character width is large, when the inclination of the characters on the scanner and the medium is large, or when the printing contrast is low and the quantization pattern is output in pieces, and also under these conditions. To provide a character reading device with a high degree of freedom not found in conventional character reading devices, in which characters can be reliably detected regardless of whether the moving speed of the device is slow or fast, and multiple readings do not occur.

また従来検出判定論理と識別処理回路をそれぞ
れ独立して用意することは低価格化、小形化の要
求に対しなじまないものとされてきたが、検出判
稚論理はシーケンシヤル制御が主であり、識別処
理に於ける類似度計算、最大値類似度検出の為の
データ処理とはそのプログラム制御構成からいつ
ても分離した方が簡易化されたものが得られ、従
来のものに比べ小型化、低価格化が達し得た。
Furthermore, in the past, it has been thought that providing separate detection/judgment logic and identification processing circuits would not be compatible with the demands for lower cost and miniaturization, but detection/judgment logic is mainly based on sequential control; It is always easier to separate similarity calculation in processing and data processing for maximum similarity detection from the program control configuration, and it is smaller and cheaper than conventional methods. price has been achieved.

この発明に於て同一文字の判定をカウンタ、フ
リツプ・フロツプ等を用いてその動作を説明した
が、これらは現在のプログラム制御技術によつて
他のレジスタ等と共用化することによつて簡易化
されることは容易に考えられる。
In this invention, the operation of determining the same character was explained using counters, flip-flops, etc., but these can be simplified by sharing them with other registers etc. using current program control technology. It is easy to imagine that this could happen.

この発明は文字に限定して説明したが、記号、
シンボル等、一般のパターン入力に於ても応用さ
れ得る。
Although this invention has been explained limited to characters, symbols,
It can also be applied to general pattern input such as symbols.

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

第1図a〜dは観測領域に於ける入力パターン
の観測例を示す図、第2図は媒体と走査器の概要
を説明する図、第3図は本発明の一実施例の全体
ブロツク図、第4図は本発明の一実施例の一部の
構成図、第5図は観測領域と入力文字パターン並
びにその射影を説明する図、第6図は文字幅方向
検出条件の満足状態を示す図、第7図は媒体上の
文字と走査器文字幅方向射影の変化の状態を説明
する図、第8図は通常に文字間余白が検出される
走査状態に於ける検出満足状態にある期間を説明
する図、第9図はカウンタSCTR、NSCTRの動
作、同一文字期間の状態を示すフリツプ・フロツ
プPASSの出力との関係を説明する図、第10
a,bは傾き過大、文字幅過大によつてその片側
でのみしか検出条件を満足し得ない状態を示した
図である。 7……走査器、8……量子化回路、9……文字
検出切出部、10……識別部、11……走査制御
部、13……文字幅検出回路、14……文字高さ
検出回路、15……検出切出回路、16……制御
部。
Figures 1 a to d are diagrams showing an example of observing an input pattern in an observation area, Figure 2 is a diagram illustrating an overview of the medium and scanner, and Figure 3 is an overall block diagram of an embodiment of the present invention. , FIG. 4 is a block diagram of a part of an embodiment of the present invention, FIG. 5 is a diagram explaining the observation area, input character pattern, and its projection, and FIG. 6 shows the state in which the character width direction detection condition is satisfied. Figure 7 is a diagram illustrating the state of change in characters on the medium and the character width direction projection of the scanner, and Figure 8 is a diagram showing the period in which the detection is satisfied in the scanning state where space between characters is normally detected. 9 is a diagram explaining the operation of the counters SCTR and NSCTR, and the relationship with the output of the flip-flop PASS indicating the status of the same character period.
Figures a and b show a state in which the detection condition can only be satisfied on one side due to excessive inclination and excessive character width. 7...Scanner, 8...Quantization circuit, 9...Character detection cutting section, 10...Identification section, 11...Scanning control section, 13...Character width detection circuit, 14...Character height detection Circuit, 15...Detection cutting circuit, 16...Control unit.

Claims (1)

【特許請求の範囲】[Claims] 1 二次元的に配列された光電変換デバイスと、
この光電変換デバイスをフレーム走査して周期的
に観測パターンを得る手段と、この観測パターン
が予じめ定められた検出条件を満足するか否か判
定する手段と、検出条件を満足する観測パターン
の識別処理を行なう識別部と、検出条件を満足す
る観測パターンの連続フレーム数を計数する計数
手段と、前記連続フレームの最初の観測パターン
のみを識別部へ供給する手段と、前記計数手段に
より計数された値に応じて定めたフレーム期間を
前記計数された値の対象となつた前記連続フレー
ムに続けて設定しこの期間は前記識別部が新たな
識別処理を行なうのを禁止する手段とを備えたこ
とを特徴とする文字読取装置。
1 Two-dimensionally arranged photoelectric conversion devices,
means for periodically obtaining observation patterns by frame-scanning the photoelectric conversion device; means for determining whether or not the observation patterns satisfy predetermined detection conditions; and means for determining whether or not the observation patterns satisfy predetermined detection conditions; an identification unit that performs identification processing; a counting unit that counts the number of consecutive frames of observation patterns that satisfy a detection condition; a unit that supplies only the first observation pattern of the continuous frames to the identification unit; means for setting a frame period determined according to the counted value subsequent to the continuous frame targeted by the counted value, and prohibiting the identification unit from performing new identification processing during this period. A character reading device characterized by:
JP14766779A 1979-11-16 1979-11-16 Character reader Granted JPS5672778A (en)

Priority Applications (6)

Application Number Priority Date Filing Date Title
JP14766779A JPS5672778A (en) 1979-11-16 1979-11-16 Character reader
AU64321/80A AU533978B2 (en) 1979-11-16 1980-11-12 Character reader
EP80107030A EP0029943B1 (en) 1979-11-16 1980-11-13 Character reading apparatus with manually movable scanner
DE8080107030T DE3070178D1 (en) 1979-11-16 1980-11-13 Character reading apparatus with manually movable scanner
CA000364679A CA1159568A (en) 1979-11-16 1980-11-14 Character reading apparatus
US06/206,832 US4389634A (en) 1979-11-16 1980-11-14 Character reading apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14766779A JPS5672778A (en) 1979-11-16 1979-11-16 Character reader

Publications (2)

Publication Number Publication Date
JPS5672778A JPS5672778A (en) 1981-06-17
JPH0120795B2 true JPH0120795B2 (en) 1989-04-18

Family

ID=15435543

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14766779A Granted JPS5672778A (en) 1979-11-16 1979-11-16 Character reader

Country Status (1)

Country Link
JP (1) JPS5672778A (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6149277A (en) * 1984-08-17 1986-03-11 Fuji Electric Co Ltd Picture processing device
JPH07120389B2 (en) * 1986-02-28 1995-12-20 住友電気工業株式会社 Optical character reader
JPH0799531B2 (en) * 1986-11-06 1995-10-25 住友電気工業株式会社 Optical character reader
JPS63120386A (en) * 1986-11-10 1988-05-24 Sumitomo Electric Ind Ltd Optical character reader
JPS63120387A (en) * 1986-11-10 1988-05-24 Sumitomo Electric Ind Ltd Optical character reader
JPH0833907B2 (en) * 1987-06-05 1996-03-29 住友電気工業株式会社 Optical character reader
JP2504775B2 (en) * 1987-06-05 1996-06-05 住友電気工業株式会社 Optical character reader

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5329621A (en) * 1976-09-01 1978-03-20 Oki Electric Ind Co Ltd Optical character reader

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5329621A (en) * 1976-09-01 1978-03-20 Oki Electric Ind Co Ltd Optical character reader

Also Published As

Publication number Publication date
JPS5672778A (en) 1981-06-17

Similar Documents

Publication Publication Date Title
US4074114A (en) Bar code and method and apparatus for interpreting the same
US4357596A (en) Multi-line scan mark verification circuit
US5184005A (en) Non-decoded type bar code reading apparatus
US5270525A (en) Non-decoded type bar code reading apparatus
JPS6236273B2 (en)
JPS60262284A (en) Image processing
US4797940A (en) Optical character reader
JPH0120795B2 (en)
JP3758266B2 (en) Code reader
US5471041A (en) Bar-code reader device
US5038391A (en) Optical character reader
JPH0731717B2 (en) Optical reader
EP0093766B1 (en) Image capturing apparatus
JPH0421915B2 (en)
JPS6033778A (en) Method for detecting original
US6434340B1 (en) Method of recording data on photographic film
US4229086A (en) Photosensitive recorder providing linguistic characters
JP3636050B2 (en) Optical information reader
EP0013276B1 (en) Optical mark reading system
JP2734639B2 (en) Data reading method and device
JPH0431436B2 (en)
JP2849000B2 (en) Barcode label scanning interval determination method
JPH0679330B2 (en) Pixel resolution inspection method for image sensor
JP2742144B2 (en) Optical reader
JPH04268985A (en) Optical reader