JPS6089284A - System for cutting out character line - Google Patents
System for cutting out character lineInfo
- Publication number
- JPS6089284A JPS6089284A JP58195784A JP19578483A JPS6089284A JP S6089284 A JPS6089284 A JP S6089284A JP 58195784 A JP58195784 A JP 58195784A JP 19578483 A JP19578483 A JP 19578483A JP S6089284 A JPS6089284 A JP S6089284A
- Authority
- JP
- Japan
- Prior art keywords
- line
- character
- image data
- status
- buffer
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Abstract
Description
【発明の詳細な説明】
〔技術分野〕
本発明は1文字認識装置等における文字f1切出方式に
関する。DETAILED DESCRIPTION OF THE INVENTION [Technical Field] The present invention relates to a character f1 extraction method in a single character recognition device or the like.
第1図によって、従来の文字f77切出方を説明する。 The conventional method of cutting out the character f77 will be explained with reference to FIG.
ノイズ除去を施されたイメージデータが入力端子lに入
力され、それはlラインバッファ2に一次的に蓄積され
る。水平射影カウンノノ:3はライン毎にイメージデー
タの″′1″ビット(黒画1f4)をカウントする。各
ラインのイメージデータの入力が終了した時に、制御部
4は水平射影カウンタ3のカウント値、即ち各ラインの
水平射影値を特定の閾値と比較する。あるラインで初め
て水平射影値が閾値を越えると、制御部4はそのライン
以降の所定数ラインのイメージデータを1ラインバツフ
ア2を介してイメージメモリ5に記憶させる。The image data subjected to noise removal is input to the input terminal l, and is temporarily stored in the l line buffer 2. Horizontal projection counter: 3 counts "'1" bits (black image 1f4) of image data for each line. When the input of image data for each line is completed, the control unit 4 compares the count value of the horizontal projection counter 3, that is, the horizontal projection value for each line, with a specific threshold value. When the horizontal projection value exceeds the threshold value for the first time in a certain line, the control section 4 stores the image data of a predetermined number of lines after that line in the image memory 5 via the one-line buffer 2.
このように従来は、水平射影値が最初に閾値を越えたラ
インを文字行の先頭ラインとし、そのラインから所定数
ラインのイメージデータを切り出している。In this way, conventionally, the line whose horizontal projection value first exceeds the threshold value is taken as the first line of a character line, and a predetermined number of lines of image data are cut out from that line.
さて、原稿等を走査して読み取ったイメージデータは、
孤立点等のノイズを除去したとしても、原稿の地肌の汚
れ等によるノイズを相当に含んでいるのが97通であり
、そのようなノイズによる文字行の先頭ラインの誤検出
を避けるために、上記閾値はあまり小さく決めることは
できない。その結果、先頭ラインの水平射影値が小さい
文字行の場合、真の先頭ラインより後のラインを先頭ラ
インと誤検出して文字行を切り出してしまい、文字イメ
ージの上端部が欠落し、文字認識エラーを引き起こす原
因となる等の欠点があった。Now, the image data read by scanning a manuscript etc. is
Even if noise such as isolated points is removed, 97 emails still contain a considerable amount of noise due to dirt on the background of the original, etc. In order to avoid erroneous detection of the first line of character lines due to such noise, The above threshold value cannot be set too small. As a result, in the case of a character line where the horizontal projection value of the first line is small, the line after the true first line is mistakenly detected as the first line and the character line is cut out, resulting in the upper edge of the character image being missing and character recognition. It has drawbacks such as causing errors.
本発明の目的は、上述の欠点を除去したつ字行切出方式
を提供することにある。SUMMARY OF THE INVENTION An object of the present invention is to provide a method for cutting out double lines that eliminates the above-mentioned drawbacks.
第2図ないし第4図によって、本発明の−・実施例を詳
細に説明する。Embodiments of the present invention will be described in detail with reference to FIGS. 2 to 4.
第2図は文字認識装置の一部を省略したブロック図であ
る。■1はCPU、12はI、/1.)二1ントローラ
、13はスキャナ、14はノイズ除去部。FIG. 2 is a block diagram with some parts of the character recognition device omitted. ■1 is CPU, 12 is I, /1. ) 21 is a controller, 13 is a scanner, and 14 is a noise removal unit.
】5と16は1ラインバツフア、17は゛(×3レジス
タマトリクス、18はROMである。19目スキャナ制
御部、20は水平射影カウンタ、21と22は1ライン
バツフア、23と26はスイッチ回路、24と25−は
−イメージメモリである。] 5 and 16 are 1 line buffers, 17 is a (×3 register matrix, 18 is a ROM, 19th scanner control section, 20 is a horizontal projection counter, 21 and 22 are 1 line buffers, 23 and 26 are switch circuits, 24 and 25- is an image memory.
なお、ノイズ除去部14の各部、1う(ンバッファ21
,22、イメージメモリ24.2F’iに対しI10コ
ントローラ12から出ている制御信号は図中省略されて
いる。Note that each part of the noise removal unit 14 is
, 22, and the control signals output from the I10 controller 12 to the image memory 24.2F'i are omitted in the figure.
第3図はCPUIIによって実行されるプログラムの概
略フローチャー1−であり、第4図はCPU11の割り
込み処理のフローチャートである。FIG. 3 is a schematic flowchart 1- of a program executed by the CPU II, and FIG. 4 is a flowchart of interrupt processing by the CPU 11.
これらのフローチャートを参照し、本実施例装置の動作
を説明する。The operation of the apparatus of this embodiment will be explained with reference to these flowcharts.
CPUIIはI10コン1〜ローラ12を通じスキャナ
13のイニシャライズをスキャナ制御部19に指令して
(ステップ101.)、制御変数の初期値シセットする
(ステップ102)。制御変数としては、制御高さL
n、行間高さr−n G A P、文字行切出状M S
T A T U Sがあり、L n = O5L n
G A P = 01STATUS=Oにセットさj
しる。そして、スキャナ13に原稿がセラ1−されたか
監視する(ステップ103)。The CPU II instructs the scanner control unit 19 to initialize the scanner 13 through the I10 controller 1 to the roller 12 (step 101), and resets the control variables to initial values (step 102). As a control variable, the control height L
n, line spacing height r-n G A P, character line cutting shape M S
There is T A T U S and L n = O5L n
G A P = 01 STATUS = set to O
Sign. Then, it is monitored whether the original has been sent to the scanner 13 (step 103).
原稿がセラ1−されると、CPUIIはS TA TU
S=2とする(ステップ104)。スキャナ13からシ
リアルに人力されるイメージデータは3×3レジスタマ
1−リクス17の最下段のレジスタG、H,Iを右シフ
トされて行き、またlラインバッファ16により1ライ
ン分遅延された後、3×3レジスタマトリクス17の中
段のレジスタD、E、Fを右シフトされて行き、1うr
ンバツファ15によってさらに1ライン遅延さAIてか
ら3X3レジスタマトリクス17の上段のLノジスタA
、B、Cを右シフ1−されて行く。この、;、うにして
、連続する3ラインの3画素、計9両J・;のデータが
3×3レジスタマ1〜リクス17に44) 、:、扛、
ROM1.8のアドレス入力に与えられる。ROM2S
は孤立した黒または白画素をノイズとして除去するもの
で、ノイズ除去処理を施した注目画素(Δ)のデータを
出力する。ROM18にLリノイズ除去が施されたイメ
ージデータは1うrンバッファ21に順次蓄積され、こ
のlラインバッファ21から1ライン分遅れて出力され
るイメージデータは次段のラインバッファ22に順次M
j積される。水平射影カウンタ20は各ライン毎に、イ
メージデータの″1′″ビット(黒画素)をカウントす
る。When the original is loaded, the CPU II enters the STA TU
Set S=2 (step 104). The image data input serially from the scanner 13 is shifted to the right through the lowest registers G, H, and I of the 3×3 register matrix 17, and is delayed by one line by the l-line buffer 16. The middle registers D, E, and F of the 3×3 register matrix 17 are shifted to the right, and
After AI is further delayed by one line by buffer 15,
, B, and C are shifted to the right by 1-. In this way, the data of 3 pixels of 3 consecutive lines, 9 cars in total, are stored in 3x3 registers 1 to 17 (44), :,
It is given to the address input of ROM1.8. ROM2S
The method removes isolated black or white pixels as noise, and outputs the data of the pixel of interest (Δ) that has been subjected to noise removal processing. The image data that has been subjected to L re-noise removal in the ROM 18 is sequentially stored in the 1-line buffer 21, and the image data that is output from this 1-line buffer 21 with a delay of 1 line is sequentially stored in the line buffer 22 at the next stage.
It is multiplied by j. The horizontal projection counter 20 counts "1" bits (black pixels) of image data for each line.
この水平射影カウンタ20の動作は1う1°ンバツフア
21により制御される。The operation of this horizontal projection counter 20 is controlled by a 1° buffer 21.
文字行切出は第4図に示す割り込み処111jで行われ
る。スキャナ13により原稿を1ライン読み取る度にス
キャナ制御部19より同期信号(S’YNC)が出るが
、この同期信号は割り込み信号としてI10コン1−c
l−ラ12を介しCPU11に入力される。cputt
は割り込み信号を受けるとS T A T U Sを調
べ(ステップ+ + 1)、5TA1’ U S =
0ならばL n = Oとしてプログラムに戻る(ステ
ップ112)。Character line cutting is performed in the interrupt processing 111j shown in FIG. Each time the scanner 13 reads one line of the original, a synchronization signal (S'YNC) is output from the scanner control section 19, and this synchronization signal is used as an interrupt signal in the I10 controller 1-c.
It is input to the CPU 11 via the l-ra 12. cputt
When it receives an interrupt signal, it checks S T A T U S (step + + 1), and 5TA1' U S =
If it is 0, return to the program with L n = O (step 112).
5TATUS=1ならば、水平射影カウンタ20のカウ
ント1直(1ラインバツフア21にイメージデータが蓄
積されているラインの水平射影値)が所定の閾値以上で
あるか判定する(ステップ113)。Y’ESならば、
CPtJl、]は]I10コン1−ローラ1に対し1ラ
インバツフア22のイメージデータをイメージメモリ2
4またはイメージメモリ25へ格納させるように指令し
、かつLnに1を加算する(ステップ114)。ij7
お、イメージメモリ24とイメージメモリ25は文字行
切出と文字切出に交互に使用されるもので、スイッチ回
路23により1ラインバツフア22がイメージメモリ2
4側に接続される時は、スイッチ回路26によりイメー
ジメモリ25が選択される。If 5TATUS=1, it is determined whether the count 1 of the horizontal projection counter 20 (the horizontal projection value of the line whose image data is stored in the 1-line buffer 21) is greater than or equal to a predetermined threshold (step 113). If Y'ES,
CPtJl,] transfers the image data of 1 line buffer 22 to I10 controller 1-roller 1 to image memory 2.
4 or to be stored in the image memory 25, and 1 is added to Ln (step 114). ij7
The image memory 24 and the image memory 25 are used alternately for cutting out character lines and cutting out characters.
When connected to the fourth side, the image memory 25 is selected by the switch circuit 26.
このようなスイッチ回路23、スイッチ回路26の切り
換え制御はT10コン1−ローラ12により行われる。Such switching control of the switch circuit 23 and the switch circuit 26 is performed by the T10 controller 1-roller 12.
ステップ113の判定結果がNoの場合は、Lnが文字
行の最小高さ以上であるか判定しくステップ115)−
YESならば1文字行のl3IJ出も終了したと判断し
、イメージメモリ24−したはイメージメモリ25への
イメージデータの格納を停止させ、かつスイッチ回路2
3.26を切り換えるようにI10コントローラ12に
指令し、S1A TU SをOにセラ1−する(ステッ
プIf(i)。If the determination result in step 113 is No, it is determined whether Ln is greater than or equal to the minimum height of a character line (step 115)-
If YES, it is determined that the I3IJ output of one character line has been completed, and the storage of the image data in the image memory 24 or the image memory 25 is stopped, and the switch circuit 2
The I10 controller 12 is commanded to switch 3.26, and the S1A TU S is set to O (step If(i)).
スイッチ115の判定結果がNOならば、1/()コン
1〜ローラ121;対しlラインバッツ、・22のイメ
ージデータを引き続きイメージメモリ2/またはイメー
ジメモリ25へ格納するようt: IH令し、L、 n
に1を加算する(ステップ1j7)、。If the determination result of the switch 115 is NO, the controller 1 to roller 121 issues an IH command to continue storing the image data of 22 into the image memory 2/or the image memory 25; L, n
1 is added to (step 1j7).
S T A T U S = 2の場合、ステップ11
3と同じ判定を行う(ステップ118)。判定粘1)1
がNFSならば、1ラインバツフア22にイメージ5−
タが蓄積されているライン(水平射影値が閾値を最初に
越えたラインの直前のライン)を文字行の先頭ラインと
判断し、lラインバッファ22のイメージデータをイメ
ージメモリ2/Iまたはイメージメモリ25に格納する
ようT10コン1−ローラ12に指令し、制御変数をS
T A TU S = ]、Ln=1にセットする(
ステップ119)。判定結果がNoならば、L n G
A Pに1を加算する(ステップ]20)。If S T A T U S = 2, step 11
The same determination as in step 3 is made (step 118). Judgment viscosity 1) 1
If is NFS, 1 line buffer 22 and image 5-
The line in which the data is accumulated (the line immediately before the line whose horizontal projection value first exceeds the threshold value) is determined to be the first line of the character line, and the image data in the line buffer 22 is transferred to the image memory 2/I or the image memory. 25, the T10 controller 1-roller 12 is instructed to store the control variable in S
T A T U S = ], set Ln=1 (
Step 119). If the judgment result is No, L n G
Add 1 to AP (step) 20).
再び第3図において、CI) LJ I +は原稿の読
取完了の判定を行い(ステップ+05)、未了ならはS
T A 1” U Sが0か判定しくステップ1o6
)、YESならはS T A TU Sを2に七ットシ
(ステップ107)、文字切出を行う(ステップ108
)。Again in FIG. 3, CI) LJ I + determines whether reading of the original is complete (step +05), and if it is not completed, S
Step 1o6 to determine whether T A 1” US is 0
), if YES, set S T A T U S to 2 (step 107), and perform character extraction (step 108).
).
文字切出を終了すると、ステップ105へ戻る。When character extraction is completed, the process returns to step 105.
文字切出処理は、CPUI lにおいて1ラインバツフ
ア22を介しイメージメモリ24またはイメージメモリ
25(スイッチ回路26で選択されている側)をスキャ
ンし、文字行の垂直射影をめ、垂直射影の切れ目で文字
を切り出し、I10コントローラ12を介し1文字毎に
イメージデータる文字認識部へ転送させる。In the character cutting process, the CPU I scans the image memory 24 or the image memory 25 (the side selected by the switch circuit 26) via the 1-line buffer 22, finds the vertical projection of the character line, and cuts the characters at the breaks in the vertical projection. is cut out and transferred via the I10 controller 12 to a character recognition unit that generates image data for each character.
ステップ105の判定がYESならば、最後番コ切り出
した文字行の文字切出・転送処理に航了したかを判定す
る(ステップ1o9)。Yl・:Sならばスキャナ13
の停止、文字認識部への1・jl i’の送出等の後処
理を行う(ステップI11.。If the determination in step 105 is YES, it is determined whether the character extraction/transfer processing for the last character line extracted has been completed (step 1o9). If Yl:S, scanner 13
Post-processing such as stopping , sending 1·jl i' to the character recognition unit, etc. is performed (step I11.).
なお本実施例では、最初に水平射影値が閾値右舷えるラ
インの直前のラインのイメージデ−タを保存しておくた
めに1ラインバツ゛フア’! :! rj 追mし・て
いるが、S’I’ATUS=2 (行間抽出中)の状態
で1ラインバツフア21内のイメ一一一ノ7−夕をイメ
ージメモリ24またはイメージスrす25の同一ライン
にオーバライ1−させ、S T△’l’ U S=1の
状態になったら第2ライン以降番−rメーシデータを順
次格納させることにより、1″)rンバッファ22を省
くようにしてもよい。In this embodiment, a 1-line buffer is first used to save the image data of the line immediately before the line where the horizontal projection value reaches the threshold starboard. :! rj I am tracking, but in the state of S'I'ATUS = 2 (extracting between lines), the image 111-7 in the 1-line buffer 21 is transferred to the same line in the image memory 24 or the image memory 25. 1'') run buffer 22 may be omitted by overriding the line 1 and sequentially storing data from the second line and subsequent lines when S TΔ'l'U S =1.
また本実施例は、最初に水平射影値が閾4fiを越える
ラインの直前ラインを文字行の先頭゛ルfンとして文字
行を切り出しているが、直前う1°ンよすさらに前のラ
インを先頭ラインとすることも可能である。In addition, in this embodiment, a character line is cut out by using the line immediately before the line whose horizontal projection value exceeds the threshold 4fi as the first line of the character line, but if you move forward by 1°, the line immediately before the line is cut out. It is also possible to set it as the first line.
以上詳述したように1本発明によれば、最初に水平射影
値が閾値を越えるラインより前の特定のラインを先頭ラ
インとして文字行が切り出さJLるから、ノイズに影響
されないような高い閾値を選んでも、文字行の真の先頭
う2rンが消失し文字の」二端が欠落する等の問題を解
消できる。As detailed above, according to the present invention, a character line is first cut out using a specific line before the line whose horizontal projection value exceeds the threshold as the first line, so a high threshold that is not affected by noise can be set. Even if you select this option, problems such as the true first part of a character line disappearing and the second end of a character being missing can be solved.
第1図は従来の文字行切出方式を示すブロック図、第2
図は本発明による文字認識装置の一部を省略したブロッ
ク図、第3図は第2図中のCPUのプログラムの概略フ
ローチャート、第4図は同CP tJの割り込み処理の
フローチャー1−である。
11・・・CP U、12・・・I10コントローラ、
13・・・スキャナ、 14・・・ノイズ除去部、19
・・・スキャナ制御部、20・・・水平射影部カウンタ
、21.2’2・・1ラインバツフア、23.26・・
・スイッチ回路、24.25イメ−ジメモリ。
代理人弁理士 鈴 木 誠
A′1図
オ・ 2 図
4Figure 1 is a block diagram showing the conventional character line extraction method;
The figure is a partially omitted block diagram of the character recognition device according to the present invention, Figure 3 is a schematic flowchart of the CPU program in Figure 2, and Figure 4 is a flowchart 1- of the interrupt processing of the same CP tJ. . 11... CPU, 12... I10 controller,
13... Scanner, 14... Noise removal unit, 19
...Scanner control unit, 20...Horizontal projection unit counter, 21.2'2...1 line buffer, 23.26...
・Switch circuit, 24.25 image memory. Representative Patent Attorney Makoto Suzuki A'1 Figure O/2 Figure 4
Claims (1)
ージデータを切り出す文字行切出方式において、水平射
影値が閾値を越える最初のう・rンより前の特定のライ
ンを文字行の先頭ラインとすることを特徴とする文字行
切出方式。(1) In the character line extraction method that cuts out the image data of a character line based on the horizontal projection of image data, a specific line before the first ``u'' whose horizontal projection value exceeds a threshold value is defined as the first line of the character line. A character line cutting method that is characterized by the following.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP58195784A JPS6089284A (en) | 1983-10-19 | 1983-10-19 | System for cutting out character line |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP58195784A JPS6089284A (en) | 1983-10-19 | 1983-10-19 | System for cutting out character line |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS6089284A true JPS6089284A (en) | 1985-05-20 |
Family
ID=16346906
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP58195784A Pending JPS6089284A (en) | 1983-10-19 | 1983-10-19 | System for cutting out character line |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS6089284A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007277798A (en) * | 2006-04-07 | 2007-10-25 | Truetzschler Gmbh & Co Kg | Needle cloth supporting part for card flat covering |
-
1983
- 1983-10-19 JP JP58195784A patent/JPS6089284A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007277798A (en) * | 2006-04-07 | 2007-10-25 | Truetzschler Gmbh & Co Kg | Needle cloth supporting part for card flat covering |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5687006A (en) | Image regenerating apparatus having improved character resolution and pattern gradation | |
US20150379340A1 (en) | Image processing device | |
JPS6089284A (en) | System for cutting out character line | |
US6175662B1 (en) | Region extraction method and apparatus | |
JPH11284846A (en) | Image processor | |
JP3359377B2 (en) | Background concentration detector | |
JP2589928B2 (en) | Isolated point removal device | |
JPS6410872B2 (en) | ||
JPH0530286A (en) | Picture reader | |
JPS6149554A (en) | Image segmenting circuit | |
JPH064706A (en) | Picture processor | |
JP3244549B2 (en) | Image input device | |
JP3748366B2 (en) | Binarization and binarization threshold determination method | |
JPS5887648A (en) | Picture processor | |
JPH0591325A (en) | Printing processing method for picture data | |
JPH0442714B2 (en) | ||
JP2000354150A (en) | Image processor and image processing method | |
JPH06223173A (en) | Reduction converting method | |
JPH039487A (en) | Processor and image character/picture deciding device | |
JPH0683440B2 (en) | Motion detection device for television signals | |
JPH08123952A (en) | Image data read control circuit | |
JPH06164928A (en) | Picture processor | |
JP2001352432A (en) | Image reader and read scanning speed control method | |
JPH11261829A (en) | Image processor | |
JPH0261065B2 (en) |