JP2019101555A - Optical reading device - Google Patents

Optical reading device Download PDF

Info

Publication number
JP2019101555A
JP2019101555A JP2017229193A JP2017229193A JP2019101555A JP 2019101555 A JP2019101555 A JP 2019101555A JP 2017229193 A JP2017229193 A JP 2017229193A JP 2017229193 A JP2017229193 A JP 2017229193A JP 2019101555 A JP2019101555 A JP 2019101555A
Authority
JP
Japan
Prior art keywords
distance
unit
focus
aimer
work
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
JP2017229193A
Other languages
Japanese (ja)
Other versions
JP6997603B2 (en
Inventor
有翼 西澤
Uyoku Nishizawa
有翼 西澤
知樹 坂
Tomoki Saka
知樹 坂
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.)
Keyence Corp
Original Assignee
Keyence 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 Keyence Corp filed Critical Keyence Corp
Priority to JP2017229193A priority Critical patent/JP6997603B2/en
Publication of JP2019101555A publication Critical patent/JP2019101555A/en
Application granted granted Critical
Publication of JP6997603B2 publication Critical patent/JP6997603B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

To provide an optical reading device having an autofocus function with good responsiveness.SOLUTION: A device comprises an aimer light irradiation part 101 which irradiates a work with aimer light, an imaging part 103 photographing the work to create a photographed image, a focus adjustment part 104 adjusting a focus distance of the imaging part 103 within a readable area 41, a distance measurement part 105 measuring a distance to the work in a measurable area 42 narrower then the readable area 41 on the basis of a position of the aimer in the photographed image, a decoding part 106 decoding optical information on the basis of a photographed image photographed after adjustment of the focus distance, and a control part 100 that controls the focus adjustment part 104 on the basis of the measured distance if the distance measurement part 105 succeeded in the measurement of the distance and controls the focus adjustment part 104 so that the focus distance moves to predetermined recovery positions R1 to R3 outside the measurable area 42 if the distance measurement part 105 failed in the measurement of the distance.SELECTED DRAWING: Figure 9

Description

本発明は、光学読取装置に係り、さらに詳しくは、エイマー光を利用してワークまでの距離を測定する光学読取装置の改良に関する。   The present invention relates to an optical reader, and more particularly, to an improvement of an optical reader that measures the distance to a workpiece using an aimer light.

近年、バーコード、二次元コードなどのシンボルを光学情報として読み取り、様々なデータ処理を行う光学読取システムが広く普及している。例えば、店舗における精算処理、物流拠点における在庫管理、工場における工程管理などに利用されている。   BACKGROUND In recent years, optical reading systems that read symbols such as barcodes and two-dimensional codes as optical information and perform various data processing have become widespread. For example, it is used for settlement processing at a store, inventory management at a distribution base, process control at a factory, and the like.

シンボルは、ワーク(読取対象物)に印刷され、あるいは、ラベル等に印刷されてワークに貼付される。シンボルを読み取る光学読取装置には、ワークを移動させてシンボルを読み取る据え置きタイプのものと、光学読取装置を移動させてシンボルを読み取るハンディタイプのものとがある。据え置きタイプの光学読取装置は、ワークを移動させて読み取るため、固定焦点である場合が多いのに対し、ハンディタイプの光学読取装置は、ワークまでの距離が変化するため、オートフォーカス機能を有するものが知られている。   The symbol is printed on a work (object to be read) or printed on a label or the like and affixed to the work. Optical reading devices that read symbols include stationary types that move a workpiece to read symbols, and handy types that move an optical reading device to read symbols. A stationary type optical reader often has a fixed focus because it moves and reads a workpiece, whereas a handy type optical reader has an autofocus function because the distance to the workpiece changes. It has been known.

コストの増大を抑制してオートフォーカス機能を実現しようとする場合、例えば、コントラスト法のように、焦点距離を順に変化させながら撮像を繰り返して合焦点を求める方法が知られている。しかしながら、オートフォーカスの応答性は、読取作業の効率に大きな影響を与える。このため、高い応答性が求められる光学読取装置のオートフォーカスには、このような手法は採用することができず、例えば、超音波などを利用してワークまでの距離を測定し、測定した距離に焦点距離を一致させるオートフォーカス制御を行う必要があった。   In order to realize an autofocus function by suppressing an increase in cost, for example, as in the contrast method, a method is known in which imaging is repeated while sequentially changing the focal length to obtain an in-focus point. However, the responsiveness of the autofocus greatly affects the efficiency of the reading operation. For this reason, such a method can not be adopted for the auto focus of the optical reading device that requires high responsiveness. For example, the distance measured by using an ultrasonic wave or the like to measure the distance to the workpiece It is necessary to perform autofocus control to match the focal length.

また、焦点調整前の撮影画像内におけるシンボルの大きさを検出することにより、ワークまでの距離を測定する光学読取装置が知られている(例えば、特許文献1)。特許文献1の方法によれば、コストを増大させることなく、撮影画像からワークまでの距離を測定することができるが、焦点ぼけによりシンボルの大きさを検出できない場合には、シンボルの読み取りを行うことができない。   There is also known an optical reading apparatus which measures the distance to a work by detecting the size of a symbol in a photographed image before focus adjustment (e.g., Patent Document 1). According to the method of Patent Document 1, the distance from the photographed image to the work can be measured without increasing the cost, but when the symbol size can not be detected due to defocusing, the symbol is read. I can not do it.

特開2010−204792号公報Unexamined-Japanese-Patent No. 2010-204792

ワークまでの距離の測定には様々な方法が考えられるが、エイマー光を利用してワークまでの距離を測定することができれば、コストを増大させることなく、ワークまでの距離を測定することができると考えられる。エイマー光は、ユーザに読取対象を示すための照準光である。一般に、ハンディタイプの光学読取装置は、エイマー光として赤色レーザ光などを照射する機能を有している。このエイマー光の光軸を撮像素子の受光軸に対し傾斜させれば、撮像画像内におけるエイマー光の位置に基づいて、エイマー光の反射面までの距離を求めることができると考えられる。   There are various methods to measure the distance to the work, but if the distance to the work can be measured using the aimer light, the distance to the work can be measured without increasing the cost. it is conceivable that. The aimer light is a sighting light for showing a user an object to be read. In general, a handy-type optical reader has a function of irradiating a red laser beam or the like as an aimer beam. If the optical axis of the aimer light is inclined with respect to the light receiving axis of the imaging device, it is considered that the distance to the reflection surface of the aimer light can be obtained based on the position of the aimer light in the captured image.

しかし、ワークまでの距離が遠くなれば、ワーク表面におけるエイマー光の反射光量が減少し、反射面までの距離を計測することができなくなる。また、レーザ光を直視した場合の安全性を考慮すれば、エイマー光の強度を大きくして測定距離を伸ばすのにも限界がある。これに対し、照準光は目視で確認されるため、距離測定の限界よりも遠方のワークに対してもエイマー光は照準光として機能する。このため、このような遠方のシンボルを読み取り可能な光学読取装置の場合、シンボルを読み取ることができる距離範囲の一部にエイマー光による距離測定を行うことができない範囲が生じてしまう。つまり、エイマー光によって距離を測定することができる距離範囲が、シンボルを読み取ることができる距離範囲の一部をカバーしていない状態が発生する。   However, if the distance to the work is long, the amount of reflected light of the aimer light on the work surface decreases, and the distance to the reflection surface can not be measured. In addition, in consideration of safety when the laser beam is viewed directly, there is a limit to increasing the intensity of the aimer beam to extend the measurement distance. On the other hand, since the sighting light is visually confirmed, the aimer light also functions as the sighting light for workpieces farther than the limit of distance measurement. For this reason, in the case of an optical reader capable of reading such a distant symbol, a range in which the distance measurement by the aimer light can not be performed occurs in a part of the distance range in which the symbol can be read. That is, there occurs a state in which the distance range in which the distance can be measured by the aimer light does not cover a part of the distance range in which the symbol can be read.

本発明は、上記の事情に鑑みてなされたものであり、応答性の良好なオートフォーカス機能を有する光学読取装置を提供することを目的とする。また、エイマー光を用いてオートフォーカス機能を安価に実現する光学読取装置を提供することを目的とする。また、エイマー光による測定限界よりも遠方のシンボルを読み取ることができる光学読取装置を提供することを目的とする。   The present invention has been made in view of the above-described circumstances, and an object thereof is to provide an optical reader having an autofocus function with good response. Another object of the present invention is to provide an optical reading device that realizes an autofocus function at low cost using an aimer light. Another object of the present invention is to provide an optical reader capable of reading a symbol farther than the measurement limit by the aimer light.

本発明の第1の態様による光学読取装置は、ワークに付された光学情報をデコードする光学読取装置において、前記ワークにエイマー光を照射するエイマー光照射部と、前記ワークを撮像して撮像画像を生成する撮像部と、第1の距離範囲内において前記撮像部の合焦距離を調整する焦点調整部と、前記撮像画像内におけるエイマー画像の位置に基づいて、第1の距離範囲よりも狭い第2の距離範囲内において前記ワークまでの距離を測定する距離測定部と、前記合焦距離の調整後に撮像された前記撮像画像に基づいて、前記光学情報をデコードするデコード部と、前記距離測定部が距離の測定に成功した場合に、測定された距離に基づいて前記焦点調整部を制御し、前記距離測定部が距離の測定に失敗した場合に、前記合焦距離が前記第2の距離範囲外の予め定められたリカバリー位置に移動するように前記焦点調整部を制御する制御部とを備える。   An optical reading device according to a first aspect of the present invention is an optical reading device for decoding optical information attached to a work, the aimer light irradiation unit irradiating the work with an aimer light, and the captured image by imaging the work The first distance range is narrower than the first distance range on the basis of the imaging portion that generates the focus position, the focus adjustment portion that adjusts the focusing distance of the imaging portion within the first distance range, and the position of the aimer image in the captured image. A distance measurement unit that measures a distance to the work within a second distance range; a decoding unit that decodes the optical information based on the captured image captured after the adjustment of the focusing distance; and the distance measurement Controls the focus adjustment unit based on the measured distance when the unit succeeds in measuring the distance, and the focusing distance is the second when the distance measuring unit fails in the measurement of the distance. Controlling the focus adjustment unit to move in a predetermined recovery position outside distance range and a control unit.

この様な構成を採用することにより、ワークが第2の距離範囲内に存在する場合、ワークまでの距離が測定され、測定された距離に基づく焦点調整が行われるため、シンボルの読み取りを高速に行うことができる。また、ワークまでの距離の測定に失敗した場合、第2の距離範囲外の予め定められたリカバリー位置に合焦距離を移動させるため、ワークが第2の距離範囲外に存在する場合であっても、シンボルの読み取りを高速に行うことができる。   By adopting such a configuration, when the workpiece is within the second distance range, the distance to the workpiece is measured, and focus adjustment based on the measured distance is performed, so symbol reading can be performed at high speed. It can be carried out. In addition, when the measurement of the distance to the work fails, the work is present outside the second distance range in order to move the in-focus distance to a predetermined recovery position outside the second distance range. Even symbol reading can be performed at high speed.

