JPH0469788A - Optical information reader - Google Patents

Optical information reader

Info

Publication number
JPH0469788A
JPH0469788A JP2183694A JP18369490A JPH0469788A JP H0469788 A JPH0469788 A JP H0469788A JP 2183694 A JP2183694 A JP 2183694A JP 18369490 A JP18369490 A JP 18369490A JP H0469788 A JPH0469788 A JP H0469788A
Authority
JP
Japan
Prior art keywords
barcode
image sensor
character
dimensional image
bar
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2183694A
Other languages
Japanese (ja)
Inventor
Masahiro Kurakake
倉掛 雅弘
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.)
Sumitomo Electric Industries Ltd
Original Assignee
Sumitomo Electric Industries 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 Sumitomo Electric Industries Ltd filed Critical Sumitomo Electric Industries Ltd
Priority to JP2183694A priority Critical patent/JPH0469788A/en
Publication of JPH0469788A publication Critical patent/JPH0469788A/en
Pending legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)

Abstract

PURPOSE:To read both of a character and a bar-code even if a two-dimensional image sensor of low resolution is used by providing a selecting means for executing character discrimination, or bar-code discrimination based on an image of a bar-code after magnification adjustment, in accordance with the result of character/bar-code decision. CONSTITUTION:In accordance with the result of decision by a character/bar-code deciding circuit 81, a signal is sent to only one of a character memory 82 or a line selecting circuit 85. A margin detecting circuit 88 sends a zoom-up instruction to a zoom mechanism 5a when a detected margin is wider than a prescribed value, and sends a turn-on signal to an AND circuit 80b when the margin detected by the margin detecting circuit 88 enters into the prescribed value. In this case, the image formation of a bar-code is adjusted so as to become full on a screen of an image sensor 6 by the zoom mechanism 5a. In such a way, even if the resolution of the image sensor 6 is comparatively bad, the bar-code can be read with sufficient accuracy.

Description

【発明の詳細な説明】 〈産業上の利用分野〉 本発明は光学的情報読取装置に関し、さらに詳細にいえ
ば、手持ち式のスキャナを読取り面に当てることにより
文字、およびバーコードを読取ることができる光学的情
報読取装置に関する。
[Detailed Description of the Invention] <Industrial Application Field> The present invention relates to an optical information reading device, and more specifically, it is capable of reading characters and barcodes by applying a hand-held scanner to a reading surface. This invention relates to an optical information reading device.

〈従来の技術〉 現在、販売店等で普及しているpos <ボイントオブ
セールス)システムでは、商品ごとに品名コード、価格
、製造番号、製造者等の情報を記載した「商品タグ」が
付されており、これを光学的に読取って必要な項目をコ
ンピュータに入力し、データ処理を行う。
<Conventional technology> In the POS (point-of-sales) system that is currently widespread at retail stores, each product is attached with a "product tag" that contains information such as the product name code, price, serial number, and manufacturer. This information is read optically and the necessary items are entered into the computer for data processing.

この読取りは、商品タグに光を当てて、その反射光をレ
ンス系によりイメージセンサの上に結像させ、光量の強
弱を電気信号の強弱に変換し、電気信号を二値化して、
二値化された信号を基にして情報の識別を行うものであ
る。
This reading is performed by shining light on the product tag, using a lens system to form an image of the reflected light onto an image sensor, converting the intensity of the light amount into the intensity of an electrical signal, and then converting the electrical signal into a binary value.
Information is identified based on the binarized signal.

しかし、現実に流通する商品に付される商品タグに記載
されている情報の形式は不統一であり、例えばバーコー
ドと数字で表示されたり、バーコドと文字で表示された
りする。したがって、任意の商品の商品情報を読取るに
は、それぞれの形式に適した光学的情報読取装置を複数
用意しておく必要があり、同一の販売店で幾つかの同じ
機能を持った光学的情報読取装置を使い分けしなけれは
ならなかった。
However, the format of the information written on product tags attached to products in actual circulation is inconsistent; for example, it is displayed as a barcode and numbers, or as a barcode and letters. Therefore, in order to read the product information of any product, it is necessary to prepare multiple optical information reading devices suitable for each format, and the same store can provide several optical information readers with the same functions. I had to use different reading devices.

そこでバーコードの情報と、文字・数字・符号等(以下
、代表して「文字」という)の情報とを同じ装置で読取
れるように、両方の読取り機能を備えた光学的情報読取
装置が提案されている。
Therefore, in order to be able to read barcode information and information such as letters, numbers, codes, etc. (hereinafter referred to as "characters") with the same device, an optical information reading device that has both reading functions was proposed. has been done.

例えば■特開昭80−2014.83号公報では、スキ
ャナに内蔵される2次元イメージセンサの上を動く文字
の像の一瞬を捕らえて走査し、走査された画素の出力か
ら構成される文字処理部用の電気信号として取り出すと
ともに、上記2次元イメージセンサ上を動くバーコード
の像を2次元イメージセンサの一部の画素(例えば中央
の1個の画素)の連続出力から1111成されるバーコ
ード処理部用の電気信号として取り出し、各信号を文字
処理部およびバーコード処理部に導き、それぞれ処理し
、正しく読取れた方を出力する両用読取装置が開示され
ている。
For example, Japanese Patent Application Laid-open No. 80-2014.83 discloses character processing that captures and scans a momentary image of a character moving on a two-dimensional image sensor built into a scanner, and consists of the output of the scanned pixels. At the same time, the image of the barcode moving on the two-dimensional image sensor is extracted as an electrical signal for the section, and a barcode is generated from the continuous output of some pixels (for example, one pixel in the center) of the two-dimensional image sensor. A dual-use reading device has been disclosed that extracts electrical signals for a processing section, guides each signal to a character processing section and a barcode processing section, processes each signal, and outputs the one that has been correctly read.

