JPH11120279A - Optical information reader - Google Patents

Optical information reader

Info

Publication number
JPH11120279A
JPH11120279A JP9278952A JP27895297A JPH11120279A JP H11120279 A JPH11120279 A JP H11120279A JP 9278952 A JP9278952 A JP 9278952A JP 27895297 A JP27895297 A JP 27895297A JP H11120279 A JPH11120279 A JP H11120279A
Authority
JP
Japan
Prior art keywords
reading
distance
light
control value
optical information
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.)
Granted
Application number
JP9278952A
Other languages
Japanese (ja)
Other versions
JP3760594B2 (en
Inventor
Kunihiko Ito
邦彦 伊藤
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.)
Denso Corp
Original Assignee
Denso Corp
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 Denso Corp filed Critical Denso Corp
Priority to JP27895297A priority Critical patent/JP3760594B2/en
Publication of JPH11120279A publication Critical patent/JPH11120279A/en
Application granted granted Critical
Publication of JP3760594B2 publication Critical patent/JP3760594B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To calculate the distance to an object to be read without providing a distance sensor specially for a large-depth optical information reader which can reads optical information out of even an object at a distance from a read opening. SOLUTION: The reference image size Wst when there is a bar code Bst of size W at the read opening is represented as Wst=(L3/L2)W and image size Wo corresponding to a bar code Bo of size W at a distance L from the read opening is represented as Wo=(L3/(L1+L2))W, where L2 is the distance from the read opening to an image forming lens 34 and L3 is the distance from the image forming lens 34 to an optical sensor 36. The W's are erased from both the equations to calculate L1, which is then represented as ((Wst/ Wo)-1)L2. Here, L2 is a value characteristic of the device, so the distance L1 of the bar code Bo as an object of distance calculation from the read opening can be calculated by knowing Wst and No.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、例えばバーコード
などの読み取り対象に光を照射し、その反射光から読取
対象の画像を読み取るものであり、特に読取口から離れ
た位置の読み取り対象も読み取り可能な光学情報読取装
置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method of irradiating an object to be read such as a bar code with light and reading an image of the object to be read from its reflected light. It relates to a possible optical information reader.

【0002】[0002]

【従来の技術】発光ダイオード等の発光手段から、商品
などに付着されているバーコードに照射した光の反射光
を、受光素子が配列された受光手段に結像し、該受光手
段にて前記バーコードの画像を読み取る光学情報読取装
置が知られている。
2. Description of the Related Art A reflected light of light emitted from a light emitting means such as a light emitting diode onto a bar code attached to a product or the like is imaged on a light receiving means in which light receiving elements are arranged. 2. Description of the Related Art An optical information reading device that reads an image of a barcode is known.

【0003】通常、このような光学情報読取装置は、光
学情報読取装置のケースに設けられた読取口をバーコー
ドにほぼ接触させた状態で、発光手段からの光を読取口
を介してバーコードに照射し、このバーコードから反射
された光を、同じ読取口から光学情報読取装置のケース
内に導いて、受光手段に結像している。
Usually, such an optical information reading apparatus transmits light from a light emitting means through a reading port while a reading port provided in a case of the optical information reading apparatus is almost in contact with the bar code. , And the light reflected from the bar code is guided into the case of the optical information reading device from the same reading port, and forms an image on the light receiving means.

【0004】このような光学情報読取装置では、光学情
報読取装置を、バーコードが付着されている商品のとこ
ろまで持って行く必要があるので、読み取り作業が面倒
であるという問題があった。この問題点を解決するもの
として、光学情報読取装置の読取口の近傍に存在するバ
ーコードのみでなく、読取口近傍から数10cm(例え
ば、30〜50cm)離れたバーコードまでを、受光手
段に結像して読み取らせることにより、読み取り毎に光
学情報読取装置を商品に近づける動作を行うことなく、
効率的にバーコードを読み取らせるいわゆる大深度光学
情報読取装置が考えられる。
In such an optical information reading apparatus, it is necessary to bring the optical information reading apparatus to a product to which a bar code is attached, so that there is a problem that the reading operation is troublesome. In order to solve this problem, not only a bar code existing near the reading opening of the optical information reading device but also a bar code distant from the vicinity of the reading opening by several tens cm (for example, 30 to 50 cm) to the light receiving means. By imaging and reading, without having to perform the operation of bringing the optical information reading device closer to the product for each reading,
A so-called large-depth optical information reader that can efficiently read a barcode is conceivable.

【0005】但し、通常のバーコードにて使用されてい
る発光手段からの照射光は、読取口全体から照射される
ように、バーコード照射用レンズが設定されている。こ
れは、読取口にバーコードをほぼ接して読み取る場合に
は、光学情報読取装置のケースが死角となって、バーコ
ードが見にくくなるので、なるべく照射光を広げて、バ
ーコードに対して読取口が少々ずれていても光線がバー
コードに確実に当たるようにするためである。しかし、
このように読取口全体から照射されるようにバーコード
照射用レンズを照射光を広げるように設定すると、読取
口から離れたバーコードの位置には、極めて弱い光しか
到達せず、バーコードの読取口が読み取ろうとするバー
コードに向けられているのか否かが明確とならずに、読
み取りを間違えるおそれがあった。
However, a bar code irradiating lens is set so that the light emitted from the light emitting means used in a normal bar code is radiated from the entire reading opening. This is because when reading a bar code almost in contact with the reading port, the case of the optical information reading device becomes a blind spot and the bar code becomes difficult to see. This is to ensure that the light beam strikes the bar code even if it is slightly displaced. But,
When the barcode irradiating lens is set so as to spread the irradiation light so as to irradiate from the entire reading opening in this manner, only a very weak light reaches the position of the barcode far from the reading opening, and the barcode is not illuminated. It is not clear whether the reading port is directed to the bar code to be read or not, and there is a risk that reading may be mistaken.

【0006】これに対しては、受光手段に入射される反
射光強度を検出し、その検出結果に基づき受光手段の露
光時間を制御することによって、受光手段が映像情報を
電気信号に変換するための反射光量を常に安定させるよ
うにすることが考えられている。このようにすれば、読
取口を読取対象に接触させることなく光学的情報を読み
取ることができるようになり、しかも読取口と読取対象
とを離せば離すほど光学情報の読取可能範囲を増大でき
るので、読取口の口径に制限されることなく広範囲な光
学情報を読み取ることができるのである。
In order to solve this problem, the intensity of the reflected light incident on the light receiving means is detected, and the exposure time of the light receiving means is controlled based on the detection result. It has been considered that the amount of reflected light is always stabilized. With this configuration, the optical information can be read without bringing the reading opening into contact with the reading target, and the readable range of the optical information can be increased as the reading opening is separated from the reading target. In addition, a wide range of optical information can be read without being limited by the diameter of the reading port.

【0007】ところで、読取口と読取対象とを離した場
合の読取性能を低下させる原因としては、上述の反射光
強度の低下だけでなく、照度分布に関する問題がある。
つまり、図4(a)に示すように、発光手段からの照射
光の照度分布がいくらフラットであるとしても、反射光
が結像レンズを通って受光素子に結像される時点では、
反射光波形の振幅は周辺にいくほど低下することとな
る。これは、結像レンズのCOS4 法則やMTF特定等
によるものである。
[0007] By the way, as a cause of lowering the reading performance when the reading port is separated from the reading object, not only the above-mentioned reduction of the reflected light intensity but also the problem of the illuminance distribution.
That is, as shown in FIG. 4A, no matter how flat the illuminance distribution of the irradiation light from the light emitting unit is, when the reflected light is imaged on the light receiving element through the imaging lens,
The amplitude of the reflected light waveform decreases as going to the periphery. This is based on the COS 4 law of the imaging lens, MTF specification, and the like.

【0008】この点に関して従来は、例えば中央よりも
周辺の方が明るくなるような照射光の照度分布となるよ
うに発光手段の設計を行うようにしていた。例えば、発
光手段として4つの発光ダイオードを配置する場合を想
定すると、読取口の両端側を中央部に比べて密にした
り、あるいは4つの発光ダイオードの照射方向を読取口
の両端側に傾けるようにして、読取対象の周辺部の輝度
を大きくするような工夫も考えられている。
In this regard, conventionally, for example, the light emitting means has been designed so that the illuminance distribution of the irradiation light is brighter in the periphery than in the center. For example, assuming that four light emitting diodes are arranged as light emitting means, the both ends of the reading port are made denser than the central part, or the irradiation direction of the four light emitting diodes is inclined to both ends of the reading port. Accordingly, a device for increasing the luminance of the peripheral portion of the reading target has been considered.

【0009】但し、これらはある特定の位置に読取対象
のバーコードが存在する場合にしか対応できない。つま
り、上述した反射光波形の振幅が周辺にいくほど低下す
る度合は、読取口とバーコードとの距離が変わればそれ
に応じて変わってくるからである。したがって、読取口
とバーコードとの距離がαである状態で適切な照度分布
となるように発光ダイオードの配置や光量を調整したと
しても、実際に読み取る場合に読取口とバーコードとの
距離がβに変われば、その状態では適切な照度分布とな
らない可能性がある。
[0009] However, these methods can only cope with a case where a bar code to be read exists at a specific position. That is, the degree to which the amplitude of the reflected light waveform decreases as it goes to the periphery changes according to the change in the distance between the reading port and the barcode. Therefore, even when the arrangement and the light amount of the light emitting diodes are adjusted so that an appropriate illuminance distribution is obtained in a state where the distance between the reading port and the barcode is α, the distance between the reading port and the barcode does not increase when actually reading. If it changes to β, there is a possibility that the illumination distribution will not be appropriate in that state.

【0010】したがって、読取口とバーコードとの距離
に応じて変化する照度分布にも対応した制御を実行する
方法として、予め距離に対応させた制御データを記憶し
ておくことが考えられる。例えば読取口にサンプリング
用のバーコードがある場合の受光手段での結像状態が読
取口の幅方向において適切となる場合の各発光ダイオー
ドに対する光量制御値、読取口から距離α(>0)の位
置にサンプリング用のバーコードがある場合の光量制御
値、読取口から距離β(>α)の位置にサンプリング用
のバーコードがある場合の光量制御値、というように、
読取口からの距離を順次変えた複数のサンプリング位置
に対応して光量制御値を記憶しておく。そして、実際の
読取動作時においては、何等かの方法で読取口からバー
コードまでの距離を測定し、その測定されたバーコード
までの距離に対応する光量制御値を読み出して制御を実
行するのである。
Therefore, as a method of executing control corresponding to the illuminance distribution that changes according to the distance between the reading port and the barcode, control data corresponding to the distance may be stored in advance. For example, the light amount control value for each light emitting diode when the image forming state by the light receiving unit is appropriate in the width direction of the reading port when the reading port has a sampling barcode, and the distance α (> 0) from the reading port. A light amount control value when there is a sampling barcode at the position, a light amount control value when there is a sampling barcode at a position β (> α) from the reading port, and so on.
Light amount control values are stored in correspondence with a plurality of sampling positions where the distance from the reading port is sequentially changed. At the time of the actual reading operation, the distance from the reading port to the barcode is measured by any method, and the control is executed by reading the light amount control value corresponding to the measured distance to the barcode. is there.