本発明の第2の態様による光学読取装置は、上記構成に加えて、前記リカバリー位置が、前記第2の距離範囲よりも遠い位置になるように構成される。   An optical reader according to a second aspect of the present invention is, in addition to the above configuration, configured such that the recovery position is a position farther than the second distance range.

この様な構成を採用することにより、ワークが遠いためにエイマー光の反射強度が不足し、シンボルの読み取りは可能であるが、ワークまでの距離を測定することができない場合であっても、高速にシンボルの読み取りを行うことができる。   By adopting such a configuration, the reflected light intensity of the aimer light is insufficient because the work is far and symbol reading is possible, but even if the distance to the work can not be measured, high speed is achieved. Symbols can be read.

本発明の第3の態様による光学読取装置は、上記構成に加えて、前記距離測定部が距離の測定に失敗した場合に、前記合焦距離が2以上の前記リカバリー位置に順次に移動するように前記制御部が前記焦点調整部を制御する。   In the optical reader according to the third aspect of the present invention, in addition to the above configuration, when the distance measurement unit fails to measure the distance, the in-focus distance sequentially moves to the recovery position of 2 or more. The control unit controls the focus adjustment unit.

この様な構成を採用することにより、第1の距離範囲内であって、第2の距離範囲外の距離範囲が広い場合であっても、当該距離範囲に存在するシンボルを読み取ることができる。   By adopting such a configuration, it is possible to read symbols present in the distance range even if the distance range is within the first distance range and outside the second distance range is wide.

本発明の第4の態様による光学読取装置は、上記構成に加えて、前記距離測定部が距離の測定に失敗し、前記合焦距離が3以上の前記リカバリー位置に順次に移動する際、両端のリカバリー位置よりも先に、両端以外のリカバリー位置の少なくとも一つに移動するように前記制御部が前記焦点調整部を制御する。   In the optical reading device according to the fourth aspect of the present invention, in addition to the above configuration, both ends of the distance measuring unit fail to measure the distance and move sequentially to the recovery position where the focusing distance is 3 or more. The control unit controls the focus adjustment unit to move to at least one of the recovery positions other than the both ends prior to the recovery position of.

この様な構成により、3以上のリカバリー位置を順次に移動してシンボルをサーチする場合に、より高速にシンボルを読み取ることができる確率を高め、平均的な読取速度を向上させることができる。   Such a configuration makes it possible to increase the probability of being able to read symbols faster and to improve the average reading speed when searching for symbols by sequentially moving three or more recovery positions.

本発明の第5の態様による光学読取装置は、上記構成に加えて、前記合焦距離が第2の距離範囲外の前記リカバリー位置へ移動した後に撮像された前記撮像画像に基づくデコードに失敗した場合に、前記合焦距離が前記第2の距離範囲内の予め定められた2以上のサーチ位置に順次に移動するように前記制御部が前記焦点調整部を制御する。   In the optical reader according to the fifth aspect of the present invention, in addition to the above configuration, decoding based on the captured image captured after the focusing distance is moved to the recovery position outside the second distance range has failed In this case, the control unit controls the focus adjustment unit such that the in-focus distance sequentially moves to two or more predetermined search positions in the second distance range.

この様な構成を採用することにより、第2の距離範囲内に読取可能なシンボルが存在しているが、距離の測定に失敗した場合であっても、当該シンボルを読み取ることが可能になる。   By adopting such a configuration, it is possible to read the symbol even if the measurement of the distance fails although the readable symbol exists within the second distance range.

本発明の第6の態様による光学読取装置は、上記構成に加えて、前記撮像部が選択可能な前記合焦距離に対応づけて制御量を記憶する制御量記憶部を備え、前記制御部が、測定された距離に対応する前記制御量を前記制御量記憶部から読み出し、読み出された前記制御量に基づいて、前記焦点調整部を制御する。   An optical reading apparatus according to a sixth aspect of the present invention includes, in addition to the above configuration, a control amount storage unit that stores a control amount in association with the in-focus distance selectable by the imaging unit. The control amount corresponding to the measured distance is read from the control amount storage unit, and the focus adjustment unit is controlled based on the read control amount.

本発明の第7の態様による光学読取装置は、上記構成に加えて、前記撮像部が、液体レンズを有し、前記焦点調整部が、前記液体レンズの焦点距離を調整する。   In the optical reader according to the seventh aspect of the present invention, in addition to the above configuration, the imaging unit has a liquid lens, and the focus adjustment unit adjusts the focal length of the liquid lens.

この様な構成を採用することにより、焦点調整を高速に行うことができ、シンボルの読取処理の高等性を向上させることができる。   By adopting such a configuration, it is possible to perform focus adjustment at high speed, and it is possible to improve the high-level of the symbol reading process.

本発明によれば、応答性の良好なオートフォーカス機能を有する光学読取装置を提供することができる。また、エイマー光を用いてオートフォーカス機能を安価に実現する光学読取装置を提供することができる。また、エイマー光による測定限界よりも遠方のシンボルを読み取る光学読取装置を提供することができる。   According to the present invention, it is possible to provide an optical reader having an autofocus function with good response. In addition, it is possible to provide an optical reading device that realizes an autofocus function at low cost using an aimer light. In addition, it is possible to provide an optical reader that reads a symbol farther than the measurement limit by the aimer light.

本発明の実施の形態1による光学読取装置1の一例を示した図である。FIG. 1 is a view showing an example of an optical reading device 1 according to a first embodiment of the present invention. 図1の光学読取装置1がカバーする領域を示した図である。It is the figure which showed the area | region which the optical reader 1 of FIG. 1 covers. エイマー光を照射したときの撮像画像の一例を示した図である。It is the figure which showed an example of the captured image at the time of irradiating an aimer light. エイマー光を照射したときの撮像画像の一例を示した図である。It is the figure which showed an example of the captured image at the time of irradiating an aimer light. 図1の光学読取装置1の機能構成の一例を示したブロック図である。It is the block diagram which showed an example of the function structure of the optical reader 1 of FIG. 撮像レンズ131の一構成例を示した図である。FIG. 2 is a view showing an example of the configuration of an imaging lens 131; 図5の制御量記憶部109が保持する制御量の一例を示した図である。It is the figure which showed an example of the control amount which the control amount memory | storage part 109 of FIG. 5 hold | maintains. エイマーの中心位置と制御量の関係を示した図である。It is the figure which showed the relationship between the center position of an aimer, and a control amount. シンボル読取動作の概略を示した説明図である。It is an explanatory view showing an outline of symbol reading operation. シンボル読取処理の一例を示したフローチャートである。It is the flowchart which showed an example of symbol reading processing. シンボルの読取動作の概略を示した説明図である。FIG. 7 is an explanatory view showing an outline of a symbol reading operation. 実施の形態2によるシンボルの読取動作の概略を示した説明図である。FIG. 14 is an explanatory view showing an outline of a symbol reading operation according to a second embodiment. 実施の形態2によるシンボル読取処理の一例を示したフローチャートである。FIG. 13 is a flowchart showing an example of symbol reading processing according to Embodiment 2. FIG. 実施の形態3によるシンボルの読取動作の概略を示した説明図である。FIG. 14 is an explanatory view showing an outline of a symbol reading operation according to a third embodiment.

実施の形態1.
(1)光学読取装置1の概要
図1は、本発明の実施の形態1による光学読取装置1の一例を示した図であり、図中の(a)には、光学読取装置1の操作面が示され、図中の(b)には、光学読取装置1の側面が示されている。
Embodiment 1
(1) Outline of the Optical Reading Device 1 FIG. 1 is a view showing an example of the optical reading device 1 according to the first embodiment of the present invention. And the side of the optical reader 1 is shown in (b) of the figure.

光学読取装置1は、ワークに付された光学情報を読み取るための端末装置である。読取対象となる光学情報は、バーコード、2次元コードなどの光学コード、あるいは、文字などによって構成されるシンボルであり、ワークの表面に直接印刷され、あるいは、ワークの表面に貼付されたラベルに印刷されている。読み取られた光学情報は、デコードされた後にデータ出力、データ照合、その他の任意のデータ処理に用いられる。   The optical reading device 1 is a terminal device for reading optical information attached to a work. The optical information to be read is a bar code, an optical code such as a two-dimensional code, or a symbol composed of characters, etc., and is printed directly on the surface of the workpiece or on a label affixed to the surface of the workpiece It is printed. The read optical information is decoded and then used for data output, data collation, and any other data processing.

光学読取装置1は、片手で把持することができる形状を有し、携帯して移動することができる携帯型端末装置(ハンディーターミナル)である。光学読取装置1の操作面には、トリガーキー10tを含む多数の操作キー10と、表示画面11とが設けられている。   The optical reading device 1 is a portable terminal device (handy terminal) that has a shape that can be held by one hand and can be moved by being carried. A large number of operation keys 10 including a trigger key 10 t and a display screen 11 are provided on the operation surface of the optical reading device 1.

光学読取装置1の先端をワークに向けてトリガーキー10tを押下すれば、光学読取装置1の先端からエイマー光が照射される。ユーザは、ワーク表面で反射されるエイマー光の反射光(以下、エイマーと呼ぶ)を目視しながら光学読取装置1の向きを調整し、エイマーを読取対象のシンボルに合わせれば、シンボルの読み取り及びデコードが自動的に行われ、読み取りの完了を報知するブザー音が鳴る。   When the tip of the optical reading device 1 is directed to the work and the trigger key 10 t is pressed, the tip of the optical reading device 1 is irradiated with the aimer light. The user adjusts the orientation of the optical reading device 1 while visually observing the reflected light of the aimer light reflected on the work surface (hereinafter referred to as an aimer), and if the aimer is aligned with the symbol to be read, symbol reading and decoding Is automatically performed, and a buzzer sounds to notify the completion of reading.

一例として、物流倉庫内におけるピッキング作業に光学読取装置1を用いる場合について説明する。受注した商品を物流倉庫から発送する場合、商品倉庫内の商品棚から必要な商品がピッキングされる。このピッキング作業は、バーコードが記載された受注伝票を持ったユーザが、商品棚まで移動した後、受注伝票のバーコードと、商品又は商品棚に付されたバーコードとを照合しながら行われる。この場合、受注伝票までの距離は10〜20cm程度であるのに対し、商品棚までの距離は最大2m程度であり、このような全く異なる距離のバーコードを交互に読み取る作業が行われる。このため、シンボルの読み取りには焦点調整が必要になる。しかも、エイマーを読取対象のシンボルに合わせてから、読み取りが完了するまでの時間遅れは、作業効率に大きな影響を与えるため、高い応答性が求められる。   As an example, the case where the optical reader 1 is used for picking in the distribution warehouse will be described. When the ordered product is shipped from the distribution warehouse, the required product is picked up from the product rack in the product warehouse. This picking operation is performed while the user holding the order receipt slip in which the barcode is described moves to the product shelf and then collates the barcode of the order receipt slip with the barcode attached to the product or the product shelf. . In this case, while the distance to the order receipt slip is about 10 to 20 cm, the distance to the product shelf is about 2 m at maximum, and the work of alternately reading such barcodes of completely different distances is performed. For this reason, focus adjustment is required to read symbols. In addition, since the time delay until the reading is completed after the aimer is adjusted to the symbol to be read greatly affects the operation efficiency, high responsiveness is required.

