JPH0731716B2 - Optical character reader - Google Patents
Optical character readerInfo
- Publication number
- JPH0731716B2 JPH0731716B2 JP60212261A JP21226185A JPH0731716B2 JP H0731716 B2 JPH0731716 B2 JP H0731716B2 JP 60212261 A JP60212261 A JP 60212261A JP 21226185 A JP21226185 A JP 21226185A JP H0731716 B2 JPH0731716 B2 JP H0731716B2
- Authority
- JP
- Japan
- Prior art keywords
- character
- circuit
- small area
- image data
- data
- 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 - Lifetime
Links
- 238000012015 optical character recognition Methods 0.000 title claims description 6
- 230000003287 optical effect Effects 0.000 claims description 6
- 238000004804 winding Methods 0.000 claims 1
- 238000000605 extraction Methods 0.000 description 13
- 238000001514 detection method Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 8
- 238000006243 chemical reaction Methods 0.000 description 4
- 238000007796 conventional method Methods 0.000 description 2
- 239000000284 extract Substances 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 238000000034 method Methods 0.000 description 1
Landscapes
- Character Input (AREA)
Description
【発明の詳細な説明】 〈産業上の利用分野〉 本発明は、手持ち式のスキャナで用紙上を走査すること
により文字を読取る光学的文字読取装置に関するもので
ある。TECHNICAL FIELD The present invention relates to an optical character reading device for reading characters by scanning a sheet with a handheld scanner.
<従来の技術及びその問題点> スーパーマーケットや百貨店等で、単品ごとの売上情報
を収集して在庫管理を行なうPOS(Point of Sales)シ
ステムが普及している。このPOSシステムでは手持ち式
の光学的文字読取装置がよく使用されている。<Prior art and its problems> In supermarkets and department stores, POS (Point of Sales) systems that collect sales information for individual items and manage inventory are in widespread use. Handheld optical character readers are often used in this POS system.
第5図は従来の光学的文字読取装置の一例のブロック構
成図であり、スキャナ1を手2に持ち、文字の記載され
た用紙3上を水平方向へ移動しながら文字を識別する文
字読取装置を表わしている。ランプ4で用紙3を照射
し、用紙3上の文字パターンをレンズ系5を介して、光
電変換素子を面状(二次元)に配列したイメージセンサ
6上に結像させる。用紙3の背景領域からの反射光と文
字領域からの反射光はそれぞれ異なるから、それらに対
応した各光電変換素子で得られた信号は、制御および二
値化回路7に加えられ、レベル判定により白と黒の二値
化の判定が行われる。例えば、用紙3の背景領域すなわ
ち白に対応する信号を、“0"、文字領域すなわち黒に対
応する信号を“1"として二値化の判定結果が出力され
る。制御及び二値化回路7で二値化された信号“0",
“1"はバッファレジスタ8に格納される。FIG. 5 is a block configuration diagram of an example of a conventional optical character reading device, which holds a scanner 1 in a hand 2 and identifies a character while moving horizontally on a paper 3 on which a character is written. Is represented. The paper 3 is illuminated by the lamp 4, and the character pattern on the paper 3 is imaged through the lens system 5 on the image sensor 6 in which the photoelectric conversion elements are arranged in a planar shape (two-dimensional). Since the reflected light from the background area of the paper 3 and the reflected light from the character area are different from each other, the signals obtained by the photoelectric conversion elements corresponding to them are added to the control and binarization circuit 7, and the level judgment is performed. The determination of white and black binarization is performed. For example, the binarization determination result is output with the signal corresponding to the background area of the paper 3, that is, white being "0", and the signal corresponding to the character area, that is, black being "1". The signal “0”, which is binarized by the control and binarization circuit 7,
“1” is stored in the buffer register 8.
ここにおいて、文字読取の方式を説明する。イメージセ
ンサ6の光電変換素子をセルと称し、認識に必要な分解
能までデータを圧縮した場合の領域を単位領域と称して
説明する。用紙3上の文字パターンがイメージセンサ6
上に結像された一例を第6図とすると、第6図は各セル
と制御および二値化回路7から出力される二値化信号と
の対応の一例であり、m×n個のセルで構成されるパタ
ーンを画面と称す。制御および二値化回路7は最上行L1
のB1列から順次B2,B3,…Bn列に対応する信号を出力
し、次いで、次の行L2のB1,B2,B3,…Bn列、その後L3
行、最後にLm行のB1,…Bn列に対応する信号を出力する
ことにより、1画面の走査を終える。第5図におけるバ
ッファレジスタ8の後段の垂直切出し回路9は垂直方向
の文字エリアを検出する回路であり、各行毎にB1列から
Bn列までに“黒”セルが存在するか否かを調べ、“黒”
セルの存在した行が、連続して或る範囲(文字の大きさ
から決定される)の数あれば垂直方向の文字エリアとす
る。第6図では、Lj行からLj+N-1行までが連続して
“黒”の存在する行であり、この範囲を示す垂直文字エ
リア信号VAを水平切出し回路16及び識別回路13に出力す
る。水平切出し回路16は文字が水平方向の所定の位置に
達したか否かを判断する回路であり、垂直方向の文字エ
リア(Lj行からLj+N-1行)内で、例えばB1列が全部
“白”且つB2列の一部が“黒”のとき、文字が所定位置
に達したことを示す水平切出し信号VHを識別回路13に出
力する。識別回路13は、水平位置が正しいと判定された
ときに、垂直文字エリア(例えばLj行からLj+N-1行)を
対象として文字を識別する回路であり、行特徴抽出回路
10,部分特徴抽出回路11及び識別処理回路12を有してい
る。行特徴抽出回路10は検出した文字エリア内で各行の
特徴Ciを抽出区分する。部分特徴抽出回路11は、行特徴
抽出回路10から送られるCiの複数の信号からされに特徴
区分を行ないDiを出力する。識別処理回路12では部分特
徴抽出回路11から送られる信号Diの順序から文字を識別
し、結果Doutを出力する。されに詳言すると、特徴抽出
回路10,11は各行で得られる“黒”つまり“1"の連続す
る長さや連続の発生数によって当該行の特徴を分類す
る。例えば第6図の文字パターンでは、Lj行と という如く分類することになる。次に上方の行から順に
分類した特徴を組合わせて識別を行う。例えばLj行と とし、この組合わせで文字の識別範囲を狭め、次にLj+3
行の特徴、以下 まで順次特徴を組合わせて範囲を狭めれば最終的に“2"
なる数字と識別できる。Here, a method of reading characters will be described. The photoelectric conversion element of the image sensor 6 will be referred to as a cell, and an area in which data is compressed to a resolution necessary for recognition will be referred to as a unit area. The character pattern on the paper 3 is the image sensor 6
If an example of the image formed above is shown in FIG. 6, FIG. 6 shows an example of the correspondence between each cell and the binarized signal output from the control and binarization circuit 7. The pattern composed of is called a screen. The control and binarization circuit 7 is the top row L 1
Of B 1 sequence B 2 from row, B 3, ... B n outputs a signal corresponding to the column, then, B 1 of the next line L 2, B 2, B 3 , ... B n columns, then L 3
The scanning of one screen is completed by outputting the signals corresponding to the B 1 , ... B n columns of the row and finally the L m row. Subsequent vertical extracting circuit 9 of the buffer register 8 in FIG. 5 is a circuit for detecting a character area in the vertical direction, from the first column B for each row
Check whether or not there is a "black" cell by the Bn column, and check for "black"
If the number of rows in which cells exist is continuously in a certain range (determined from the size of the character), it is regarded as a vertical character area. In FIG. 6, lines L j to L j + N-1 are lines in which “black” exists continuously, and the vertical character area signal VA indicating this range is supplied to the horizontal cutout circuit 16 and the discrimination circuit 13. Output. The horizontal cutout circuit 16 is a circuit for determining whether or not a character has reached a predetermined position in the horizontal direction. For example, in the vertical character area (L j line to L j + N-1 line), B 1 When all the columns are “white” and part of the B 2 column is “black”, the horizontal cutout signal VH indicating that the character has reached the predetermined position is output to the discrimination circuit 13. Discrimination circuit 13, when it is determined that the horizontal position is correct, a circuit for identifying the character vertical character area (e.g., L j + N-1 line from L j line) as a target, a row feature extraction circuit
It has a partial feature extraction circuit 11 and an identification processing circuit 12. The line feature extraction circuit 10 extracts and classifies the features C i of each line in the detected character area. The partial feature extraction circuit 11 performs feature classification based on a plurality of signals of C i sent from the row feature extraction circuit 10 and outputs D i . The discrimination processing circuit 12 discriminates characters from the order of the signals D i sent from the partial feature extraction circuit 11, and outputs the result D out . More specifically, the feature extraction circuits 10 and 11 classify the features of the row according to the length of consecutive "black", that is, "1" and the number of consecutive occurrences obtained in each row. For example, in the character pattern of FIG. 6, and L j row It will be classified as follows. Next, the features classified in order from the upper row are combined and identified. For example L j , This combination narrows the character identification range, and then L j + 3
Line characteristics, below If the features are sequentially combined up to and the range is narrowed down to "2"
Can be identified as
このように、スキャナ1を手2で横に移動させて走査す
ることにより、一文字ずつ読取っている。In this way, the scanner 1 is laterally moved by the hand 2 and scanned, whereby the characters are read one by one.
ところで第5図に示す上記従来技術では、スキャナ1を
正確に水平方向に移動させることが難しいため正しく読
取ることが困難であり、更に、手2で操作するため操作
性が悪いという欠点があった。By the way, in the above-mentioned conventional technique shown in FIG. 5, it is difficult to correctly move the scanner 1 in the horizontal direction, so that it is difficult to read it correctly, and since it is operated by the hand 2, the operability is poor. .
一方、操作性を良くするため、読み取るべき複数の文字
・記号を視野内に納めることができるよう広面積のイメ
ージセンサを用い、スキャナを動かすことなく文字・記
号の上に置くだけで読み取りを行なう光学的文字読取装
置も開発された。この種の従来の光学的文字読取装置を
第7図に示す。On the other hand, in order to improve the operability, a wide area image sensor is used so that multiple characters / symbols to be read can be placed within the field of view, and reading is performed simply by placing the scanner on the characters / symbols without moving. An optical character reader was also developed. FIG. 7 shows a conventional optical character reader of this type.
第7図において21はスキャナであり、手22で、用紙23に
置くだけで用紙23に記載された文字、記号等を読取るも
のである。用紙23はたとえば、POSシテムでの上方が記
載された値札などである。24は光源であり、25はレンズ
系、26はイメージセンサであり、用紙23の情報記載つま
り、値札とほぼ同じ大きさの視野となっている。27は制
御および二値化回路であり、センサ26の出力信号である
アナログ信号を二値化した信号に変換し、メモリ28へ送
る。メモリ28にはセンサ26の視野のほぼ全体の二値化デ
ータを格納する。In FIG. 7, reference numeral 21 is a scanner, which is used to read characters, symbols and the like written on the paper 23 by only placing it on the paper 23 with the hand 22. The paper 23 is, for example, a price tag in which the upper side in the POS system is described. Reference numeral 24 is a light source, 25 is a lens system, and 26 is an image sensor, and has a field of view of information described on the paper 23, that is, almost the same size as the price tag. 27 is a control and binarization circuit, which converts the analog signal which is the output signal of the sensor 26 into a binarized signal, and sends it to the memory 28. The memory 28 stores binarized data of almost the entire field of view of the sensor 26.
第8図にイメージセンサ26の二値化データの説明を示し
ている。p×q画素のイメージセンサ26であり、用紙23
の情報記載部分の全体の視野である。第8図では、各画
素を区別する線および画像の一部を省略している。FIG. 8 shows an explanation of the binarized data of the image sensor 26. It is an image sensor 26 of p × q pixels, and paper 23
Is the entire field of view of the information description part. In FIG. 8, lines for distinguishing each pixel and part of the image are omitted.
文字、記号は識別回路30で識別されるもので、識別回路
30は一文字ずつ識別するものであるのでメモリ28の中か
ら一文字分のデータを取出す。制御回路29はメモリ28か
ら識別回路30の処理能力であるm×n画素相当分のデー
タを取出し、バッファレジスタ8へ格納するものであ
る。Characters and symbols are identified by the identification circuit 30.
Since 30 is for identifying one character at a time, one character's worth of data is retrieved from the memory 28. The control circuit 29 takes out data corresponding to m × n pixels, which is the processing capacity of the identification circuit 30, from the memory 28 and stores it in the buffer register 8.
第8図でまずB1からBn列のL1行からLm行までのデータを
メモリ28から取出し、バッファレジスタ8へ転送する。
バッファレジスタ8以降の文字の行の処理は従来と同じ
である。次に、B1+1からBn+1列のL1行からLm行まで
のデータつまり、1画素横へ移動したデータをメモリ28
からバッファレジスタ8へ転送する。同様にB1+2から
Bn+2列のL1行からLm行までを転送し、これを繰返えし
て、L1行からLm行のBq行までのデータを転送する。In FIG. 8, first, the data from the row L 1 to the row L m of the columns B 1 to B n are fetched from the memory 28 and transferred to the buffer register 8.
The processing of the character lines after the buffer register 8 is the same as the conventional one. Next, the data from the L 1 row to the L m row of the B 1 +1 to B n +1 columns, that is, the data moved to one pixel side is stored in the memory 28.
To the buffer register 8. Similarly from B 1 +2
Transfer the to L m rows from L 1 row of B n +2 columns, which was Kukaee, transfers the data from the L 1 row to B q rows L m rows.
このデータ転送により、従来のスキャナ1を手2で移動
させることと同じ走査となる。L1行からLm行までのBq列
までが終了すると、今度は行を下へずらす。たとえば、
L1からLm行までが文字の高さの2倍程度の視野であれ
ば、約m/2画素ずらし、つまり、Lm/2行からL3m/2行まで
で、まずB1列からBn列までのデータを転送し、以後同様
な操作を繰返す。ところで第7図に示す従来技術では、
全体の視野の中から一文字分相当のデータを取出して識
別処理し、次に一画素ずつ横へ移動させて一文字分のデ
ータを取出して識別処理している。このため画素の同じ
ところを何度も識別処理することになり、全視野を識別
するのに長時間を要するという欠点があった。By this data transfer, the same scanning as moving the conventional scanner 1 with the hand 2 is performed. When the L 1 row to B q string up L m rows is finished, turn shifts the line down. For example,
If the field of view from line L 1 to line L m is about twice the height of the character, it is shifted by about m / 2 pixels, that is, from line L m / 2 to line L 3 m / 2 , starting from column B 1 Transfer data up to column B n, and repeat the same operation. By the way, in the prior art shown in FIG.
Data corresponding to one character is extracted from the entire field of view for identification processing, and then the data is moved laterally pixel by pixel to extract data for one character for identification processing. For this reason, the same portion of the pixel is repeatedly identified, and it takes a long time to identify the entire field of view.
本発明は、上記従来技術に鑑み、スキャナを手で用紙上
に置くだけで、その視野が用紙上に記載された文字・記
号等のほとんどを包含するもので、操作性がよく高速処
理が可能な手持ち式の光学的文字読取装置を提供するこ
とを目的とする。In view of the above-mentioned conventional technique, the present invention includes most of the characters, symbols, etc. written on the paper only by placing the scanner on the paper by hand, and the operability is good and high-speed processing is possible. An object of the present invention is to provide a handheld optical character reader.
〈問題点を解決するための手段〉 問題点を解決するための、本願の光学的文字読取装置は
次に述べる特徴をもつ。すなわち、複数の文字または記
号の視野を有するイメージセンサと、前記イメージセン
サの出力信号をディジタル化した画像データとして格納
する手段と、格納した前記画像データから文字または記
号の一字分が完全に入る小領域の画像データを取出す手
段と、取出した前記小領域の画像データから一字分の文
字または記号を認識する光学的文字読取装置において、
前記小領域の画像データの縦方向あるいは横方向に画素
の論理和をとって前記小領域における一字ごとの文字ま
たは記号の始端を検出する手段と、前記小領域中の所定
の位置から前記検出した始端までの距離を検出する手段
と、一字ずつ、前記検出した距離だけ一括して前記小領
域の位置を移動する手段を備えて、文字または記号の切
出しを一字ずつ順次行なう、光学的文字読取装置であ
る。<Means for Solving Problems> The optical character reading device of the present application for solving the problems has the following features. That is, an image sensor having a field of view of a plurality of characters or symbols, a means for storing the output signal of the image sensor as digitized image data, and one character or symbol is completely stored in the stored image data. In the optical character reading device for recognizing a character or a symbol for one character from the image data of the extracted small area, means for extracting the image data of the small area,
A means for detecting the starting end of a character or a symbol for each character in the small area by ORing the pixels in the vertical or horizontal direction of the image data of the small area; and the detection from a predetermined position in the small area. The means for detecting the distance to the starting end and the means for collectively moving the position of the small area by the detected distance one character at a time are used to sequentially cut out characters or symbols one by one. It is a character reader.
〈実施例〉 本発明の実施例を第1図に示す。21はスキャナであり、
手22で、用紙23に置くだけで用紙23に記載された文字、
記号等を読取るものである。用紙23はたとえば、POSシ
ステムでの情報が記載された値札などである。24は光源
であり、25はレンズ系、26はイメージセンサであり、用
紙23の情報記載面、つまり、値札とほぼ同じ大きさの視
野となっている。27は制御および二値化回路であり、イ
メージセンサ26の出力信号であるアナログ信号を二値化
した信号に変換し、メモリ28へ送る。メモリ28にはイメ
ージセンサ26の視野のほぼ全体の二値化データを格納す
る。<Example> An example of the present invention is shown in FIG. 21 is a scanner,
Just put it on the paper 23 with your hand 22, and the letters written on the paper 23,
It is for reading symbols and the like. The paper 23 is, for example, a price tag in which information in the POS system is described. Reference numeral 24 is a light source, 25 is a lens system, and 26 is an image sensor, which has a field of view substantially the same size as the information recording surface of the paper 23, that is, the price tag. Reference numeral 27 denotes a control and binarization circuit, which converts an analog signal which is an output signal of the image sensor 26 into a binarized signal and sends it to the memory 28. The memory 28 stores binarized data of almost the entire field of view of the image sensor 26.
文字、記号は識別回路30で識別されるもので、識別回路
30は一文字ずつ識別するものであるのでメモリ28の中か
ら一文字分の小領域画像データを取出す。制御回路31は
メモリ28から識別回路30の処理能力であるm×n画素相
当分の小領域画像データを取出し、バッファレジスタ8
へ格納する小領域取出し手段を備えている。Characters and symbols are identified by the identification circuit 30.
Since 30 is used to identify each character, small area image data for one character is taken out from the memory 28. The control circuit 31 takes out the small area image data corresponding to m × n pixels which is the processing capacity of the identification circuit 30 from the memory 28, and the buffer register 8
It is provided with a small area extracting means for storing in.
また、垂直切出し回路9は垂直方向の文字エリアを検出
する回路、水平切出し回路16は文字等が水平方向の所定
位置に達したか否かを判断する回路、更に行特徴抽出回
路10は検出した文字エリア内で各行の特徴Ciを抽出区分
する回路、部分特徴抽出回路11は特徴Ciから更に特徴区
分を行ないDiを出力する回路、識別処理回路12は信号Di
の順序から文字を識別し結果Doutを出力する回路であ
る。Further, the vertical cutout circuit 9 detects a vertical character area, the horizontal cutout circuit 16 determines whether a character or the like has reached a predetermined horizontal position, and the line feature extraction circuit 10 detects it. circuitry for extracting distinguishing features C i of each line in a character area, partial feature extraction circuit 11 circuit which outputs a D i performs further characterized partitioned from the characteristic C i, identification processing circuit 12 is the signal D i
It is a circuit that identifies characters from the order of and outputs the result D out .
さて、第1図において垂直切出回路9、水平切出回路1
6、及び行特徴抽出回路10と同様に距離検出回路32に
も、バッファレジスタ8からの小領域画像データが入力
されるようになっている。この距離検出回路32は一文字
分が完全に入る小領域のm×nの画素データにてこの小
領域の所定の位置から同領域内に入る一字ごとの文字ま
たは記号の始端までの画素数を検出し、次の一文字分の
データであるm×n画素データまでの画素数SLNを出力
するものである。これを切出画面を用いて第2図により
説明するに、第2図(a)の如く最初、一文字または1
記号分が完全に入るおおきさのm×n画素の小領域画像
データを取出したとき、識別回路30で文字の水平方向切
出しで、小領域の所定の位置Aから文字の始端までの距
離と等価な画素数l1を検出し、信号SLNとしてl1を制御
回路31に出力する。この場合、距離検出回路32には垂直
切出回路9の出力VAが入力されるので、この距離検出回
路32への画素データでは垂直切出し後の文字が上下略中
央に存在することになる。Now, in FIG. 1, a vertical cutting circuit 9 and a horizontal cutting circuit 1
The small area image data from the buffer register 8 is input to the distance detection circuit 32 as well as 6 and the row feature extraction circuit 10. The distance detection circuit 32 uses the m × n pixel data of a small area in which one character is completely contained, and determines the number of pixels from a predetermined position of this small area to the start end of each character or symbol in the same area. The number of pixels SLN is detected and the number of pixels SLN up to m × n pixel data, which is the data for the next character, is output. This will be explained with reference to FIG. 2 using the cut-out screen. First, as shown in FIG.
When the image data of a small area of m × n pixels, in which the symbol portion is completely contained, is taken out, the identification circuit 30 cuts out the character in the horizontal direction and is equivalent to the distance from the predetermined position A of the small area to the start end of the character. The number of pixels l 1 is detected and l 1 is output to the control circuit 31 as a signal SLN. In this case, since the output VA of the vertical cutout circuit 9 is input to the distance detection circuit 32, in the pixel data to the distance detection circuit 32, the character after vertical cutout exists in the upper and lower approximately center.
距離検出回路32の出力SLNは、制御回路31に送出され、
この制御回路31ではSLNに基づき画素数l1だけ画面をず
らした後、一文字分のm×n画素データを取出してバッ
ファレジスタ8に格納する。この状態が第2図(b)で
ある。The output SLN of the distance detection circuit 32 is sent to the control circuit 31,
The control circuit 31 shifts the screen by the number of pixels l 1 based on SLN, then extracts m × n pixel data for one character and stores it in the buffer register 8. This state is shown in FIG. 2 (b).
ついで、第2図(b)にて前記と同様に小領域の所定の
位置Aから隣り合う文字までの画素数l2を検出し(結果
として2つの文字間の距離を検出している。)、信号SL
Nとしてl2を距離検出回路32から制御回路31に出力する
と、制御回路では第2図(c)に示すように画面をずら
して次の一文字分の小領域画像データを取出すことにな
る。こうして、隣りの文字までの画素数を検出してその
画素分画面を一括してずらして一文字分のデータの取出
しを早めている。すなわち制御回路31は小領域の位置を
移動する手段としても働く。Then, in FIG. 2 (b), similarly to the above, the number of pixels l 2 from the predetermined position A of the small area to the adjacent character is detected (as a result, the distance between the two characters is detected). , Signal SL
When l 2 as N is output from the distance detection circuit 32 to the control circuit 31, the control circuit shifts the screen as shown in FIG. In this way, the number of pixels up to the adjacent character is detected, and the screens for that pixel are collectively shifted to accelerate the extraction of data for one character. That is, the control circuit 31 also functions as a means for moving the position of the small area.
第3図は距離検出回路32の1構成例を示すもので、OR回
路33、シフトレジスタ34、制御用のROM35からなること
を示す。画面における各行ごとに各列の二値化データを
順次OR回路33に入力し、このOR回路33では画面の横1行
分n列に対応するn段のシフトレジスタ34との出力との
論理和をとり再度上記シフトレジスタ34に格納するとい
うもので、全行における各列ごとの縦方向の論理和をと
るものである。すなわち、最初に文字となる画素がある
列を見出すものである。論理和の結果は制御用のROM35
に入力され、このROM35では画素数に応じた制御信号を
作成して読出すようになっている。またROM35では文字
より小さいもの等のノイズを検出して除去する機能もあ
り、プログラムによりノイズか否かの判定も行なってい
る。ノイズの場合はSLNが出力しないようになってい
る。FIG. 3 shows an example of the configuration of the distance detection circuit 32, which is composed of an OR circuit 33, a shift register 34, and a control ROM 35. Binary data of each column is sequentially input to the OR circuit 33 for each row on the screen, and in this OR circuit 33, the OR with the output of the shift register 34 of n stages corresponding to the horizontal row and n columns of the screen. This is taken again and stored in the shift register 34 again, and the logical sum in the vertical direction is taken for each column in all rows. That is, the column in which the pixel that becomes the character is first found is found. The result of OR is ROM35 for control
The control signal corresponding to the number of pixels is created and read in the ROM 35. The ROM 35 also has a function of detecting and removing noises such as those smaller than the characters, and the program also determines whether or not there is noise. In case of noise, SLN does not output.
こうして、画面の横方向に文字の始まりを画素数にて検
出できることにより、その位置までは画面を一括してず
らすことができる。第2図の説明では画素を横にずらす
場合を述べたのであるが、第4図の如く縦方向にずらす
ようにしてもよく、第4図(a)にて縦の画素数l3を検
出し、第4図(b)の如く画素数をずらしてデータを取
出すこともできる。また、第2図の説明では画素を左か
ら右へ順に見た場合を例にして説明したが、右から左に
見ていく場合であっても前記の説明を左右反転させれば
全く同様にできることは明らかである。In this way, since the start of a character can be detected in the horizontal direction of the screen by the number of pixels, the screen can be shifted to that position all together. In the description of FIG. 2, the case of horizontally shifting the pixels has been described. However, the pixels may be vertically shifted as shown in FIG. 4, and the vertical pixel number l 3 is detected in FIG. 4 (a). However, it is also possible to take out the data by shifting the number of pixels as shown in FIG. In the description of FIG. 2, the case where the pixels are viewed from the left to the right has been described as an example. However, even when the pixels are viewed from the right to the left, if the above description is reversed left and right, it is exactly the same. It is clear that you can do it.
〈発明の効果〉 本発明は値札などの用紙の情報記載のほぼ全部の視野を
もつセンサを有するスキャナを使用し、スキャナを用紙
に置くだけで、用紙へ記載の情報である文字等を読取る
ので、非常に操作性の良い光学読取装置を実現できる。
しかも、一文字ずつ識別処理する際に、文字の始端を検
出して、文字領域のデータを処理することにより、高速
処理が可能となる。<Effects of the Invention> The present invention uses a scanner having a sensor having almost the entire field of view for describing information on a sheet such as a price tag, and by simply placing the scanner on the sheet, the characters or the like described on the sheet can be read. It is possible to realize an optical reading device with extremely good operability.
Moreover, when the character-by-character identification processing is performed, the high-speed processing can be performed by detecting the start edge of the character and processing the data in the character area.
第1図ないし第4図は本発明の実施例を示し、第1図は
構成図、第2図(a)(b)(c)は画面をずらす状態
を示す状態図、第3図は距離検出回路の一例の構成図、
第4図(a)(b)は画面をずらす状態を示す状態図、
第5図ないし第8図は従来例で、第5図は一例の構成
図、第6図は二値化データの説明図、第7図は他の例の
構成図、第8図は二値化データの説明図である。 図中、1…スキャナ、2…手、3…用紙、4…ランプ、
5…レンズ系、6…イメージセンサ、7…制御および二
値化回路、8…バッファレジスタ、9…垂直切出し回
路、10…行特徴抽出回路、11…部分特徴抽出回路、12…
識別回路、13…識別回路、16…水平切出し回路、21…ス
キャナ、22…手、23…用紙、24…光源、25…レンズ系、
26…イメージセンサ、27…制御および二値化回路、28…
メモリ、29…制御回路、30…識別回路、31…制御回路、
32…距離検出回路。1 to 4 show an embodiment of the present invention, FIG. 1 is a configuration diagram, FIGS. 2 (a), (b) and (c) are state diagrams showing a state where the screen is shifted, and FIG. 3 is a distance. Configuration diagram of an example of a detection circuit,
4 (a) and (b) are state diagrams showing a state where the screen is shifted,
FIGS. 5 to 8 are conventional examples, FIG. 5 is a configuration diagram of an example, FIG. 6 is an explanatory diagram of binarized data, FIG. 7 is a configuration diagram of another example, and FIG. It is an explanatory view of conversion data. In the figure, 1 ... Scanner, 2 ... Hand, 3 ... Paper, 4 ... Lamp,
5 ... Lens system, 6 ... Image sensor, 7 ... Control and binarization circuit, 8 ... Buffer register, 9 ... Vertical cutout circuit, 10 ... Row feature extraction circuit, 11 ... Partial feature extraction circuit, 12 ...
Identification circuit, 13 ... Identification circuit, 16 ... Horizontal cutout circuit, 21 ... Scanner, 22 ... Hand, 23 ... Paper, 24 ... Light source, 25 ... Lens system,
26 ... Image sensor, 27 ... Control and binarization circuit, 28 ...
Memory, 29 ... Control circuit, 30 ... Identification circuit, 31 ... Control circuit,
32 ... Distance detection circuit.
Claims (1)
ージセンサと、前記イメージセンサの出力信号をディジ
タル化した画像データとして格納する手段と、格納した
前記画像データから文字または記号の一字分が完全に入
る小領域の画像データを取出す手段と、取出した前記小
領域の画像データから一字分の文字または記号を認識す
る光学的文字読取装置において、前記小領域の画像デー
タの縦方向あるいは横方向に画素の論理和をとって前記
小領域における一字ごとの文字または記号の始端を検出
する手段と、前記小領域中の所定の位置から前記検出し
た始端までの距離を検出する手段と、一字ずつ、前記検
出した距離だけ一括して前記小領域の位置を移動する手
段を備えて、文字または記号の切出しを一字ずつ順次行
なう、光学的文字読取装置。1. An image sensor having a field of view of a plurality of characters or symbols, a means for storing output signals of the image sensor as digitized image data, and a character or a symbol for one character from the stored image data. In the optical character reader for recognizing a character or a symbol of one character from the extracted image data of the small area, a means for extracting the image data of the small area that completely fills in the vertical or horizontal direction of the image data of the small area. Means for detecting the starting end of each character or symbol in the small area by ORing the pixels in the direction, and means for detecting the distance from the predetermined position in the small area to the detected starting end, An optical character in which a character or a symbol is sequentially cut out character by character by providing a means for moving the position of the small area collectively for each character by the detected distance. Winding device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60212261A JPH0731716B2 (en) | 1985-09-27 | 1985-09-27 | Optical character reader |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60212261A JPH0731716B2 (en) | 1985-09-27 | 1985-09-27 | Optical character reader |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6273390A JPS6273390A (en) | 1987-04-04 |
| JPH0731716B2 true JPH0731716B2 (en) | 1995-04-10 |
Family
ID=16619647
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP60212261A Expired - Lifetime JPH0731716B2 (en) | 1985-09-27 | 1985-09-27 | Optical character reader |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0731716B2 (en) |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5739476A (en) * | 1980-08-21 | 1982-03-04 | Toshiba Corp | Character segment system |
-
1985
- 1985-09-27 JP JP60212261A patent/JPH0731716B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS6273390A (en) | 1987-04-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2553608B2 (en) | Optical character reader | |
| US4817185A (en) | Optical character reader | |
| US4797940A (en) | Optical character reader | |
| EP0144006B1 (en) | An improved method of character recognitionand apparatus therefor | |
| JP3268552B2 (en) | Area extraction method, destination area extraction method, destination area extraction apparatus, and image processing apparatus | |
| JPS5841542B2 (en) | optical character reader | |
| JPH0731716B2 (en) | Optical character reader | |
| JP2722434B2 (en) | Optical character reader | |
| JPH0469788A (en) | Optical information reader | |
| JP2881762B2 (en) | Optical character reading device | |
| JPH0799530B2 (en) | Optical character reader | |
| JP2573665B2 (en) | Optical character reader | |
| JPH0760451B2 (en) | Optical character reader | |
| JPH0469785A (en) | Optical information reader | |
| JP2514663B2 (en) | Optical character reader | |
| JP2710280B2 (en) | Optical character reader | |
| JPH06111060A (en) | Optical character reader | |
| JPH0679349B2 (en) | Optical reader | |
| JP2514660B2 (en) | Optical character reader | |
| JPS6319090A (en) | Optical character reader | |
| JPH0799531B2 (en) | Optical character reader | |
| JP2669434B2 (en) | Optical character reader | |
| JP2925300B2 (en) | Optical character reader | |
| JP2567852B2 (en) | Optical character reader | |
| JPS63120388A (en) | Optical character reader |