【0011】[0011]

【発明が解決しようとする課題】しかしながら、従来、
読取口からバーコードまでの距離を測定するのに距離セ
ンサを用いていた。距離センサとしては例えばアクティ
ブ方式三角測量や焦電形赤外線センサなどを採用するこ
とが考えられるが、いずれにしても、バーコードに対し
て光線を照射するなどの処理が必要であるため、バーコ
ードからの画像データの読み取りのための構成とは別個
に距離測定のための構成を配備する必要がある。特に、
ハンディタイプのバーコードリーダなどを想定すると、
読取口付近に距離センサ関連の構成が配備されることは
構成の複雑化及び大型化につながるため好ましくない。
However, conventionally,
A distance sensor has been used to measure the distance from the reading port to the barcode. As the distance sensor, for example, an active triangulation or a pyroelectric infrared sensor may be employed, but in any case, a process such as irradiating a light beam to the barcode is necessary. It is necessary to provide a configuration for distance measurement separately from a configuration for reading image data from the camera. Especially,
Assuming a handy type barcode reader, etc.,
Providing a configuration related to a distance sensor near the reading opening is not preferable because it leads to a complicated configuration and an increase in size.

【0012】本発明は、こうした問題に鑑みなされたも
ので、読取口から離れた位置にある読み取り対象からも
光学情報を読み取ることのできる大深度光学情報読取装
置において、別個に距離センサを持たなくても読み取り
対象までの距離を算出することのできる光学情報読取装
置の提供を目的とするものである。
SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and a large-depth optical information reading apparatus capable of reading optical information even from a reading object located at a position distant from a reading port does not have a separate distance sensor. It is another object of the present invention to provide an optical information reading apparatus capable of calculating a distance to a reading target.

【0013】[0013]

【課題を解決するための手段及び発明の効果】上記目的
を達成するためになされた請求項1に記載の光学情報読
取装置は、発光手段からの照射光をケースの読取口を介
してケース内部からケース外部の読み取り対象に照射す
ることで、読み取り対象からの反射光を前記読取口を介
してケース内部の受光手段に結像して、該受光手段にて
読み取り対象の画像を読み取る光学情報読取装置であっ
て、所定の基準位置に配置された基準の読み取り対象か
らの反射光によって前記受光手段に結像した状態での当
該基準読み取り対象の画像サイズを記憶している基準画
像サイズ記憶手段と、任意位置にある読み取り対象から
の反射光によって前記受光手段に結像した状態での当該
読み取り対象の画像サイズを検出する画像サイズ検出手
段と、前記基準画像サイズ記憶手段に記憶されている前
記基準読み取り対象の画像サイズに対する前記画像サイ
ズ検出手段によって検出した前記読み取り対象の画像サ
イズの拡大又は縮小度合に基づき、前記任意位置にある
前記読み取り対象までの距離を算出する距離算出手段と
を備えることを特徴とする。
In order to achieve the above object, the optical information reading apparatus according to the first aspect of the present invention is directed to an optical information reading apparatus, which irradiates light emitted from a light emitting means through a reading opening of the case. By irradiating the object to be read outside the case from, the reflected light from the object to be read forms an image on the light receiving means inside the case through the reading port, and the light receiving means reads the image of the object to be read. A reference image size storage unit that stores an image size of the reference read target in a state where the image is formed on the light receiving unit by reflected light from a reference read target arranged at a predetermined reference position. Image size detecting means for detecting an image size of the reading object in a state where the light is formed on the light receiving means by reflected light from the reading object at an arbitrary position; Based on the degree of enlargement or reduction of the image size of the read target detected by the image size detection unit with respect to the image size of the reference read target stored in the size storage unit, the distance to the read target at the arbitrary position is determined. And a distance calculating means for calculating.

【0014】本光学的読取装置によれば、基準画像サイ
ズ記憶手段が、所定の基準位置に配置された基準の読み
取り対象からの反射光によって受光手段に結像した状態
での当該基準読み取り対象の画像サイズを記憶してお
り、画像サイズ検出手段が任意位置にある読み取り対象
からの反射光によって受光手段に結像した状態での当該
読み取り対象の画像サイズを検出すると、距離算出手段
が、基準画像サイズ記憶手段に記憶されている基準読み
取り対象の画像サイズに対する画像サイズ検出手段によ
って検出した読み取り対象の画像サイズの拡大又は縮小
度合に基づき、任意位置にある読み取り対象までの距離
を算出する。
According to the optical reading apparatus, the reference image size storage means stores the image of the reference reading object in an image formed on the light receiving means by the reflected light from the reference reading object arranged at the predetermined reference position. The image size is stored, and when the image size detection unit detects the image size of the reading target in a state where the image is formed on the light receiving unit by reflected light from the reading target at an arbitrary position, the distance calculation unit sets the reference image. The distance to the reading target at an arbitrary position is calculated based on the degree of enlargement or reduction of the image size of the reading target detected by the image size detection unit with respect to the image size of the reference reading target stored in the size storage unit.

【0015】この距離算出の原理を図9を参照して説明
する。例えば光学的読取装置の読取口に読取対象の一例
であるバーコードBstを配置し、そのバーコードBs
tによる反射光が結像レンズ34を介して受光手段とし
ての光学的センサ36に結像したとする。この場合の光
学的センサ36に結像したバーコードBstの画像サイ
ズWstを基準の画像サイズとして記憶しておく。そし
て、実際の読取動作時に、例えば読取口から距離L1の
位置にある距離算出対象のバーコードBoを読み取った
場合の光学的センサ36に結像したバーコードBoの画
像サイズがWo(<Wst)であったとする。バーコー
ドBst,Bo自体のサイズWは変わらないとすると、
Wo<Wstとなるのは、距離算出対象のバーコードB
oが読取口から距離L1だけ離れているからである。
The principle of this distance calculation will be described with reference to FIG. For example, a barcode Bst, which is an example of a reading target, is arranged in a reading port of an optical reading device, and the barcode Bs
It is assumed that the light reflected by t forms an image on an optical sensor 36 as a light receiving unit via an imaging lens 34. In this case, the image size Wst of the barcode Bst formed on the optical sensor 36 is stored as a reference image size. Then, at the time of the actual reading operation, for example, when the bar code Bo of the distance calculation target located at the position of the distance L1 from the reading port is read, the image size of the bar code Bo formed on the optical sensor 36 is Wo (<Wst). Assume that Assuming that the size W of the barcodes Bst and Bo itself does not change,
Wo <Wst applies to the bar code B for which the distance is to be calculated.
This is because o is separated from the reading port by the distance L1.

【0016】図9において、読取口から結像レンズ34
までの距離をL2、結像レンズ34から光学的センサ3
6までの距離のL3とすると、基準の画像サイズWst
は、バーコード自体のサイズWを用いて次式のように表
される。 Wst=(L3/L2)W 一方、読取口から距離L1の位置にあるバーコードBo
に対応する光学的センサ36上での画像サイズがWo
は、同じくWを用いて次式のように表される。
In FIG. 9, an image forming lens 34 is connected to a reading port.
L2 is the distance from the imaging lens 34 to the optical sensor 3
6, the reference image size Wst
Is expressed by the following equation using the size W of the barcode itself. Wst = (L3 / L2) W On the other hand, the barcode Bo located at the position of the distance L1 from the reading port.
The image size on the optical sensor 36 corresponding to
Is similarly expressed by the following equation using W.

【0017】Wo={L3/(L1+L2)}W これら両式からWを消去すると、L2・Wst=(L1
+L2)Woの関係が導かれ、L1は次式のように表さ
れる。 L1={(Wst/Wo)−1}L2 距離L2は装置固有の値であるため、WstとWoが判
れば、距離算出対象のバーコードBoの読取口からの距
離L1を算出することができる。つまり、距離センサな
どのハード構成を用いなくても、バーコードなどの読み
取り対象の画像データを読み取るという装置本来の機能
を利用して、バーコードまでの距離を得ることができ
る。
Wo = {L3 / (L1 + L2)} W When W is eliminated from these equations, L2 · Wst = (L1
+ L2) The relationship of Wo is derived, and L1 is expressed by the following equation. L1 = {(Wst / Wo) -1} L2 Since the distance L2 is a value unique to the apparatus, if Wst and Wo are known, the distance L1 from the reading opening of the barcode Bo to be calculated can be calculated. . That is, the distance to the barcode can be obtained by using the original function of the apparatus for reading image data to be read such as a barcode without using a hardware configuration such as a distance sensor.

【0018】従来、読取口からバーコードまでの距離を
測定するのに距離センサを用いていたが、バーコードに
対して光線を照射するなどの処理が必要であるため、バ
ーコードからの画像データの読み取りのための構成とは
別個に距離測定のための構成を配備する必要があった。
特に、ハンディタイプのバーコードリーダなどを想定す
ると、読取口付近に距離センサ関連の構成が配備される
ことは構成の複雑化及び大型化につながるため好ましく
ない。その点、本装置の場合には、読取口から離れた位
置にある読み取り対象からも光学情報を読み取ることの
できる大深度光学情報読取装置であり、別個に距離セン
サを持たなくても読み取り対象までの距離を算出するこ
とができ、非常に有利である。
Conventionally, a distance sensor has been used to measure the distance from the reading port to the bar code. However, since processing such as irradiating a light beam to the bar code is required, image data from the bar code is required. It was necessary to provide a configuration for distance measurement separately from the configuration for reading the data.
In particular, assuming a handy-type barcode reader or the like, it is not preferable to dispose a configuration related to a distance sensor in the vicinity of the reading port because the configuration becomes complicated and large. In this regard, this device is a large-depth optical information reading device that can read optical information even from a reading object located far from the reading port. Can be calculated, which is very advantageous.

【0019】このように画像サイズの拡大又は縮小度合
を用いて距離を算出したが、この画像サイズとしては、
読み取り対象の画像の代表幅とすることが考えられる。
この代表幅としては、例えばバーコードであれば、その
バーコードシンボルの存在する部分、つまりスタートキ
ャラクタからストップキャラクタまでの距離を代表幅と
すればよい。なお、本装置の読み取り対象としては、バ
ーコードのような1次元コードでもよいし、2次元コー
ドであってもよい。2次元コードの場合には縦方向の幅
と横方向の幅の2つが検出されることとなるが、その場
合には例えば大きい方の幅を代表幅とするなどの工夫を
すればよい。
As described above, the distance is calculated using the degree of enlargement or reduction of the image size.
The representative width of the image to be read may be used.
As the representative width, for example, in the case of a barcode, the portion where the barcode symbol exists, that is, the distance from the start character to the stop character may be set as the representative width. Note that the object to be read by this apparatus may be a one-dimensional code such as a barcode or a two-dimensional code. In the case of a two-dimensional code, two widths, that is, a width in the vertical direction and a width in the horizontal direction, are detected. In this case, for example, a larger width may be used as a representative width.