例えば、エイマーをシンボルに合わせてからブザーが鳴るまでの時間遅れを1秒未満のごく僅かな時間とし、ほぼリアルタイムでシンボルを読み取ることが求められる。この僅かな時間遅れの間に、撮像部の焦点距離をワーク表面に一致させるオートフォーカス(自動焦点調整)が行われ、焦点調整後にシンボルの撮像及びデコードが行われる。このような高い応答性を実現するためには、オートフォーカスを短時間で終了する必要がある。このため、まずワーク表面までの距離を計測し、計測した距離に基づいて焦点距離を調整する手法が用いられている。   For example, it is required that the symbol be read almost in real time, with a time delay from the alignment of the aimer to the symbol to the beeping being a very short time of less than one second. During this slight time delay, autofocus (automatic focus adjustment) is performed to make the focal length of the imaging unit coincide with the work surface, and symbol imaging and decoding are performed after focus adjustment. In order to realize such high responsiveness, it is necessary to end autofocus in a short time. For this reason, a method is first used to measure the distance to the work surface and adjust the focal length based on the measured distance.

ワーク表面までの距離の計測は、エイマー光を用いて行われる。エイマー光の出射光軸13は、撮像素子への入射光軸である撮像軸12に対し傾斜して配置され、三角測距の原理を利用して、エイマー光の反射面までの距離が測定される。例えば、図1に示したように、撮像軸12とエイマー光の出射光軸13は、ともに光学読取装置1の操作面に平行であるが、当該平面内において互いに角度を有するように配置されている。このようなエイマーを撮像すれば、反射面までの距離に応じて、撮像画像内におけるエイマーの位置が操作面と平行な方向に変化する。このため、撮像画像内におけるエイマーの位置に基づいて反射面までの距離を測定することができる。   The measurement of the distance to the work surface is performed using an aimer beam. The outgoing optical axis 13 of the aimer light is arranged to be inclined with respect to the imaging axis 12 which is an incident optical axis to the imaging device, and the distance to the reflective surface of the aimer light is measured using the principle of triangular distance measurement. Ru. For example, as shown in FIG. 1, although both the imaging axis 12 and the outgoing optical axis 13 of the aimer light are parallel to the operation surface of the optical reading device 1, they are arranged to have an angle with each other in the plane There is. If such an aimer is imaged, the position of the aimer in the imaged image changes in a direction parallel to the operation surface according to the distance to the reflection surface. Therefore, the distance to the reflective surface can be measured based on the position of the aimer in the captured image.

エイマー光は読取対象を示す照準光であり、このようなエイマー光を利用してワーク表面までの距離を測定することによって、新たな部品を追加することなく、ワーク表面までの距離を計測することが可能になる。つまり、コストを増大させることなく、ワーク表面までの距離を測定することが可能になる。   The aimer light is an aiming light indicating the object to be read, and measuring the distance to the work surface using such an aimer light to measure the distance to the work surface without adding new parts. Becomes possible. That is, it is possible to measure the distance to the workpiece surface without increasing the cost.

(2)エイマー光による距離測定
図2及び図3は、エイマー光を利用した距離測定についての説明図である。図2は、図1の光学読取装置1がカバーする領域を示した図であり、図3は、エイマー光を照射したときの撮像画像201〜204の一例を示した図である。
(2) Distance Measurement by Aimer Light FIGS. 2 and 3 are explanatory diagrams of distance measurement using an aimer light. FIG. 2 is a view showing an area covered by the optical reading device 1 of FIG. 1, and FIG. 3 is a view showing an example of captured images 201 to 204 when the aimer light is irradiated.

距離A1〜A4は、光学読取装置1からワークまでの距離の一例であり、順に遠くなっている(A1<A2<A3<A4)。また、撮像画像201〜204は、光学読取装置1からの距離がそれぞれA1〜A4のワーク表面のシンボルを撮像した画像であり、エイマー光の照射中に撮像されたものである。   The distances A1 to A4 are an example of the distance from the optical reading device 1 to the work, and are sequentially farther (A1 <A2 <A3 <A4). Further, the captured images 201 to 204 are images obtained by capturing symbols on the surface of the workpiece at distances A1 to A4 from the optical reading device 1, respectively, and are captured during irradiation of the aimer light.

距離A1〜A3の撮像画像201〜203には、バーコードのシンボル20と、十字形状のエイマー21とが含まれている。エイマー光の出射光軸13は、光学読取装置1から見た場合、撮像軸12に対し右方向へ傾いている。このため、撮像画像201〜203内におけるエイマー21の位置は、反射面までの距離が遠くなるほど右へ移動する。従って、画像処理により撮像画像201〜203からエイマー21を抽出すれば、撮像画像201〜203内における位置に基づいてワーク表面までの距離を求めることができる。   The captured images 201 to 203 of the distances A1 to A3 include a barcode symbol 20 and a cross-shaped aimer 21. When viewed from the optical reading device 1, the outgoing optical axis 13 of the aimer light is inclined to the right with respect to the imaging axis 12. Therefore, the position of the aimer 21 in the captured images 201 to 203 moves to the right as the distance to the reflective surface increases. Therefore, if the aimer 21 is extracted from the captured images 201 to 203 by image processing, the distance to the workpiece surface can be obtained based on the position in the captured images 201 to 203.

最も遠い距離A4の撮像画像204には、シンボル20のみが写り、エイマー21は写っていない。反射面が遠くなれば、エイマー光の反射強度が低下するため、エイマーを撮像することができなくなる。特に、エイマーの撮像は、焦点調整前に行われるため、十分な反射強度が確保されていなければ、撮像画像からエイマーを検出することができない。なお、エイマー光の出射強度を増大させることにより反射強度を増大させることはできるが、安全性確保の観点から限界がある。   Only the symbol 20 appears in the captured image 204 at the farthest distance A4, and the aimer 21 does not. If the reflecting surface is far, the reflected intensity of the aimer light decreases, and it becomes impossible to image the aimer. In particular, since imaging of the aimer is performed before focus adjustment, the aimer can not be detected from the captured image unless sufficient reflection intensity is secured. Although the reflection intensity can be increased by increasing the emission intensity of the aimer light, there is a limit from the viewpoint of securing the safety.

図中に示した読取最大距離L1は、シンボルを読み取ることができる最大距離であり、例えば2mである。読取可能領域41は、光学読取装置1の直近から読取最大距離L1までの距離範囲であり、光学読取装置1は、読取可能領域41内に存在するシンボルを読み取ることができる。つまり、読取可能領域41内にあるワークに対し、照準光としてのエイマー光を目視可能に照射することができ、当該ワーク表面のシンボルを撮像し、デコードすることができる。   The reading maximum distance L1 shown in the figure is the maximum distance at which the symbol can be read, and is 2 m, for example. The readable area 41 is a distance range from the nearest position of the optical reading device 1 to the reading maximum distance L1, and the optical reading device 1 can read symbols present in the readable area 41. That is, it is possible to visually illuminate the aimer light as the aiming light on the work in the readable area 41, and the symbol on the work surface can be imaged and decoded.

測定最大距離L2は、エイマー光を用いてワーク表面までの距離を測定することができる最大距離であり、例えば40cmである。測定可能領域42は、光学読取装置1の直近から測定最大距離L2までの距離範囲であり、光学読取装置1は、測定可能領域42内に存在するワーク表面までの距離を測定することができる。   The measurement maximum distance L2 is the maximum distance at which the distance to the work surface can be measured using an aimer light, and is, for example, 40 cm. The measurable area 42 is a distance range from the immediate vicinity of the optical reading device 1 to the measurement maximum distance L2, and the optical reading device 1 can measure the distance to the workpiece surface present in the measurable area 42.

測定最大距離L2は、読取最大距離L1よりも小さく、測定可能領域42は、読取可能領域41よりも狭い。このため、読取可能領域41内には、距離を測定することができないブラインド領域43が存在している。つまり、ブラインド領域43は、読取可能領域41内であって、測定可能領域42外となる距離範囲である。   The measurement maximum distance L2 is smaller than the read maximum distance L1, and the measurable area 42 is narrower than the readable area 41. For this reason, in the readable area 41, there is a blind area 43 in which the distance can not be measured. That is, the blind area 43 is a distance range within the readable area 41 and outside the measurable area 42.

距離A1〜A3は、測定可能領域42内にあるため、距離を測定することができるが、距離A4はブラインド領域43内にあるため、シンボルを読み取ることはできるが、距離を測定することはできない。距離を測定することができないブラインド領域43内にワークがある場合における読み取り動作については後述する。   Since the distances A1 to A3 are within the measurable area 42, the distance can be measured, but because the distance A4 is within the blind region 43, the symbol can be read but the distance can not be measured. . The reading operation when there is a work in the blind area 43 where the distance can not be measured will be described later.

図4は、エイマー光を照射したときの撮像画像205の一例を示した図である。図中のシンボル20はワーク22の端辺近傍に付されている。このため、シンボル20を指示するエイマー光は、その一部がワーク22によって反射されず、エイマー21は一部が欠落した画像として撮影される。つまり、反射面に凹凸や傾斜の変化がある場合、エイマー画像は一部が欠落し、あるいは、歪んだ状態で撮影される。このような場合、画像処理によって撮影画像からエイマー21を抽出することが困難になり、測定可能領域42内であっても、ワークまでの距離の測定を行うことができない。   FIG. 4 is a view showing an example of the captured image 205 when the aimer light is emitted. Symbols 20 in the figure are attached near the end of the work 22. For this reason, in the aimer light indicating the symbol 20, a part of the aimer light is not reflected by the work 22, and the aimer 21 is photographed as a partially missing image. That is, when there is unevenness or a change in inclination on the reflective surface, the aimer image is photographed in a partially missing or distorted state. In such a case, it becomes difficult to extract the aimer 21 from the photographed image by image processing, and even within the measurable area 42, the distance to the work can not be measured.

(3)光学読取装置1の機能構成
図5は、図1の光学読取装置1の機能構成の一例を示したブロック図である。この光学読取装置1は、制御部100、エイマー光照射部101、照明光照射部102、撮像部103、焦点調整部104、距離測定部105、デコード部106、操作入力部107、表示出力部108及び制御量記憶部109を備えている。
(3) Functional Configuration of Optical Reading Device 1 FIG. 5 is a block diagram showing an example of the functional configuration of the optical reading device 1 of FIG. The optical reading device 1 includes a control unit 100, an aiming light irradiation unit 101, an illumination light irradiation unit 102, an imaging unit 103, a focus adjustment unit 104, a distance measurement unit 105, a decoding unit 106, an operation input unit 107, and a display output unit 108. And a control amount storage unit 109.