また、■実開昭82−183272号公報では、2次元
イメージセンサと1次元イメージセンサとを両方備え、
それぞれのイメージセンサから出た信号を独立して処理
し、正しく読取れた方を出力する光学読取装置が開示さ
れている。
Also, in Japanese Utility Model Application Publication No. 82-183272, it is equipped with both a two-dimensional image sensor and a one-dimensional image sensor,
An optical reading device has been disclosed that independently processes signals output from each image sensor and outputs the one that has been correctly read.

〈発明が解決しようとする課題〉 ところか、上記■の両用読取装置によれば、スキャナを
読取り面に当てて動かせば、文字、バコードの読取り信
号を取り出すことかできるが、スキャナを動かすという
動作が必要であり、オペレークにとっては使用するのに
面倒であった。
<Problems to be Solved by the Invention> However, according to the dual-purpose reading device described in (1) above, it is possible to extract reading signals for characters and barcodes by placing the scanner against the reading surface and moving it, but the action of moving the scanner is difficult. was required and was cumbersome for operators to use.

■の両用読取装置を、スキャナを読取り面に当てかうだ
けで読取るタイプのものに転用しようとしても、当時の
技術では、2次元イメージセンサを構成する画素数が限
られていたので、バーコードを読取る分解能が十分にと
れなかった。というのは、1個の画素をバーコードの像
に対して相対的に動かすのであれば画素の幅がバーの幅
と同程度であれば、出力される信号の変化からバーの線
幅を特定できるか、2次元イメージセンサに結像された
バーの不動像を正確に特定しようとすれば1−個の画素
の幅がバーの幅の]/2か、好ましくは1/4以下でな
ければならない。
Even if an attempt was made to convert the dual-use reading device mentioned above to a type that reads the barcode simply by placing the scanner on the reading surface, the technology at the time was limited in the number of pixels that make up the two-dimensional image sensor, so barcodes could not be read. The reading resolution was not sufficient. This is because if one pixel is moved relative to the barcode image, and the width of the pixel is about the same as the width of the bar, it is possible to determine the line width of the bar from the change in the output signal. Is it possible? In order to accurately identify the immobile image of the bar imaged on the two-dimensional image sensor, the width of 1-pixel must be less than ]/2 of the width of the bar, preferably 1/4 or less. It won't happen.

上記■の開示によれば、2次元イメージセンサと1次元
イメージセンサとを両方備えることにより、1次元イメ
ージセンサには分解能の高いもの(当時、1次元イメー
ジセンサは分解能の高いものかあった)を使用し、2次
元イメージセンサには通常の分解能の低いものを使用し
て、文字、バコードを両方読取ることかできる。
According to the above disclosure, by having both a two-dimensional image sensor and a one-dimensional image sensor, the one-dimensional image sensor has a high resolution (at that time, one-dimensional image sensors had a high resolution) It is possible to read both characters and barcodes using a standard two-dimensional image sensor with low resolution.

しかし、イメージセンサを2種類用意しなければならな
いので、これに応じてレンズ系も2種類必要になり、ス
キャナが複雑大型化し重量も重くなるという問題かあっ
た。
However, since it is necessary to prepare two types of image sensors, two types of lens systems are also required, which poses a problem in that the scanner becomes complex, large, and heavy.

本発明は、上記の問題に鑑みてなされたものであり、そ
の目的とするところは、イメージセンサやレンズ系を複
数種類用意しなくとも、スキャナを読取り面に当てて静
止させるたけて文字、バーコードを読取れる光学的情報
読取装置を提供することにある。
The present invention has been made in view of the above problems, and its purpose is to make it possible to hold a scanner stationary by applying it to the reading surface without having to prepare multiple types of image sensors or lens systems. An object of the present invention is to provide an optical information reading device that can read codes.

く課題を解決するための手段〉 上記の目的を達成するための本発明の光学的情報読取装
置は、読取り面を照射する光源と、2次元イメージセン
サと、読取り面から反射された光を2次元イメージセン
サの上に結像させるズームレンズ系と、」二記ズームレ
ンズ系の倍率を調整するスーム機構と、 上記2次元イメージセンサの画像信号に乱づいて、文字
またはバーコードを判定する文字/バコード判定手段と
、 文字/バーコード判定手段によりバーコードと判定され
た場合に、2次元イメージセンサに結像されたバーコー
ド像の大きさを、2次元イメージセンサの画面の広さと
比較する比較手段と、比較手段による比較の結果、バー
コード像の大きさが2次元イメージセンサの視野より小
さな場合に、バーコード像の大きさをほぼ2次元イメー
ジセンサの視野一杯に納めるべく、ズーム機構の倍率を
調整する倍率調整手段と、 」1記2次元イメージセンザの画像信号に基づいて所定
の信号処理を行い、文字を識別する文字識別手段と、 2次元イメージセンサの特定の領域を選択して画像信号
を取得し、所定の信号処理を行い、当該領域に対応する
バーコードをそれぞれ識別するバーコード識別手段と、 文字/バーコード判定結果に応じて、文字識別手段また
はバーコード識別手段のいずれかに文字識別、または倍
率調整後のバーコードの像に基づいたバーコード識別を
行わせる選択手段とを有するものである。
Means for Solving the Problems> To achieve the above object, the optical information reading device of the present invention includes a light source that illuminates a reading surface, a two-dimensional image sensor, and a two-dimensional image sensor that emits light reflected from the reading surface. a zoom lens system that forms an image on the dimensional image sensor; a zoom mechanism that adjusts the magnification of the zoom lens system; and a character that determines a character or barcode by perturbing the image signal of the two-dimensional image sensor. /barcode determination means, and when it is determined to be a barcode by the character/barcode determination means, the size of the barcode image formed on the two-dimensional image sensor is compared with the width of the screen of the two-dimensional image sensor. When the size of the barcode image is smaller than the field of view of the two-dimensional image sensor as a result of the comparison between the comparison means and the comparison means, a zoom mechanism is used to fit the size of the barcode image almost to the full field of view of the two-dimensional image sensor. a magnification adjusting means for adjusting the magnification of the two-dimensional image sensor; a character identifying means for performing predetermined signal processing based on the image signal of the two-dimensional image sensor and identifying characters; and selecting a specific area of the two-dimensional image sensor. barcode identification means that acquires an image signal, performs predetermined signal processing, and identifies the barcode corresponding to the area, and character identification means or barcode identification means according to the character/barcode determination result. The present invention has selection means for causing either character identification or barcode identification based on the image of the barcode after magnification adjustment to be performed.