【0020】なお、以上の説明からも判るが、本装置の
読み取り対象はある程度限定されることとなる。つま
り、上述の距離算出の前提としては基準の画像サイズW
stを記憶させた場合の「基準読み取り対象」の画像サ
イズと、「距離算出時の読み取り対象」の画像サイズと
が同じであることが必要である。したがって、例えば郵
便物に貼付されるバーコードなどのように、同一規格で
ありサイズが一定しているような読み取り対象の場合に
は非常に有効である。
As can be seen from the above description, the object to be read by this apparatus is limited to some extent. That is, the above-described distance calculation is based on the reference image size W
It is necessary that the image size of the “reference reading target” when st is stored is the same as the image size of the “reading target at distance calculation”. Therefore, it is very effective in the case of a reading target having the same standard and a constant size, such as a bar code attached to a mail.

【0021】また、基準の画像サイズWstを記憶させ
る場合に基準読み取り対象を配置させる「基準位置」に
ついては、例えば読取口とすることが考えられる。上述
した従来技術の説明においても一例を挙げたが、バーコ
ードなどの読み取り対象が読取口から離れるにしたがっ
て照度分布が変化したり照度が低下したりするので、読
取口を基準として、そこからの距離を算出することが好
ましい。
When the reference image size Wst is stored, the "reference position" at which the reference reading object is arranged may be, for example, a reading port. Although an example has been given in the above description of the related art, the illuminance distribution changes or the illuminance decreases as the reading target such as a bar code moves away from the reading opening. Preferably, the distance is calculated.

【0022】ところで、上述したように距離センサを用
いずに算出した距離に基づいて行う制御としては、例え
ば発光手段に対する光量制御などが考えられる。例え
ば、請求項6に示すように、基準読み取り対象を用いた
場合の受光手段での結像状態が読取口の幅方向における
適切な照度分布となる場合の発光手段に対する光量制御
値を、読取口からの距離を順次変えた複数のサンプリン
グ位置に対応して記憶しておき、前記距離算出手段によ
って算出された読み取り対象までの距離に対応する光量
制御値を読み出し、その光量制御値に基づいて発光手段
に対する光量制御を行うのである。
By the way, as the control to be performed based on the distance calculated without using the distance sensor as described above, for example, light amount control for the light emitting means can be considered. For example, as described in claim 6, the light amount control value for the light emitting means when the image forming state of the light receiving means when the reference reading object is used has an appropriate illuminance distribution in the width direction of the reading opening is set to the reading opening. The light amount control value corresponding to the distance to the object to be read calculated by the distance calculation means is stored in correspondence with a plurality of sampling positions in which the distance from is sequentially changed, and light is emitted based on the light amount control value. The light amount control for the means is performed.

【0023】受光手段における結像状態が理想の照度分
布となる場合とは、概略的に言えば読取口の幅方向にお
ける照度分布が均一(反射光波形の振幅が均一)になる
状態である。上述したように、発光手段からの照射光の
照度分布がいくらフラットであるとしても、反射光が結
像レンズを通って受光素子に結像される時点では、結像
レンズのCOS4 法則やMTF特性等によって反射光波
形の振幅は周辺にいくほど低下することとなる。したが
って、受光手段に結像する時点で照度分布が均一になる
ようにするには、概略的に言えば読取口の幅方向に見た
場合に中央よりも周辺の方が明るくなる照射光の照度分
布となるように発光手段を制御する必要がある。
The case where the image forming state of the light receiving means is an ideal illuminance distribution is a state in which the illuminance distribution in the width direction of the reading opening is uniform (the amplitude of the reflected light waveform is uniform). As described above, no matter how flat the illuminance distribution of the irradiation light from the light emitting unit is, when the reflected light passes through the imaging lens and forms an image on the light receiving element, the COS 4 law of the imaging lens and the MTF Due to the characteristics and the like, the amplitude of the reflected light waveform decreases as it goes closer to the periphery. Therefore, in order to make the illuminance distribution uniform at the time of image formation on the light receiving means, roughly speaking, when viewed in the width direction of the reading opening, the illuminance of the illuminating light becomes brighter at the periphery than at the center when viewed in the width direction of the reading opening. It is necessary to control the light emitting means so as to obtain a distribution.

【0024】但し、単に中央よりも周辺の方が明るくな
る照射光の照度分布となるように発光手段を固定的に設
定するだけでは、特定の位置に読取対象のバーコードが
存在する場合にしか対応できない。つまり、反射光波形
の振幅が周辺にいくほど低下する度合は、読取口とバー
コードとの距離が変わればそれに応じて変わってくるか
らである。これは、光学系の特性(回折や像のぼけ度合
など)や周囲環境などが原因である。したがって、読取
口からバーコードまでの距離がある状態の場合に適切な
照度分布となるように発光ダイオードの配置や光量を調
整したとしても、実際に読み取る場合に読取口とバーコ
ードとの距離が変われば、その状態では適切な照度分布
とならない可能性がある。
However, simply setting the light emitting means in a fixed manner so that the illuminance distribution of the illuminating light becomes brighter in the periphery than in the center only when the bar code to be read exists at a specific position. I can not cope. That is, the degree to which the amplitude of the reflected light waveform decreases as it goes to the periphery changes according to the change in the distance between the reading port and the barcode. This is due to the characteristics of the optical system (such as the degree of diffraction and image blur) and the surrounding environment. Therefore, even if the arrangement and the light amount of the light emitting diodes are adjusted so that an appropriate illuminance distribution is obtained when there is a distance from the reading port to the barcode, the distance between the reading port and the barcode does not increase when actually reading. If it changes, the appropriate illuminance distribution may not be obtained in that state.

【0025】したがって、読取口にサンプリング用の読
み取り対象がある場合の受光手段での結像状態が読取口
の幅方向において適切となる場合の発光手段に対する光
量制御値、読取口から距離α(>0)の位置にサンプリ
ング用の読み取り対象がある場合の光量制御値、読取口
から距離β(>α)の位置にサンプリング用の読み取り
対象がある場合の光量制御値、というように、読取口か
らの距離を順次変えた複数のサンプリング位置に対応し
て光量制御値を記憶しておく。
Accordingly, the light amount control value for the light emitting means when the image forming state of the light receiving means is appropriate in the width direction of the reading port when the reading port has a reading target for sampling, and the distance α (>) from the reading port. 0) the light quantity control value when there is a sampling read target at the position, the light quantity control value when the sampling read target is at a distance β (> α) from the reading port, and so on. The light amount control values are stored in correspondence with a plurality of sampling positions where the distances are sequentially changed.

【0026】そして、実際の読取動作時においては、距
離算出手段によって読取口から読み取り対象までの距離
を測定し、制御手段が、その測定された読み取り対象ま
での距離に対応する光量制御値を制御値記憶手段から読
み出し、その光量制御値に基づいて発光手段に対する光
量制御を行う。なお、実際の読取動作時においては、読
取口から読み取り対象までの距離hが上述のサンプリン
グ位置での距離αやβには一致しないことの方が多いと
想定されるが、例えば0<h≦αの場合にはαでの光量
制御値を用い、α<h≦βの場合にはβでの光量制御値
を用いればよい。また、距離0,α,βでの光量制御値
を用いて、それ以外の距離における光量制御値を補間に
より求めてもよい。
In the actual reading operation, the distance from the reading port to the object to be read is measured by the distance calculating means, and the control means controls the light amount control value corresponding to the measured distance to the object to be read. The light quantity is read from the value storage means, and the light quantity control for the light emitting means is performed based on the light quantity control value. In the actual reading operation, it is assumed that the distance h from the reading port to the reading target often does not match the distance α or β at the sampling position. For example, 0 <h ≦ In the case of α, the light amount control value at α may be used, and when α <h ≦ β, the light amount control value at β may be used. Further, the light quantity control values at other distances may be obtained by interpolation using the light quantity control values at the distances 0, α, and β.

【0027】なお、制御値記憶手段に記憶されている光
量制御値は、発光手段に供給するエネルギーの制御値と
して記憶しておいてもよいし、あるいは、受光手段が受
光可能な状態にある時間帯内での、発光手段の発光時間
の制御値として記憶しておいてもよい。
The light amount control value stored in the control value storage means may be stored as a control value of the energy supplied to the light emitting means, or may be a time period during which the light receiving means can receive light. It may be stored as a control value of the light emitting time of the light emitting means within the band.

【0028】また、光量制御に加えて受光手段に対する
露光時間制御も行うようにする場合には、制御値記憶手
段が、サンプリング用の読み取り対象を用いた場合の受
光手段での結像状態が適切な受光量にて実現される場合
の受光手段に対する露光時間制御値も、複数のサンプリ
ング位置に対応して記憶しておけばよい。こうすれば、
制御手段が、読み取り対象までの距離に対応する光量制
御値と露光時間制御値を制御値記憶手段から読み出し、
光量制御値に基づいて発光手段に対する光量制御を行う
と共に、露光時間制御値に基づいて露光時間制御を行う
ことができる。
When the exposure time control for the light receiving means is also performed in addition to the light quantity control, the control value storage means may appropriately control the image forming state of the light receiving means when a reading object for sampling is used. Exposure time control values for the light receiving means in the case of realizing a large amount of received light may be stored corresponding to a plurality of sampling positions. This way,
The control unit reads a light amount control value and an exposure time control value corresponding to the distance to the reading target from the control value storage unit,
The light amount control for the light emitting means can be performed based on the light amount control value, and the exposure time control can be performed based on the exposure time control value.

【0029】なお、受光手段の露光時間がシャッタによ
り制限されている場合には、制御値記憶手段に、シャッ
タを開く時間の制御値を露光時間制御値として記憶して
おけばよい。また、光量制御及び露光時間制御に増幅手
段に対する増幅率制御も行うようにする場合には、制御
値記憶手段が、基準読み取り対象を用いた場合の受光手
段からの出力に対する前記増幅手段での適切な増幅率
も、複数のサンプリング位置に対応して記憶しており、
制御手段が、算出された読み取り対象までの距離に対応
する増幅率も制御値記憶手段から読み出し、当該増幅率
に基づいて増幅手段に対する増幅率制御を行うよう構成
すればよい。
When the exposure time of the light receiving means is limited by the shutter, the control value for opening the shutter may be stored in the control value storage means as the exposure time control value. In the case where the light amount control and the exposure time control are also performed with the amplification factor control for the amplifying unit, the control value storage unit may be configured to appropriately control the output from the light receiving unit when the reference reading target is used. High amplification factors are also stored corresponding to multiple sampling positions.
The control means may also be configured to read the amplification factor corresponding to the calculated distance to the reading target from the control value storage unit, and to control the amplification factor for the amplification unit based on the amplification factor.

【0030】[0030]

【発明の実施の形態】図1は、上述した発明が適用され
た実施の形態としての光学情報読取装置4の概略構成図
である。本実施の形態において、光学情報読取装置4
は、いわゆるバーコードリーダハンディターミナルとし
て構成されているものである。図1は光学情報読取装置
4の概略断面図であり、図2はその制御系統のブロック
図である。
FIG. 1 is a schematic configuration diagram of an optical information reading device 4 as an embodiment to which the above-mentioned invention is applied. In the present embodiment, the optical information reading device 4
Is configured as a so-called barcode reader handy terminal. FIG. 1 is a schematic sectional view of the optical information reading device 4, and FIG. 2 is a block diagram of a control system thereof.