エイマー光照射部101は、エイマー光を照射する。エイマー光は、ワークに照射され、ワーク表面上において読取対象を視認可能に示す照準光であり、LED、LD(レーザダイオード)などによって生成される可視光からなる。例えば、十字形状の赤色レーザ光をエイマー光として用いることができるが、本発明に適用されるエイマー光は、照準光として利用可能な可視光であればよく、その波長、形状、強度などは限定されない。エイマー光の照射は、距離の測定時に行われ、シンボルの撮像時には行われないことが望ましい。   The aimer light irradiation unit 101 emits an aimer light. The aimer light is an aiming light that illuminates the work and indicates the object to be read visually on the work surface, and is made of visible light generated by an LED, a laser diode (LD) or the like. For example, although cross-shaped red laser light can be used as an aimer light, the aimer light applied to the present invention may be any visible light that can be used as aiming light, and its wavelength, shape, intensity, etc. are limited. I will not. It is desirable that the illumination of the aimer light be performed at the time of measuring the distance, and not be performed at the time of symbol imaging.

照明光照射部102は、照明光を照射する光源である。照明光は、シンボルを撮像するために照射する光であり、例えば、白色光が用いられる。環境光が十分でない暗い環境下では、撮像対象に照明光を照射した状態で撮像が行われる。照明光の照射は、シンボルの撮像時に行われ、距離の測定時には行われないことが望ましい。なお、明るい環境下でのみ撮像する場合には、照明光照射部102を省略することができる。   The illumination light irradiation part 102 is a light source which irradiates illumination light. The illumination light is light to be illuminated to image a symbol, and for example, white light is used. In a dark environment where ambient light is not sufficient, imaging is performed in a state where the imaging target is illuminated with illumination light. It is desirable that illumination of illumination light be performed at the time of symbol imaging and not at the time of distance measurement. When imaging is performed only in a bright environment, the illumination light irradiation unit 102 can be omitted.

撮像部103は、撮像レンズ131及び撮像素子132を備え、エイマー光及びシンボルを撮像し、撮像画像を生成する。撮像部103は、制御部100からの撮像信号に基づいて撮像を開始し、生成した撮像画像を距離測定部105又はデコード部106へ出力する。撮像レンズ131は、入射光を集光し、撮像素子132の受光面上に結像させるレンズであり、例えば、液体レンズを用いることができる。撮像素子132は、撮像画像を生成する光電変換素子であり、例えば、CCD、CMOSイメージセンサを用いることができる。   The imaging unit 103 includes an imaging lens 131 and an imaging element 132, captures an image of an aimer beam and a symbol, and generates a captured image. The imaging unit 103 starts imaging based on the imaging signal from the control unit 100, and outputs the generated captured image to the distance measuring unit 105 or the decoding unit 106. The imaging lens 131 is a lens that condenses incident light and forms an image on the light receiving surface of the imaging element 132. For example, a liquid lens can be used. The imaging device 132 is a photoelectric conversion device that generates a captured image, and for example, a CCD or a CMOS image sensor can be used.

焦点調整部104は、撮像部103の合焦距離を調整する手段である。撮像レンズ131が液体レンズの場合、焦点調整部104は、ワークまでの距離に対応する電圧を撮像レンズ131に印加して焦点距離を調整する。   The focus adjustment unit 104 is a unit that adjusts the focusing distance of the imaging unit 103. When the imaging lens 131 is a liquid lens, the focus adjustment unit 104 applies a voltage corresponding to the distance to the work to the imaging lens 131 to adjust the focal length.

距離測定部105は、撮像画像内におけるエイマーの位置に基づいて、ワーク表面までの距離を求める手段である。撮像画像内におけるエイマーの位置は、画像処理により撮像画像からエイマー画像を抽出することによって求められる。距離の測定は、焦点調整のために行われる処理であり、焦点調整前に撮像された画像に基づいて行われる。   The distance measuring unit 105 is means for obtaining the distance to the work surface based on the position of the aimer in the captured image. The position of the aimer in the captured image is determined by extracting the aimer image from the captured image by image processing. The measurement of the distance is a process performed for focusing, and is performed based on the image captured before the focusing.

デコード部106は、画像処理により撮像画像からシンボル画像を抽出し、抽出されたシンボルをデコードする手段である。シンボル画像の抽出は、焦点調整後に撮像された画像に基づいて行われる。撮像画像内に複数のシンボルが含まれる場合、エイマーによって指示されたシンボルがデコード対象となる。   The decoding unit 106 is a unit that extracts a symbol image from a captured image by image processing and decodes the extracted symbol. The extraction of the symbol image is performed based on the image captured after the focus adjustment. When a plurality of symbols are included in a captured image, symbols designated by the aimer are to be decoded.

操作入力部107は、ユーザによる操作入力を検出し、操作信号を制御部に出力する。例えば、トリガーキー10tの押下操作を検出すれば、制御部100へトリガー信号を出力する。   The operation input unit 107 detects an operation input by the user and outputs an operation signal to the control unit. For example, when a pressing operation of the trigger key 10t is detected, a trigger signal is output to the control unit 100.

表示出力部108は、ユーザに対し種々の情報を報知する表示手段であり、例えば、表示画面11を構成する液晶表示装置が用いられる。表示画面11には、光学読取装置1の動作状態が表示されるとともに、シンボルの読み取り結果が表示される。   The display output unit 108 is a display means for notifying the user of various information, and for example, a liquid crystal display device constituting the display screen 11 is used. While the operation state of the optical reading device 1 is displayed on the display screen 11, the reading result of the symbol is displayed.

制御量記憶部109は、読取対象までの距離に対応づけて撮像レンズ131の制御量を記憶する記憶手段である。読取対象までの各距離に対応する制御量は予め与えられ、制御量記憶部109に保持されている。例えば、撮像レンズ131の印加電圧が制御量として保持されている。焦点調整部104は、制御量記憶部109内に保持されている制御量に基づいて撮像レンズ131に電圧を印加する。   The control amount storage unit 109 is a storage unit that stores the control amount of the imaging lens 131 in association with the distance to the reading target. The control amount corresponding to each distance to the reading object is given in advance, and is stored in the control amount storage unit 109. For example, the applied voltage of the imaging lens 131 is held as a control amount. The focus adjustment unit 104 applies a voltage to the imaging lens 131 based on the control amount held in the control amount storage unit 109.

制御部100は、操作入力部107からトリガー信号が入力されると、エイマー光照射部101、照明光照射部102へ点灯信号を出力し、ワークに向けてエイマー光及び照明光が出射される。また、制御部100は、撮像部103へ撮像信号を出力し、撮像レンズ131の焦点調整を行うことなく撮像が開始され、撮像画像が生成される。制御部100は、距離測定部105がワークまでの距離を測定すれば、測定された距離に対応する制御量を制御量記憶部109から読み出し、当該制御量を焦点調整部104に出力する。焦点調整部104は、この制御量に基づいて撮像レンズ131の焦点調整を行う。また、制御部100は、デコード部106からデコード結果が出力されると、当該デコード結果を制御部100へ出力し、このデコード結果が読取結果として画面表示される。   When the trigger signal is input from the operation input unit 107, the control unit 100 outputs a lighting signal to the aimer light irradiation unit 101 and the illumination light irradiation unit 102, and the aimer light and the illumination light are emitted toward the work. In addition, the control unit 100 outputs an imaging signal to the imaging unit 103, imaging is started without performing focus adjustment of the imaging lens 131, and a captured image is generated. When the distance measurement unit 105 measures the distance to the work, the control unit 100 reads out the control amount corresponding to the measured distance from the control amount storage unit 109, and outputs the control amount to the focus adjustment unit 104. The focus adjustment unit 104 adjusts the focus of the imaging lens 131 based on the control amount. Further, when the decoding result is output from the decoding unit 106, the control unit 100 outputs the decoding result to the control unit 100, and the decoding result is displayed on the screen as the reading result.

図6は、撮像レンズ131の一構成例を示した図であり、図中の(a)及び(b)には、焦点距離が異なる状態が示されている。撮像レンズ131には、液体レンズが用いられる。液体レンズは、屈折率の異なる液体311,312間に湾曲する界面313を形成したレンズであり、印加電圧に応じて界面313の曲率を変化させることができ、焦点距離を瞬時に調整することができる。   FIG. 6 is a view showing a configuration example of the imaging lens 131, and (a) and (b) in the figure show states where focal lengths are different. A liquid lens is used for the imaging lens 131. The liquid lens is a lens in which an interface 313 curved between the liquids 311 and 312 having different refractive indexes is formed, and the curvature of the interface 313 can be changed according to the applied voltage, and the focal length can be adjusted instantaneously. it can.

例えば、互いに対向する2枚の透明基板301,302と、円筒形ホルダ303とによって密閉空間が形成され、この密閉空間内に屈折率の異なる非混和性の2種類の液体311,312が封入されている。円筒形ホルダ303は、光軸方向に2つの電極304,305が設けられ、一方の液体311には非導電性の油が用いられ、他方の液体312には導電性の水溶液が用いられている。このため、電極304,305間に電圧を印加し、導電性の液体312が一方の電極304に引き寄せられると、非導電性の液体311は液滴のような形状に変化し、両液体311,312間に湾曲した界面313が形成される。当該界面313の曲率は電圧に応じて変化するため、焦点距離を高速に変化させることができる。   For example, a sealed space is formed by two transparent substrates 301 and 302 facing each other and a cylindrical holder 303, and two types of immiscible liquids 311 and 312 having different refractive indexes are sealed in the sealed space. ing. The cylindrical holder 303 is provided with two electrodes 304 and 305 in the optical axis direction, one of the liquids 311 uses non-conductive oil, and the other liquid 312 uses a conductive aqueous solution. . Therefore, when a voltage is applied between the electrodes 304 and 305, and the conductive liquid 312 is drawn to one of the electrodes 304, the non-conductive liquid 311 changes into a droplet-like shape, and both liquids 311, A curved interface 313 is formed between 312. Since the curvature of the interface 313 changes according to the voltage, the focal length can be changed at high speed.

(4)焦点調整の制御量
図7は、図5の制御量記憶部109が保持する制御量の一例を示した図であり、横軸に読取対象までの距離をとり、縦軸に制御量としての電圧値をとって示されている。読取対象までの距離が長くなるほど、制御量が低下し、焦点距離が長くなる。一般に、光学レンズの被写体までの距離に対する焦点距離の変化率は、被写体が遠くなるほど小さくなる。このため、読取対象までの距離に対する制御量は、図示したように、読取対象までの距離が遠くなるほど、変化率が減少する曲線になる。
(4) Control Amount of Focus Adjustment FIG. 7 is a diagram showing an example of the control amount held by the control amount storage unit 109 of FIG. 5, where the horizontal axis is the distance to the reading object, and the vertical axis is the control amount. The voltage value is shown as. As the distance to the object to be read increases, the control amount decreases and the focal length increases. In general, the rate of change of the focal length with respect to the distance to the subject of the optical lens decreases as the subject gets farther. Therefore, as shown in the drawing, the control amount with respect to the distance to the reading object is a curve in which the rate of change decreases as the distance to the reading object increases.