〈作用〉 上記の構成の光学的情報読取装置によれば、スキャナを
読取り面に当てて静止させると、文字/バーコード判定
手段により、文字、またはバーコドのいずれであるかを
判定する。
<Operation> According to the optical information reading device configured as described above, when the scanner is placed on the reading surface and held still, the character/barcode determination means determines whether the information is a character or a barcode.

そして、バーコードと判定されれば、2次元イメージセ
ンサに結像されたバーコード像の大きさを、2次元イメ
ージセンサの視野の広さと比較し、その結果、バーコー
ド像の大きさが2次元イメージセンサの視野より小さか
った場合に、ズーム機構の倍率を調整して、バーコード
像の大きさをはぼ2次元イメージセンサの視野一杯に納
めることかてきる。
If it is determined to be a barcode, the size of the barcode image formed on the two-dimensional image sensor is compared with the width of the field of view of the two-dimensional image sensor, and as a result, the size of the barcode image is 2 If the barcode image is smaller than the field of view of the two-dimensional image sensor, the magnification of the zoom mechanism can be adjusted to fit the barcode image to the full field of view of the two-dimensional image sensor.

この後、文字識別、または倍率調整後のバーコードの像
に基ついたバーコード識別を行うことかできる。
Thereafter, character identification or barcode identification based on the image of the barcode after magnification adjustment can be performed.

バーコード識別を行う場合、バーコード像を視野一杯に
広げているゆえ、最良の解像度でバーコード像を読取る
ことができる。
When performing barcode identification, since the barcode image is spread out over the entire field of view, it is possible to read the barcode image with the best resolution.

〈実施例〉 以下実施例を示す添付図面によって詳細に説明する。<Example> Embodiments will be described in detail below with reference to the accompanying drawings showing embodiments.

第2図は、読取り面1に記載された文字およびバーコー
ドを読取る光学的情報読取装置の回路構成を示す。
FIG. 2 shows the circuit configuration of an optical information reading device that reads characters and barcodes written on the reading surface 1.

スキャナ4には、読取り面の原像を照明する光源2、読
取り面からの反射光を反射する反射鏡3、反射光をイメ
ージセンサ6の上に結像させるズムレンス系5、ズーム
機構5 a zイメージセンサ6、二値化回路7が内蔵
されている。
The scanner 4 includes a light source 2 that illuminates the original image on the reading surface, a reflector 3 that reflects the reflected light from the reading surface, a zoom lens system 5 that forms an image of the reflected light on the image sensor 6, and a zoom mechanism 5. An image sensor 6 and a binarization circuit 7 are built-in.

ズームレンズ系5は、レンズ系の焦点距離を一定に保ち
ながら倍率が連続して変えられるレンズ系てあり、スー
ム機構5aにより、その倍率が調整される。
The zoom lens system 5 is a lens system whose magnification can be continuously changed while keeping the focal length of the lens system constant, and its magnification is adjusted by a zoom mechanism 5a.

イメージセンサ6は、多数の光電変換画素を縦横に配列
した2次元イメージセンサであり、読取り面1に記載さ
れた文字およびバーコードを画面に結像するだけの視野
を持つものである。
The image sensor 6 is a two-dimensional image sensor in which a large number of photoelectric conversion pixels are arranged vertically and horizontally, and has a field of view large enough to image the characters and barcode written on the reading surface 1 on the screen.

イメージセンサ6で走査された各画素の出力は、二値化
回路7によって1−と0に二値化され、その出力信号は
本体処理部8に入る。
The output of each pixel scanned by the image sensor 6 is binarized into 1- and 0 by the binarization circuit 7, and the output signal enters the main body processing section 8.