【0031】光学情報読取装置4は、ケース12、読取
部14、データ処理出力部16、および電源部18を備
えている。ケース12の前方部の内部には読取部14が
配置され、また、ケース12の後方部は操作者が手で握
るための把持部20を形成している。ケース12の前方
部の下部には、左右(図1では紙面に垂直方向)に長
い、すなわち幅方向に長い読取口22が設けられ、読取
口22の奥には、防塵プレート24が配置されて、読取
口22を閉塞している。このことにより、塵が読取口2
2からケース12内部に侵入するのを防止している。ま
た、防塵プレート24は、少なくとも下に述べる読み取
り光としての赤色の光は通過可能である。
The optical information reading device 4 includes a case 12, a reading unit 14, a data processing output unit 16, and a power supply unit 18. The reading unit 14 is arranged inside the front part of the case 12, and the rear part of the case 12 forms a grip part 20 for the operator to hold with a hand. In the lower part of the front part of the case 12, a reading port 22 which is long in the left and right (in the direction perpendicular to the paper surface in FIG. 1), that is, is long in the width direction, is provided. , The reading port 22 is closed. As a result, the dust is
2 to prevent it from entering the inside of the case 12. Further, the dustproof plate 24 can pass at least red light as reading light described below.

【0032】読取部14は、照明用赤色発光ダイオード
26(発光手段に該当)、発光駆動回路28、バーコー
ド照射用レンズ30、反射鏡32、結像レンズ部34お
よび光学的センサ36(受光手段に該当)を備えてい
る。発光駆動回路28により照明用赤色発光ダイオード
26が発光すると、その赤色光は防塵プレート24を通
過して、ケース12外部のバーコード8を照射する。図
1では、バーコード8のバー配列方向と読取口22の幅
方向とを合わせて、図1中に実線で示すようにバーコー
ド8を読取口22にほぼ接触した状態にて、赤色光でバ
ーコード8を照射している場合を示している。もちろ
ん、図1中に破線で示すように、バーコード8から読取
口を離した状態で読み取らせても良い。
The reading section 14 includes an illumination red light emitting diode 26 (corresponding to a light emitting means), a light emission driving circuit 28, a bar code irradiation lens 30, a reflecting mirror 32, an imaging lens section 34, and an optical sensor 36 (light receiving means). Applicable). When the illumination red light emitting diode 26 emits light by the light emission drive circuit 28, the red light passes through the dustproof plate 24 and irradiates the bar code 8 outside the case 12. In FIG. 1, the bar arrangement direction of the bar code 8 and the width direction of the reading port 22 are aligned, and the bar code 8 is almost in contact with the reading port 22 as shown by a solid line in FIG. The case where the bar code 8 is irradiated is shown. Of course, as shown by the broken line in FIG. 1, the reading may be performed with the reading opening separated from the barcode 8.

【0033】バーコード8により反射された赤色光は、
再度、防塵プレート24からケース12内に入り、反射
鏡32で反射されて、縦長絞り(図示せず)を内蔵する
結像レンズ部34に入射し、縦長絞り、複数枚で構成さ
れる結像レンズを介して、受光素子がリニアに一列配列
された光学的センサ36にバーコード8の像を、その各
バーの配列方向と光学的センサ36の受光素子の配列方
向とが同じ方向で結像させる。このバーコード8の像を
光電変換して読み取った光学的センサ36は、像のパタ
ーンを表す電気信号としてデータ処理出力部16側に出
力する。
The red light reflected by the bar code 8 is
Again, the dust enters the case 12 from the dustproof plate 24, is reflected by the reflecting mirror 32, and is incident on the imaging lens unit 34 having a vertically long aperture (not shown) built therein. An image of the barcode 8 is formed on the optical sensor 36 in which light receiving elements are linearly arranged in a line via a lens in the same direction as the arrangement direction of each bar and the light receiving element of the optical sensor 36. Let it. The optical sensor 36 that has read the image of the barcode 8 by photoelectric conversion and outputs it to the data processing output unit 16 as an electric signal representing the pattern of the image.

【0034】なお、結像レンズ部34に内蔵されている
縦長絞りは、結像レンズよりも読取口22側に配置され
て、その長手方向がバーコード8のバーの長手方向と一
致した状態でバーコード8を読み取るように設定してあ
る。また、反射鏡32および結像レンズ部34からなる
結像系は、少なくとも読取口22の位置と、その読取口
22の位置から数10cm(例えば、30〜50cm)
離れた位置までのバーコード8について読み取ることが
できるように大深度の結像系として構成されている。
The longitudinal aperture built in the imaging lens unit 34 is disposed closer to the reading port 22 than the imaging lens, and its longitudinal direction coincides with the longitudinal direction of the bar of the bar code 8. The bar code 8 is set to be read. The imaging system including the reflecting mirror 32 and the imaging lens unit 34 has at least the position of the reading opening 22 and several tens of cm (for example, 30 to 50 cm) from the position of the reading opening 22.
It is configured as an imaging system with a large depth so that the bar code 8 up to a distant position can be read.

【0035】また、光学的センサ36は、受光素子が一
列に配列されその各受光素子のアスペクト比がほぼ
「1」であるファクシミリ装置の原稿読み取り用撮像素
子を用いている。ケース12内部のデータ処理出力部1
6には、基板38上に、増幅回路41、メモリ42(基
準画像サイズ記憶手段及び制御値記憶手段に該当)、2
値化回路43、マイクロコンピュータ44(制御手段に
該当)およびレジスタやホストコンピュータ等の本体装
置への出力回路46が備えられている。データ処理出力
部16は、読取部14からバーコード8の読み取りデー
タを、増幅回路41及び2値化回路43を介して入力す
ると、マイクロコンピュータ44の処理により、そのデ
ータをデコード(解読)して、バーコード8が表してい
る情報を得、その情報をメモリ42に一旦記憶する。次
に、このメモリ42内に記憶された情報を出力回路46
により、シリアル信号として本体装置へ送信する。な
お、本実施形態では有線通信としているが、光や電波に
よる無線通信としてもよい。
The optical sensor 36 uses an image sensor for reading a document of a facsimile apparatus in which light receiving elements are arranged in a line and each light receiving element has an aspect ratio of approximately "1". Data processing output unit 1 inside case 12
6 includes an amplification circuit 41, a memory 42 (corresponding to a reference image size storage unit and a control value storage unit) on a substrate 38,
A value conversion circuit 43, a microcomputer 44 (corresponding to control means), and an output circuit 46 to a main unit such as a register and a host computer are provided. When the read data of the barcode 8 is input from the reading unit 14 via the amplifying circuit 41 and the binarizing circuit 43, the data processing output unit 16 decodes (decodes) the data by processing of the microcomputer 44. , The information represented by the barcode 8 is obtained, and the information is temporarily stored in the memory 42. Next, the information stored in the memory 42 is output to an output circuit 46.
Thus, a serial signal is transmitted to the main unit. In this embodiment, wired communication is used, but wireless communication using light or radio waves may be used.

【0036】また読取部14が収納されている部分の、
光路に影響しない位置に、ブザー装置48が設けられ、
マイクロコンピュータ44にてバーコード8のデコード
に成功した場合に、ブザー装置48を鳴動させるように
している。また、電源部18は、電池18aが電源とし
て収納されている。
In the portion where the reading section 14 is stored,
A buzzer device 48 is provided at a position not affecting the optical path,
When the microcomputer 44 succeeds in decoding the bar code 8, the buzzer device 48 sounds. In the power supply section 18, a battery 18a is housed as a power supply.

【0037】マイクロコンピュータ44は、周知のCP
U,ROM,RAM,I/O等を備えて、上述したデー
タ処理出力部16として必要な処理を実行している。こ
こで、光学的な配置状態を図3に模式的に示す。図1に
おいて説明した照明用赤色発光ダイオード26は、実際
には図3に示すように4個の照明用赤色発光ダイオード
26a,26b,26c,26dから構成されており、
これらからの照射光は集光レンズ30を介して読取口2
2から、ケース12の外部に存在するバーコード8を照
射する。
The microcomputer 44 has a well-known CP.
U, ROM, RAM, I / O, and the like are provided to execute necessary processing as the data processing output unit 16 described above. Here, the optical arrangement state is schematically shown in FIG. The illumination red light emitting diode 26 described in FIG. 1 is actually composed of four illumination red light emitting diodes 26a, 26b, 26c and 26d as shown in FIG.
Irradiation light from these is passed through the condenser lens 30 to the reading port 2.
From 2, the bar code 8 existing outside the case 12 is irradiated.

【0038】照明用赤色発光ダイオード26a,26
b,26c,26dは読取口の幅方向に横並びで配置さ
れているのであるが、読取口22の両端側を中央部に比
べて密にしてある。これは、照明用赤色発光ダイオード
26a,26b,26c,26dからの照射光が読み取
り対象となるバーコード8上で中央部よりも周辺部の照
度を大きくするためである。なお、図3(b)に示すよ
うに、照明用赤色発光ダイオード26a,26b,26
c,26dの照射方向を読取口22の両端側に傾けるよ
うにして、読取対象の周辺部での照度を大きくするよう
な工夫も考えられる。
The red light emitting diodes 26a, 26 for illumination
Although b, 26c and 26d are arranged side by side in the width direction of the reading opening, both end sides of the reading opening 22 are made denser than the central portion. This is because the illumination light from the illumination red light emitting diodes 26a, 26b, 26c, 26d makes the illuminance at the peripheral portion larger than at the central portion on the bar code 8 to be read. As shown in FIG. 3B, the red light emitting diodes 26a, 26b, 26 for illumination are used.
It is also conceivable to incline the irradiation directions of c and 26d toward both ends of the reading port 22 so as to increase the illuminance in the peripheral portion of the reading target.

【0039】このように、照明用赤色発光ダイオード2
6a,26b,26c,26dからの照射光が読み取り
対象となるバーコード8上で中央部よりも周辺部の照度
を大きくするのは、照射光の照度分布がいくらフラット
であるとしても、反射光が結像レンズ部34を通って光
学的センサ36に結像される時点では、結像レンズ部3
4のCOS4 法則やMTF特性等により、図4(a)に
示すように、反射光波形の振幅が周辺にいくほど低下す
ることに対応するためである。
As described above, the red light emitting diode 2 for illumination
The reason that the illuminance of the irradiation light from 6a, 26b, 26c, and 26d on the bar code 8 to be read is higher in the peripheral portion than in the center portion is that the reflected light is no matter how flat the illuminance distribution of the irradiation light is. Is formed on the optical sensor 36 through the imaging lens unit 34, the imaging lens unit 3
This is to cope with the fact that the amplitude of the reflected light waveform decreases toward the periphery as shown in FIG. 4A due to the COS 4 law, MTF characteristics, etc.