読取可能領域41の幅は約2mであり、図中ではその一部(600mm以下)のみが示されている。なお、600mmを越える領域では、読み取り対象までの距離が変化しても、焦点距離はほとんど変化しない。また、光学読取装置1の直近、例えば20mm以下は、撮像レンズ131の焦点調整の限界であるため、制御量は一定になっているが、シンボルまでの距離が十分に近いため、多少の焦点ぼけが生じていてもシンボルを読み取ることができる。   The width of the readable area 41 is about 2 m, and only a part (600 mm or less) is shown in the figure. In a region exceeding 600 mm, the focal length hardly changes even if the distance to the object to be read changes. Further, the closest distance to the optical reading device 1, for example, 20 mm or less, is the limit of focus adjustment of the imaging lens 131, so the control amount is constant, but the distance to the symbol is sufficiently short. Symbols can be read even if

図8は、エイマーの中心位置と制御量の関係を示した図であり、横軸には、エイマーの中心位置をとり、縦軸に制御量をとって示されている。エイマー中心撮像画像内における左右方向の位置に基づいてワークまでの距離を求めることができ、求められた距離に基づいて制御量記憶部109を読み出すことにより、制御量が求められる。   FIG. 8 is a diagram showing the relationship between the center position of the aimer and the control amount, and the abscissa represents the center position of the aimer and the ordinate represents the control amount. The distance to the work can be determined based on the position in the left and right direction in the aimer center pickup image, and the control amount can be determined by reading out the control amount storage unit 109 based on the determined distance.

(5)シンボル読取処理
図9及び図10は、本発明の実施の形態1によるシンボルの読取処理の一例を示した図である。図9は、シンボルの読取動作の概略を示した説明図である。
(5) Symbol Reading Process FIGS. 9 and 10 are diagrams showing an example of a symbol reading process according to the first embodiment of the present invention. FIG. 9 is an explanatory view showing an outline of the symbol reading operation.

ワークが測定可能領域42内にあれば、エイマー光を利用してワークまでの距離を測定することができる。ワークまでの距離の測定に成功すれば、測定した距離にピントが合うように焦点調整を行った後にワークが撮像され、シンボルがデコードされる。一方、ワークまでの距離が測定可能領域42外であれば、ワークまでの距離を測定することができない。ワークまでの距離の測定に失敗すれば、リカバリー位置R1〜R3にピントが合うように焦点調整を行った後にワークが撮像され、シンボルのデコードが行われる。   If the work is within the measurable area 42, it is possible to measure the distance to the work using an aimer light. If the measurement of the distance to the work is successful, the work is imaged after the focus adjustment is performed so that the measured distance is in focus, and the symbol is decoded. On the other hand, if the distance to the work is out of the measurable area 42, the distance to the work can not be measured. If the measurement of the distance to the work fails, the focus is adjusted so that the recovery positions R1 to R3 are in focus, and the work is imaged and symbol decoding is performed.

2以上のリカバリー位置R1〜R3は、それぞれリカバリー領域431〜433内の任意のシンボルを読み取ることができる合焦距離であり、予め定められている。2以上のリカバリー領域431〜433は、ブラインド領域43を分割した領域であり、予め定められている。このため、ワークがブラインド領域43内に存在する場合、合焦距離をリカバリー位置R1〜R3に順次に移動させ、リカバリー位置R1〜R3ごとに撮像及びデコードを行うことにより、デコードに成功することができる。   The two or more recovery positions R1 to R3 are in-focus distances at which arbitrary symbols in the recovery areas 431 to 433 can be read, and are predetermined. The two or more recovery areas 431 to 433 are areas obtained by dividing the blind area 43, and are predetermined. For this reason, when the work is present in the blind area 43, the in-focus distance is sequentially moved to the recovery positions R1 to R3, and decoding is successfully performed by performing imaging and decoding for each of the recovery positions R1 to R3. it can.

つまり、ワークまでの距離の測定に成功した場合には、測定された距離にピントを合わせてシンボルの読み取りが高速に行われる。一方、ワークまでの距離の測定に失敗した場合には、2以上のリカバリー領域431〜433に順次にピントを合わせ、デコード可能なシンボルを発見するためのサーチ処理が行われる。その結果、読取可能領域41の全体をカバーすることができる。   That is, when the measurement of the distance to the work is successful, the symbol is read at high speed by focusing on the measured distance. On the other hand, when the measurement of the distance to the work fails, a search process for focusing on two or more recovery areas 431 to 433 and finding a decodable symbol is performed. As a result, the entire readable area 41 can be covered.

合焦距離を3以上のリカバリー位置R1〜R3に順次に移動させる場合、任意の順序で移動させることができる。ただし、焦点調整が撮像レンズ131の相対的移動によって行われる場合、焦点調整の応答性が悪く、更なる応答性の低下を回避するため、合焦距離を一方向に移動させる必要がある。つまり、合焦距離は、リカバリー位置R1〜R3の配列順に沿って、R1、R2、R3の順序、又は、R3、R2、R1の順序で移動する必要がある。   When the focusing distances are sequentially moved to three or more recovery positions R1 to R3, they can be moved in any order. However, when the focus adjustment is performed by the relative movement of the imaging lens 131, the responsiveness of the focus adjustment is poor, and it is necessary to move the focusing distance in one direction in order to avoid a further decrease in responsiveness. That is, the in-focus distance needs to move in the order of R1, R2 and R3 or in the order of R3, R2 and R1 along the arrangement order of the recovery positions R1 to R3.

これに対し、液体レンズによる焦点調整は応答性が極めて高く、合焦距離の移動順序による応答性の低下は無視することができる。このため、撮像レンズ131に液体レンズを採用している場合、両端のリカバリー位置R1,R3よりも先に、両端以外のリカバリー位置R2に移動することが望ましい。つまり、合焦距離は、R2、R1、R3の順序、又は、R2、R3、R1の順序で移動することが望ましい。   On the other hand, focusing by the liquid lens is extremely responsive, and the decrease in responsiveness due to the movement order of the focusing distances can be ignored. For this reason, when a liquid lens is employed for the imaging lens 131, it is desirable to move to recovery positions R2 other than both ends prior to the recovery positions R1 and R3 at both ends. That is, it is desirable that the focusing distance is moved in the order of R2, R1 and R3 or in the order of R2, R3 and R1.

一般に、完全にはピントが合っておらず、撮影画像に多少の焦点ぼけが生じていたとしても、一定の確率でシンボルのデコードに成功する。しかも、ワークが遠くなるほど、合焦距離に対する焦点距離の変化率は減少し、焦点がずれていても、大きな焦点ぼけが生じにくい。このため、合焦距離をリカバリー位置R2に移動させた場合、対応するリカバリー領域432だけでなく、隣接するリカバリー領域431及び433内のシンボルも一定の確率で読み取ることができる。このため、両端以外のリカバリー位置R2に合焦距離を優先的に移動することにより、一定の確率でより早くデコードに成功することができる。   Generally, even if the image is not completely in focus and the captured image is somewhat defocused, the symbol is successfully decoded with a certain probability. In addition, as the work gets farther, the rate of change of the focal distance with respect to the in-focus distance decreases, and even if the focal point is out of focus, large defocusing hardly occurs. Therefore, when the in-focus distance is moved to the recovery position R2, not only the corresponding recovery area 432 but also the symbols in the adjacent recovery areas 431 and 433 can be read with a certain probability. Therefore, by preferentially moving the in-focus distance to the recovery positions R2 other than the both ends, decoding can be succeeded faster with a certain probability.

各リカバリー位置R1〜R3にピントを合わせるための制御量は、制御量記憶部109内に保持されている。また、各リカバリー位置R1〜R3の移動順序も制御量記憶部109内に保持されている。表1は、制御量記憶部109内に保持されているリカバリー位置R1〜R3に関する情報の一例である。リカバリー位置R1〜R3までの距離は、それぞれ500mm、600mm、750mmであり、これらの距離に合焦させるための制御量が、それぞれ38.8V、38.3V、38.0Vである。また、移動順序は、R2,R1,R3の順である。これらの情報が予め定められ、制御量記憶部109内に保持されている。なお、制御量を保持していれば、距離は省略することができる。また、制御量記憶部109は、距離に対応づけて制御量を保持しているため、距離を保持していれば、制御量を省略することができる。

Figure 2019101555
Control amounts for focusing on the respective recovery positions R1 to R3 are held in the control amount storage unit 109. Further, the movement order of each recovery position R1 to R3 is also held in the control amount storage unit 109. Table 1 is an example of information regarding the recovery positions R1 to R3 held in the control amount storage unit 109. The distances to the recovery positions R1 to R3 are 500 mm, 600 mm, and 750 mm, respectively, and the control amounts for focusing on these distances are 38.8 V, 38.3 V, and 38.0 V, respectively. Also, the moving order is in the order of R2, R1 and R3. These pieces of information are predetermined and held in the control amount storage unit 109. In addition, if the control amount is held, the distance can be omitted. Further, since the control amount storage unit 109 holds the control amount in association with the distance, the control amount can be omitted if the distance is held.
Figure 2019101555

図10のステップS101〜S110は、光学読取装置1によるシンボル読取処理の一例を示したフローチャートである。このシンボル読取処理は、ユーザがトリガーキー10tを操作することによって開始される。また、このシンボル読取処理のフローは、制御部100によって制御される。   Steps S <b> 101 to S <b> 110 in FIG. 10 are a flowchart showing an example of the symbol reading process by the optical reading device 1. The symbol reading process is started by the user operating the trigger key 10t. The flow of the symbol reading process is controlled by the control unit 100.

まず、撮像レンズ131の焦点距離が初期値に設定される(ステップS101)。焦点位置の初期値は、例えば、固定値又はシンボルの読み取りに最後に成功した焦点距離のいずれかがユーザによって予め選択される。シンボルの読み取りに最後に成功した焦点距離を焦点距離の初期値として用いる場合、最後に成功した読み取り時と比較して、シンボルまでの距離に大きな変化がなければ、最初の撮像でデコードに成功し、高い応答性が得られる。また、固定値が初期値として用いられる場合、当該固定値はユーザによって指定可能であってもよい。例えば、使用頻度が高い焦点距離が既知であれば、初期値として当該焦点距離を予め指定しておくことにより、最初の撮像でデコードに成功する確率を高くすることができる。また、Near側固定値又はFar側固定値のいずれかをユーザが選択するように構成することもできる。   First, the focal length of the imaging lens 131 is set to an initial value (step S101). The initial value of the focal position is, for example, preselected by the user either as a fixed value or a focal distance last successfully read for the symbol. When the last successful focal length for symbol reading is used as the initial value of the focal length, the first imaging succeeds in decoding if there is no significant change in the distance to the symbol compared to the last successful reading. , High responsiveness can be obtained. In addition, when a fixed value is used as an initial value, the fixed value may be designated by the user. For example, if a focal distance that is frequently used is known, by designating the focal distance in advance as an initial value, it is possible to increase the probability of successful decoding in the first imaging. Further, the user may be configured to select either the near-side fixed value or the far-side fixed value.