本体処理部8は、 ・」1記二値化回路7の出力信号に基づいて、読取られ
た文字またはバーコードをjj4成する画素の高さ方向
の広がりを判定し、基準値以下であれば文字、以上であ
ればバーコードと判定する文字/バーコード判定回路8
]、 ・文字/バーコード判定回路81によりバーコ]0 ドと判定された場合に、2次元イメージセンサ6に結像
されたバーコード像のマージン(2次元イメージセンサ
画面いずれかの端からバーコード像までの空白部分、詳
しくは後述する)を検出するマージン検出回路88と、 ・文字/バーコード判定回路81の判定結果に応して文
字メモリ82、またはライン選択回路85のいずれかに
のみ信号を送るAND回路80a  80 b % ・一画面分の画像信号を一時記憶する文字メモリ82、 ・文字メモリ82に記憶された文字を切り出す文字切り
出し回路83、 ・切り出された文字を識別する文字識別回路84、・上
記2次元イメージセンサを構成する画素の中から特定の
行、例えば、中央の行の画素信号のみを選択するライン
選択回路85、 ・ライン選択回路85の出力信号を一時記憶するバーコ
ードメモリ86、 ・各行方の信号からバーコードの内容を識別する]] バーコード識別回路87、 から構成されるものである。
The main processing unit 8 determines the spread in the height direction of the pixels forming the read character or barcode based on the output signal of the binarization circuit 7, and if it is below the reference value, Character/barcode determination circuit 8 that determines that it is a barcode if it is a character or more
], ・When the character/barcode determination circuit 81 determines that the barcode is 0, the margin of the barcode image formed on the two-dimensional image sensor 6 (the barcode from either edge of the two-dimensional image sensor screen A margin detection circuit 88 detects a blank space up to the image (details will be described later); - A signal is sent only to either the character memory 82 or the line selection circuit 85 according to the judgment result of the character/barcode judgment circuit 81. AND circuit 80a 80b % -Character memory 82 that temporarily stores image signals for one screen -Character cutting circuit 83 that cuts out the characters stored in the character memory 82 -Character identification circuit that identifies the cut out characters 84, - A line selection circuit 85 that selects only the pixel signals of a specific row, for example, the center row, from among the pixels constituting the two-dimensional image sensor; - A bar code that temporarily stores the output signal of the line selection circuit 85; It is comprised of a memory 86, and a barcode identification circuit 87, which identifies the contents of the barcode from each signal.

なお、マージン検出回路88iJ:、AND回路80b
と、スーム機4’M 5 aとに接続されているか、こ
れは、マージン検出回路88により検出されたマージン
が所定値よりも広い場合にズーム機構5aにスームアソ
ブ命令を送り、マージン検出回路88により検出された
マージンが所定値以内に入った場合にAND回路80b
にオン信号を送るためである。
Note that the margin detection circuit 88iJ:, AND circuit 80b
This means that if the margin detected by the margin detection circuit 88 is wider than a predetermined value, the zoom mechanism 5a is connected to the zoom mechanism 4'M5a. If the detected margin is within a predetermined value, the AND circuit 80b
This is to send an on signal to the

文字/バーコードの判定の方法を第3図に示す。The method of character/barcode determination is shown in FIG.

2次元イメージセンサの画面6の比較的左側には帯状の
左判定ゾーン6a、比較的右側には右判定ゾーン6bが
それぞれ設定される。これら左判定ゾーン6 a %右
判定ゾーン6bにおいて、2次元イメージセンサの画面
6の結像か文字であるかバーコードであるかが別々に判
定される。
A strip-shaped left determination zone 6a is set on the relatively left side of the screen 6 of the two-dimensional image sensor, and a right determination zone 6b is set on the relatively right side. In these left determination zone 6a and right determination zone 6b, it is determined separately whether the image formed on the screen 6 of the two-dimensional image sensor is a character or a barcode.

文字/バーコード判定回路81の構成を第4図に示す。The configuration of the character/barcode determination circuit 81 is shown in FIG.

ゲート発生部81aは、イメージセンサの画面6の走査
に同期して、左ゲート信号、右ゲ]2 −ト信号を出力している。ゲート発生部81. aの左
右ゲー)・信号と二値化回路7の出力信号とを、A、 
N D回路81.b、81cに人力することにより、」
二記左判定ゾーン6a、右判定ゾーン6bに相当する部
分の信号のみか選択される。
The gate generating section 81a outputs a left gate signal and a right gate signal in synchronization with the scanning of the screen 6 of the image sensor. Gate generation section 81. The left and right game of a) signal and the output signal of the binarization circuit 7 are expressed as A,
ND circuit 81. b, by applying manual labor to 81c.”
Only the signals corresponding to the left determination zone 6a and the right determination zone 6b are selected.

すなわち、左ゲート信号か走査されると、第4図に示す
ように、左ゲート信号かオンである時間帯においてイメ
ージセンサの画面6の水平走査信号が読み込まれる。右
ゲート信号が走査されると、右ゲート信号がオンである
時間帯において、イメージセンサの画面6の水平走査信
号が読み込まれる。
That is, when the left gate signal is scanned, the horizontal scanning signal of the screen 6 of the image sensor is read during the time period when the left gate signal is on, as shown in FIG. When the right gate signal is scanned, the horizontal scanning signal of the screen 6 of the image sensor is read during the time period when the right gate signal is on.

各AND回路81b、8]、cの出力は左判定部81d
1右判定部81 eに入り、ここにおいて、それぞれ文
字であるか、バーコードであるかの判定が行われる。ま
ず、それぞれ1走査ごとに信号の論理和かとられる。第
3図の走査線61.a、62aは左判定ゾーン6aにお
ける任意の走査線を示しており、例えば走査線61aに
おいて1つでも黒い画素があれば、左判定部81dは、
その走査線についてはオンをカウントする。走査線62
aがすべて白い画素であれば左判定部81dは、その走
査線についてはオフをカウントする。この様にして上か
ら下まで全部の走査線についてカウントシ、オンである
走査線がどの範囲に分布しているかを調べる。具体的に
はオンをカウントした走査線の最」1位のものと、最下
位のものとの間隔DI、、DRを調べる。これか文字や
バーコードの高さを表す。第3図では、左判定部81d
において判定された高さD Lは低いので、文字である
と推測がつく。右左判定部81. eにおいて判定され
た高さDRは高いので、バーコードであるとの推測がつ
く。よって、ある文字用のしきい値を設けてそれよりも
高さが低く、かつ、上下に白画素がそれぞれ数画素以」
二存在するときは文字(たたし、高さDL、DRか0の
時は文字ではないとする)、バーコード用のしきい値を
設けて高さがそれよりも高ければバーコードであると判
定することができる。
The output of each AND circuit 81b, 8], c is the left determination section 81d.
1 right judgment section 81e, where it is judged whether each is a character or a barcode. First, the logical sum of the signals is calculated for each scan. Scan line 61 in FIG. a and 62a indicate arbitrary scanning lines in the left determination zone 6a. For example, if there is even one black pixel in the scanning line 61a, the left determination unit 81d
Count ons for that scan line. scanning line 62
If all pixels a are white, the left determination unit 81d counts off for that scanning line. In this way, all the scanning lines from top to bottom are counted, and the range in which the ON scanning lines are distributed is determined. Specifically, the intervals DI, DR between the most scanned lines and the least scanned lines are checked. This represents the height of characters or barcodes. In FIG. 3, the left determination section 81d
Since the height DL determined in is low, it can be inferred that it is a character. Right/left determining section 81. Since the height DR determined in e is high, it can be inferred that it is a barcode. Therefore, we set a threshold for a certain character, and the height is lower than that threshold, and the number of white pixels on the top and bottom is several pixels or more.
2.If it exists, it is a character (if the height is DL, DR or 0, it is not a character), set a threshold for barcode, and if the height is higher than that, it is a barcode. It can be determined that