【0040】しかしながら、これらはある特定の位置に
読取対象のバーコードが存在する場合にしか対応できな
い。つまり、上述した反射光波形の振幅が周辺にいくほ
ど低下する度合は、読取口22とバーコード8との距離
が変わればそれに応じて変わってくるからである。した
がって、例えば図1中に実線で示すようにバーコード8
を読取口22にほぼ接触した状態にてバーコード8を照
射した場合を基準として調整したとしても、図1中に破
線で示すようにバーコード8から読取口22を離した状
態においては不適切となる。そのため、バーコード8か
ら読取口22を離した状態においてはその離れた距離に
応じた適切な照明光の照度分布となるようにしなくては
ならない。
However, these methods can only cope with a case where a bar code to be read exists at a specific position. That is, the degree to which the amplitude of the reflected light waveform decreases as it goes to the periphery changes according to the change in the distance between the reading port 22 and the barcode 8. Therefore, for example, as shown by a solid line in FIG.
Even if the adjustment is made based on the case where the bar code 8 is irradiated in a state where the reading port 22 is almost in contact with the reading port 22, it is inappropriate when the reading port 22 is separated from the bar code 8 as shown by a broken line in FIG. Becomes Therefore, when the reading port 22 is separated from the barcode 8, the illumination intensity distribution of the illumination light must be appropriately adjusted according to the distance.

【0041】この点に鑑みて本実施形態では、各照明用
赤色発光ダイオード26a,26b,26c,26dの
光量を制御できるように発光駆動回路28を構成してあ
る。この発光駆動回路28は、例えば図5に示すごとく
であり、ここでは、照明用赤色発光ダイオード26a
(26b,26c,26d)と電源Vccとの間に、制
限抵抗Rを設け、照明用赤色発光ダイオード26a(2
6b,26c,26d)の低電位側にはトランジスタT
Rが接続されている。これら制限抵抗Rおよびトランジ
スタTRが発光駆動回路28に該当する。照明用赤色発
光ダイオード26a(26b,26c,26d)を発光
させる場合は、マイクロコンピュータ44がトランジス
タTRに発光信号Pを出力することにより、照明用赤色
発光ダイオード26a(26b,26c,26d)に電
流が流れて発光する。
In view of this point, in the present embodiment, the light emission drive circuit 28 is configured so as to be able to control the light amount of each of the illumination red light emitting diodes 26a, 26b, 26c, 26d. The light emission drive circuit 28 is, for example, as shown in FIG.
(26b, 26c, 26d) and a power supply Vcc, a limiting resistor R is provided, and a red light emitting diode 26a (2
6b, 26c, 26d), the transistor T
R is connected. The limiting resistor R and the transistor TR correspond to the light emission drive circuit 28. When the illumination red light emitting diode 26a (26b, 26c, 26d) emits light, the microcomputer 44 outputs an emission signal P to the transistor TR, so that the current is supplied to the illumination red light emitting diode 26a (26b, 26c, 26d). Flows to emit light.

【0042】各照明用赤色発光ダイオード26a,26
b,26c,26dの光量制御は、例えば4つの照明用
赤色発光ダイオード26a,26b,26c,26dの
光量を等しくすると、バーコード8からの反射光が結像
する領域D内において周辺部の出力V1が中央部の出力
V2に比して小さくなるような場合であれば、例えば両
端の2つの照明用赤色発光ダイオード26a,26dの
光量を中央の2つの照明用赤色発光ダイオード26b,
26cよりも大きくして、図4(b)に示すように周辺
部の出力V3が中央部の出力V4とほぼ同じぐらいにな
るようにするといった制御である。その場合の制御は、
光学的センサ36における受光素子の露光時間が図6
(a)に示すT1であるとすると、その露光時間T1内
において、例えば図4においてバーコード8の中央部を
照らすための2個の照明用赤色発光ダイオード26b,
26cを図6(b)に示す点灯時間T2だけ点灯させた
後、消灯する。このようにすると、光学的センサ36に
おける受光素子においては、中央部に対応する受光素子
より周辺部に対応する受光素子が時間T1−T2だけ長
く光を蓄積することができるため、この点灯時間T2を
調整すれば、図4(b)に示すように周辺部の出力V3
が中央部の出力V4とほぼ同じぐらいになるようにする
ことが可能となる。
Each illumination red light emitting diode 26a, 26
For example, when the light amounts of the four red light emitting diodes 26a, 26b, 26c, and 26d are equalized, the light amount control of the peripheral portions in the region D where the reflected light from the bar code 8 forms an image is performed. In the case where V1 is smaller than the output V2 at the center, for example, the light amounts of the two illumination red light emitting diodes 26a and 26d at both ends are reduced by the two illumination red light emitting diodes 26b at the center.
The control is made to be larger than 26c so that the output V3 in the peripheral portion becomes almost the same as the output V4 in the central portion as shown in FIG. 4B. The control in that case is
The exposure time of the light receiving element in the optical sensor 36 is shown in FIG.
Assuming T1 shown in (a), within the exposure time T1, for example, two illumination red light emitting diodes 26b for illuminating the center of the bar code 8 in FIG.
26c is turned on for the lighting time T2 shown in FIG. In this manner, in the light receiving element of the optical sensor 36, the light receiving element corresponding to the peripheral portion can store light longer than the light receiving element corresponding to the central portion by the time T1−T2, so that the lighting time T2 Is adjusted, the output V3 of the peripheral portion is adjusted as shown in FIG.
Is approximately the same as the output V4 at the center.

【0043】また、光学的センサ36からの出力が小さ
すぎると2値化回路43にて適切に2値化されず、結果
としてバーコード8の情報を適切に読み取ることができ
なくなるため、光学的センサ36における露光時間T1
を長くするように制御する。この露光時間T1を長くす
ると、光学的センサ36の受光素子の受光時間が長くな
り、それだけ蓄積する電荷量が増加するため、光学的セ
ンサ36からの出力レベルが全体的に大きくなる。な
お、上述したように所定の露光時間T1内において、バ
ーコード8の中央部を照らすための2個の照明用赤色発
光ダイオード26b,26cを図6(b)に示す点灯時
間T2だけ点灯させることを前提としているので、露光
時間T1を長くしたら同じ割合で点灯時間T2も長くす
る。
If the output from the optical sensor 36 is too small, the binarization circuit 43 does not properly binarize the data. As a result, the information of the bar code 8 cannot be read properly. Exposure time T1 in sensor 36
Is controlled to be longer. When the exposure time T1 is lengthened, the light receiving time of the light receiving element of the optical sensor 36 is lengthened, and the amount of accumulated charge is increased accordingly, so that the output level from the optical sensor 36 is increased as a whole. As described above, within the predetermined exposure time T1, the two illumination red light emitting diodes 26b and 26c for illuminating the center of the barcode 8 are turned on for the lighting time T2 shown in FIG. 6B. Therefore, if the exposure time T1 is increased, the lighting time T2 is also increased at the same rate.

【0044】なお、これらの制御は、メモリ42に記憶
されている制御値に基づいて実行する。詳しくは、サン
プリング用の読み取り対象を用いた場合の光学的センサ
36での結像状態が読取口22の幅方向における適切な
照度分布となる場合の照明用赤色発光ダイオード26
a,26b,26c,26dに対する光量制御値(この
場合には点灯時間T2)及び光学的センサ36からの出
力レベルが適切な値となる場合の露光時間T1を、読取
口22からの距離Lを順次変えた複数のサンプリング位
置に対応してメモリ42に記憶しておき、実際の読取動
作時においては、読取口22からバーコード8までの距
離に対応する点灯時間T2をメモリ42から読み出し、
その制御値に基づく制御を行う。
These controls are executed based on the control values stored in the memory 42. More specifically, the illumination red light emitting diode 26 when the imaging state of the optical sensor 36 when the reading target for sampling is used has an appropriate illuminance distribution in the width direction of the reading opening 22.
The light amount control values (the lighting time T2 in this case) for a, 26b, 26c, and 26d, and the exposure time T1 when the output level from the optical sensor 36 becomes an appropriate value, and the distance L from the reading port 22 are In the actual reading operation, the lighting time T2 corresponding to the distance from the reading port 22 to the barcode 8 is read out from the memory 42 in correspondence with a plurality of sampling positions that are sequentially changed.
Control based on the control value is performed.

【0045】したがって、このような制御を実行するた
めには、実際の読取動作時において読取口22からバー
コード8までの距離を得る必要があるが、本実施形態の
場合には、距離センサなどで測定するのではなく、実際
の読み取り対象であるバーコード8からの反射光を基に
して読み取った画像データを用いて算出する。
Therefore, in order to execute such control, it is necessary to obtain a distance from the reading port 22 to the bar code 8 during an actual reading operation. In the case of this embodiment, however, a distance sensor or the like is used. , And is calculated using image data read based on the reflected light from the bar code 8 that is the actual reading target.

【0046】この距離算出の原理については図9を参照
して説明したが、ここで再度本実施形態の構成を前提と
して説明する。本実施形態の光学情報読取装置4では、
図7に示すように、読取口22から結像レンズ部34ま
での距離をL2、結像レンズ部34から光学的センサ3
6までの距離をL3とし、これらの値は既知である。そ
して、読取口22からバーコード8までの距離L1を算
出することが特徴である。
The principle of this distance calculation has been described with reference to FIG. 9, but will be described here again based on the configuration of the present embodiment. In the optical information reading device 4 of the present embodiment,
As shown in FIG. 7, the distance from the reading port 22 to the imaging lens unit 34 is L2, and the distance from the imaging lens unit 34 to the optical sensor 3 is L2.
The distance to 6 is L3, and these values are known. The feature is that the distance L1 from the reading port 22 to the barcode 8 is calculated.

【0047】図9から判るように、基準となるバーコー
ドBstを読取口22に配置した場合の光学的センサ3
6に結像した画像の幅(基準画像幅)Wstと、読取口
22から距離L1の位置にあるバーコードBoを読み取
った場合の光学的センサ36に結像した画像の幅(距離
算出対象画像幅)Woが、両バーコードBst,Bo自
体の幅Wは変わらないとすると、Wo<Wstとなるの
は、バーコードBoが読取口22から距離L1だけ離れ
ているからである。
As can be seen from FIG. 9, the optical sensor 3 in the case where the reference bar code Bst is disposed in the reading opening 22
6, the width (reference image width) Wst of the image formed on the optical sensor 36 and the width of the image formed on the optical sensor 36 when the bar code Bo located at the position of the distance L1 from the reading port 22 (distance calculation target image) Assuming that the width Wo does not change the width W of both barcodes Bst and Bo itself, Wo <Wst occurs because the barcode Bo is separated from the reading opening 22 by the distance L1.

【0048】そして、これら2つの画像幅Wst,Wo
は、バーコード自体の幅Wを用いて次式のように表され
る。 Wst=(L3/L2)W Wo={L3/(L1+L2)}W これら両式からWを消去すると、L2・Wst=(L1
+L2)Woの関係が導かれ、L1は次式のように表さ
れる。
Then, these two image widths Wst, Wo
Is expressed by the following equation using the width W of the barcode itself. Wst = (L3 / L2) W Wo = {L3 / (L1 + L2)} W When W is eliminated from both equations, L2 · Wst = (L1
+ L2) The relationship of Wo is derived, and L1 is expressed by the following equation.

【0049】L1={(Wst/Wo)−1}L2 距離L2は装置固有の値であるため、WstとWoが判
れば、読取口22からバーコードBoまでの距離L1を
算出することができる。つまり、距離センサなどのハー
ド構成を用いなくても、バーコードの画像データを読み
取るという装置本来の機能を利用して、バーコードまで
の距離を得ることができるのである。
L1 = {(Wst / Wo) -1} L2 Since the distance L2 is a value unique to the apparatus, if Wst and Wo are known, the distance L1 from the reading port 22 to the bar code Bo can be calculated. . In other words, the distance to the barcode can be obtained by using the original function of the apparatus for reading the image data of the barcode without using a hardware configuration such as a distance sensor.