次に、撮像及びデコードが行われる(ステップS102)。つまり、ワークまでの距離測定及び焦点調整を行うことなく、撮像部103が撮像画像を生成し、デコード部106が、撮像画像からシンボルを抽出してデコードする。その結果、デコードに成功した場合には、デコード結果が読取結果として出力され、シンボル読取処理を終了する(ステップS106)。   Next, imaging and decoding are performed (step S102). That is, the imaging unit 103 generates a captured image without performing the distance measurement to the work and the focus adjustment, and the decoding unit 106 extracts and decodes a symbol from the captured image. As a result, when the decoding is successful, the decoding result is output as the reading result, and the symbol reading process is ended (step S106).

一方、ステップS103において、デコードに失敗した場合、ワークまでの距離を測定する(ステップS103)。ワークまでの距離は、エイマー光が照射されているワークを撮像して撮像画像を生成し、撮像画像内におけるエイマーの位置を検出することによって測定される。   On the other hand, when the decoding fails in step S103, the distance to the work is measured (step S103). The distance to the workpiece is measured by imaging the workpiece irradiated with the aimer light to generate a captured image and detecting the position of the aimer in the captured image.

ステップS102において距離の測定に成功した場合、撮像部103の合焦距離が当該測定された距離に一致するように、焦点調整が行われる(ステップS104)。具体的には、制御部100が、測定された距離に対応する制御量を制御量記憶部109から読み出し、焦点調整部104が当該制御量に応じた電圧を撮像レンズ131に印加し、撮像レンズ131の焦点距離が調整される。   When the distance measurement is successful in step S102, focus adjustment is performed such that the in-focus distance of the imaging unit 103 matches the measured distance (step S104). Specifically, the control unit 100 reads out the control amount corresponding to the measured distance from the control amount storage unit 109, and the focus adjustment unit 104 applies a voltage according to the control amount to the imaging lens 131, and the imaging lens The focal length of 131 is adjusted.

次に、撮像及びデコードが行われる(ステップS105)。つまり、合焦距離の調整後に撮像部103が撮像画像を生成し、デコード部106が、撮像画像からシンボルを抽出してデコードする。その結果、デコードに成功した場合には、デコード結果が読取結果として出力され、シンボル読取処理を終了する(ステップS106)。一方、デコードに失敗した場合には、ステップS103に戻り、再び距離の測定が行われる。デコードの失敗は、例えば、撮像時に光学読取装置1が動いた場合、シンボルが汚損している場合、ワークの表面状態が良好でない場合などに発生し得る。   Next, imaging and decoding are performed (step S105). That is, the imaging unit 103 generates a captured image after adjustment of the focusing distance, and the decoding unit 106 extracts and decodes a symbol from the captured image. As a result, when the decoding is successful, the decoding result is output as the reading result, and the symbol reading process is ended (step S106). On the other hand, if the decoding fails, the process returns to step S103, and the distance measurement is performed again. Decoding failure may occur, for example, when the optical reader 1 moves during imaging, when the symbol is dirty, when the surface condition of the workpiece is not good, and the like.

一方、ステップS103において距離の測定に失敗すれば、所定の回数に達するまで距離の測定が繰り返される(ステップS107)。撮像画像からエイマーを抽出できなければ、距離の測定に失敗する。例えば、ワークまでの距離が、測定可能領域42外であった場合(例えば図3(d))や、エイマーの一部が欠落した状態で撮像された場合(例えば図4)に、距離の測定に失敗する。この様な場合には、再度、距離の測定が行われる。   On the other hand, if the measurement of the distance fails in step S103, the measurement of the distance is repeated until the predetermined number of times is reached (step S107). If the aimer can not be extracted from the captured image, the distance measurement fails. For example, when the distance to the work is outside the measurable area 42 (for example, FIG. 3D) or when the image is taken in a state where a part of the aimer is missing (for example, FIG. 4) Fail. In such a case, the distance measurement is performed again.

ステップS107において距離の測定に連続して失敗し、所定回数に達した場合、合焦距離を予め定められた2以上のリカバリー位置R1〜R3に順次に移動させ、リカバリー位置R1〜R3ごとに撮像及びデコードが行われる(ステップS108〜S110)。つまり、ブラインド領域43内においてデコード可能なシンボルを発見するためのサーチ処理が行われる。その結果、いずれかのリカバリー位置R1〜R3においてデコードに成功すれば、ステップS106に進み、読取結果を出力する。一方、全てのリカバリー位置R1〜R3においてデコードに失敗すれば、ステップS103に戻り、再び距離の計測が行われる。   If it fails in step S107 to measure the distance continuously and reaches a predetermined number of times, the in-focus distance is sequentially moved to two or more predetermined recovery positions R1 to R3 and imaging is performed for each of the recovery positions R1 to R3 And decoding is performed (steps S108 to S110). That is, search processing for finding decodable symbols in the blind area 43 is performed. As a result, if decoding is successful at any of the recovery positions R1 to R3, the process proceeds to step S106, and the reading result is output. On the other hand, if decoding fails at all recovery positions R1 to R3, the process returns to step S103, and the distance measurement is performed again.

なお、同一の合焦距離により、ブラインド領域43内の任意のシンボルを読み取ることができる場合には、ブラインド領域43を2以上のリカバリー領域431〜433に分割する必要はない。   When an arbitrary symbol in the blind area 43 can be read by the same focusing distance, there is no need to divide the blind area 43 into two or more recovery areas 431 to 433.

図11は、本発明の実施の形態1によるシンボル読取処理の他の例を示した図であり、シンボルの読み取り時における動作の概略を示した説明図である。リカバリー位置Rは、ブラインド領域43内の任意のシンボルを読み取ることができる合焦距離であり、ブラインド領域43は、分割されることなく、そのままリカバリー領域430となる。このため、図10のステップS107において、距離の測定に所定回数失敗した場合、合焦距離をリカバリー位置Rに移動させ、撮像及びデコードを行うことにより、ブラインド領域43内のシンボルをデコードすることができる。この場合、ステップS110は不要になる。   FIG. 11 is a diagram showing another example of the symbol reading process according to the first embodiment of the present invention, and is an explanatory diagram showing an outline of an operation at the time of symbol reading. The recovery position R is a focusing distance at which any symbol in the blind area 43 can be read, and the blind area 43 directly becomes the recovery area 430 without being divided. For this reason, in step S107 in FIG. 10, when the distance measurement fails by a predetermined number of times, the in-focus distance is moved to the recovery position R, and imaging and decoding are performed to decode symbols in the blind area 43. it can. In this case, step S110 is unnecessary.

本実施の形態による光学読取装置1は、ワークにエイマー光を照射するエイマー光照射部101と、ワークを撮像して撮像画像を生成する撮像部103と、読取可能領域41内において撮像部103の合焦距離を調整する焦点調整部104と、撮像画像内におけるエイマー画像の位置に基づいて、読取可能領域41よりも狭い測定可能領域42内においてワークまでの距離を測定する距離測定部105と、合焦距離の調整後に撮像された撮像画像に基づいて光学情報をデコードするデコード部106と、距離測定部105が距離の測定に成功した場合に、測定された距離に基づいて焦点調整部104を制御し、距離測定部105が距離の測定に失敗した場合に、合焦距離が測定可能領域42外の予め定められたリカバリー位置R1〜R3に移動するように焦点調整部104を制御する制御部100とを備える。   The optical reading device 1 according to the present embodiment includes an aimer light irradiation unit 101 that irradiates a workpiece with an aimer light, an imaging unit 103 that images a workpiece to generate a captured image, and an imaging unit 103 in a readable area 41. A focus adjustment unit 104 that adjusts a focusing distance, and a distance measurement unit 105 that measures the distance to a workpiece within a measurable area 42 narrower than the readable area 41 based on the position of the aimer image in the captured image; The decoding unit 106 decodes optical information based on the captured image captured after the adjustment of the focusing distance, and the focus adjustment unit 104 based on the measured distance when the distance measurement unit 105 succeeds in measuring the distance. If the distance measuring unit 105 fails to measure the distance, the in-focus distance is moved to a predetermined recovery position R1 to R3 outside the measurable area 42. And a control unit 100 for controlling the focus adjustment unit 104 so as to.

このため、ワークが測定可能領域41内に存在する場合には、ワークまでの距離が測定され、測定された距離に基づく焦点調整が行われるため、シンボルの読み取りを高速に行うことができる。また、ワークまでの距離の測定に失敗した場合、測定可能領域42外のリカバリー位置R1〜R3に合焦距離を移動させるため、ワークが測定可能領域41外に存在する場合でも、シンボルの読み取りを行うことができる。特に、ワークまでの距離の測定に失敗した場合に、読取可能領域41の全体について合焦距離を順次に移動させ、読取可能なシンボルを発見する方法に比べて、シンボルの読み取りを高速に行うことができる。   Therefore, when the workpiece is in the measurable area 41, the distance to the workpiece is measured, and the focus adjustment based on the measured distance is performed, so that the symbol can be read at high speed. Also, if the measurement of the distance to the work fails, in order to move the in-focus distance to the recovery positions R1 to R3 outside the measurable area 42, even if the work is outside the measurable area 41, symbol reading is performed. It can be carried out. In particular, when the measurement of the distance to the work fails, the focus distance is sequentially moved across the entire readable area 41, and symbol reading is performed at a high speed as compared with the method of finding readable symbols. Can.

実施の形態2.
実施の形態1では、ワークまでの距離を測定し、距離の測定に失敗した場合にはブラインド領域43内のシンボルをサーチし、シンボルのサーチにも失敗した場合には、再び距離の測定を行うシンボル読取処理の例について説明した。これに対し、本実施の形態では、ブラインド領域43内におけるシンボルのサーチに失敗した場合、さらに測定可能領域42内のシンボルをサーチするシンボル読取処理について説明する。
Second Embodiment
In the first embodiment, the distance to the work is measured, and if the measurement of the distance fails, the symbol in the blind area 43 is searched, and if the search of the symbol also fails, the distance is measured again. An example of symbol reading processing has been described. On the other hand, in the present embodiment, symbol reading processing for searching for symbols in measurable area 42 when symbol search in blind area 43 fails will be described.

図12及び図13は、本発明の実施の形態2によるシンボルの読取処理の一例を示した図である。図12は、シンボル読取動作の概略を示した説明図である。図9と比較すれば、測定可能領域42が2以上のサーチ領域51に分割され、各サーチ領域51に対応するサーチ位置50が定められている点で異なる。   12 and 13 show an example of symbol reading processing according to the second embodiment of the present invention. FIG. 12 is an explanatory view showing an outline of the symbol reading operation. As compared with FIG. 9, the measurable area 42 is divided into two or more search areas 51, and a search position 50 corresponding to each search area 51 is determined.

