JPS5926075B2 - optical character reader - Google Patents

optical character reader

Info

Publication number
JPS5926075B2
JPS5926075B2 JP54147982A JP14798279A JPS5926075B2 JP S5926075 B2 JPS5926075 B2 JP S5926075B2 JP 54147982 A JP54147982 A JP 54147982A JP 14798279 A JP14798279 A JP 14798279A JP S5926075 B2 JPS5926075 B2 JP S5926075B2
Authority
JP
Japan
Prior art keywords
circuit
character
detection
projection
blank
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
JP54147982A
Other languages
Japanese (ja)
Other versions
JPS5671169A (en
Inventor
精悦 奈良
哲男 斉藤
寿男 武部
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP54147982A priority Critical patent/JPS5926075B2/en
Publication of JPS5671169A publication Critical patent/JPS5671169A/en
Publication of JPS5926075B2 publication Critical patent/JPS5926075B2/en
Expired legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 本発明は情報のブランク検出を情報読取りの開始条件に
している光学的文字読取装置に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an optical character reading device that uses blank detection as a condition for starting information reading.

一般に、光学的文字読取装置で被読取物に記入された文
字情報を正しく読取るためには、その文字情報が記入さ
れた読取領域を走査器で正しく走査する必要がある。従
来、読取領域を正しく走査する方法として、座標セット
方法、マーク、記号等を読取る方法等が知られている。
Generally, in order for an optical character reading device to correctly read character information written on an object to be read, it is necessary to correctly scan a reading area in which the character information is written with a scanner. 2. Description of the Related Art Conventionally, methods of setting coordinates, methods of reading marks, symbols, etc. are known as methods for correctly scanning a reading area.

前者は例えば帳票上のX−Y軸の埜準点に対して所定の
座標値P(x、y)を有する点に読取領域を設定してお
き、飛点走査器等で前記座標値P(x、y)から読取走
査を開始するものであるが、帳票が異なる都度座標値を
セットしなおさなければならない不便がある。後者は例
えば’”L””等のマーク検出を読取開始の条件とする
もので、予め設定したマーク、記号等を検出して読取り
を開始するものであるが帳票等にマーク、記号等をプレ
プリントしておく等の手間を要する。本発明はこのよう
な事情に鑑みてなされたもので、情報のブランク検出を
情報読取りの開始条件とするものであつて、格別に座標
を設定したり、マーク等をプリントしたりする必要がな
く、文字情報を走査する要領で読取開始点を検出するこ
とができるものであり、しかも前記ブランク検出を簡争
な構成で正確に行うことができるようにした光学的文字
読取装置を提供するものである。以下、本発明の一実施
例を図面を参照して説明する。第1図に示すように、被
読取物(記録媒体)1上に記入された文字情報2を手持
式走査器(ハンドスキャナ)3で走査するようにしてい
る。走査器3は、被読取物1に光を照射する照明ランプ
5、レンズ6、光電変換素子7並びに増幅器8が内蔵さ
れた通常購成のものであつて、読取るべき文字情報2を
レンズ6を通して光電変換素子7に結像させ、その光電
変換素子7から増幅器8を介してアナログ的な文字情報
読取り信号を出力するものである。そして、走査器3が
出力するアナログ的な読取り信号を量子化回路4に供給
して二値化信号に量子化し、その二値化信号を文字検出
回路9を介して文字識別回路10に供給すると共に水平
射影回路11並びに垂直射影回路12に並列的に供給し
ている。水平射影回路11は、入力される一画面分の二
値化信号から水平方向射影を作成するものであり、垂直
射影回路12は入力される一画面分の二値化信号から垂
直方向射影を作成するものである。しかして、水平射影
回路11が作成する水平方向射影に含まれる黒情報のビ
ツト数H、及び垂直射影回路12が作成する垂直方向射
影に含まれる黒情報のビツト数Wを制御回路17で計数
し、その各計数値H,Wを第1、第2の比較回路13,
14に供給している。
In the former case, for example, a reading area is set at a point having a predetermined coordinate value P (x, y) with respect to the reference point of the X-Y axis on the form, and the reading area is set at a point having a predetermined coordinate value P ( This method starts reading scanning from x, y), but it is inconvenient that the coordinate values must be reset each time the document is different. The latter requires the detection of a mark such as ``L'' as a condition for starting reading, and starts reading by detecting a mark, symbol, etc. that has been set in advance. The present invention was made in view of these circumstances, and it uses blank detection as a condition for starting information reading, and it does not require special coordinate setting, There is no need to print marks, etc., and the reading start point can be detected by scanning character information, and the blank detection can be performed accurately with a simple configuration. An optical character reading device is provided.An embodiment of the present invention will be described below with reference to the drawings.As shown in FIG. The character information 2 is scanned by a handheld scanner 3.The scanner 3 includes an illumination lamp 5, a lens 6, a photoelectric conversion element 7, and an amplifier 8 that irradiates light onto the object 1 to be read. It is a built-in, commonly purchased device that images the character information 2 to be read through a lens 6 onto a photoelectric conversion element 7, and outputs an analog character information reading signal from the photoelectric conversion element 7 via an amplifier 8. Then, the analog read signal outputted by the scanner 3 is supplied to a quantization circuit 4 to be quantized into a binary signal, and the binary signal is passed through a character detection circuit 9 for character identification. It is supplied to the circuit 10 and also to the horizontal projection circuit 11 and the vertical projection circuit 12 in parallel.The horizontal projection circuit 11 creates a horizontal projection from the input binary signal for one screen. The vertical projection circuit 12 creates a vertical projection from the input binary signal for one screen.Therefore, the number of bits of black information included in the horizontal projection created by the horizontal projection circuit 11 The control circuit 17 counts the number of bits of black information H and the number W of black information included in the vertical projection created by the vertical projection circuit 12, and the respective counted values H and W are transmitted to the first and second comparison circuits 13,
14.

第1の比較回路13には定数K1がセツトしであり、第
2の比較回路14には定数K2がセツトしてある。第1
の比較回路13はH<K1のときTvビ信号を出力し、
第2の比較回路14はW<K2のときVWlVl信号を
出力する。そうして、第1、第2の比較回路13,14
の出力と制御回路17からのコントロール信号をアンド
ゲート15に入力するようにし、そのアンドゲート15
の出力でブランク検出フリツプフロツプ(F/F)16
をセツトするようにしている。制御回路17はブランク
検出フリツプフロツプ16の状態を検出し、それがまだ
セツトしていない状態では前述した水平方向射影及び垂
直方向射影内の黒情報のビツト数のカウントを周期的に
行うブランク検出動作を遂行し、それがセツトした後は
、つまりブランクを検出したら、それを条件として文字
検出回路9及び文字識別回路10を動作させ文字識別動
作を遂行する。
A constant K1 is set in the first comparison circuit 13, and a constant K2 is set in the second comparison circuit 14. 1st
The comparison circuit 13 outputs a Tv signal when H<K1,
The second comparison circuit 14 outputs the VWlVl signal when W<K2. Then, the first and second comparison circuits 13 and 14
The output of the control circuit 17 and the control signal from the control circuit 17 are input to the AND gate 15.
Blank detection flip-flop (F/F) 16 at the output of
I am trying to set it. The control circuit 17 detects the state of the blank detection flip-flop 16, and if it is not yet set, performs a blank detection operation of periodically counting the number of bits of black information in the horizontal projection and vertical projection described above. After it is set, that is, when a blank is detected, the character detection circuit 9 and the character identification circuit 10 are operated under this condition to perform the character identification operation.

文字検出回路9及び文字識別回路10による文字認識の
手法は通常の通りであるので、ここではその説明を省略
し、以下ブランク検出について説明する。
Since the method of character recognition by the character detection circuit 9 and the character identification circuit 10 is the same as usual, its explanation will be omitted here, and blank detection will be explained below.

光電変換素子7から得られる面情報は、通常第2図A,
bに示すようにMXNビツトの絵素からなるもので、水
平射影のビツト数は最大Mであり、垂直射影のビツト数
は最大Nである。
The surface information obtained from the photoelectric conversion element 7 is usually shown in FIG.
As shown in b, it consists of MXN-bit picture elements, and the maximum number of bits in horizontal projection is M, and the maximum number of bits in vertical projection is N.

一方、検出すべきブランク部が完全な白色であれば、水
平射影及び垂直射影に現われる黒情報のビツト数H,W
は夫々H=0、W=0である。しかしながら、ブランク
部が完全な白色ということは少なく、殆んどの場合は第
2図aに示すように汚れや、シミがある。なお、第2図
bは文字情報として認識し得る程度の書込みがある場合
のものである。この第2図A,bを比較しても明らかな
ように、ブランク部として認識すべき程度の汚れやシミ
がある場合と、文字として認識すべき程度の書込みがあ
る場合とでは、水平、垂直射影に現われる黒情報のビツ
ト数H,Wに明らかな差が生じる。すなわち、第2図a
の場合H=4、W=4であるのに対し、第2図bの場合
H=12、W=9である。したがつて、それらを区別す
る基準として例えば水平射影に定数K,=5を設定し、
垂直射影に定数K2=5を設定し、H<K,、W<K2
の条件を満足した場合にブランクと判断するようにすれ
ば、多少の汚れ、シミが存在しても十分正確にブランク
部の検出を行うことができる。そこで、前記実帷例にお
いては、そのフローチヤートを第3図に示すように、予
め比較回路13,14に定数Kl,K2を与えておき、
水平射影回路11及び垂直射影回路12で水平、垂直射
影を形成したら、その水平、垂直射影における黒情報の
ビツト数H,Wを制御回路17でカウントし、そのカウ
ント結果を比較回路13,14に与えて夫夫定数Kl,
K2と比較させる。
On the other hand, if the blank area to be detected is completely white, the number of bits of black information appearing in the horizontal and vertical projections H, W
are H=0 and W=0, respectively. However, the blank part is rarely completely white, and in most cases it has dirt or stains as shown in Figure 2a. Note that FIG. 2b shows a case where there is writing to the extent that it can be recognized as character information. As is clear from comparing Figure 2 A and b, there are differences between horizontal and vertical areas when there is dirt or stains to the extent that they should be recognized as blank areas, and cases where there is writing to the extent that they can be recognized as characters. There is a clear difference in the number of bits H and W of black information appearing in the projection. That is, Figure 2a
In the case of FIG. 2b, H=4 and W=4, whereas in the case of FIG. 2b, H=12 and W=9. Therefore, as a criterion for distinguishing them, for example, a constant K,=5 is set for the horizontal projection,
Set constant K2=5 for vertical projection, H<K,, W<K2
If the blank area is determined to be blank when the following conditions are satisfied, the blank area can be detected with sufficient accuracy even if there is some dirt or stain. Therefore, in the practical example, as shown in the flowchart of FIG. 3, constants Kl and K2 are given to the comparison circuits 13 and 14 in advance,
After horizontal and vertical projections are formed by the horizontal projection circuit 11 and the vertical projection circuit 12, the control circuit 17 counts the number of bits H and W of black information in the horizontal and vertical projections, and the count results are sent to the comparison circuits 13 and 14. Given the husband constant Kl,
Have them compare it with K2.

そして、比較回路13,14が夫々H<K1、W<K2
の条件を満足した場合にレベル1111!の信号をアン
ドゲート15に出力するようにし、アンドゲート15で
制御回路17からの制御信号を含めて論理積が成立した
場合に、そのアンドゲート15の出力でブランク検出フ
リツプフロツプ16をセツトするようにしている。以上
の説明で明らかなように本発明によれば、ブランクの検
出を文字情報の読取り開始条件としているので、文字情
報部を走査器で走査する通常の読取り操作によつて読取
り開始位置を正確に検出し6文字情報をその初めから正
確に読取ることができ、しかも座標設定やマーク等の記
入が不用であるので便利であり、扱いが容易なものであ
る。
Then, the comparator circuits 13 and 14 perform H<K1 and W<K2, respectively.
Level 1111 if you meet the conditions! The signal is outputted to the AND gate 15, and when the AND gate 15 establishes a logical product including the control signal from the control circuit 17, the blank detection flip-flop 16 is set by the output of the AND gate 15. ing. As is clear from the above description, according to the present invention, the detection of a blank is the condition for starting reading character information, so the reading start position can be accurately determined by the normal reading operation of scanning the character information part with a scanner. It is possible to detect and read six character information accurately from the beginning, and it is convenient and easy to handle because it does not require setting coordinates or writing marks.

また、ブランク部の検出を水平、垂直射影における黒情
報のビツト数から行うようにしているので、多少の汚れ
、シミがあつても正確にブランク部の検出が行えると共
にブランク部と文字部とを明確に区別して検出すること
ができるものである。
In addition, since blank areas are detected based on the number of bits of black information in horizontal and vertical projections, blank areas can be detected accurately even if there is some dirt or stain, and blank areas and text areas can be accurately detected. It can be clearly distinguished and detected.

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

図は本発明の一実施例を示すものであつて、第1図は全
体構成を示すプロツク線図、第2図A,bはブランク検
出の原理を説明するための略図、第3図はブランク検出
のためのフローチヤートである。 3・・・・・・走査器64・・・・・・量子化回路、7
・・・・・・光電変換素子、9・・・・・・文字検出回
路、10・・・・・・文字識別回路、11・・・・・・
水平射影回路、12・・・・・・垂直射影回路、13,
14・・・−・・比較回路、15・・・・・・アンドゲ
ート.16・・・・・・ブランク検出F/F、17・・
・・・・制御回路。
The figures show one embodiment of the present invention, in which Fig. 1 is a block diagram showing the overall configuration, Fig. 2 A and b are schematic diagrams for explaining the principle of blank detection, and Fig. 3 is a block diagram showing the overall configuration. This is a flowchart for detection. 3...Scanner 64...Quantization circuit, 7
......Photoelectric conversion element, 9...Character detection circuit, 10...Character identification circuit, 11...
Horizontal projection circuit, 12...Vertical projection circuit, 13,
14...--Comparison circuit, 15...AND gate. 16...Blank detection F/F, 17...
...control circuit.

Claims (1)

【特許請求の範囲】[Claims] 1 被読取物を走査する光電変換素子を内蔵した手持式
走査器と、この走査器から得られるアナログ的な読取り
信号を二値化信号に量子化する量子化回路と、この量子
化回路から得られる1画面分の二値化信号から文字検出
を行う文字検出回路と、この文字検出回路で文字検出を
行つた前記二値化信号から文字の識別を行う文字識別回
路と、前記文字検出回路で文字検出を行う前記二値化信
号から水平方向射影を作成する水平射影回路及び垂直方
向射影を作成する垂直射影回路と、前記水平射影回路で
作成した水平方向射影に含まれる黒情報のビット数Hと
予め設定した定数K_1とを比較する第1の比較回路と
、前記垂直射影回路で作成した垂直方向射影に含まれる
黒情報のビット数Wと予め設定した定数K_2とを比較
する第2の比較回路と、前記第1の比較回路の比較結果
がH<K_1で、前記第2の比較回路の比較結果がW<
K_2である場合にセットするブランク検出フリップフ
ロップと、このブランク検出フリップフロップのセット
出力に付勢されて前記文字識別回路の文字識別動作を開
始させる制御回路とを具備してなることを特徴とする光
学的文字読取装置。
1 A hand-held scanner with a built-in photoelectric conversion element that scans the object to be read, a quantization circuit that quantizes the analog read signal obtained from this scanner into a binary signal, and a a character detection circuit that detects characters from a binary signal for one screen; a character identification circuit that identifies characters from the binary signal detected by the character detection circuit; A horizontal projection circuit that creates a horizontal projection from the binary signal that performs character detection, a vertical projection circuit that creates a vertical projection, and the number of bits H of black information included in the horizontal projection created by the horizontal projection circuit. and a preset constant K_1, and a second comparison circuit that compares the number of bits W of black information included in the vertical projection created by the vertical projection circuit with a preset constant K_2. The comparison result between the circuit and the first comparison circuit is H<K_1, and the comparison result of the second comparison circuit is W<
K_2, a blank detection flip-flop that is set, and a control circuit that is energized by the set output of the blank detection flip-flop and starts the character discrimination operation of the character discrimination circuit. Optical character reader.
JP54147982A 1979-11-15 1979-11-15 optical character reader Expired JPS5926075B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP54147982A JPS5926075B2 (en) 1979-11-15 1979-11-15 optical character reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP54147982A JPS5926075B2 (en) 1979-11-15 1979-11-15 optical character reader

Publications (2)

Publication Number Publication Date
JPS5671169A JPS5671169A (en) 1981-06-13
JPS5926075B2 true JPS5926075B2 (en) 1984-06-23

Family

ID=15442487

Family Applications (1)

Application Number Title Priority Date Filing Date
JP54147982A Expired JPS5926075B2 (en) 1979-11-15 1979-11-15 optical character reader

Country Status (1)

Country Link
JP (1) JPS5926075B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5161736A (en) * 1974-11-27 1976-05-28 Tokyo Keiki Kk Mojininshikihoho
JPS51104226A (en) * 1975-03-12 1976-09-14 Tokyo Keiki Kk Mojininshikihoho

Also Published As

Publication number Publication date
JPS5671169A (en) 1981-06-13

Similar Documents

Publication Publication Date Title
EP0125877B1 (en) Information input apparatus
JP2007081458A (en) Image processing apparatus and control method of image processing apparatus
US20100165417A1 (en) Image processing method, image processing apparatus, and computer-readable storage medium
US8422785B2 (en) Image processing apparatus, image processing method, and program
JPS5926075B2 (en) optical character reader
JP2547621B2 (en) Image region detection method and apparatus for image processing apparatus
JPH06131495A (en) Image information extraction system
EP0505970B1 (en) White level detection circuit for an optical image reader
JPH06152875A (en) Still original reader
JP2506142B2 (en) Character reader
JPS6343037B2 (en)
JPH0338782A (en) Detector for density of original
JPS62219766A (en) Picture processor
JPH04331563A (en) Image reader
JPS59180783A (en) Optical character reader
JPH0750913B2 (en) Image signal processing method
JP2570184B2 (en) Optical character reader
JPH02103691A (en) Picture reading device
JPH05110780A (en) Original recognition device
JP2573665B2 (en) Optical character reader
JPS60179888A (en) Optical reader
JP2003274088A (en) Image reader
JPH06176193A (en) Optical character reader
JPS627266A (en) Picture processor
JPS63116282A (en) Ocr with image input