【0050】なお、本実施形態においては、図9におけ
る基準バーコードBstとして、図8に示すようなサン
プリング用ラベルを用いる。このサンプリング用ラベル
におけるバーコードの白バーの幅W1及び黒バーの幅W
2は、回折や像のぼけ度合などの光学系の特性の影響が
小さい例えば1mm以上の等間隔で構成し、それらの中
に2本の太いバー(通常のバーと区別するため、上記W
1,W2の2倍以上であることが好ましい。)によっ
て、読取口22の幅よりは小さな間隔Wを構成する。
In this embodiment, a sampling label as shown in FIG. 8 is used as the reference barcode Bst in FIG. The width W1 of the white bar and the width W of the black bar of the barcode in this sampling label
2 are arranged at equal intervals of, for example, 1 mm or more, which are less affected by the characteristics of the optical system such as the degree of diffraction and the degree of image blur, and include two thick bars (the above-mentioned W
It is preferably at least twice as large as 1, W2. ) Forms an interval W smaller than the width of the reading port 22.

【0051】次に、上述した基準画像幅Wstと各種制
御値を記憶させる処理について説明する。この記憶処理
は例えば工場出荷時等において行う。これはマイクロコ
ンピュータ44が実行するので、その処理について図1
0のフローチャートを参照して説明する。
Next, a process for storing the above-described reference image width Wst and various control values will be described. This storage process is performed, for example, at the time of factory shipment. Since this is executed by the microcomputer 44, its processing is shown in FIG.
This will be described with reference to the flowchart of FIG.

【0052】処理が開始されると、まず読取口22に、
基準バーコードBst(図9参照)が印刷されたサンプ
リング用ラベル(図8参照)が配置されたかどうかを判
定する(S110)。これは、例えば初期設定を行う操
作者が図示しない操作ボタンを押すなどして指示するこ
となどが考えられ、その場合には操作ボタンが押される
とセッティング完了となり(S110:YES)、S1
20へ移行する。
When the process is started, first, the reading port 22 is
It is determined whether or not a sampling label (see FIG. 8) on which the reference barcode Bst (see FIG. 9) is printed (S110). For example, it is conceivable that the operator performing the initial setting gives an instruction by pressing an operation button (not shown). In this case, when the operation button is pressed, the setting is completed (S110: YES), and S1 is performed.
Move to 20.

【0053】S120では基準画像幅Wstの算出を行
う。これは、基準バーコードBstからの反射光に基づ
く光学的センサ36からの出力を増幅回路41にて増幅
し、その増幅信号を2値化回路43にて2値化し、その
2値化信号をマイクロコンピュータ44にて取り込み、
上述した基準バーコードBstの太いバー(図9参照)
の間隔Wを算出することによって行う。この算出した間
隔Wが、光学的センサ36上にて結像した基準バーコー
ドBstの基準画像幅Wstである。
In S120, the reference image width Wst is calculated. This is because the output from the optical sensor 36 based on the reflected light from the reference barcode Bst is amplified by the amplifier circuit 41, the amplified signal is binarized by the binarization circuit 43, and the binarized signal is Captured by microcomputer 44,
Thick bar of the above-mentioned reference barcode Bst (see FIG. 9)
By calculating the interval W. The calculated interval W is the reference image width Wst of the reference barcode Bst formed on the optical sensor 36.

【0054】そして、この算出した基準画像幅Wst及
び既知であるL2,L3をメモリ42に記憶する(S1
30)。その後、所定のサンプリング位置にサンプリン
グ用ラベル(図8参照)が配置されたかどうかを判定す
る(S140)。これも上述したS110の処理と同様
に、例えば初期設定を行う操作者が図示しない操作ボタ
ンを押すなどして指示することなどが考えられ、その場
合には操作ボタンが押されるとセッティング完了となり
(S140:YES)、S150へ移行する。そして、
S150では、そのサンプリング位置に応じた露光時間
T1と増幅率を記憶する。
Then, the calculated reference image width Wst and the known L2 and L3 are stored in the memory 42 (S1).
30). Thereafter, it is determined whether or not a sampling label (see FIG. 8) is arranged at a predetermined sampling position (S140). Similarly to the processing of S110 described above, for example, it is conceivable that the operator performing the initial setting gives an instruction by pressing an operation button (not shown). In this case, the setting is completed when the operation button is pressed ( S140: YES), and proceeds to S150. And
In S150, the exposure time T1 and the amplification factor corresponding to the sampling position are stored.

【0055】まず、サンプリング位置については、読取
口22からの距離0、つまり読取口22にサンプリング
用ラベルが配置された場合も含め、所定の最大値max
までの間に適宜サンプリング位置を設定し、サンプリン
グ用ラベルを順次移動配置させ、その都度セッティング
完了を上述した操作ボタンなどで指示すればよい。
First, as for the sampling position, the distance from the reading port 22 is 0, that is, the predetermined maximum value max including the case where the sampling label is arranged in the reading port 22.
A sampling position may be set as appropriate, the sampling labels may be sequentially moved and arranged, and the completion of setting may be indicated each time by the operation button or the like.

【0056】なお、この場合、露光時間T1と増幅率に
ついては、サンプリング位置で必要となる値を予め設定
しておき、外部から与えることが考えられる。もちろ
ん、後述する点灯時間T2のように制御値を変更しなが
ら実際にデコードできるかどうかを判断して適切な値を
選定してもよいが、ここでは簡単のため外部から与える
こととする。
In this case, with respect to the exposure time T1 and the amplification factor, it is conceivable that values required at the sampling position are set in advance and given from outside. Of course, it is also possible to determine whether decoding can be actually performed while changing the control value as in a lighting time T2 to be described later and select an appropriate value.

【0057】次にS160では、点灯時間T2の制御を
行う。上述したように、光学的センサ36における受光
素子の露光時間T1内において照明用赤色発光ダイオー
ド26a,26b,26c,26dを図6(b)に示す
点灯時間T2だけ点灯させた後、消灯するという制御を
読取時には実行する。例えばバーコード8の中央部を照
らすための2個の照明用赤色発光ダイオード26b,2
6cについては点灯時間T2だけ点灯させた後、消灯す
る制御を行い、両端の照明用赤色発光ダイオード26
a,26dについては点灯させ続けると、光学的センサ
36における受光素子においては、中央部に対応する受
光素子より周辺部に対応する受光素子が時間T1−T2
だけ長く光を蓄積することができるため、この点灯時間
T2を調整すれば、図4(b)に示すように周辺部の出
力V3が中央部の出力V4とほぼ同じぐらいになるよう
にすることが可能である。
Next, in S160, the lighting time T2 is controlled. As described above, the illumination red light emitting diodes 26a, 26b, 26c, and 26d are turned on for the lighting time T2 shown in FIG. 6B and then turned off within the exposure time T1 of the light receiving element in the optical sensor 36. The control is executed at the time of reading. For example, two illumination red light emitting diodes 26b, 2 for illuminating the center of the bar code 8
6c is turned on for the lighting time T2 and then turned off.
If the light-receiving elements a and 26d are kept turned on, the light-receiving elements in the optical sensor 36 correspond to the light-receiving elements corresponding to the peripheral part more than the light-receiving element corresponding to the central part in time T1-T2.
Since the light can be accumulated for as long as possible, by adjusting the lighting time T2, as shown in FIG. 4B, the output V3 in the peripheral portion is made substantially the same as the output V4 in the central portion. Is possible.

【0058】したがって、このS160では、各照明用
赤色発光ダイオード26a,26b,26c,26dに
ついて、いくつかの点灯時間T2の候補を用意してお
き、それぞれを組み合わせた設定を最終的には行う。こ
の設定が適切であるかどうかを判定する必要があるの
で、S170にてデコードできたかどうかを判定する。
具体的には、上述した露光時間T1、増幅率及び設定さ
れた点灯時間T2にて照明動作を行い、その照明による
基準バーコードBstからの反射光に基づく光学的セン
サ36からの出力を増幅回路41にて増幅し、その増幅
信号を2値化回路43にて2値化し、その2値化信号を
マイクロコンピュータ44にてデコードし、適切にデコ
ードできたかどうかで判定する。
Therefore, in S160, several lighting time T2 candidates are prepared for each of the illumination red light emitting diodes 26a, 26b, 26c, and 26d, and the combination of these is finally set. Since it is necessary to determine whether or not this setting is appropriate, it is determined in S170 whether or not decoding was successful.
Specifically, the illumination operation is performed at the above-described exposure time T1, the amplification factor, and the set lighting time T2, and the output from the optical sensor 36 based on the reflected light from the reference barcode Bst due to the illumination is amplified. The signal is amplified at 41, the amplified signal is binarized at a binarization circuit 43, and the binarized signal is decoded by a microcomputer 44 to determine whether or not the signal has been properly decoded.

【0059】そして、デコードできれば(S170:Y
ES)、S160で設定した点灯時間が適切な値である
ので、S180にてその点灯時間T2を記憶するが、デ
コードできなかった場合には(S170:NO)、S1
60へ戻り、別の組み合せを設定する。
If decoding is possible (S170: Y
ES), since the lighting time set in S160 is an appropriate value, the lighting time T2 is stored in S180, but if decoding was not possible (S170: NO), S1
Return to step 60 to set another combination.

【0060】このように、S180までの処理が終了す
ると、図11に示す制御値テーブルのように、あるサン
プリング位置の距離L1に対応して、各照明用赤色発光
ダイオード26a,26b,26c,26dについての
点灯時間T2、露光時間T1及び増幅率という各制御値
がメモリ42に記憶される。そして、S190では全て
のサンプリング位置に対応する制御値の記憶が終了した
かどうか判定し、終了していれば(S190:YES)
それで本処理を終了するが、まだ終了していなければ
(S190:NO)、S140へ戻り、別のサンプリン
グ位置での制御値の記憶処理(S150〜S180)を
実行する。
As described above, when the processing up to S180 is completed, the red light emitting diodes 26a, 26b, 26c, 26d corresponding to the distance L1 at a certain sampling position, as shown in the control value table shown in FIG. The respective control values such as the lighting time T2, the exposure time T1, and the amplification factor are stored in the memory 42. Then, in S190, it is determined whether or not the storage of the control values corresponding to all the sampling positions has been completed, and if the storage has been completed (S190: YES).
Then, the present process is terminated, but if not terminated (S190: NO), the process returns to S140, and the control value storage process at another sampling position (S150 to S180) is executed.

【0061】この図10の処理が終了すると、図11の
制御値テーブルが全てのサンプリング位置の距離L1に
対応して設定されることとなる。次に、実際の読取動作
での距離算出及びデータ取り込み処理について図12の
フローチャートを参照して説明する。
When the processing of FIG. 10 is completed, the control value table of FIG. 11 is set corresponding to the distances L1 of all sampling positions. Next, the distance calculation and data fetch processing in the actual reading operation will be described with reference to the flowchart in FIG.