ワークまでの距離の測定に失敗し、ブラインド領域43内におけるシンボルのサーチにも失敗した場合、測定可能領域42内の2以上のサーチ位置50にピントが合うように焦点調整を行った後にワークが撮像され、シンボルのデコードが行われる。   If the measurement of the distance to the work fails and the symbol search in the blind area 43 also fails, the work is adjusted after focusing so that two or more search positions 50 in the measurable area 42 are in focus. The image is captured and symbol decoding is performed.

2以上のサーチ位置50は、それぞれ対応するサーチ領域51内の任意のシンボルを読み取ることができる合焦距離であり、予め定められている。2以上のサーチ領域51は、測定可能領域42を分割した領域であり、予め定められている。このため、ワークが測定可能領域42内に存在する場合、合焦距離をサーチ位置50に順次に移動させ、サーチ位置50ごとに撮像及びデコードを行うことにより、デコードに成功することができる。   The two or more search positions 50 are in-focus distances at which arbitrary symbols in the corresponding search area 51 can be read, and are predetermined. The two or more search areas 51 are areas obtained by dividing the measurable area 42, and are predetermined. Therefore, when the work is present in the measurable area 42, the focusing distance can be sequentially moved to the search position 50, and imaging and decoding can be performed for each search position 50, whereby decoding can be successful.

つまり、ブラインド領域43内におけるシンボルのサーチに失敗した場合には、2以上のサーチ位置50に順次にピントを合わせ、デコード可能なシンボルを発見するためのサーチ処理が行われる。その結果、読取可能領域41の全てが、シンボルのサーチ処理によってカバーされる。   That is, when a symbol search in the blind area 43 fails, two or more search positions 50 are sequentially focused to perform search processing for finding a decodable symbol. As a result, all of the readable area 41 is covered by the symbol search process.

測定可能領域42内にシンボルが存在し、かつ、読み取りが可能な場合であっても、ワークまでの距離の測定に失敗する場合がある。例えば、エイマーの一部が欠落した状態で撮像された場合(例えば図4)には距離の測定に失敗する。この様な場合であっても、測定可能領域42についてシンボルのサーチ処理を行うことにより、シンボルを読み取ることができる。   Even if a symbol is present in the measurable area 42 and readable, the measurement of the distance to the workpiece may fail. For example, if imaging is performed with a part of the aimer missing (for example, FIG. 4), the measurement of the distance fails. Even in such a case, the symbol can be read by performing a symbol search process on the measurable region 42.

図13のステップS201〜S213は、実施の形態2によるシンボル読取処理の一例を示したフローチャートである。ステップS201〜S210は、図12のステップS101〜S110(実施の形態1)と同一であるため、重複する説明を省略する。   Steps S201 to S213 in FIG. 13 are flowcharts showing an example of the symbol reading process according to the second embodiment. Steps S201 to S210 are the same as steps S101 to S110 (Embodiment 1) of FIG. 12, and thus redundant description will be omitted.

ブラインド領域43内のサーチ処理(ステップS208〜S210)において、全てのリカバリー位置R1〜R3でデコードに失敗すれば、測定可能領域42内のサーチ処理が行われる(ステップS211〜S213)。すなわち、合焦距離を予め定められた2以上のサーチ位置50に順次に移動させ(ステップS211)、サーチ位置50ごとに撮像及びデコードが行われる(ステップS212)。その結果、いずれかのサーチ位置50においてデコードに成功すれば、ステップS206に進み、読取結果を出力する。一方、全てのサーチ位置50においてデコードに失敗すれば、ステップS203に戻り、再び距離の計測が行われる。   In the search process (steps S208 to S210) in the blind area 43, if the decoding fails at all the recovery positions R1 to R3, the search process in the measurable area 42 is performed (steps S211 to S213). That is, the focusing distance is sequentially moved to two or more predetermined search positions 50 (step S211), and imaging and decoding are performed for each search position 50 (step S212). As a result, if decoding is successful at any of the search positions 50, the process proceeds to step S206, and the read result is output. On the other hand, if decoding fails at all the search positions 50, the process returns to step S203, and distance measurement is performed again.

本実施の形態による光学読取装置1は、距離測定部105が距離の測定に失敗した場合に、合焦距離が2以上の前記リカバリー位置に順次に移動するように、制御部100が焦点調整部104を制御する。この様な構成を採用することにより、読取可能領域41内であって、第2の距離範囲外の距離範囲が広い場合であっても、当該距離範囲に存在するシンボルを読み取ることができる。   In the optical reading device 1 according to the present embodiment, when the distance measurement unit 105 fails to measure the distance, the control unit 100 controls the focus adjustment unit to move sequentially to the recovery position where the in-focus distance is 2 or more. Control 104; By adopting such a configuration, it is possible to read symbols present in the distance range even if the distance range outside the second distance range is wide within the readable region 41.

本実施の形態による光学読取装置1は、合焦距離がブラインド領域43のリカバリー位置R1〜R3へ移動した後に撮像された撮像画像に基づくデコードに失敗した場合に、合焦距離が測定可能領域42内の予め定められた2以上のサーチ位置50に順次に移動するように制御部100が焦点調整部104を制御する。このような構成を採用することにより、測定可能領域42内に読取可能なシンボルが存在しているが、距離の測定に失敗した場合であっても、当該シンボルを読み取ることができる。   The optical reading device 1 according to the present embodiment can measure the in-focus distance of the focusable area 42 if the decoding based on the captured image captured after the in-focus distance moves to the recovery position R1 to R3 of the blind area 43 fails. The control unit 100 controls the focus adjustment unit 104 so as to sequentially move to two or more predetermined search positions 50 of them. By adopting such a configuration, although there are readable symbols in the measurable area 42, the symbols can be read even if the distance measurement fails.

実施の形態3.
実施の形態2では、測定可能領域42における距離の測定に失敗し、ブラインド領域43におけるサーチにも失敗した場合に、測定可能領域42内においてシンボルのサーチを行うシンボル読取処理の例について説明した。これに対し、本実施の形態では、ブラインド領域43において簡易的なサーチを行い、この簡易的なサーチに失敗した場合に、読取可能領域41の全体においてシンボルのサーチを行うシンボル読取処理について説明する。
Third Embodiment
In the second embodiment, an example of symbol reading processing for searching for symbols in the measurable area 42 when the measurement of the distance in the measurable area 42 fails and the search in the blind area 43 also fails is described. On the other hand, in this embodiment, a simple search is performed in the blind area 43, and symbol reading processing for searching for symbols in the entire readable area 41 when this simple search fails is described. .

図14は、本発明の実施の形態3によるシンボルの読取処理の一例を示した図であり、シンボルの読取動作の概略を示した説明図である。なお、本実施の形態によるシンボル読取処理のフローチャートは、図12(実施の形態2)の場合と同一である。   FIG. 14 is a diagram showing an example of symbol reading processing according to the third embodiment of the present invention, and is an explanatory diagram showing an outline of symbol reading operation. The flowchart of the symbol reading process according to the present embodiment is the same as that of FIG. 12 (Embodiment 2).

測定可能領域42内における距離の測定に失敗した場合、ブラインド領域43内においてデコード可能なシンボルを発見するための第1サーチが行われる。この第1サーチに失敗した場合、読取可能領域41内においてデコード可能なシンボルを発見するための第2サーチが行われる。つまり、ブラインド領域43については、第1サーチ及び第2サーチの両方が行われる。   If the measurement of the distance in the measurable area 42 fails, a first search for finding decodable symbols in the blind area 43 is performed. If this first search fails, a second search is performed to find decodable symbols in the readable area 41. That is, for the blind area 43, both the first search and the second search are performed.

第2サーチは、読取可能領域41のサーチであり、サーチ位置50にピントが合うように焦点調整を行った後にワークが撮像され、シンボルのデコードが行われる。2以上のサーチ位置50は、それぞれサーチ領域51内の任意のシンボルを読み取ることができる合焦距離であり、予め定められている。2以上のサーチ領域51は、読取可能領域41を分割した領域であり、予め定められている。このため、ワークが読取可能領域41内に存在する場合、合焦距離をサーチ位置50に順次に移動させ、サーチ位置50ごとに撮像及びデコードを行うことにより、デコードに成功することができる。   The second search is a search of the readable area 41, and after focus adjustment is performed so that the search position 50 is in focus, the work is imaged and symbol decoding is performed. The two or more search positions 50 are focusing distances at which arbitrary symbols in the search area 51 can be read, and are predetermined. The two or more search areas 51 are areas obtained by dividing the readable area 41, and are predetermined. Therefore, when the work is present in the readable area 41, decoding can be successful by sequentially moving the in-focus distance to the search position 50 and performing imaging and decoding for each search position 50.

一方、第1サーチは、ブラインド領域43のサーチであり、リカバリー位置R1,R2にピントが合うように焦点調整を行った後にワークが撮像され、シンボルのデコードが行われる。1又は2以上のサーチ位置R1,R2は、ブラインド領域43内のサーチ位置50よりも数が少なく、より広い間隔で配置された合焦距離であり、予め定められている。   On the other hand, the first search is a search in the blind area 43, and after focus adjustment is performed so that the recovery positions R1 and R2 are in focus, the work is imaged and symbol decoding is performed. The one or more search positions R1 and R2 are focus distances which are smaller in number than the search positions 50 in the blind area 43 and arranged at wider intervals, and are predetermined.

このため、合焦距離をリカバリー位置R1,R2に移動させただけでは、ブラインド領域43内の任意のシンボルに対しピントを合わせることはできない。その結果、第1サーチは、第2サーチに比べてより高速に実行することができる一方で、ブラインド領域43内に存在するデコード可能なシンボルを発見できない場合があり、第2サーチよりも不確実性を有している。   For this reason, it is not possible to focus on an arbitrary symbol in the blind area 43 only by moving the focusing distance to the recovery positions R1 and R2. As a result, while the first search can be executed faster than the second search, it may not be possible to find decodable symbols present in the blind area 43, which is more uncertain than the second search. Have sex.

しかしながら、上述した通り、完全にはピントが合っておらず、撮像画像に多少の焦点ぼけが生じていたとしても、一定の確率でシンボルのデコードに成功することができる。しかも、ワークが遠くなるほど、合焦距離に対する焦点距離の変化率は減少し、焦点がずれていても、大きな焦点ぼけが生じにくい。このため、リカバリー位置R1,R2の数と位置を適切に決定することにより、バーコードのような比較的読み取り易いシンボルについては、不確実性を抑制しつつ、シンボルの読取処理を高速化することができる。   However, as described above, even if the focused image is not completely in focus and some defocusing occurs in the captured image, it is possible to successfully decode the symbol with a certain probability. In addition, as the work gets farther, the rate of change of the focal distance with respect to the in-focus distance decreases, and even if the focal point is out of focus, large defocusing hardly occurs. Therefore, for symbols that are relatively easy to read such as barcodes, speeding up the symbol reading process while suppressing uncertainty by appropriately determining the number and position of the recovery positions R1 and R2. Can.