左判定部8〕d1右判定部8 ]、 eの出力信号線は
、それぞれ2本ずつ取り出される。1本は文字であるか
ないかを表す信号を送る線であり、文字を表す信号はO
CI?−1、文字でないことを表す信号はOCR−0と
表現する。他の1木は、バーコードであるかないかを表
す信号を送る線であり、バーコドを表す信号はBAR−
1,、バーコードでないことを表ず信号はBAR−0と
表現することにする。
Two output signal lines are taken out from each of the left determining section 8] d1 and the right determining section 8] and e. One line is a line that sends a signal indicating whether it is a character or not, and the signal indicating a character is O.
CI? -1, a signal indicating that it is not a character is expressed as OCR-0. The other tree is a line that sends a signal indicating whether it is a barcode or not, and the signal indicating a barcode is BAR-
1, the signal will be expressed as BAR-0 to indicate that it is not a barcode.

論理判定部8 ]、 fては、上記入力0CR−1−、
もしくは0 、BAR−1,、もしくは0の情報に基づ
いて、次の真理値表によって判断をする。(以下余白)
」1記真理値表では、左判定部8]d1右判定部8 ]
、 eの両方がOCRを出力すればOCRと、一方がO
CRを出力すれば、他の判定と矛盾しない限りOCRと
、左判定部81d1右判定部81. eの両方がBAR
を出力すればBARと、一方がBARを出力すれば他の
判定と矛盾しない限りBARと判定する。
Logic determination unit 8 ], f is the input 0CR-1-,
Or, based on the information of 0, BAR-1, or 0, a decision is made using the following truth table. (Margin below)
"In the truth table 1, the left judgment section 8] d1 the right judgment section 8 ]
, e outputs OCR, and one outputs OCR.
If CR is output, OCR is output as long as it does not conflict with other determinations, left determination section 81d1 right determination section 81. Both e are BAR
If one outputs BAR, it is determined to be BAR, and if one outputs BAR, it is determined to be BAR unless it contradicts other determinations.

左判定部81d1右判定部81. eのいずれもがOC
R,BARを出力しなければいずれの判定もしない(こ
のようなことは、文字やバーコードが判定ゾーンにかか
らなかった時なとに起こる。このときは、再度スキャナ
を当てて読取りをする)。左判定部81d1右判定部8
1. eが異なった結果を出すと、予め設定した優先順
位*に従う。例えばバーコードを優先するのであれば、
バーコードと判定してしまう。
Left determining section 81d1 Right determining section 81. Both e are OC
If R and BAR are not output, no judgment will be made (this happens when a character or barcode does not fall within the judgment zone. In this case, apply the scanner again and read it. ). Left determination section 81d1 Right determination section 8
1. If e gives different results, the preset priority order * is followed. For example, if you prioritize barcodes,
It is determined to be a barcode.

なお、上記文字/バーコード判定においては、2次元イ
メージセンサの両面6に設定された左判定ゾーン6a、
右判定ゾーン6bのそれぞれにおいて判定を行い、上記
真理値表に基づいて結果を出していたが、判定ゾーンの
数は2つに限られるものではない。例えば、イメージセ
ンサの画面6の中央に1つの判定ゾーンを形成して判定
してもよく、また、もっと多くの判定ゾーンを形成して
判定を行ってもよい。一般に判定ゾーンの数や面積は多
いほど文字やバーコードを捕捉しやすくなる。なぜなら
、判定ゾーンが1つしかないと、文字やバーコードかイ
メージセンサの画面6の隅の方に入っていれば、第5図
(a)に示すように判定ゾーンで捕捉できないが、判定
ゾーンが2つあると第5図(b)に示すようにいずれか
の判定ゾーンで捕捉できる。しかし、判定ゾーンの数を
多くすれば処理か複雑になり、判定ゾーンの面積を多く
すれば(極端には判定ゾーンなど設定せずにイメージセ
ンサの画面の全体を用いて判定すれば)走査に時間かか
かるので、2〜3個に設定しておくのが最適であると思
われる。
In addition, in the above character/barcode determination, the left determination zone 6a set on both sides 6 of the two-dimensional image sensor,
Although a determination is made in each of the right determination zones 6b and a result is obtained based on the truth table, the number of determination zones is not limited to two. For example, one determination zone may be formed in the center of the screen 6 of the image sensor for determination, or more determination zones may be formed for determination. Generally, the larger the number and area of determination zones, the easier it is to capture characters and barcodes. This is because if there is only one judgment zone, if a character or barcode is in the corner of the screen 6 of the image sensor, it cannot be captured in the judgment zone as shown in Figure 5(a); If there are two, it is possible to capture in either determination zone as shown in FIG. 5(b). However, if the number of determination zones is increased, the processing becomes more complicated, and if the area of the determination zones is increased (in the extreme, if the entire screen of the image sensor is used for determination without setting determination zones), scanning becomes more difficult. Since it takes time, it seems best to set the number to 2 or 3.

以上のようにして、文字/バーコード判定回路8]は、
イメージセンサの画面6に結像されたものが文字である
か、バーコードであるかを判定することかできる。
As described above, the character/barcode determination circuit 8]
It is possible to determine whether the image formed on the screen 6 of the image sensor is a character or a barcode.

次に、光学的情報読取装置の識別手順について第1図の
フローチャートを参照しながら説明する。
Next, the identification procedure of the optical information reading device will be explained with reference to the flowchart of FIG.

いま、スキャナ4を手に持って、読取り面1に当てるこ
とにより読取り面1の文字またはバーコードを光源2で
照明すると、イメージセンサ6には文字またはバーコー
ドの像が結像される。
Now, when the scanner 4 is held in hand and is placed on the reading surface 1 to illuminate the characters or barcode on the reading surface 1 with the light source 2, an image of the character or barcode is formed on the image sensor 6.

ズーム倍率の初期値は1に設定されている(ステップ■
)。
The initial value of the zoom magnification is set to 1 (step ■
).

二値化回路7の出力信号は、文字/バーコード判定回路
81に入り、文字/バーコード判定回路]8 81において、前述したように文字であるがバコードで
あるか判定される(ステップ■)。
The output signal of the binarization circuit 7 enters a character/barcode determination circuit 81, where it is determined whether it is a character or a barcode as described above (step ■). .

文字であると判定されれば、文字信号は文字メモリ82
により一時記憶され(ステップ■)、各文字は、文字切
り出し回路83により切り出される(ステップ■)。こ
の文字切り出しはrl、2゜3.4」と並んだ文字をr
]、J、r2J、r3J「4」と単文字に変換すること
であり、その詳細は例えば特開昭62−281084号
、 63−82588号 63−85993号、  6
3−89989号、  (i3−129485号、  
63−216+、88号公報に開示されている。
If it is determined that it is a character, the character signal is sent to the character memory 82.
The characters are temporarily stored (step 2), and each character is cut out by the character cutting circuit 83 (step 2). This character cutout is rl, the characters lined up as 2゜3.4'' are r
], J, r2J, r3J into single characters such as "4", details of which can be found in, for example, JP-A-62-281084, 63-82588, 63-85993, 6.
No. 3-89989, (i3-129485,
No. 63-216+, No. 88.

切り出された文字は、文字識別回路84により識別され
る(ステップ■)。この識別方法は、文字の特徴量(ヒ
ストダラム)と辞書に蓄積された文字の特徴量との比較
に基づいて文字を決定するもので、その詳細は、特公昭
63−28915号公報等に開示されている。
The cut out characters are identified by the character identification circuit 84 (step 2). This identification method determines characters based on a comparison between character features (histodylam) and character features stored in a dictionary. ing.

一方、バーコードと判定されれば、イメージセンサ6の
視野に移ったバーコードの像の横の広がりを検出する(
ステップ■)。この横の広がりは、例えば、イメージセ
ンサ6の画面を横に1走査した場合の画素検出信号に基
づき検知される。第6図(a)は、イメージセンサ6の
画面中の1本の水平線61(同図(b)参照)を1回走
査した場合の検出信号の分布を示しており、黒い画素は
信号“1”、白い画素は信号“0”に対応している。
On the other hand, if it is determined to be a barcode, the horizontal spread of the barcode image that has moved into the field of view of the image sensor 6 is detected (
Step ■). This lateral spread is detected, for example, based on pixel detection signals obtained when the screen of the image sensor 6 is scanned horizontally one time. FIG. 6(a) shows the distribution of detection signals when one horizontal line 61 (see FIG. 6(b)) on the screen of the image sensor 6 is scanned once, and black pixels indicate the signal "1". ”, the white pixel corresponds to the signal “0”.

画面の左端から続く信号“0”の画素数M1、または右
端から続く信号“0”の画素数M2を読取ることによっ
て、バーコードの横の広がりが判る。
By reading the number M1 of pixels of the signal "0" continuing from the left edge of the screen or the number M2 of pixels of the signal "0" continuing from the right edge of the screen, the horizontal spread of the barcode can be determined.

以下、左端からの信号“0”の画素数M1、または右端
からの信号“0”の画素数M2のうち、小さいほうを「
マージンM」という。
Hereinafter, the smaller of the number of pixels M1 with a signal "0" from the left end or the number M2 of pixels with a signal "0" from the right end is selected as "
"Margin M".

マージンMが所定数Moよりも多ければ、ズームレンズ
系のズーム倍率を所定倍率だけ拡大する(ステップ■■
)。マージンMが所定数Mo以内に納まるまで拡大を続
ける。ここで、所定数M。
If the margin M is larger than the predetermined number Mo, the zoom magnification of the zoom lens system is increased by the predetermined magnification (step
). Expansion continues until the margin M falls within a predetermined number Mo. Here, a predetermined number M.

とは、バーコードを画面内どの位まで広げるかを決定す
る基準を表す数字であり、もし画面ぎりぎりまで広げる
のであれば、Moを1または1に近い数字にとればよい
。多少余裕かあったほうがよければ、Moを多めにとれ
ばよい。バーコードを広げた状態を第6図(c)に示す
is a number representing a standard for determining how far within the screen the barcode should be extended.If the barcode is to be extended to the very edge of the screen, Mo may be set to 1 or a number close to 1. If you would like to have some leeway, just add a little more Mo. FIG. 6(c) shows the barcode in an expanded state.

なお、第6図(C)では、第6図(1))のようにバー
コードかイメージセンサの画面の真中にある場合に、左
右に均等に広げた例を示しているが、これに限定される
ものではなく、第7図(a)に示すようにバーコードが
イメージセンサの画面のいずれかの端に偏っている場合
でも拡大できる(第7図(C) )。ただし、第7図(
a)の場合、左端にある信号“0”の画素数M1よりも
右端にある信号“0”の画素数M2のほうが少ないので
、マージンMは、少ないほうの値M2で決まってしまい
、拡大率はあまり大きくとれない。
Note that Fig. 6 (C) shows an example in which the barcode is spread evenly to the left and right when it is in the middle of the screen of the image sensor as shown in Fig. 6 (1)), but it is limited to this. Instead, it can be enlarged even if the barcode is biased toward either end of the image sensor screen as shown in FIG. 7(a) (FIG. 7(C)). However, in Figure 7 (
In case a), the number of pixels M2 of the signal "0" at the right end is smaller than the number of pixels M1 of the signal "0" at the left end, so the margin M is determined by the smaller value M2, and the magnification ratio cannot be made very large.

バーコードに対してスキャナを所定の位置関係に置いて
バーコードを読取った結果、2次元イメジセンザ上に結
像されたバーコードのバーの幅が画素の幅よりも細くて
、十分な解像度で読取れない場合でも、このように、バ
ーコードを左右に拡大できるため、画素の幅をバーコー
ドの幅よりも狭くすることかでき、分解能を実質的に向
上させることができる。
As a result of reading the barcode by placing the scanner in a predetermined positional relationship with respect to the barcode, the width of the barcode bar imaged on the two-dimensional image sensor is narrower than the width of the pixel, and the barcode can be read with sufficient resolution. Even if it cannot be removed, the barcode can be enlarged horizontally in this way, so the width of the pixel can be made narrower than the width of the barcode, and the resolution can be substantially improved.

次のステップ■で、ライン選択回路85は、2次元イメ
ージセンサを構成する画素の中がら]本の水平ラインの
みの信号を選択する。バーコード識別ではバー/スペー
スの幅をカウントするたけでよいので、1行の情報をそ
れぞれ得れば十分だからである。ライン選択回路85の
出力は、バーコードの白黒に対応する2値化1(Jl力
となる。
In the next step (2), the line selection circuit 85 selects signals of only the horizontal lines of the book from among the pixels constituting the two-dimensional image sensor. This is because barcode identification only requires counting the width of bars/spaces, so it is sufficient to obtain one line of information from each. The output of the line selection circuit 85 becomes binary 1 (Jl) corresponding to black and white of the barcode.

ライン選択回路85の出力はバーコードメモリ86に記
憶され(ステップ[相])、バーコード識別回路87に
よりコードの内容が識別される(ステップ■)。その後
、ズーム倍率を初期値に戻す(ステップ@)。
The output of the line selection circuit 85 is stored in the barcode memory 86 (step [phase]), and the content of the code is identified by the barcode identification circuit 87 (step 2). After that, the zoom magnification is returned to the initial value (step @).

以上のように、本実施例では、1つのズームレンズ系5
、イメージセンサ6で文字、バーコード両方の識別が行
えるため、スキャナ4を小型軽量化し操作性のよいもの
とすることができる。
As described above, in this embodiment, one zoom lens system 5
Since the image sensor 6 can identify both characters and barcodes, the scanner 4 can be made smaller and lighter and has better operability.

そして、バーコードの識別に際しては、2次元イメージ
センサに結像されたバーコード像の大きさを、2次元イ
メージセンサの視野と比較し、バコート像か視野よりも
小さい場合、ズーム機構の倍率を上げて、バーコード像
の大きさをほぼ2次元イメージセンサの視野一杯に納め
ることができるので、常に最良の解像度でバーコード識
別を行うことができる。
When identifying a barcode, the size of the barcode image formed on the two-dimensional image sensor is compared with the field of view of the two-dimensional image sensor, and if the Bacote image is smaller than the field of view, the magnification of the zoom mechanism is adjusted. Since the size of the barcode image can be raised to almost fill the field of view of the two-dimensional image sensor, barcode identification can always be performed with the best resolution.

なお、本発明は上記の実施例に限定されるものではない
。上記実施例では、バーコードを拡大する際に、イメー
ジセンサの視野の中に1つのバコードが映った場合をあ
げたが、これに限られるものではなく、第8図に示すよ
うに、イメージセンサの視野の中に3つのバーコードが
映った場合でも、真ん中のバーコードのみを認識して拡
大する処理を行えば、読取の解像度を向上させることが
できる。その池水発明の要旨を変更しない範囲内におい
て、種々の設計変更を施すことが可能である。
Note that the present invention is not limited to the above embodiments. In the above embodiment, when magnifying the barcode, one barcode is reflected in the field of view of the image sensor. However, the present invention is not limited to this, and as shown in FIG. Even if three barcodes appear in the field of view, the reading resolution can be improved by recognizing and enlarging only the middle barcode. Various design changes can be made without changing the gist of the invention.

〈発明の効果〉 以上のように、本発明の光学的情報読取装置によれば、
2次元イメージセンサを使用することにより、スキャナ
を読取り面に当てて静止させるたけで、文字およびバー
コードを1つのイメージセンサて識別することかできる
<Effects of the Invention> As described above, according to the optical information reading device of the present invention,
By using a two-dimensional image sensor, characters and barcodes can be identified with a single image sensor by simply placing the scanner against a reading surface and keeping it stationary.

この場合、バーコードの結像をスーム機構でイメージセ
ンサの画面一杯になるように調整することとしたので、
イメージセンサの解像度が比較的悪くても、十分な精度
でバーコードを読取ることができるようになる。
In this case, we decided to use the zoom mechanism to adjust the barcode image formation so that it filled the image sensor screen.
Even if the resolution of the image sensor is relatively low, barcodes can be read with sufficient accuracy.

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

第1図は文字、バーコードの拡大、および文字、バーコ
ードの識別手順を示すフローチャート、第2図は光学的
情報読取装置の全体の回路構成を示すブロック図、 第3図はイメージセンサの画面に設定された判定ゾーン
と、判定ゾーンに移った画像に基づく文字/バーコード
判定の方法を解説する図、第4図は文字/バーコード判
定回路の構成を示すブロック図、 第5図はイメージセンサの画面に設定された判定ゾーン
と文字との位置関係を示す図、第6図はバーコードのズ
ームアツプ手法を解説する図、 第7図、第8図はバーコードの他のズームアツプ手法を
解説する図である。 2・・・光源、4・・・スキャナ、5・・・ズ5a・・
・ズーム機構、6・・・2次元イメ80a、80b・A
ND回路、 81・・・文字/バーコード判定回路、84・・・文字
識別回路、 87・・・バーコード識別回路、 88・・・マージン検出回路 ムレンズ系、 ジセンサ、
Figure 1 is a flowchart showing the procedure for enlarging characters and barcodes and identifying characters and barcodes, Figure 2 is a block diagram showing the overall circuit configuration of the optical information reading device, and Figure 3 is the screen of the image sensor. Figure 4 is a block diagram showing the configuration of the character/barcode determination circuit, and Figure 5 is an image. A diagram showing the positional relationship between the judgment zone set on the sensor screen and characters, Figure 6 is a diagram explaining a barcode zoom-up method, and Figures 7 and 8 are explanations of other barcode zoom-up methods. This is a diagram. 2...Light source, 4...Scanner, 5...Z5a...
・Zoom mechanism, 6...2D image 80a, 80b・A
ND circuit, 81...Character/barcode determination circuit, 84...Character identification circuit, 87...Barcode identification circuit, 88...Margin detection circuit Mullens system, Disensor,

Claims (1)

【特許請求の範囲】 1、読取り面を照射する光源と、 2次元イメージセンサと、 読取り面から反射された光を2次元イメージセンサの上
に結像させるズームレンズ系と、上記ズームレンズ系の
倍率を調整するズーム機構と、 上記2次元イメージセンサの画像信号に基づいて、読取
対象が文字またはバーコードのいずれかを判定する文字
/バーコード判定手段と、 文字/バーコード判定手段によりバーコードと判定され
た場合に、2次元イメージセンサに結像されたバーコー
ド像の大きさを、2次元イメージセンサの画面の広さと
比較する比較手段と、 比較手段による比較の結果、バーコード像の大きさが2
次元イメージセンサの視野より小さな場合に、バーコー
ド像の大きさをほぼ2次元イメージセンサの視野一杯に
納めるべく、ズーム機構の倍率を調整する倍率調整手段
と、 上記2次元イメージセンサの画像信号に基づいて所定の
信号処理を行い、文字を識別する文字識別手段と、 2次元イメージセンサの特定の領域を選択して画像信号
を取得し、所定の信号処理を行い、当該領域に対応する
バーコードをそれぞれ識別するバーコード識別手段と、 文字/バーコード判定手段の結果に応じて、文字識別手
段またはバーコード識別手段のいずれかに文字識別、ま
たは倍率調整後のバーコード像に基づいたバーコード識
別を行わせる選択手段とを有することを特徴とする光学
的情報読取装置。
[Claims] 1. A light source that illuminates a reading surface; a two-dimensional image sensor; a zoom lens system that forms an image of light reflected from the reading surface on the two-dimensional image sensor; a zoom mechanism that adjusts the magnification; a character/barcode determination unit that determines whether the object to be read is a character or a barcode based on the image signal of the two-dimensional image sensor; and a barcode that is determined by the character/barcode determination unit. a comparison means for comparing the size of the barcode image formed on the two-dimensional image sensor with the screen width of the two-dimensional image sensor; size is 2
a magnification adjustment means for adjusting the magnification of a zoom mechanism in order to fit the barcode image size almost within the field of view of the two-dimensional image sensor when the field of view is smaller than the field of view of the two-dimensional image sensor; character identification means that performs predetermined signal processing based on the image sensor to identify characters; and character identification means that selects a specific area of the two-dimensional image sensor to obtain an image signal, performs predetermined signal processing, and identifies a barcode corresponding to the area. and a barcode identification means that identifies the characters, respectively, and a barcode based on the barcode image after magnification adjustment. 1. An optical information reading device comprising: selection means for performing identification.
JP2183694A 1990-07-10 1990-07-10 Optical information reader Pending JPH0469788A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2183694A JPH0469788A (en) 1990-07-10 1990-07-10 Optical information reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2183694A JPH0469788A (en) 1990-07-10 1990-07-10 Optical information reader

Publications (1)

Publication Number Publication Date
JPH0469788A true JPH0469788A (en) 1992-03-04

Family

ID=16140310

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2183694A Pending JPH0469788A (en) 1990-07-10 1990-07-10 Optical information reader

Country Status (1)

Country Link
JP (1) JPH0469788A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5559318A (en) * 1994-03-16 1996-09-24 Asahi Kogaku Kogyo Kabushiki Kaisha Encoded symbol reader with calculation of magnification
US5602379A (en) * 1993-05-31 1997-02-11 Kabushiki Kaisha Tec Optical code reader
JPH0944592A (en) * 1995-05-23 1997-02-14 Olympus Optical Co Ltd Information reproduction system
US5777314A (en) * 1992-02-27 1998-07-07 Symbol Optical scanner with fixed focus optics
JP2003168069A (en) * 2001-11-30 2003-06-13 Olympus Optical Co Ltd Code reader and card type recording medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5777314A (en) * 1992-02-27 1998-07-07 Symbol Optical scanner with fixed focus optics
US5602379A (en) * 1993-05-31 1997-02-11 Kabushiki Kaisha Tec Optical code reader
US5559318A (en) * 1994-03-16 1996-09-24 Asahi Kogaku Kogyo Kabushiki Kaisha Encoded symbol reader with calculation of magnification
JPH0944592A (en) * 1995-05-23 1997-02-14 Olympus Optical Co Ltd Information reproduction system
JP2003168069A (en) * 2001-11-30 2003-06-13 Olympus Optical Co Ltd Code reader and card type recording medium

Similar Documents

Publication Publication Date Title
US6814290B2 (en) Method for processing images captured with bar code reader having area image sensor
JP2835274B2 (en) Image recognition device
US9785815B2 (en) Imaging terminal, imaging sensor to determine document orientation based on bar code orientation and methods for operating the same
US6123261A (en) Optical scanner and image reader for reading images and decoding optical information including one and two dimensional symbologies at variable depth of field
US5773806A (en) Method and apparatus for capturing a decodable representation of a 2D bar code symbol using a hand-held reader having a 1D image sensor
US6264105B1 (en) Bar code reader configured to read fine print barcode symbols
KR100271245B1 (en) Bar code reading apparatus
EP0631679B1 (en) Reader for decoding two-dimensional optical information
KR100309245B1 (en) Barcode Symbol Reading Device
US8254683B2 (en) Code image processing method
JP5140820B2 (en) Symbol information reading apparatus and symbol information reading method
US6164545A (en) Code reader for converting two dimensional information into a one dimensional format
JP2000501209A (en) Sub-pixel data form reader
JPH04225488A (en) Double-processor type omnidirectional bar code reader having double memories for bar-code location and orientation
US4797940A (en) Optical character reader
JPH0469788A (en) Optical information reader
JPH0469785A (en) Optical information reader
EP1916557B1 (en) Optical scanner and image reader for reading images and decoding optical information including one and two dimensional symbologies at variable depth of field
JPH0469786A (en) Optical information reader
JPS6314392B2 (en)
JPH0469787A (en) Optical information reader
JP2906608B2 (en) Optical character reader
JPH06251194A (en) Optical information reader
JPS63120388A (en) Optical character reader
JP5380613B2 (en) Symbol recognition apparatus and control program therefor