【0062】処理が開始されると、まず距離算出対象画
像幅Woを算出する(S210)。これは、距離算出対
象のバーコードBoからの反射光に基づく光学的センサ
36からの出力を増幅回路41にて増幅し、その増幅信
号を2値化回路43にて2値化し、その2値化信号をマ
イクロコンピュータ44にて取り込み、バーコードシン
ボルの存在する部分、つまりスタートキャラクタからス
トップキャラクタまでの距離を距離算出対象画像幅Wo
として算出する。
When the processing is started, first, the width Wo of the target image for calculating the distance is calculated (S210). This is because the output from the optical sensor 36 based on the reflected light from the bar code Bo whose distance is to be calculated is amplified by the amplifier circuit 41, the amplified signal is binarized by the binarization circuit 43, and the binary signal is output. The microcomputer 44 captures the digitized signal, and determines the portion where the barcode symbol exists, that is, the distance from the start character to the stop character, as the width Wo of the image for distance calculation.
Is calculated as

【0063】そして、この距離算出対象画像幅Woを用
いて、この距離算出対象のバーコードBoの読取口22
からの距離L1を算出する(S220)。上述したよう
に、この距離L1は、L1={(Wst/Wo)−1}
L2と表すことができる。そして、距離L2は図10の
S130にて記憶された固定値であり、さらに基準画像
幅Wstも同じく図10のS130にて記憶されている
ので、S210にて算出された距離算出対象画像幅Wo
を用いれば、距離L1を算出できる。
Then, using the image width Wo of the distance calculation target, the reading port 22 of the bar code Bo of the distance calculation target is used.
Is calculated (S220). As described above, this distance L1 is L1 = {(Wst / Wo) -1}.
L2. The distance L2 is a fixed value stored in S130 of FIG. 10 and the reference image width Wst is also stored in S130 of FIG. 10, so the distance calculation target image width Wo calculated in S210.
Is used, the distance L1 can be calculated.

【0064】そして、続くS230では、S220にて
算出した距離L1に対応する制御値をメモリ42内の制
御値テーブル(図11参照)から読み出し、S240で
は、その読み出した制御値を用いて照明制御を行い、デ
ータ取り込みを行う。つまり、図11の制御値テーブル
に示す各照明用赤色発光ダイオード26a,26b,2
6c,26dに対応する点灯時間T2、光学的センサ3
6における露光時間T1及び増幅回路41における増幅
率にて照明動作を行い、その反射光に基づく光学的セン
サ36からの出力を増幅回路41にて増幅し、その増幅
信号を2値化回路43にて2値化し、その2値化信号を
マイクロコンピュータ44にてデコードすることによっ
て読取動作を行う。
Then, in S230, the control value corresponding to the distance L1 calculated in S220 is read from the control value table (see FIG. 11) in the memory 42. In S240, the illumination control is performed using the read control value. And perform data capture. That is, each of the illumination red light emitting diodes 26a, 26b, 2 shown in the control value table of FIG.
Lighting time T2 corresponding to 6c, 26d, optical sensor 3
The illumination operation is performed with the exposure time T1 in 6 and the amplification factor in the amplification circuit 41, the output from the optical sensor 36 based on the reflected light is amplified in the amplification circuit 41, and the amplified signal is sent to the binarization circuit 43. The microcomputer 44 performs a reading operation by decoding the binary signal by the microcomputer 44.

【0065】このように、本実施形態の光学情報読取装
置4によれば、距離センサなどのハード構成を用いなく
ても、バーコード8の画像データを読み取るという装置
本来の機能を利用して、読取口22からバーコード8ま
での距離L1を得ることができる。従来、読取口22か
らバーコード8までの距離を測定するのに距離センサを
用いていたが、バーコード8に対して光線を照射するな
どの処理が必要であるため、バーコード8からの画像デ
ータの読み取りのための構成とは別個に距離測定のため
の構成を配備する必要があった。特に、ハンディタイプ
のバーコードリーダなどを想定すると、読取口22付近
に距離センサ関連の構成が配備されることは構成の複雑
化及び大型化につながるため好ましくない。その点、本
光学情報読取装置4の場合には、読取口22から離れた
位置にあるバーコード8からも光学情報を読み取ること
のできる大深度光学情報読取装置であり、別個に距離セ
ンサを持たなくても読み取り対象までの距離を算出する
ことができるため、非常に有利である。
As described above, according to the optical information reading apparatus 4 of the present embodiment, the original function of reading the image data of the bar code 8 can be utilized without using a hardware configuration such as a distance sensor. The distance L1 from the reading port 22 to the barcode 8 can be obtained. Conventionally, a distance sensor was used to measure the distance from the reading port 22 to the barcode 8. However, since processing such as irradiating a light beam to the barcode 8 is required, the image from the barcode 8 is used. A configuration for distance measurement had to be provided separately from a configuration for reading data. In particular, assuming a handy-type barcode reader or the like, it is not preferable to dispose a configuration related to the distance sensor near the reading opening 22 because the configuration becomes complicated and large. In this regard, the optical information reader 4 is a large-depth optical information reader capable of reading optical information even from the barcode 8 at a position distant from the reading port 22, and has a separate distance sensor. This is very advantageous because the distance to the object to be read can be calculated without the need.

【0066】なお、以上の説明からも判るが、本光学情
報読取装置4の読み取り対象はある程度限定される。つ
まり、上述の距離算出の原理は、基準画像幅Wstを記
憶させた場合の基準バーコードBst(図9参照)の太
いバー(図8参照)の間隔Wと、距離算出対象、つまり
読み取り対象のバーコードBo(図9参照)自体の幅W
とが同じであることを前提としている。したがって、例
えば郵便物に貼付されるバーコード8などのように、同
一規格でありサイズが一定しているような読み取り対象
の場合に非常に有効である。
As can be seen from the above description, the object to be read by the optical information reading device 4 is limited to some extent. That is, the principle of the above-described distance calculation is that the distance W between the thick bars (see FIG. 8) of the reference barcode Bst (see FIG. 9) when the reference image width Wst is stored and the distance calculation target, that is, the reading target Bar code Bo (see FIG. 9) itself width W
Are assumed to be the same. Therefore, it is very effective in the case of a reading target having the same standard and a constant size, such as a barcode 8 attached to a mail.

【0067】以上、本発明はこのような実施形態に何等
限定されるものではなく、本発明の主旨を逸脱しない範
囲において種々なる形態で実施し得る。前述した実施の
形態の光学情報読取装置4は、バーコード8用のリーダ
であったが、2次元コードについても、同様に構成する
ことができ、同様の効果を生じる。
As described above, the present invention is not limited to such an embodiment, and can be implemented in various forms without departing from the gist of the present invention. Although the optical information reading device 4 of the above-described embodiment is a reader for the bar code 8, it can be similarly configured for a two-dimensional code, and the same effect is obtained.

【0068】また、上記実施形態においては、画像サイ
ズの拡大又は縮小度合を用いて距離L1を算出する場合
の画像サイズとして、基準画像幅Wstや距離算出対象
画像幅Woのように、バーコードの画像の代表幅とし
た。これは、読み取り対象がバーコードという1次元コ
ードであるためであるが、例えば読み取り対象として2
次元コードを想定した場合には縦方向の幅と横方向の幅
の2つが検出されるため、その場合には例えば大きい方
の幅を代表幅とするなどの工夫をすればよい。
In the above embodiment, the bar code, such as the reference image width Wst or the distance calculation target image width Wo, is used as the image size when calculating the distance L1 using the degree of enlargement or reduction of the image size. The representative width of the image was used. This is because the object to be read is a one-dimensional code called a barcode.
When a two-dimensional code is assumed, a width in the vertical direction and a width in the horizontal direction are detected. In this case, for example, a measure may be taken such that the larger width is used as the representative width.

【0069】また、基準画像幅Wstを記憶させる場合
に基準バーコードBstを配置させる「基準位置」につ
いて、上記実施形態では読取口22としたが、別の位置
であっても同様に実現できる。但し、バーコード8が読
取口22から離れるにしたがって照度分布が変化したり
照度が低下したりするので、読取口22を基準として、
そこからの距離を算出することが好ましい。
In the above embodiment, the "reference position" where the reference barcode Bst is arranged when the reference image width Wst is stored is set to the reading port 22, but the reference position can be realized in another position. However, the illuminance distribution changes or the illuminance decreases as the bar code 8 moves away from the reading port 22.
It is preferable to calculate the distance therefrom.

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

【図1】 一実施の形態としての光学情報読取装置の概
略断面図である。
FIG. 1 is a schematic sectional view of an optical information reading device as one embodiment.

【図2】 その光学情報読取装置の制御系統のブロック
図である。
FIG. 2 is a block diagram of a control system of the optical information reading device.

【図3】 その光学情報読取装置の照明用赤色発光ダイ
オードの配置を示す説明図である。
FIG. 3 is an explanatory view showing an arrangement of a red light emitting diode for illumination of the optical information reading device.

【図4】 光学的センサに結像された反射光波形の説明
図である。
FIG. 4 is an explanatory diagram of a reflected light waveform formed on an optical sensor.

【図5】 その光学情報読取装置の照明用赤色発光ダイ
オードの輝度調節メカニズム示す回路図である。
FIG. 5 is a circuit diagram showing a luminance adjusting mechanism of a red light emitting diode for illumination of the optical information reading device.

【図6】 光学的センサにおける露光時間T1及び照明
用赤色発光ダイオードの点灯時間T2を示すタイムチャ
ートである。
FIG. 6 is a time chart showing an exposure time T1 of the optical sensor and a lighting time T2 of the illumination red light emitting diode.

【図7】 距離算出原理を示すための説明図である。FIG. 7 is an explanatory diagram illustrating a principle of calculating a distance.

【図8】 サンプリング用ラベルの説明図である。FIG. 8 is an explanatory diagram of a sampling label.

【図9】 距離算出原理を示すための説明図である。FIG. 9 is an explanatory diagram showing a principle of calculating a distance.

【図10】 基準画像幅Wstと各種制御値を記憶させ
る処理を示すフローチャートである。
FIG. 10 is a flowchart illustrating a process of storing a reference image width Wst and various control values.

【図11】 制御値テーブルの説明図である。FIG. 11 is an explanatory diagram of a control value table.

【図12】 実際の読取動作での距離算出及びデータ取
り込み処理を示すフローチャートである。
FIG. 12 is a flowchart showing a distance calculation and data fetch process in an actual reading operation.

【符号の説明】[Explanation of symbols]