なお、本実施の形態では、第1サーチ及び第2サーチを行う場合の例について説明したが、第2サーチを省略し、第1サーチのみを行うように構成することもできる。つまり、測定可能領域42内における距離の測定に失敗した場合に、ブラインド領域43について簡易的なサーチのみを行う構成であってもよい。また、第1サーチに失敗した場合、その後に、実施の形態2の場合と同様にして、測定可能領域42についてのみサーチを行うように構成することもできる。   In the present embodiment, an example in which the first search and the second search are performed has been described. However, the second search may be omitted and only the first search may be performed. That is, when the measurement of the distance in the measurable area 42 fails, only the simple search may be performed on the blind area 43. In addition, when the first search fails, it is also possible to configure so as to search only for the measurable region 42 as in the second embodiment.

1 光学読取装置
10 操作キー
10t トリガーキー
11 表示画面
12 撮像軸
13 エイマー光の出射光軸
20 シンボル
21 エイマー
22 ワーク
41 読取可能領域
42 測定可能領域
43 ブラインド領域
50 サーチ位置
51 サーチ領域
100 制御部
101 エイマー光照射部
102 照明光照射部
103 撮像部
104 焦点調整部
105 距離測定部
106 デコード部
107 操作入力部
108 表示出力部
109 制御量記憶部
131 撮像レンズ
132 撮像素子
201〜205 撮像画像
301,302 透明基板
303 円筒形ホルダ
304,305 電極
311,312 液体
313 界面
430〜433 リカバリー領域
A1〜A4 ワークまでの距離
L1 読取最大距離
L2 測定最大距離
R,R1〜R3 リカバリー位置
DESCRIPTION OF SYMBOLS 1 optical reading device 10 operation key 10 t trigger key 11 display screen 12 imaging axis 13 light axis of emitting aimer light 20 symbol 21 aimer 22 workable area 42 readable area 42 measurable area 43 blind area 50 search position 51 search area 100 control unit 101 Emer light irradiation unit 102 illumination light irradiation unit 103 imaging unit 104 focus adjustment unit 105 distance measurement unit 106 decode unit 107 operation input unit 108 display output unit 109 control amount storage unit 131 imaging lens 132 imaging elements 201 to 205 captured images 301 and 302 Transparent substrate 303 Cylindrical holder 304, 305 Electrode 311, 312 Liquid 313 Interface 430 to 433 Recovery area A1 to A4 Work distance L1 Reading maximum distance L2 Measurement maximum distance R, R1 to R3 Recovery position

Claims (7)

ワークに付された光学情報をデコードする光学読取装置において、
前記ワークにエイマー光を照射するエイマー光照射部と、
前記ワークを撮像して撮像画像を生成する撮像部と、
第1の距離範囲内において前記撮像部の合焦距離を調整する焦点調整部と、
前記撮像画像内におけるエイマー画像の位置に基づいて、第1の距離範囲よりも狭い第2の距離範囲内において前記ワークまでの距離を測定する距離測定部と、
前記合焦距離の調整後に撮像された前記撮像画像に基づいて、前記光学情報をデコードするデコード部と、
前記距離測定部が距離の測定に成功した場合に、測定された距離に基づいて前記焦点調整部を制御し、前記距離測定部が距離の測定に失敗した場合に、前記合焦距離が前記第2の距離範囲外の予め定められたリカバリー位置に移動するように前記焦点調整部を制御する制御部とを備えた光学読取装置。
In an optical reader for decoding optical information attached to a work,
An aimer light irradiation unit for irradiating the work with an aimer light;
An imaging unit that images the work and generates a captured image;
A focus adjustment unit configured to adjust a focusing distance of the imaging unit within a first distance range;
A distance measuring unit that measures the distance to the work within a second distance range narrower than the first distance range based on the position of the aimer image in the captured image;
A decoding unit that decodes the optical information based on the captured image captured after the adjustment of the focusing distance;
When the distance measuring unit succeeds in measuring the distance, the focus adjusting unit is controlled based on the measured distance, and when the distance measuring unit fails in measuring the distance, the focusing distance is the An optical reader comprising: a control unit that controls the focus adjustment unit to move to a predetermined recovery position outside a distance range of 2.
前記リカバリー位置は、前記第2の距離範囲よりも遠い位置であることを特徴とする請求項1に記載の光学読取装置。   The optical reading device according to claim 1, wherein the recovery position is a position farther than the second distance range. 前記制御部は、前記距離測定部が距離の測定に失敗した場合に、前記合焦距離が2以上の前記リカバリー位置に順次に移動するように前記焦点調整部を制御することを特徴とする請求項1又は2に記載の光学読取装置。   The control unit controls the focus adjustment unit to sequentially move to the recovery position where the in-focus distance is two or more when the distance measurement unit fails to measure the distance. The optical reader according to claim 1 or 2. 前記制御部は、前記距離測定部が距離の測定に失敗し、前記合焦距離が3以上の前記リカバリー位置に順次に移動する際、両端のリカバリー位置よりも先に、両端以外のリカバリー位置の少なくとも一つに移動するように前記焦点調整部を制御することを特徴とする請求項3に記載の光学読取装置。   In the control unit, when the distance measuring unit fails to measure the distance and sequentially moves to the recovery position where the in-focus distance is 3 or more, the recovery positions other than both ends are earlier than the recovery positions at both ends. The optical reading device according to claim 3, wherein the focusing unit is controlled to move to at least one. 前記制御部は、前記合焦距離が第2の距離範囲外の前記リカバリー位置へ移動した後に撮像された前記撮像画像に基づくデコードに失敗した場合に、前記合焦距離が前記第2の距離範囲内の予め定められた2以上のサーチ位置に順次に移動するように前記焦点調整部を制御することを特徴とする請求項1又は2に記載の光学読取装置。   The control unit is configured such that, when the in-focus distance fails to be decoded based on the captured image captured after moving to the recovery position outside the second distance range, the in-focus distance is the second distance range The optical reading device according to claim 1 or 2, wherein the focus adjustment unit is controlled to sequentially move to two or more predetermined search positions. 前記撮像部が選択可能な前記合焦距離に対応づけて制御量を記憶する制御量記憶部を備え、
前記制御部は、測定された距離に対応する前記制御量を前記制御量記憶部から読み出し、読み出された前記制御量に基づいて、前記焦点調整部を制御することを特徴とする請求項1〜3のいずれかに記載の光学読取装置。
The control amount storage unit stores a control amount in association with the in-focus distance selectable by the imaging unit.
The control unit reads the control amount corresponding to the measured distance from the control amount storage unit, and controls the focus adjustment unit based on the read control amount. The optical reader in any one of -3.
前記撮像部は、液体レンズを有し、
前記焦点調整部は、前記液体レンズの焦点距離を調整することを特徴とする請求項1〜4のいずれかに記載の光学読取装置。
The imaging unit has a liquid lens,
The optical reading apparatus according to any one of claims 1 to 4, wherein the focus adjustment unit adjusts a focal length of the liquid lens.
JP2017229193A 2017-11-29 2017-11-29 Optical reader Active JP6997603B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017229193A JP6997603B2 (en) 2017-11-29 2017-11-29 Optical reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017229193A JP6997603B2 (en) 2017-11-29 2017-11-29 Optical reader

Publications (2)

Publication Number Publication Date
JP2019101555A true JP2019101555A (en) 2019-06-24
JP6997603B2 JP6997603B2 (en) 2022-02-21

Family

ID=66973740

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017229193A Active JP6997603B2 (en) 2017-11-29 2017-11-29 Optical reader

Country Status (1)

Country Link
JP (1) JP6997603B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006209208A (en) * 2005-01-25 2006-08-10 Denso Wave Inc Optical information reading device
JP2006221349A (en) * 2005-02-09 2006-08-24 Denso Wave Inc Optical information reading device
JP2011034360A (en) * 2009-07-31 2011-02-17 Optoelectronics Co Ltd Optical information reading apparatus and optical information reading method
JP2012208797A (en) * 2011-03-30 2012-10-25 Casio Comput Co Ltd Code reading device and program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006209208A (en) * 2005-01-25 2006-08-10 Denso Wave Inc Optical information reading device
JP2006221349A (en) * 2005-02-09 2006-08-24 Denso Wave Inc Optical information reading device
JP2011034360A (en) * 2009-07-31 2011-02-17 Optoelectronics Co Ltd Optical information reading apparatus and optical information reading method
JP2012208797A (en) * 2011-03-30 2012-10-25 Casio Comput Co Ltd Code reading device and program

Also Published As

Publication number Publication date
JP6997603B2 (en) 2022-02-21

Similar Documents

Publication Publication Date Title
US10121039B2 (en) Depth sensor based auto-focus system for an indicia scanner
JP3408828B2 (en) Omnidirectional wide range handheld barcode reader
US7726573B2 (en) Compact autofocus bar code reader with moving mirror
EP3499404B1 (en) Dual-imaging vision system camera, aimer and method for using the same
EP1573648B1 (en) Image scanning device having a system for determining the distance to a target
US7222793B2 (en) Arrangement and method of imaging one-dimensional and two-dimensional optical codes at a plurality of focal planes
US8534556B2 (en) Arrangement for and method of reducing vertical parallax between an aiming pattern and an imaging field of view in a linear imaging reader
US9305197B2 (en) Optimizing focus plane position of imaging scanner
US9202094B1 (en) Aiming pattern shape as distance sensor for barcode scanner
US10534944B1 (en) Method and apparatus for decoding multiple symbology types
WO2010143662A1 (en) Optical information reading device
US8985462B2 (en) Method of driving focusing element in barcode imaging scanner
WO2011075276A1 (en) Aiming sight for a barcode reader
US8864036B2 (en) Apparatus and method for finding target distance from barode imaging scanner
US20190188432A1 (en) Dual-imaging vision system camera and method for using the same
US10929623B2 (en) Imaging module and reader for, and method of, reading targets by image capture over a range of working distances with multi-functional aiming light pattern
JP2005202930A (en) Optical information reading device
EP2218033A1 (en) Optical code scanner with automatic focusing
CN114760410A (en) Systems, methods, and apparatus for focus selection using image disparity
EP2572315B1 (en) Focus adjustment with liquid crystal device in imaging scanner
KR102079697B1 (en) Readers, Programs, and Units
US20100294839A1 (en) Optical code scanner with automatic focusing
JP6997603B2 (en) Optical reader
WO2017205065A1 (en) Arrangement for, and method of, determining a target distance and adjusting reading parameters of an imaging reader based on target distance
US9213880B2 (en) Method of optimizing focus plane position of imaging scanner

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200923

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210707

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210817

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20211012

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: 20211201

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20211217

R150 Certificate of patent or registration of utility model

Ref document number: 6997603

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150