4…光学情報読取装置 8…バーコード 1
2…ケース 14…読取部 16…データ処理出力部
18…電源部 18a…電池 20…把持部
22…読取口 24…防塵プレート 26(26a,26b,26c,26d)…照明用赤色
発光ダイオード 28…発光駆動回路 30…バーコード照射用レンズ 32…反射鏡 34…結像レンズ 3
6…光学的センサ 38…基板 41…増幅回路部 4
2…メモリ 43…2値化回路 44…マイクロコンピュータ 4
6…出力回路 48…ブザー装置 Bst…基準バーコード Bo…距離算出対象
バーコード Wst…基準画像幅 Wo…距離算出対象
画像幅 L1…読取口22から距離算出対象バーコードBoまで
の距離 L2…読取口22から結像レンズ部34までの距離 L3…結像レンズ部34から光学的センサ36までの距
4: Optical information reading device 8: Bar code 1
2 Case 14 Reading part 16 Data processing output part
18 power supply unit 18a battery 20 grip unit
Reference numeral 22: Reading port 24: Dustproof plate 26 (26a, 26b, 26c, 26d): Red light emitting diode for illumination 28: Light emission drive circuit 30: Bar code irradiation lens 32: Reflecting mirror 34: Image forming lens 3
6 optical sensor 38 substrate 41 amplifying circuit 4
2 ... memory 43 ... binarization circuit 44 ... microcomputer 4
6 ... Output Circuit 48 ... Buzzer Device Bst ... Reference Barcode Bo ... Distance Calculation Target Barcode Wst ... Reference Image Width Wo ... Distance Calculation Target Image Width L1 ... Distance from Reading Port 22 to Distance Calculation Target Barcode Bo L2 ... Reading Distance from the opening 22 to the imaging lens unit 34 L3 ... Distance from the imaging lens unit 34 to the optical sensor 36

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】発光手段からの照射光をケースの読取口を
介してケース内部からケース外部の読み取り対象に照射
することで、読み取り対象からの反射光を前記読取口を
介してケース内部の受光手段に結像して、該受光手段に
て読み取り対象の画像を読み取る光学情報読取装置であ
って、 所定の基準位置に配置された基準の読み取り対象からの
反射光によって前記受光手段に結像した状態での当該基
準読み取り対象の画像サイズを記憶している基準画像サ
イズ記憶手段と、 任意位置にある読み取り対象からの反射光によって前記
受光手段に結像した状態での当該読み取り対象の画像サ
イズを検出する画像サイズ検出手段と、 前記基準画像サイズ記憶手段に記憶されている前記基準
読み取り対象の画像サイズに対する前記画像サイズ検出
手段によって検出した前記読み取り対象の画像サイズの
拡大又は縮小度合に基づき、前記任意位置にある前記読
み取り対象までの距離を算出する距離算出手段と、 を備えることを特徴とする光学的読取装置。
An illumination light from a light emitting means is irradiated from the inside of the case to a reading object outside the case through a reading port of the case, so that reflected light from the reading object is received inside the case through the reading port. An optical information reading apparatus that forms an image on a unit and reads an image to be read by the light receiving unit, wherein the image is formed on the light receiving unit by reflected light from a reference reading target arranged at a predetermined reference position. A reference image size storage unit that stores an image size of the reference read target in a state, and an image size of the read target in an image formed on the light receiving unit by reflected light from the read target at an arbitrary position. An image size detecting means for detecting, and an image size detecting means for the image size of the reference reading target stored in the reference image size storing means. Based on the enlarged or reduced degree of image size of the reading object detected I, an optical reading device, comprising a distance calculating means for calculating a distance to the reading object which is in the arbitrary position.
【請求項2】前記画像サイズは、前記読取対象の画像の
代表幅であることを特徴とする請求項1に記載の光学情
報読取装置。
2. The optical information reading apparatus according to claim 1, wherein the image size is a representative width of the image to be read.
【請求項3】前記所定の基準位置は前記読取口であり、 前記距離算出手段は、前記読取口から前記任意位置にあ
る前記読み取り対象までの距離を算出するよう構成され
ていることを特徴とする請求項1又は2に記載の光学情
報読取装置。
3. The apparatus according to claim 2, wherein the predetermined reference position is the reading opening, and the distance calculating means is configured to calculate a distance from the reading opening to the reading target at the arbitrary position. The optical information reading device according to claim 1.
【請求項4】前記読み取り対象は、バーコードであるこ
とを特徴とする請求項1〜3のいずれかに記載の光学情
報読取装置。
4. The optical information reading apparatus according to claim 1, wherein the object to be read is a barcode.
【請求項5】前記読み取り対象は、2次元コードである
ことを特徴とする請求項1〜3のいずれかに記載の光学
情報読取装置。
5. The optical information reading apparatus according to claim 1, wherein the object to be read is a two-dimensional code.
【請求項6】前記基準読み取り対象を用いた場合の前記
受光手段での結像状態が前記読取口の幅方向における適
切な照度分布となる場合の前記発光手段に対する光量制
御値を、前記読取口からの距離を順次変えた複数のサン
プリング位置に対応して記憶している制御値記憶手段
と、 前記距離算出手段によって算出された読み取り対象まで
の距離に対応する前記光量制御値を前記制御値記憶手段
から読み出し、当該光量制御値に基づいて前記発光手段
に対する光量制御を行う制御手段と、 を備えることを特徴とする請求項1〜5のいずれかに記
載の光学情報読取装置。
6. A light amount control value for said light emitting means when an image formation state of said light receiving means when said reference reading object is used is an appropriate illuminance distribution in a width direction of said reading opening, A control value storage unit that stores a plurality of sampling positions in which the distance from the object is sequentially changed; and the control value storage unit that stores the light amount control value that corresponds to the distance to the reading target calculated by the distance calculation unit. The optical information reading apparatus according to any one of claims 1 to 5, further comprising: a control unit that reads from the unit and performs light amount control on the light emitting unit based on the light amount control value.
【請求項7】前記制御値記憶手段に記憶されている前記
光量制御値は、前記発光手段に供給するエネルギーの制
御値であることを特徴とする請求項6に記載の光学情報
読取装置。
7. The optical information reading apparatus according to claim 6, wherein the light amount control value stored in the control value storage means is a control value of energy supplied to the light emitting means.
【請求項8】前記制御値記憶手段に記憶されている前記
光量制御値は、前記受光手段が受光可能な状態にある時
間帯内での、前記発光手段の発光時間の制御値であるこ
とを特徴とする請求項6に記載の光学情報読取装置。
8. The light amount control value stored in the control value storage means is a control value of a light emission time of the light emitting means in a time zone in which the light receiving means can receive light. The optical information reading device according to claim 6, wherein:
【請求項9】前記制御値記憶手段は、前記基準読み取り
対象を用いた場合の前記受光手段での結像状態が適切な
受光量にて実現される場合の前記受光手段に対する露光
時間制御値も、前記複数のサンプリング位置に対応して
記憶しており、 前記制御手段は、前記算出された読み取り対象までの距
離に対応する前記露光時間制御値も前記制御値記憶手段
から読み出し、当該露光時間制御値に基づいて前記受光
手段に対する露光時間制御を行うよう構成されているこ
とを特徴とする請求項6〜8のいずれかに記載の光学情
報読取装置。
9. An exposure time control value for the light receiving means when the imaging state of the light receiving means when the reference reading object is used is realized with an appropriate amount of received light. The control means reads out the exposure time control value corresponding to the calculated distance to the read target from the control value storage means, and stores the exposure time control value. 9. The optical information reading apparatus according to claim 6, wherein an exposure time control for the light receiving unit is performed based on the value.
【請求項10】さらに、前記受光手段の出力波形の増幅
率を高める増幅手段を備え、 前記制御値記憶手段は、前記基準読み取り対象を用いた
場合の前記受光手段からの出力に対する前記増幅手段で
の適切な増幅率も、前記複数のサンプリング位置に対応
して記憶しており、 前記制御手段は、前記算出された読み取り対象までの距
離に対応する前記増幅率も前記制御値記憶手段から読み
出し、当該増幅率に基づいて前記増幅手段に対する増幅
率制御を行うよう構成されていることを特徴とする請求
項6〜9のいずれかに記載の光学情報読取装置。
10. An amplifying means for increasing an amplification factor of an output waveform of the light receiving means, wherein the control value storage means is an amplifying means for the output from the light receiving means when the reference reading object is used. The appropriate amplification factor is also stored in correspondence with the plurality of sampling positions, and the control unit reads out the amplification factor corresponding to the calculated distance to the read target from the control value storage unit, The optical information reading device according to any one of claims 6 to 9, wherein amplification factor control for the amplification unit is performed based on the amplification factor.
JP27895297A 1997-10-13 1997-10-13 Optical information reader Expired - Fee Related JP3760594B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27895297A JP3760594B2 (en) 1997-10-13 1997-10-13 Optical information reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27895297A JP3760594B2 (en) 1997-10-13 1997-10-13 Optical information reader

Publications (2)

Publication Number Publication Date
JPH11120279A true JPH11120279A (en) 1999-04-30
JP3760594B2 JP3760594B2 (en) 2006-03-29

Family

ID=17604358

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27895297A Expired - Fee Related JP3760594B2 (en) 1997-10-13 1997-10-13 Optical information reader

Country Status (1)

Country Link
JP (1) JP3760594B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006511895A (en) * 2002-12-18 2006-04-06 シンボル テクノロジーズ インコーポレイテッド Image scanning apparatus having a system for measuring the distance to a target
JP2011123694A (en) * 2009-12-11 2011-06-23 Denso Wave Inc Optical information reader
JP2013161020A (en) * 2012-02-08 2013-08-19 Shimadzu Corp Imaging device, microscope, and program for use in the imaging device and microscope
JP2019053454A (en) * 2017-09-14 2019-04-04 株式会社デンソーウェーブ Optical information reading device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006511895A (en) * 2002-12-18 2006-04-06 シンボル テクノロジーズ インコーポレイテッド Image scanning apparatus having a system for measuring the distance to a target
JP2011123694A (en) * 2009-12-11 2011-06-23 Denso Wave Inc Optical information reader
JP2013161020A (en) * 2012-02-08 2013-08-19 Shimadzu Corp Imaging device, microscope, and program for use in the imaging device and microscope
JP2019053454A (en) * 2017-09-14 2019-04-04 株式会社デンソーウェーブ Optical information reading device

Also Published As

Publication number Publication date
JP3760594B2 (en) 2006-03-29

Similar Documents

Publication Publication Date Title
JP4058529B2 (en) Optical information reader
US9230147B2 (en) Method and apparatus for optically reading out information stored in a barcode
JPH11514461A (en) Data form reader and method
JP4389812B2 (en) Optical information reader
JPS61190673A (en) Optical information reading device
JP2012503933A (en) Optical code decoding method, imaging apparatus, and optical code reader
JP4111216B2 (en) Optical information reader
JP3070484B2 (en) Optical information reading device and optical information reading method
JP3760594B2 (en) Optical information reader
US8028917B2 (en) Adaptive optimizations for signal processing in imaging readers
JP2932815B2 (en) Optical information reader
JP3397170B2 (en) Information code recording position detecting device and optical information reading device
JP3114546B2 (en) Optical information reader
JPH11120283A (en) Optical information reader
JP3129215B2 (en) 2D code reader
JP5183612B2 (en) Symbol recognition apparatus and control program therefor
JP3711725B2 (en) Image recognition device
JP3911892B2 (en) Optical information reading system
JP3944997B2 (en) Optical information reader
JP3518032B2 (en) Barcode reader
JP3118500B2 (en) Code reader
JP4230210B2 (en) Optical reader
JP2504121B2 (en) Bar code reader
JP5380613B2 (en) Symbol recognition apparatus and control program therefor
JPH0934981A (en) Optical reader

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20051208

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20051220

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060102

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090120

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100120

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100120

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110120

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110120

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120120

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120120

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130120

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130120

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130120

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130120

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140120

Year of fee payment: 8

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees