JP6266746B2 - Optical information reader - Google Patents

Optical information reader Download PDF

Info

Publication number
JP6266746B2
JP6266746B2 JP2016256736A JP2016256736A JP6266746B2 JP 6266746 B2 JP6266746 B2 JP 6266746B2 JP 2016256736 A JP2016256736 A JP 2016256736A JP 2016256736 A JP2016256736 A JP 2016256736A JP 6266746 B2 JP6266746 B2 JP 6266746B2
Authority
JP
Japan
Prior art keywords
illumination
unit
imaging
code
light
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.)
Active
Application number
JP2016256736A
Other languages
Japanese (ja)
Other versions
JP2017059266A (en
Inventor
英純 永田
英純 永田
太一 田近
太一 田近
大坪 祐介
祐介 大坪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP2016256736A priority Critical patent/JP6266746B2/en
Publication of JP2017059266A publication Critical patent/JP2017059266A/en
Application granted granted Critical
Publication of JP6266746B2 publication Critical patent/JP6266746B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Description

本発明は情報を光学的に読み取る光学的情報読取装置のうち、固定式の光学的情報読取装置に関する。   The present invention relates to a fixed optical information reading device among optical information reading devices that optically read information.

光学的情報読取装置には、操作者が手持ちでコードを読み取るハンディタイプの光学的情報読取装置と、装置を固定しコードが付された対象物を動かす固定式の光学的情報読取装置とがある。バーコードやQRコード(登録商標)などの2次元コードを読み取る2次元コードリーダ(以下、リーダと称す。)は広く普及している。このようなリーダの一例が特許文献1に記載されている。特許文献1、2には照明光学系と撮像光学系とにそれぞれ偏光フィルタを設けることが記載されている。   The optical information reading device includes a handy type optical information reading device in which an operator reads a code by hand, and a fixed optical information reading device that fixes the device and moves an object to which the code is attached. . Two-dimensional code readers (hereinafter referred to as readers) that read two-dimensional codes such as barcodes and QR codes (registered trademark) are widely used. An example of such a reader is described in Patent Document 1. Patent Documents 1 and 2 describe that a polarizing filter is provided in each of the illumination optical system and the imaging optical system.

特開2011−76519号公報JP 2011-76519 A 特開平7−282175号公報Japanese Patent Laid-Open No. 7-282175 特開10−187873号公報Japanese Patent Laid-Open No. 10-187873

リーダを小型化すると、撮像素子についての光軸と照明系の光軸とを平行にせざるをえない。これは、撮像素子の光軸と照明系の光軸との距離を短くせざるを得ないからである。このようなリーダでは照明光がワーク(検査対象製品)の表面で反射し、正反射光が撮像素子に入射し、2次元コードを読み取りにくくなってしまう。そこで、ワークの表面の法線とリーダの光軸とが一致しないように、法線に対して光軸を傾けてリーダを設置しなければならない。これを斜め取り付けという。なお、ワークの表面の法線とリーダの光軸とが平行となるようにリーダを取り付けることを正面取付けと呼ぶことにする。ワークの表面がほぼ平面であれば、推奨角度だけ法線に対して光軸を傾けることで、精度よく2次元コードを読み取ることが可能となる。   If the reader is downsized, the optical axis of the image sensor and the optical axis of the illumination system must be parallel. This is because the distance between the optical axis of the image sensor and the optical axis of the illumination system must be shortened. In such a reader, the illumination light is reflected on the surface of the workpiece (product to be inspected), and the regular reflection light is incident on the image sensor, making it difficult to read the two-dimensional code. Therefore, the reader must be installed with the optical axis tilted with respect to the normal so that the normal of the workpiece surface does not coincide with the optical axis of the reader. This is called diagonal mounting. Note that attaching the reader so that the normal of the surface of the workpiece and the optical axis of the reader are parallel will be referred to as front attachment. If the surface of the workpiece is substantially flat, the two-dimensional code can be read with high accuracy by inclining the optical axis with respect to the normal by the recommended angle.

ところで近年ではレーザ刻印等により、エンジンブロックなどの鋳物の表面(鋳肌面)にも2次元コードが印刷されるようになっている(いわゆるダイレクト・パーツ・マーキング(DPM))。よく知られているように鋳物の表面には微細な凹凸が存在するため、斜め取り付けよりも正面取付けの方が読取精度が高まる。また、フライス加工されたワークの表面(フライス面)や、黒樹脂、基板など、2次元コードは様々な部品に印刷されるため、各部品ごとに適切な読取方法が異なる。そのため、ユーザは、各ワークに応じて適切な設置角度を探索する必要があった。また、斜め取り付けでは2次元コードを読み取って得られる画像が歪むため、それが読取誤りをもたらすこともある。そのため、正面取付けであれば、設置角度を探索する必要がなくなり、ユーザの設置負担を軽減できるであろう。また、正面取付けであれば画像が歪まない利点もある。   In recent years, two-dimensional codes are also printed on the surface (cast surface) of castings such as engine blocks by laser marking or the like (so-called direct part marking (DPM)). As is well known, since there are fine irregularities on the surface of the casting, the reading accuracy is higher in the front mounting than in the diagonal mounting. Further, since the two-dimensional code such as the surface (milling surface) of the milled workpiece, black resin, or substrate is printed on various parts, an appropriate reading method is different for each part. Therefore, the user has to search for an appropriate installation angle according to each workpiece. In addition, in oblique mounting, an image obtained by reading a two-dimensional code is distorted, which may cause a reading error. Therefore, in the case of front mounting, it is not necessary to search for the installation angle, and the installation burden on the user can be reduced. Further, there is an advantage that the image is not distorted if it is mounted on the front.

特許文献1、2に示すように偏光フィルタを設けることで正面取付けであっても正反射光の影響を軽減できるようになる。しかし、偏光フィルタを設けると、鋳肌面などにダイレクト・パーツ・マーキングされたコードを読み取れなくなってしまう。偏光フィルタを取り外し可能とすることも考えられるが、取り外しの手間が新たに発生する。   As shown in Patent Documents 1 and 2, by providing a polarizing filter, it is possible to reduce the influence of specularly reflected light even in front mounting. However, if a polarizing filter is provided, it becomes impossible to read a code that is directly part-marked on the casting surface. Although it is conceivable that the polarizing filter can be removed, a new labor is required for removal.

このように様々なワークを読み取るリーダについてユーザの設置負担を軽減することが市場から要求されている。そこで、本発明は、ユーザの設置負担を軽減でき、かつ、様々なワークに付与されたコードを精度よく読み取り可能な光学的情報読取装置を提供することを目的とする。   As described above, there is a demand from the market to reduce a user's installation burden on a reader that reads various workpieces. SUMMARY OF THE INVENTION An object of the present invention is to provide an optical information reading apparatus that can reduce a user's installation burden and can accurately read codes attached to various workpieces.

本発明によれば、たとえば、
ワークに設けられたコードを読み取る固定式のコード読取装置であって、
ワークを照明する照明手段であって第一偏光フィルタを介して照明光をワークに照射する第一照明手段と、
ワークを照明する照明手段であって偏光フィルタを介さずに照明光をワークに照射する第二照明手段と、
照明モードとして、前記第一照明手段を点灯させ、かつ、前記第二照明手段を点灯させない偏光モードと、前記第一照明手段を点灯させず、かつ、前記第二照明手段を点灯させる無偏光モードとを有し、設定された照明モードにしたがって前記第一照明手段と前記第二照明手段とを制御する照明制御手段と、
前記第一偏光フィルタの偏光方向とは異なる偏光方向の第二偏光フィルタが設けられ、前記第一照明手段と前記第二照明手段との少なくとも一方によって照射され前記ワークにて反射された光を前記第二偏光フィルタを介して受光し、前記ワークに設けられているコードを撮像する撮像手段と、
前記撮像手段に関する撮像条件を制御する撮像制御手段と、
前記偏光モードにより照明され、かつ、複数の撮像条件のそれぞれについて前記ワークから取得された複数の画像データに基づく前記コードの読み取りやすさを示す指標と、前記無偏光モードにより照明され、かつ、複数の撮像条件のそれぞれについて前記ワークから取得された複数の画像データに基づく前記コードの読み取りやすさを示す指標とのうちで良好な指標が得られた照明モードを前記照明制御手段に設定する設定手段と、
前記設定手段により設定された照明モードにしたがって照明されたワークを前記撮像手段により撮像することで取得された画像データをデコードするデコード手段と
を備えることを特徴とするコード読取装置が提供される。
According to the present invention, for example,
A fixed code reader for reading a code provided on a workpiece,
A first illuminating means for illuminating the work and irradiating the work with illumination light through the first polarizing filter;
A second illuminating means for illuminating the work and irradiating the work with illumination light without using a polarizing filter;
As a lighting mode, a polarization mode in which the first illumination means is turned on and the second illumination means is not turned on, and a non-polarization mode in which the first illumination means is not turned on and the second illumination means is turned on. Illumination control means for controlling the first illumination means and the second illumination means according to a set illumination mode;
A second polarizing filter having a polarization direction different from the polarization direction of the first polarizing filter is provided, and the light irradiated by at least one of the first illuminating means and the second illuminating means is reflected by the workpiece. Imaging means for receiving light through the second polarizing filter and imaging a code provided on the workpiece;
Imaging control means for controlling imaging conditions relating to the imaging means;
An indicator indicating the readability of the code based on a plurality of image data obtained from the workpiece for each of a plurality of imaging conditions and illuminated by the polarization mode, and a plurality of illuminations by the non-polarization mode Setting means for setting an illumination mode in which a good index is obtained among the indices indicating the readability of the code based on a plurality of image data acquired from the workpiece for each of the imaging conditions in the illumination control means When,
Decoding means for decoding image data acquired by imaging the workpiece illuminated according to the illumination mode set by the setting means by the imaging means;
A code reader is provided.

本発明によれば、ユーザの設置負担を軽減でき、かつ、様々なワークに付与されたコードを精度よく読み取り可能な光学的情報読取装置が提供される。   ADVANTAGE OF THE INVENTION According to this invention, the optical information reader which can reduce the installation burden of a user and can read the code provided to various workpiece | work accurately is provided.

光学的情報読取装置を示す図The figure which shows an optical information reader 光学的情報読取装置の構造を示す図The figure which shows the structure of an optical information reader 画像表示装置の支持構造を示す図The figure which shows the support structure of an image display apparatus 光学的情報読取装置の表示および操作パネルを示す図The figure which shows the display and operation panel of an optical information reader 光学的情報読取装置の電気的な構成を示す図The figure which shows the electrical structure of an optical information reader. 光学的情報読取装置に接続されるコンピュータを示す図The figure which shows the computer connected to an optical information reader 偏光フィルタの形状の一例を示す図The figure which shows an example of the shape of a polarizing filter 偏光フィルタの形状の一例を示す図The figure which shows an example of the shape of a polarizing filter 読取条件のチューニングを示すフローチャート図Flowchart diagram showing tuning of reading conditions 明るさレベルの粗調整を示すフローチャートFlow chart showing coarse adjustment of brightness level 各照明モードについての明るさレベルの探索範囲の一例を示す図The figure which shows an example of the search range of the brightness level about each illumination mode

以下に本発明の一実施形態を示す。以下で説明される個別の実施形態は、本発明の上位概念、中位概念および下位概念など種々の概念を理解するために役立つであろう。また、本発明の技術的範囲は、特許請求の範囲によって確定されるのであって、以下の個別の実施形態によって限定されるわけではない。   An embodiment of the present invention is shown below. The individual embodiments described below will help to understand various concepts, such as the superordinate concept, intermediate concept and subordinate concept of the present invention. Further, the technical scope of the present invention is determined by the scope of the claims, and is not limited by the following individual embodiments.

図1はリーダシステム(光学的情報読取装置)の一例を示す図である。ライン1は検査対象物であるワーク2を搬送する搬送ベルトなどである。リーダ3は2次元コードを読み取ってデコードする2次元コードリーダである。なお、リーダ3自体も狭義の光学的情報読取装置である。プログラマブル・ロジック・コントローラ(PLC5)はライン1やリーダ3を制御する制御装置である。コンピュータ4はリーダ3に対して動作条件などを設定したり、リーダ3からデコード結果などを取得して表示したりする情報処理装置である。   FIG. 1 is a diagram showing an example of a reader system (optical information reader). A line 1 is a conveyance belt that conveys a workpiece 2 that is an inspection object. The reader 3 is a two-dimensional code reader that reads and decodes a two-dimensional code. Note that the reader 3 itself is an optical information reading device in a narrow sense. The programmable logic controller (PLC 5) is a control device that controls the line 1 and the reader 3. The computer 4 is an information processing apparatus that sets operating conditions and the like for the reader 3 and acquires and displays a decoding result from the reader 3.

<リーダ3の構造>
図2(A)はリーダ3の斜視図であり、図2(B)は主要部品の展開図である。リーダ3の形状は略直方体であるため、筐体外面は概ね6つの面を有している。図2(B)が示すようにフロントケース10には4つの開口が設けられている。頂面側の開口にはホルダー13と、ホルダー13によって支持される画像表示装置14と、画像表示装置14をカバーするように配置される表示パネル15と、メインシート16が設けられる。フロントケース10の前面側の開口には透光性を有する窓部11と、フロントカバー12とが設けられる。とりわけ、本実施形態では窓部11の一部に偏光フィルタが設けられる。フロントケース10の背面側の開口から、リフレクタ17と照明基板18とが挿入され、リアケース19によってふたをされる。リアケース19には、メイン基板21と、メイン基板21に固定された光学系50およびAF機構51が設けられている。リフレクタ17は、照明基板18に設けられた発光素子からの光を効率よく前方に照射するための構造部品である。リフレクタ17には、照明用の発光素子からの光を前方に集光して照射するためのコーン(円錐台)型の集光部176〜179と、ポインタ用の発光素子からの光を前方に集光して照射するためのコーン型の集光部175とが設けられている。これらには集光効率を高めるために金メッキ等が施されている。フロントケース10の下面側に開口にはコネクタホルダ20が取り付けられる。コネクタホルダ20には2本の通信ケーブルが接続されており、それぞれコンピュータ4とPLC5とに接続される。コネクタホルダ20にはコネクタ基板が取り付けられている。
<Structure of reader 3>
2A is a perspective view of the reader 3, and FIG. 2B is a development view of main components. Since the shape of the reader 3 is a substantially rectangular parallelepiped, the outer surface of the housing has approximately six surfaces. As shown in FIG. 2B, the front case 10 is provided with four openings. The opening on the top surface side is provided with a holder 13, an image display device 14 supported by the holder 13, a display panel 15 arranged so as to cover the image display device 14, and a main sheet 16. An opening on the front side of the front case 10 is provided with a light-transmitting window 11 and a front cover 12. In particular, in this embodiment, a polarizing filter is provided in a part of the window portion 11. The reflector 17 and the illumination board 18 are inserted from the opening on the back side of the front case 10 and are covered by the rear case 19. The rear case 19 is provided with a main board 21, an optical system 50 fixed to the main board 21, and an AF mechanism 51. The reflector 17 is a structural component for efficiently irradiating the light from the light emitting element provided on the illumination substrate 18 forward. The reflector 17 has cone-shaped condensing units 176 to 179 for condensing and irradiating the light from the light emitting element for illumination forward, and the light from the light emitting element for the pointer forward. A cone-shaped condensing part 175 for condensing and irradiating is provided. These are plated with gold or the like to increase the light collection efficiency. A connector holder 20 is attached to the opening on the lower surface side of the front case 10. Two communication cables are connected to the connector holder 20, and are connected to the computer 4 and the PLC 5, respectively. A connector substrate is attached to the connector holder 20.

図3(A)〜図3(C)はホルダー13の周辺の構造を説明するための図である。図3(A)や図3(B)が示すようにホルダー13は画像表示装置14を支持する支持部材である。照明基板18は、ホルダー13に対して直交した方向に延在し、ホルダー13に係合してホルダー13を支持する。つまり、ホルダー13はフロントケース10の上面に対して平行に設けられており、照明基板18はフロントケース10の前面と平行に設けられており、両者は直交している。なお、ホルダー13の下面側には溝131が設けられており、溝131に照明基板18の端部が嵌合することで、ホルダー13を照明基板18に対してしっかりと固定してもよい。このようなホルダー13を採用することで画像表示装置14を取り付ける回路基板を不要とすることができる。   FIGS. 3A to 3C are views for explaining the structure around the holder 13. As shown in FIGS. 3A and 3B, the holder 13 is a support member that supports the image display device 14. The illumination board 18 extends in a direction perpendicular to the holder 13 and engages the holder 13 to support the holder 13. That is, the holder 13 is provided in parallel with the upper surface of the front case 10, and the illumination board 18 is provided in parallel with the front surface of the front case 10, and both are orthogonal to each other. Note that a groove 131 is provided on the lower surface side of the holder 13, and the holder 13 may be firmly fixed to the illumination board 18 by fitting the end of the illumination board 18 in the groove 131. By adopting such a holder 13, a circuit board to which the image display device 14 is attached can be eliminated.

図3(A)や図3(C)が示すように、照明基板18には、画像表示装置14の表示面と同じ側に押圧面が存在する押しボタン型のスイッチ24、25が配置されていてもよい。ホルダー13と一体に構成された押圧部材22、23によって、それぞれスイッチ24、25が押圧され、それぞれの接点が閉じるように構成されていてもよい。スイッチ24、25の押圧方向と、ホルダー13を指示する照明基板18の長さ方向とが一致しているため、スイッチ24、25を押圧してもホルダー13が撓みにくい。押圧部材22はホルダー13の主体から延びる弾性の腕部39aによって支持されている。同様に、押圧部材23はホルダー13の主体から延びる弾性の腕部39bによって支持されている。押し下げられた押圧部材22、23は腕部39a、39bの弾性によって元の位置に復帰する。腕部39a、39bはホルダー13と一体構成型されているため、ばね等の復帰用の追加部材を省略できる利点がある。   As shown in FIGS. 3A and 3C, the illumination board 18 is provided with push button type switches 24 and 25 having a pressing surface on the same side as the display surface of the image display device 14. May be. The switches 24 and 25 may be pressed by the pressing members 22 and 23 formed integrally with the holder 13 so that the respective contacts are closed. Since the pressing direction of the switches 24 and 25 coincides with the length direction of the illumination board 18 indicating the holder 13, the holder 13 is not easily bent even when the switches 24 and 25 are pressed. The pressing member 22 is supported by an elastic arm portion 39 a extending from the main body of the holder 13. Similarly, the pressing member 23 is supported by an elastic arm portion 39 b extending from the main body of the holder 13. The pressed pressing members 22 and 23 are returned to their original positions by the elasticity of the arm portions 39a and 39b. Since the arm portions 39a and 39b are integrally formed with the holder 13, there is an advantage that an additional member for return such as a spring can be omitted.

図3(A)や図3(B)が示すように、照明基板18には、撮像素子31に対応して設けられる光学系モジュール(光学系50やAF機構51など)を実装するための円形の開口部33が設けられている。開口部33の周囲には照明用の4つの発光素子26〜29が設けられている。図3(A)が示すように、照明基板18とホルダー13との係合部の付近にはインジケータとして機能する1つまたは複数の発光素子32が設けられている。発光素子32の光がフロントケース10の上面から外部に出力されるように、ホルダー13に導光用の開口部34が設けられている。つまり、2つのスイッチ24、25の間にインジケータが配置されている。図3(C)が示すように開口部34の四方は遮光壁36a〜36dで囲まれているため、インジケータの光が画像表示装置14の方へ漏れにくくなっている。ホルダー13には画像表示装置14を収容するための収容溝37が設けられている。また収容溝37の底部には画像表示装置14の信号ケーブルを通すための穴部38が設けられている。   As shown in FIGS. 3A and 3B, the illumination substrate 18 has a circular shape for mounting an optical system module (such as the optical system 50 and the AF mechanism 51) provided corresponding to the imaging element 31. The opening 33 is provided. Around the opening 33, four light emitting elements 26 to 29 for illumination are provided. As shown in FIG. 3A, one or a plurality of light emitting elements 32 functioning as indicators are provided in the vicinity of the engaging portion between the illumination board 18 and the holder 13. A light guide opening 34 is provided in the holder 13 so that light from the light emitting element 32 is output to the outside from the upper surface of the front case 10. That is, an indicator is disposed between the two switches 24 and 25. As shown in FIG. 3C, since the four sides of the opening 34 are surrounded by the light shielding walls 36a to 36d, the light from the indicator is less likely to leak toward the image display device 14. The holder 13 is provided with an accommodation groove 37 for accommodating the image display device 14. Further, a hole 38 for passing a signal cable of the image display device 14 is provided at the bottom of the accommodation groove 37.

図3(B)が示すようにメイン基板21には撮像素子31が配置されている。図3(B)が示すように照明基板18にはポインタ用の光を出力する発光素子35が配置されている。上述したようにリフレクタ17には、発光素子35用の集光部175に加え、発光素子26〜29用の集光部176〜179が設けられている。集光部175〜179はコーン型の形状であり、コーンの頂上側の開口から光が入射し、底面側から出射する。   As shown in FIG. 3B, an image sensor 31 is arranged on the main board 21. As shown in FIG. 3B, the illumination board 18 is provided with a light emitting element 35 that outputs pointer light. As described above, the reflector 17 is provided with the light collecting portions 176 to 179 for the light emitting elements 26 to 29 in addition to the light collecting portion 175 for the light emitting element 35. The condensing parts 175 to 179 have a cone shape, and light enters from the opening on the top side of the cone and exits from the bottom side.

図4はメインシート16を示す図である。メインシート16の中央部には画像表示装置14の表示面40が設けられている。メインシート16の下部にはセレクトキー42、インジケータ44、エンターキー43が設けられている。セレクトキー42は、上述したスイッチ24と押圧部材22によって構成されている。エンターキー43は、上述したスイッチ25と押圧部材23によって構成されている。インジケータ44は、2つの発光素子32によって構成されており、たとえば、2次元コードの読み取りが成功すると緑色の発光素子が点灯し、2次元コードの読み取りが失敗すると赤色の発光素子が点灯する。なお、画像表示装置14は撮像素子31によって取得した画像(静止画または動画)に加え、セレクトキー42とエンターキー43の割り当てをユーザに示唆する画像(図4のSELとMENU(ただしENTと表示されることもある))を表示してもよい。   FIG. 4 is a view showing the main seat 16. A display surface 40 of the image display device 14 is provided at the center of the main sheet 16. A select key 42, an indicator 44, and an enter key 43 are provided below the main sheet 16. The select key 42 includes the switch 24 and the pressing member 22 described above. The enter key 43 includes the switch 25 and the pressing member 23 described above. The indicator 44 is composed of two light emitting elements 32. For example, when the two-dimensional code is successfully read, the green light-emitting element is turned on, and when the two-dimensional code reading is unsuccessful, the red light-emitting element is turned on. In addition to the image (still image or moving image) acquired by the image pickup device 31, the image display device 14 displays an image (SEL and MENU in FIG. May be displayed))).

<制御ユニット>
図5はリーダ3の電子的な構成を示すブロック図である。リーダ3のカメラ部(撮像手段)は、撮像素子31、光学系50、AF機構51、照明部52などを有している。撮像素子31は光学系50を通して結像した2次元コードの画像を電気的な信号に変換するCCDやCMOS等のイメージセンサである。AF機構51は光学系50のうち合焦用のレンズの位置や屈折率を調整する機構である。AF機構51と光学系50は、図3(B)において撮像素子31と開口部33との間に配置される。AF機構51と光学系50は一体化されて光学系モジュールを構成していてもよい。
<Control unit>
FIG. 5 is a block diagram showing an electronic configuration of the reader 3. The camera unit (imaging unit) of the reader 3 includes an imaging element 31, an optical system 50, an AF mechanism 51, an illumination unit 52, and the like. The image sensor 31 is an image sensor such as a CCD or CMOS that converts an image of a two-dimensional code formed through the optical system 50 into an electrical signal. The AF mechanism 51 is a mechanism that adjusts the position and refractive index of the focusing lens in the optical system 50. The AF mechanism 51 and the optical system 50 are disposed between the image sensor 31 and the opening 33 in FIG. The AF mechanism 51 and the optical system 50 may be integrated to form an optical system module.

照明部52は1つ以上の発光素子を有し、2次元コードを照明するユニットである。照明部52は、たとえば、照明用の発光素子26〜29やポインタ用の発光素子35を有している。ポインタの光は光学系50の光軸の目安となり、ユーザはポインタの位置を参照してワーク2を正しい位置に設置してもよい。   The illumination unit 52 has one or more light emitting elements and is a unit that illuminates a two-dimensional code. The illumination part 52 has the light emitting elements 26-29 for illumination and the light emitting element 35 for pointers, for example. The light from the pointer serves as a guide for the optical axis of the optical system 50, and the user may refer to the position of the pointer and place the workpiece 2 at the correct position.

デコード部53は撮像素子31によって取得された2次元コードの画像データ72をデコードしてデコード結果71を記憶部70に書き込むユニットである。通信部54はPLC5やコンピュータ4と通信するユニットである。通信部54は、たとえば、PLC5と通信するI/O部、RS232Cなどのシリアル通信部、無線LANや有線LANなどのネットワーク通信部などを備えていてもよい。   The decoding unit 53 is a unit that decodes the image data 72 of the two-dimensional code acquired by the image sensor 31 and writes the decoding result 71 in the storage unit 70. The communication unit 54 is a unit that communicates with the PLC 5 and the computer 4. The communication unit 54 may include, for example, an I / O unit that communicates with the PLC 5, a serial communication unit such as RS232C, a network communication unit such as a wireless LAN or a wired LAN, and the like.

表示部55は画像表示装置14やインジケータ用の発光素子32を備えている。表示部55は、たとえば、2次元コードのデコード結果71である文字列、読み取り成功率(複数回読み取り処理を実行したときの平均読み取り成功率)、マッチングレベル(読み取りのしやすさを示す読取余裕度)、PPC(2次元コードを構成する1つのセルが画像データにおいていくつの画素に相当するかを示す値:ピクセル・パー・セル)などを表示してもよい。入力部56はスイッチなどの入力操作を受け付けるユニットであり、セレクトキー42やエンターキー43を備えている。   The display unit 55 includes the image display device 14 and the indicator light emitting element 32. The display unit 55 includes, for example, a character string that is the decoding result 71 of the two-dimensional code, a reading success rate (average reading success rate when the reading process is executed a plurality of times), and a matching level (reading margin indicating ease of reading). Degree), PPC (a value indicating how many pixels a single cell constituting the two-dimensional code corresponds to: pixel per cell), and the like may be displayed. The input unit 56 is a unit that accepts an input operation such as a switch, and includes a select key 42 and an enter key 43.

制御ユニット60はリーダ3の各部を統括的に制御するユニットである。制御ユニット60は様々な機能を搭載しているが、これらは論理回路により実現されてもよいし、ソフトウエアを実行することによって実現されてもよい。オートフォーカス制御部(AF制御部)61はAF機構51を制御するユニットである。撮像制御部62は照明部52の照明光の光量を制御したり、撮像素子31の露光時間(シャッタースピード)を制御したりするユニットである。とりわけ、撮像制御部62は、チューニング部65や演算部63からの指示に応じて照明部52の複数の発光素子のうちどれを点灯させるかを制御する点灯制御手段として機能する。   The control unit 60 is a unit that comprehensively controls each unit of the reader 3. Although the control unit 60 has various functions, these may be realized by a logic circuit or by executing software. An autofocus control unit (AF control unit) 61 is a unit that controls the AF mechanism 51. The imaging control unit 62 is a unit that controls the amount of illumination light of the illumination unit 52 and controls the exposure time (shutter speed) of the imaging device 31. In particular, the imaging control unit 62 functions as a lighting control unit that controls which of the plurality of light emitting elements of the lighting unit 52 is turned on in response to an instruction from the tuning unit 65 or the calculation unit 63.

演算部63は様々な演算処理を実行する。たとえば、演算部63はデコード結果や画像データなどを用いて、読み取り成功率やマッチングレベル、PPCを演算する。もちろんこれらの演算は、デコード部53やチューニング部65など、演算部63以外のユニットで実行されてもよい。   The calculation unit 63 executes various calculation processes. For example, the calculation unit 63 calculates a reading success rate, a matching level, and a PPC by using a decoding result and image data. Of course, these calculations may be executed by units other than the calculation unit 63 such as the decoding unit 53 and the tuning unit 65.

チューニング部65は、読取条件を制御する読取条件制御手段または照明条件を決定する条件決定手段として機能する。読取条件は、たとえば、露光時間や照明光量、ゲインなどの撮像条件やデコード部53における画像処理条件(フィルタの係数など)である。ライン1を搬送されるワーク2に対する外光の影響などで適切な撮像条件や画像処理条件は変化する。よって、チューニング部65は、より適切な読取条件を探索して、AF制御部61や撮像制御部62、デコード部53を設定する。   The tuning unit 65 functions as a reading condition control unit that controls reading conditions or a condition determination unit that determines illumination conditions. The reading conditions are, for example, imaging conditions such as exposure time, illumination light quantity, gain, and image processing conditions (such as filter coefficients) in the decoding unit 53. Appropriate imaging conditions and image processing conditions change due to the influence of external light on the workpiece 2 conveyed on the line 1. Therefore, the tuning unit 65 searches for a more appropriate reading condition and sets the AF control unit 61, the imaging control unit 62, and the decoding unit 53.

UI管理部66は、画像表示装置14に画像データを表示したり、入力部56からのユーザ指示を受け付けたり、インジケータの点灯を制御したりするユニットである。   The UI management unit 66 is a unit that displays image data on the image display device 14, receives a user instruction from the input unit 56, and controls lighting of the indicator.

記憶部70は、メモリなどの記憶装置であり、デコード部53によって取得されたデコード結果71、撮像素子31によって取得された画像データ72、コンピュータ4などの設定装置によってリーダ3に設定されたデータや入力部56により設定されたデータである設定データ73などを記憶する。   The storage unit 70 is a storage device such as a memory. The decoding result 71 acquired by the decoding unit 53, the image data 72 acquired by the image sensor 31, the data set in the reader 3 by the setting device such as the computer 4, The setting data 73 that is data set by the input unit 56 is stored.

図6はコンピュータ4の機能を示すブロック図である。リーダ3を小型化すると、リーダ3の表示部55や入力部56だけではリーダ3のすべての機能を設定することが難しくなる。そこで、一部の設定データ73についてはコンピュータ4で作成してリーダ3に転送してもよい。CPU80は記憶部90に記憶されているプログラムに基づきコンピュータ4が備えている各部を制御するユニットである。演算部81の一機能であるUI制御部83はリーダ3の撮像条件(とりわけ、偏光フィルタの付与された発光素子を使用するか否か)などを設定するためのユーザインタフェースやリーダ3が出力するデコード結果71、画像データ72などを表示するためのユーザインタフェースを生成し、表示部84に表示させる。演算部81は様々な演算を実行するユニットである。通信部86はリーダ3の通信部54と有線または無線で接続し、デコード結果71や画像データ72を受信したり、設定部82で生成された設定データ73を送信したりする。記憶部90は、メモリやハードディスクドライブ(HDD)、ソリッドステートドライブ(SSD)などである。   FIG. 6 is a block diagram showing functions of the computer 4. If the size of the reader 3 is reduced, it becomes difficult to set all the functions of the reader 3 with only the display unit 55 and the input unit 56 of the reader 3. Therefore, some setting data 73 may be created by the computer 4 and transferred to the reader 3. The CPU 80 is a unit that controls each unit included in the computer 4 based on a program stored in the storage unit 90. The UI control unit 83, which is a function of the calculation unit 81, outputs the user interface for setting the imaging conditions of the reader 3 (in particular, whether or not to use a light emitting element with a polarizing filter) and the reader 3 outputs. A user interface for displaying the decoding result 71, the image data 72, and the like is generated and displayed on the display unit 84. The calculation unit 81 is a unit that executes various calculations. The communication unit 86 is wired or wirelessly connected to the communication unit 54 of the reader 3 and receives the decoding result 71 and the image data 72 and transmits the setting data 73 generated by the setting unit 82. The storage unit 90 is a memory, a hard disk drive (HDD), a solid state drive (SSD), or the like.

<照明モード(偏光モードと無偏光モード)>
本実施形態ではユーザの設置負担を軽減でき、かつ、様々なワークに付与されたコードを精度よく読み取り可能とするために、複数の照明手段を設け、第一照明手段には偏光フィルタを配置し、第二照明手段には偏光フィルタを配置しない。そして、第一照明手段と第二照明手段とをワークに応じて使い分ける。これによりユーザはリーダ3の設置角度をワークごとに調整する手間を省けるようになる。
<Illumination mode (polarization mode and non-polarization mode)>
In this embodiment, in order to reduce the user's installation burden and to be able to accurately read codes attached to various workpieces, a plurality of illumination means are provided, and a polarizing filter is arranged in the first illumination means. The polarizing filter is not disposed in the second illumination means. And a 1st illumination means and a 2nd illumination means are used properly according to a workpiece | work. As a result, the user can save the trouble of adjusting the installation angle of the reader 3 for each workpiece.

上述したようにワーク2に対してリーダ3を正面取り付けすると、撮像素子31にはワーク2からの正反射光が大量に入射しやすくなる。これはワーク2上での2次元コードの設置面が平滑な面である場合に発生しやすく、2次元コードのデコードを失敗させる原因となる。正反射光を削減する手段として、撮像素子31と照明部52とにそれぞれ偏光方向の異なる偏光フィルタを配置することが考えられる。しかし、照明部52の全体を偏光フィルタで覆ってしまうと、鋳物の表面にダイレクト・パーツ・マーキングされた2次元コードを精度よく読み取れなくなってしまう。つまり、鋳肌に印刷された2次元コードは照明部52に偏光フィルタを設けない方が、読取精度が高い。このように、ワーク2の表面や2次元コードの付与方法に応じて、偏光フィルタを設けた方が適していたり、偏光フィルタを設けない方が適していたりする。また、偏光フィルタを設けると、発光側の偏光フィルタで光量が1/2に減衰し、受光側の偏光フィルタで光量がさらに1/2に減衰する。つまり、トータルで光量が1/4にまで減衰してしまう。光量が減衰すると2次元コードの読み取りに失敗しやすくなる。減衰分を補償するために発光素子の発光光量を増大させれば、消費電力が増加するだけでなく、熱も増加してしまう。これらはデメリットになりうる。   As described above, when the reader 3 is attached to the work 2 in front, a large amount of specularly reflected light from the work 2 is likely to enter the image sensor 31. This is likely to occur when the installation surface of the two-dimensional code on the workpiece 2 is a smooth surface, and causes a failure in decoding the two-dimensional code. As a means for reducing specular reflection light, it is conceivable to arrange polarizing filters having different polarization directions in the image sensor 31 and the illumination unit 52, respectively. However, if the entire illumination unit 52 is covered with a polarizing filter, the two-dimensional code marked with direct parts on the surface of the casting cannot be read with high accuracy. That is, the reading accuracy of the two-dimensional code printed on the casting surface is higher when the illumination unit 52 is not provided with a polarizing filter. Thus, depending on the surface of the work 2 and the method of applying the two-dimensional code, it is appropriate to provide a polarizing filter or not to provide a polarizing filter. When a polarizing filter is provided, the light amount is attenuated to ½ by the light-emitting side polarizing filter, and the light amount is further attenuated to ½ by the light-receiving side polarizing filter. That is, the total amount of light is attenuated to ¼. When the amount of light is attenuated, reading of the two-dimensional code tends to fail. Increasing the amount of light emitted from the light emitting element to compensate for the attenuation will not only increase power consumption but also increase heat. These can be disadvantages.

1つのリーダ3で様々なワーク2に対応する方法として、すべての発光素子の出射領域を覆う取り外し式の偏光フィルタを採用することが考えられる。しかし、この場合は、ユーザが偏光フィルタを設置するか外すかを自ら判断する必要があるとともに、手作業で偏光フィルタの取り付けと取り外しを実行する必要がある。すなわち、ユーザにとって設置角度の調整は不要となるが、その代わりに偏光フィルタの設置・取り外し作業が必要となってしまう。   As a method of dealing with various workpieces 2 with one reader 3, it is conceivable to employ a detachable polarizing filter that covers the emission regions of all the light emitting elements. However, in this case, it is necessary for the user to determine whether to install or remove the polarizing filter, and to attach and remove the polarizing filter manually. That is, it is not necessary for the user to adjust the installation angle, but instead, a polarizing filter installation / removal operation is required.

そこで、本実施形態では、偏光フィルタを設けられた第一照明手段と、偏光フィルタを設けられていない第二照明手段とを設け、これらをワーク2に応じて切り替えて使用するリーダ3を提案する。   Therefore, in the present embodiment, a reader 3 is proposed in which a first illuminating unit provided with a polarizing filter and a second illuminating unit not provided with a polarizing filter are provided, and these are switched according to the work 2 and used. .

図7(A)はリーダ3の斜視図であり、図7(B)は窓部11の拡大図である。窓部11のうち、発光素子26の光が射出する部分(光出射領域)と、発光素子27の光が射出する部分とには偏光フィルタ91が設けられている。また、窓部11のうち、撮像素子31の光学系に光が入射する部分(光入射領域)には偏光フィルタ92が設けられている。なお、偏光フィルタ91の偏向方向と、偏光フィルタ92の偏向方向とは異なっており、たとえば、90度異なっている。その一方で、窓部11のうち、発光素子28の光が射出する部分と、発光素子29の光が射出する部分とには偏光フィルタは設けられていない。このように、発光素子26と発光素子27で第一照明手段を形成し、発光素子28と発光素子29で第二照明手段を形成してもよい。つまり、ユーザが偏光フィルタの設置や取り外しを実行する代わりに、リーダ3がどちらの照明手段を点灯させるかを電気的に切り替えればよい。たとえば、偏光フィルタが無い方がより有利なワーク(例:鋳物など)については第二照明手段を点灯させて、第一照明手段を消灯させる。一方で、偏光フィルタがある方がより有利なワーク(例:プリント基板やフライス加工面、黒樹脂などに二次元コードを有するワーク)については第一照明手段を点灯させて、第二照明手段を消灯させる。これによりユーザの負担を大幅に軽減できるとともに、1つのリーダ3で様々なワークに設けられた2次元コードを精度よく読み取ることが可能となる。   FIG. 7A is a perspective view of the reader 3, and FIG. 7B is an enlarged view of the window portion 11. In the window portion 11, a polarizing filter 91 is provided in a portion where the light of the light emitting element 26 emits (light emission region) and a portion where the light of the light emitting element 27 emits. In addition, a polarizing filter 92 is provided in a portion (light incident region) where light enters the optical system of the image sensor 31 in the window portion 11. Note that the polarization direction of the polarization filter 91 and the deflection direction of the polarization filter 92 are different, for example, 90 degrees. On the other hand, a polarizing filter is not provided in a portion of the window portion 11 where the light from the light emitting element 28 is emitted and a portion where the light from the light emitting element 29 is emitted. As described above, the light emitting element 26 and the light emitting element 27 may form the first illumination unit, and the light emitting element 28 and the light emitting element 29 may form the second illumination unit. That is, instead of the user performing installation or removal of the polarization filter, it is only necessary to electrically switch which illumination means the reader 3 turns on. For example, for a work (for example, casting) which is more advantageous without a polarizing filter, the second illumination unit is turned on and the first illumination unit is turned off. On the other hand, for a work that is more advantageous with a polarizing filter (for example, a work having a two-dimensional code on a printed circuit board, a milled surface, a black resin, etc.), the first illumination means is turned on, and the second illumination means is used. Turn off the light. As a result, the burden on the user can be greatly reduced, and two-dimensional codes provided on various workpieces can be accurately read with one reader 3.

図8(A)は偏光フィルタ91と偏光フィルタ92との形状の一例を示している。とりわけ、撮像素子用の偏光フィルタ92は略円形の形状をしており、偏光フィルタ92の左端と右端とにはそれぞれ位置合わせ部材93a、93bが設けられている。偏光フィルタ91の底部の左端と右端とは位置合わせ部材93a、93bの形状と整合しており、この例では直線状となっている。偏光フィルタ91の底部の中央は略半円形となっており、偏光フィルタ92の上部の形状に整合している。このように、位置合わせ部材93a、93bを採用することで、窓部11に対して偏光フィルタ91と偏光フィルタ92とを正確に貼付しやすくなる。また、偏光フィルタ91の頂部の形状は窓部11の頂部の形状に整合しているため、窓部11に対して偏光フィルタ91を正確に位置合せして貼付しやすくなっている。   FIG. 8A shows an example of the shape of the polarizing filter 91 and the polarizing filter 92. In particular, the polarizing filter 92 for the image sensor has a substantially circular shape, and alignment members 93 a and 93 b are provided on the left end and the right end of the polarizing filter 92, respectively. The left end and the right end of the bottom of the polarizing filter 91 are aligned with the shapes of the alignment members 93a and 93b, and in this example, are linear. The center of the bottom of the polarizing filter 91 is substantially semicircular and matches the shape of the upper part of the polarizing filter 92. As described above, by using the alignment members 93a and 93b, the polarizing filter 91 and the polarizing filter 92 are easily attached to the window portion 11 accurately. Moreover, since the shape of the top part of the polarizing filter 91 is matched with the shape of the top part of the window part 11, it is easy to attach the polarizing filter 91 with respect to the window part 11 accurately.

<偏光フィルタの使用の有無の切り替え>
偏光モードと無偏光モードの切替方法について図9および図10を用いて説明する。図9はチューニング処理の各工程を示すフローチャートである。入力部56からチューニングを指示されるか、コンピュータ4からチューニングを指示されると、以下の各ステップをチューニング部65が実行する。
<Switching whether or not a polarizing filter is used>
A method for switching between the polarization mode and the non-polarization mode will be described with reference to FIGS. FIG. 9 is a flowchart showing each step of the tuning process. When tuning is instructed from the input unit 56 or tuning is instructed from the computer 4, the tuning unit 65 executes the following steps.

S901でチューニング部65はコード探索を実行する。たとえば、チューニング部65は撮像制御部62に撮像を実行させて画像データを取得させ、画像データに基づきデコード部53に2次元コードの探索を実行させる。撮像制御部62は、その時点で有効となっている読取条件(撮像素子31についての撮像条件、照明部52の照明条件、デコード部53の画像処理条件など)を設定データ73から読み出し、照明部52、撮像素子31、デコード部53などに設定する。デコード部53は撮像素子31によって取得された2次元コードの画像データ72から2次元コードを探索し、探索結果をチューニング部65に出力する。照明条件には、偏光モードを有効にするのか、無偏光モードを有効にするのかを示す情報が含まれている。   In step S901, the tuning unit 65 performs code search. For example, the tuning unit 65 causes the imaging control unit 62 to perform imaging to acquire image data, and causes the decoding unit 53 to search for a two-dimensional code based on the image data. The imaging control unit 62 reads out reading conditions (imaging conditions for the imaging device 31, illumination conditions for the illumination unit 52, image processing conditions for the decoding unit 53, etc.) that are valid at that time from the setting data 73, and the illumination unit 52, the image pickup device 31, the decoding unit 53, and the like. The decoding unit 53 searches for the two-dimensional code from the image data 72 of the two-dimensional code acquired by the image sensor 31 and outputs the search result to the tuning unit 65. The illumination condition includes information indicating whether the polarization mode is enabled or the non-polarization mode is enabled.

S902でチューニング部65は照明部52の明るさについて粗調整を実行する。図10はS902の明るさの粗調整を詳細に示すフローチャートである。本実施形態では、明るさについて粗調整を実行し、偏光モードと無偏光モードのうち読み取り結果の優れた方を選択し、選択した照明モードについて明るさの微調整を実行するものとする。   In step S <b> 902, the tuning unit 65 performs rough adjustment on the brightness of the illumination unit 52. FIG. 10 is a flowchart showing in detail the coarse brightness adjustment in S902. In the present embodiment, it is assumed that coarse adjustment is performed on the brightness, the better reading result is selected from the polarization mode and the non-polarization mode, and the fine adjustment of the brightness is performed on the selected illumination mode.

S921でチューニング部65はその時点で照明部52に設定されている照明モードとは異なる照明モードに切り替える。つまり、チューニング部65は照明部52に偏光モードが設定されていれば無偏光モードに切り替え、無偏光モードが設定されていれば偏光モードに切り替える。   In S921, the tuning unit 65 switches to an illumination mode different from the illumination mode set in the illumination unit 52 at that time. In other words, the tuning unit 65 switches to the non-polarization mode if the polarization mode is set in the illumination unit 52, and switches to the polarization mode if the non-polarization mode is set.

S922でチューニング部65は読み取りテストを実行する。たとえば、チューニング部65は撮像制御部62に撮像を実行させ、デコード部53に2次元コードの探索を実行させる。その時点で有効となっている読取条件のうち、照明モードだけが変更される。デコード部53は撮像素子31によって取得された2次元コードの画像データ72について2次元コードを探索し、探索結果をチューニング部65に出力する。   In S922, the tuning unit 65 executes a reading test. For example, the tuning unit 65 causes the imaging control unit 62 to perform imaging, and causes the decoding unit 53 to search for a two-dimensional code. Of the reading conditions that are valid at that time, only the illumination mode is changed. The decoding unit 53 searches the two-dimensional code for the image data 72 of the two-dimensional code acquired by the image sensor 31 and outputs the search result to the tuning unit 65.

S923でチューニング部65はチューニング部65からの探索結果に基づき、読み取りテストに成功したかどうかを判定する。読取条件を変えながら読み取りテストを複数回実行したときは、1回でも読み取りに成功したかどうかを判定する。読み取りテストに成功したときは、偏光モードと無偏光モードとのどちらでも2次元コードをデコードできたことを意味する。そこで、S924に進む。   In S923, the tuning unit 65 determines whether the reading test is successful based on the search result from the tuning unit 65. When the reading test is executed a plurality of times while changing the reading conditions, it is determined whether or not the reading is successful even once. If the reading test is successful, it means that the two-dimensional code can be decoded in both the polarization mode and the non-polarization mode. Therefore, the process proceeds to S924.

S924でチューニング部65は各照明モードについてN個(例:256個)のうちn個(例:27個)の明るさレベルのそれぞれについて読み取りテストを実行する。これにより、偏光モードについて27個の明るさレベルそれぞれについての読み取り結果が得られ、無偏光モードについて27個の明るさレベルそれぞれについての読み取り結果が得られる。なお、図11が示すように、偏光モードと無偏光モードではチューニングの対象となる明るさレベルが異なってもよい。上述したように偏光モードの明るさは無偏光モードの明るさの半分になる。そこで、偏光モードの明るさレベルについてはN個のうちN/2レベル以上を割り当て、無偏光モードの明るさレベルについてはN個のうちN/2レベル未満を割り当ててもよい。これにより、N個のレベルのすべてを網羅的に探索する場合と比較して、読み取りテストの時間を半分に短縮できる。もちろん、時間短縮の要求がなければ、各照明モードにおいてN個のレベルのすべてを網羅的に探索してもよい。   In S924, the tuning unit 65 executes a reading test for each of n (eg, 27) brightness levels out of N (eg, 256) for each illumination mode. As a result, a reading result for each of the 27 brightness levels is obtained for the polarization mode, and a reading result for each of the 27 brightness levels is obtained for the non-polarization mode. As shown in FIG. 11, the brightness level to be tuned may be different between the polarization mode and the non-polarization mode. As described above, the brightness of the polarization mode is half that of the non-polarization mode. Therefore, N / 2 levels or more out of N may be assigned to the brightness level in the polarization mode, and less than N / 2 levels out of N may be assigned to the brightness level in the non-polarization mode. As a result, the time required for the reading test can be reduced by half compared to a case where all N levels are searched exhaustively. Of course, if there is no request for time reduction, all N levels may be exhaustively searched in each illumination mode.

S925でチューニング部65は複数の照明モードのうちよりデコード結果が良好な照明モードを決定する。たとえば、チューニング部65は各照明モードにおける読み取りテストの成功数を比較し、より多く成功した照明モードを決定する。たとえば、偏光モードでは27個の読み取りテストに成功し、無偏光モードでは10個の読み取りテストに成功した場合、偏光モードが選択される。なお、偏光モードの成功数と無偏光モードの成功数が同一であるか、または両者の差に有意な差が認められない場合、チューニング部65は無偏光モードを選択してもよい。これは同じ明るさを実現する場合、無偏光モードの方が消費電力や熱に関して有利だからである。ただし、外乱光などが発生しやすい環境では、偏光モードの方が外乱光の一部を偏向フィルタでカットできるため、読み取り成功率が高まる。よって、このよう場合は偏光モードを優先的に採用してもよい。ここでは、読み取りテストの成功数を比較したが、チューニング部65は読み取り成功率を比較してもよいし、読み取りのしやすさを示すマッチングレベルを算出して比較してもよい。   In S925, the tuning unit 65 determines an illumination mode with a better decoding result among the plurality of illumination modes. For example, the tuning unit 65 compares the number of successful reading tests in each illumination mode, and determines a more successful illumination mode. For example, if 27 reading tests are successful in the polarization mode and 10 reading tests are successful in the non-polarization mode, the polarization mode is selected. If the number of successful polarization modes is the same as the number of successful non-polarization modes, or if there is no significant difference between the two, the tuning unit 65 may select the non-polarization mode. This is because the non-polarization mode is more advantageous in terms of power consumption and heat when realizing the same brightness. However, in an environment where disturbance light or the like is likely to be generated, the polarization mode can cut a part of the disturbance light with the deflection filter, so that the reading success rate is increased. Therefore, in such a case, the polarization mode may be preferentially adopted. Although the number of successful reading tests is compared here, the tuning unit 65 may compare the reading success rates, or may calculate and compare a matching level indicating the readability.

S926でチューニング部65は明るさの粗調整結果を決定する。たとえば、明るさレベルを0から255まで変更できると仮定する。そのうちS924ではn個のレベルについて読み取りテストを実行する。そして、チューニング部65は読み取りに成功したm個のレベルの中心となるレベル(例:平均値)を算出する。このようにして明るさの粗調整が実行される。   In S926, the tuning unit 65 determines the result of coarse brightness adjustment. For example, assume that the brightness level can be changed from 0 to 255. Among them, in S924, a reading test is executed for n levels. Then, the tuning unit 65 calculates a level (eg, average value) that is the center of the m levels that have been successfully read. In this way, rough brightness adjustment is performed.

ところで、S923で他方の照明モードでは読み取りテストに1回も成功しなかった場合、チューニング部65は、他方の照明モードで読取条件の探索処理を省略または中止して、元の照明モードを選択し、S927に進む。S927でチューニング部65は元の照明モードについてn個(例:27個)の明るさレベルそれぞれについて読み取りテストを実行する。これにより、元の照明モードである偏光モードまたは無偏光モードについて27個の明るさそれぞれについての読み取り結果が得られる。その後、S926に進み、チューニング部65は読み取りに成功したm個のレベルの中心となるレベル(例:平均値)を算出する。   By the way, if the reading test is not successful once in the other illumination mode in S923, the tuning unit 65 omits or cancels the reading condition search process in the other illumination mode, and selects the original illumination mode. The process proceeds to S927. In S927, the tuning unit 65 performs a reading test for each of n (eg, 27) brightness levels for the original illumination mode. As a result, a reading result for each of the 27 brightnesses is obtained for the polarization mode or the non-polarization mode which is the original illumination mode. Thereafter, the process proceeds to S926, and the tuning unit 65 calculates a level (eg, average value) that is the center of the m levels that have been successfully read.

粗調整が終了すると、S903の微調整を実行する。S903でチューニング部65は粗調整により決定された明るさレベルの周囲で明るさを変動させ、最も読み取り成功率またはマッチングレベルが高くなる明るさレベルを探索して決定する。   When the coarse adjustment is completed, the fine adjustment of S903 is executed. In step S903, the tuning unit 65 varies the brightness around the brightness level determined by the coarse adjustment, and searches for and determines the brightness level with the highest reading success rate or matching level.

S904でチューニング部65は再度読み取りテストを実行する。S905でチューニング部65は読み取値成功率または成功回数が閾値を超えているかどうかを判定する。読み取値成功率または成功回数が閾値を超えていれば、チューニング部65はチューニング処理を終了する。一方で、読み取値成功率または成功回数が閾値を超えていなければ、S906に進む。S906でチューニング部65は明るさ以外の読取条件(例:露光時間、ゲイン、画像処理フィルタの係数など)を変更し、S901に戻る。   In S904, the tuning unit 65 executes the reading test again. In S905, the tuning unit 65 determines whether the reading success rate or the number of successes exceeds a threshold value. If the reading success rate or the number of successes exceeds the threshold value, the tuning unit 65 ends the tuning process. On the other hand, if the reading success rate or the number of successes does not exceed the threshold, the process proceeds to S906. In S906, the tuning unit 65 changes reading conditions other than brightness (eg, exposure time, gain, image processing filter coefficient, etc.), and returns to S901.

<まとめ>
本実施形態では、図3(B)や図7を用いて説明したように、ワーク2を照明する照明手段として偏光フィルタ91を介して照明光をワーク2に照射する発光素子26、27と、偏光フィルタを介さずに照明光をワーク2に照射する発光素子28、29とが設けられる。撮像素子31には、発光素子26、27の偏光フィルタ91の偏光方向とは異なる偏光方向の偏光フィルタ92が設けられている。撮像素子31は、発光素子26、27と発光素子28、29との少なくとも一方によって照明されたワーク2からの光を偏光フィルタ92を介して受光し、ワーク2に設けられているコードを撮像する。デコード部53は撮像素子31により取得された画像データをデコードする。このように、本実施形態では偏光用の光源と無偏光用の光源とを備えているため、どちらかを択一的に選択して点灯させることが可能となる。とりわけ、偏光フィルタを用いることで、正反射光の影響を削減できるようになり、リーダ3の正面取付けが許容される。よって、ユーザの設置負担が軽減される。また、偏光用の光源と無偏光用の光源とをワーク2に応じて使い分けることが可能となるため、ワーク2に付与されたコードを精度よく読み取り可能なリーダ3が実現される。たとえば、プリント基板等の正反射しやすいワーク2については偏光用の光源のみを点灯させる偏光モードが有利であろう。一方で、鋳物にダイレクトマーキングされたコードについては無偏光用の光源のみを点灯させる無偏光モードが有利であろう。なお、本実施形態では、偏光用の光源と無偏光用の光源とを択一的に点灯させる(両者を同時には点灯させない)ことを中心に説明したが、一方のみでは光量が不足する場合には撮像制御部62が同時に両方を点灯させてもよい。
<Summary>
In the present embodiment, as described with reference to FIG. 3B and FIG. 7, the light emitting elements 26 and 27 that irradiate the work 2 with illumination light through the polarizing filter 91 as illumination means for illuminating the work 2, Light emitting elements 28 and 29 for irradiating the work 2 with illumination light without using a polarizing filter are provided. The imaging element 31 is provided with a polarization filter 92 having a polarization direction different from the polarization direction of the polarization filter 91 of the light emitting elements 26 and 27. The imaging element 31 receives light from the work 2 illuminated by at least one of the light emitting elements 26 and 27 and the light emitting elements 28 and 29 via the polarizing filter 92 and images a code provided on the work 2. . The decoding unit 53 decodes the image data acquired by the image sensor 31. As described above, in the present embodiment, since the light source for polarization and the light source for non-polarization are provided, it is possible to selectively select one of the light sources. In particular, by using a polarizing filter, the influence of specular reflection light can be reduced, and the front mounting of the reader 3 is allowed. Therefore, the installation burden on the user is reduced. In addition, since the polarized light source and the non-polarized light source can be selectively used according to the workpiece 2, the reader 3 capable of accurately reading the code attached to the workpiece 2 is realized. For example, for a work 2 that is easily regularly reflected, such as a printed circuit board, a polarization mode in which only a light source for polarization is turned on may be advantageous. On the other hand, a non-polarization mode in which only a light source for non-polarization is turned on is advantageous for a code that is directly marked on a casting. In the present embodiment, the explanation has focused on selectively turning on the light source for polarization and the light source for non-polarization (not turning on both at the same time). Alternatively, the imaging control unit 62 may turn on both at the same time.

図9や図10などを用いて説明したように、チューニング部65は、偏光用の発光素子26、27を点灯させ、かつ、発光素子28、29を点灯させずに取得したデコード部53のデコード結果と、発光素子26、27を点灯させずに、かつ、無偏光用の発光素子28、29を点灯させて取得したデコード部53のデコード結果とのどちらが良好なデコード結果であるかに基づき、照明条件を決定してもよい。ワーク2に応じて偏光モードと無偏光モードとのどちらが有利かは変わる。よって、実際に読み取りテストを実行して、より優れた結果が得られた照明モードを選択することで、読み取り成功率が向上しよう。なお、デコード結果としては、コードの読み取りのしやすさを示す指標であるマッチングレベル、または、コードのデコードに成功した回数などを採用してもよい。1回ごとの読み取り結果は成功か失敗かの2つしかないため、優劣を判断できない。そこで、マッチングレベルや複数回の読み取りを実行して得られた成功回数を判断の基準とすることで、各ワークにとって有利となる照明モードを容易に決定できるようになろう。   As described with reference to FIGS. 9 and 10, the tuning unit 65 turns on the light emitting elements 26 and 27 for polarization and decodes the decoding unit 53 acquired without turning on the light emitting elements 28 and 29. Based on whether the decoding result of the decoding unit 53 obtained by lighting the non-polarization light emitting elements 28 and 29 without lighting the light emitting elements 26 and 27 is a better decoding result, Lighting conditions may be determined. Depending on the work 2, which of the polarization mode and the non-polarization mode is advantageous varies. Therefore, the reading success rate will be improved by actually performing a reading test and selecting an illumination mode that has obtained better results. As the decoding result, a matching level that is an index indicating the ease of reading the code, the number of successful decoding of the code, or the like may be employed. Since there are only two reading results, success or failure, each time, the superiority or inferiority cannot be determined. Therefore, by using the matching level and the number of successes obtained by executing a plurality of readings as a criterion for determination, an illumination mode that is advantageous for each workpiece can be easily determined.

なお、偏光モードのデコード結果と無偏光モードのデコード結果とに有意な差が存在しない場合がある。このような場合は、偏光モードを採用してもよい。偏光モードは外乱光を偏向フィルタで軽減するため、外乱光の多い工場等では有利であろう。   Note that there may be no significant difference between the polarization mode decoding result and the non-polarization mode decoding result. In such a case, a polarization mode may be adopted. Since the polarization mode reduces disturbance light with a deflection filter, it may be advantageous in factories with a lot of disturbance light.

また、偏光モードと無偏光モードのどちらでもデコードに成功したときは、無偏光モードを採用してもよい。無偏光モードを採用することで、発光素子での消費電力を削減でき、かつ、放熱量も削減できる利点がある。とりわけ、外乱光が少ない環境では、消費電力などが重視されることがある。よって、このような場合には無偏光モードが採用されることが望ましい。   Further, when decoding is successful in both the polarization mode and the non-polarization mode, the non-polarization mode may be employed. By adopting the non-polarization mode, there is an advantage that the power consumption in the light emitting element can be reduced and the heat radiation amount can be reduced. In particular, power consumption and the like may be important in an environment with little disturbance light. Therefore, in such a case, it is desirable to adopt the non-polarization mode.

上述したように、チューニング部65は撮像素子31の撮像条件とデコード部53における画像処理条件とを含む読取条件を制御する。チューニング部65は、照明条件が確定した後で、読取条件の探索を開始してもよい。つまり、初めに無偏光モードか偏光モードかを決定した後で、読取条件である露光時間やゲイン、画像処理フィルタの係数などをより適切となるように調整してもよい。照明モードを確定するための処理と、読取条件を確定するための処理とでは後者の方が膨大な作業となりやすい。たとえば、各照明モードについて読取条件の調整処理を実行すると全体としての作業量は非常に多くなる。そこで、照明モードを決定してから、読取条件の調整処理を実行することで、全体としての作業量を大幅に削減できるようになろう。   As described above, the tuning unit 65 controls the reading conditions including the imaging conditions of the imaging element 31 and the image processing conditions in the decoding unit 53. The tuning unit 65 may start searching for the reading condition after the illumination condition is determined. That is, after first determining whether the mode is the non-polarization mode or the polarization mode, the exposure time and gain as the reading conditions, the coefficient of the image processing filter, and the like may be adjusted to be more appropriate. In the process for determining the illumination mode and the process for determining the reading condition, the latter tends to be a huge work. For example, if the reading condition adjustment process is executed for each illumination mode, the overall amount of work becomes very large. Therefore, by determining the illumination mode and then executing the reading condition adjustment process, the overall amount of work can be greatly reduced.

図9や図10などを用いて説明したように、チューニング部65は、発光素子26、27を点灯させ、かつ、発光素子28、29を点灯させない偏光モードと、発光素子26、27を点灯させずに、かつ、発光素子28、29を点灯させる無偏光モードとのそれぞれについて読取条件のうち明るさパラメータの粗調整を実行して、偏光モードと無偏光モードとのどちらでより多くデコードに成功したかを判定し、偏光モードと無偏光モードとのうちでデコードにより多く成功したモードについてさらに明るさパラメータを微調整してもよい。これにより効率よく照明モードと明るさパラメータとを決定することが可能となる。   As described with reference to FIGS. 9 and 10, the tuning unit 65 turns on the light emitting elements 26 and 27 and turns on the light emitting elements 26 and 27 and the polarization mode in which the light emitting elements 28 and 29 are not turned on. In addition, the brightness parameter of the reading conditions is roughly adjusted for each of the non-polarization modes in which the light emitting elements 28 and 29 are turned on, and the decoding succeeds more in both the polarization mode and the non-polarization mode. The brightness parameter may be further finely adjusted for a mode that has succeeded in decoding among the polarization mode and the non-polarization mode. Thereby, it becomes possible to determine an illumination mode and a brightness parameter efficiently.

なお、チューニング部65は、粗調整において、偏光モードと無偏光モードとのうちの一方のモードで画像データからコードを探索するコード探索処理を実行し、コード探索処理によってコードが見つかると、偏光モードと無偏光モードとのうちの他方のモードに切り替えて再びコード探索処理を実行し、他方のモードでコードが見つからないときには他方のモードでの読取条件の調整を中止し、一方のモードでの読取条件の調整を実行してもよい。このように、他方のモードで正しく読み取れる見込みが少ない場合は、他方のモードでの調整を省略することで、粗調整に要する時間を大幅に短縮することが可能となる。   In the coarse adjustment, the tuning unit 65 performs a code search process for searching for a code from image data in one of the polarization mode and the non-polarization mode, and when a code is found by the code search process, Switch to the other mode and the non-polarized mode and execute the code search process again. If no code is found in the other mode, stop adjusting the reading conditions in the other mode and read in one mode. Condition adjustment may be performed. As described above, when there is little chance of correct reading in the other mode, the time required for the rough adjustment can be greatly shortened by omitting the adjustment in the other mode.

図11を用いて説明したように、偏光モードと無偏光モードとでは明るさパラメータの探索範囲が異なってもよい。偏光モードと無偏光モードとでは明るさがちょうど2倍異なる性質がある。よって、偏光モードの探索範囲の開始レベルを、無偏光モードの探索範囲の開始レベルの2倍に設定してもよい。同様に、偏光モードの探索範囲の終了レベルを、無偏光モードの探索範囲の終了レベルの2倍に設定してもよい。これにより、各照明モードで網羅的に明るさレベルを探索する場合と比較して、探索時間を約半分に削減できよう。   As described with reference to FIG. 11, the search range of the brightness parameter may be different between the polarization mode and the non-polarization mode. The polarization mode and the non-polarization mode have the property that the brightness is exactly two times different. Therefore, the start level of the search range for the polarization mode may be set to twice the start level of the search range for the non-polarization mode. Similarly, the end level of the search range for the polarization mode may be set to twice the end level of the search range for the non-polarization mode. As a result, the search time can be reduced by about half compared to the case of exhaustively searching for the brightness level in each illumination mode.

図2(A)および図2(B)を用いて説明したように、コネクタホルダ20はデコード結果を外部に出力するための通信ケーブルを接続する接続手段として機能する。発光素子26、27は撮像素子31の受光部よりもコネクタホルダ20から見て遠方に配置され、発光素子28、29は撮像素子31の受光部よりもコネクタホルダ20から見て近方に配置されてもよい。   As described with reference to FIGS. 2A and 2B, the connector holder 20 functions as a connection means for connecting a communication cable for outputting the decoding result to the outside. The light emitting elements 26 and 27 are disposed farther from the light receiving part of the image sensor 31 as viewed from the connector holder 20, and the light emitting elements 28 and 29 are disposed closer to the light receiving part of the image sensor 31 from the connector holder 20. May be.

図2(B)を用いて説明したように、発光素子26、27および発光素子28、29の照明光の出射面側の筐体に透光板として窓部11が配置されている。また、図7や図8を用いて説明したように、窓部11の一部の領域であって発光素子26、27からの光を透光する領域に偏光フィルタ91が取り付けられている。また、窓部11である透光板のほぼ中央に撮像素子31への光の入射領域が設けられており、入射領域の周囲に偏光用光源の光の出射領域と無偏光用光源からの光の出射領域とが配置されていてもよい。また、偏光用の光源を構成する発光素子の数と無偏光用の光源を構成する発光素子の数とが一致していてもよい。これは、撮像素子31の光軸の周囲に発光素子をバランスよく配置することが可能となるからである。なお、偏光フィルタ91が取り付けられると光量が半分になるため、偏光用の光源を構成する発光素子の数を無偏光用の光源を構成する発光素子の数の2倍にしてもよい。これにより各光源の光量をほぼ等しくすることが可能となる。   As described with reference to FIG. 2B, the window portion 11 is disposed as a translucent plate in the housing on the light emission surface side of the light emitting elements 26 and 27 and the light emitting elements 28 and 29. Further, as described with reference to FIGS. 7 and 8, the polarizing filter 91 is attached to a partial region of the window portion 11 and a region through which light from the light emitting elements 26 and 27 is transmitted. In addition, an incident area of light to the image pickup device 31 is provided at substantially the center of the translucent plate that is the window portion 11, and the light emission area of the light source for polarization and the light from the non-polarized light source are disposed around the incident area May be arranged. Further, the number of light-emitting elements that constitute the light source for polarization may coincide with the number of light-emitting elements that constitute the light source for non-polarization. This is because the light emitting elements can be arranged in a balanced manner around the optical axis of the image sensor 31. Since the amount of light is halved when the polarizing filter 91 is attached, the number of light-emitting elements that constitute the light source for polarization may be double the number of light-emitting elements that constitute the light source for non-polarization. As a result, the light amounts of the respective light sources can be made substantially equal.

上述したように、発光素子26、27の偏光フィルタの偏光方向と、撮像素子31の偏光フィルタの偏向方向は90度異なっている。これは正反射光を効率よく減衰させる上では効率がよい。なお、完全に90度である必要はなく、多少の公差は当然に許容される。   As described above, the polarization direction of the polarization filters of the light emitting elements 26 and 27 and the deflection direction of the polarization filter of the imaging element 31 are different by 90 degrees. This is efficient in efficiently attenuating regular reflection light. Note that it is not necessary to be completely 90 degrees, and some tolerance is naturally allowed.

図8を用いて説明したように、撮像素子31の偏光フィルタ92の形状は略円形である。偏光フィルタ92の形状を矩形にすることも可能であるが、光学系のレンズの形状が円形であることから、偏光フィルタ92の形状も円形とすることで、リーダ3の小型化を実現しやすいだろう。偏光フィルタ92の左端と右端とにはそれぞれ位置合わせ部材93a、93bが延出していてもよい。これにより窓部11に偏光フィルタ92を貼り付ける際の位置合わせが容易になろう。位置合わせ部材93a、93bを含む偏光フィルタ92の形状は左右対称であってもよい。なお、ポインタ用の発光素子35の光出射領域には偏光フィルタを設けなくてよい。ポインタ用の発光素子35からの反射光の強度は高い方が好ましいからである。   As described with reference to FIG. 8, the shape of the polarizing filter 92 of the image sensor 31 is substantially circular. Although it is possible to make the shape of the polarizing filter 92 rectangular, since the shape of the lens of the optical system is circular, it is easy to reduce the size of the reader 3 by making the shape of the polarizing filter 92 circular. right. Alignment members 93a and 93b may extend from the left end and the right end of the polarizing filter 92, respectively. As a result, alignment when attaching the polarizing filter 92 to the window portion 11 will be facilitated. The shape of the polarizing filter 92 including the alignment members 93a and 93b may be symmetrical. In addition, it is not necessary to provide a polarizing filter in the light emission region of the pointer light emitting element 35. This is because the intensity of the reflected light from the pointer light emitting element 35 is preferably higher.

コンピュータ4やPLC5など、リーダ3の外部に設けられた制御装置から受信した設定情報にしたがってチューニング部65は偏光モードと無偏光モードのいずれかを選択してもよい。このようにコンピュータ4やPLC5から強制的に照明モードを設定し、固定してもよい。これによりユーザの都合に応じた照明モードに固定することが可能となろう。   The tuning unit 65 may select either the polarization mode or the non-polarization mode according to setting information received from a control device provided outside the reader 3 such as the computer 4 or the PLC 5. In this way, the illumination mode may be forcibly set and fixed from the computer 4 or the PLC 5. Thereby, it will be possible to fix the lighting mode according to the user's convenience.

第一照明手段を構成する複数の発光素子26、27は2次元コードの搬送方向に沿って並んでおり、第二照明手段を構成する複数の発光素子28、19も搬送方向に沿って並んでいるものとして説明した。しかし、第一照明手段と第二照明手段の組み合わせは変更されてもよい。たとえば、第一照明手段を発光素子28、29で構成し、第二照明手段を発光素子26、27で構成してもよい。また、第一照明手段を発光素子26、28で構成し、第二照明手段を発光素子27、29で構成してもよい。同様に、第一照明手段を発光素子27、29で構成し、第二照明手段を発光素子26、28で構成してもよい。第一照明手段を発光素子26、29で構成し、第二照明手段を発光素子27、28で構成してもよい。さらに、第一照明手段を発光素子27、28で構成し、第二照明手段を発光素子26、29で構成してもよい。   The plurality of light emitting elements 26 and 27 constituting the first illuminating means are arranged along the carrying direction of the two-dimensional code, and the plurality of light emitting elements 28 and 19 constituting the second illuminating means are also arranged along the carrying direction. It was explained as being. However, the combination of the first illumination means and the second illumination means may be changed. For example, the first illuminating means may be composed of the light emitting elements 28 and 29, and the second illuminating means may be composed of the light emitting elements 26 and 27. Alternatively, the first illumination means may be constituted by the light emitting elements 26 and 28, and the second illumination means may be constituted by the light emitting elements 27 and 29. Similarly, the first illuminating means may be composed of the light emitting elements 27 and 29, and the second illuminating means may be composed of the light emitting elements 26 and 28. The first illumination means may be constituted by the light emitting elements 26 and 29, and the second illumination means may be constituted by the light emitting elements 27 and 28. Further, the first illuminating means may be composed of the light emitting elements 27 and 28, and the second illuminating means may be composed of the light emitting elements 26 and 29.

第一照明手段には偏光フィルタが設けられるため、第二照明手段と比較して光量が少なくなる。そこで、第一照明手段を構成する発光素子の数を第二照明手段を構成する発光素子の数よりも多くしてもよい。同様に、第一照明手段を構成する発光素子として最大光量の多い発光素子を採用し、第二照明手段を構成する発光素子として最大光量の少ない発光素子を採用してもよい。これにより偏光フィルタによる光量低下を補償することが可能となろう。   Since the first illumination means is provided with a polarizing filter, the amount of light is reduced compared to the second illumination means. Therefore, the number of light emitting elements constituting the first illuminating means may be larger than the number of light emitting elements constituting the second illuminating means. Similarly, a light emitting element with a large maximum amount of light may be adopted as the light emitting element constituting the first illumination unit, and a light emitting element with a small maximum amount of light may be adopted as the light emitting element constituting the second illumination unit. As a result, it will be possible to compensate for a decrease in the amount of light due to the polarizing filter.

偏光フィルタ91、92はそれぞれ窓部11に固着されることを前提として説明したが、これらは取り外し式の偏光フィルタであってもよい。   Although the polarizing filters 91 and 92 have been described on the premise that they are fixed to the window portion 11, they may be detachable polarizing filters.

チューニングの対象となる読取条件は、予め複数の組み合わせ(バンク)が用意されていてもよい。チューニング部65はバンクを切り替えて読み取りテストを実行することで、各ワークにとって適切なバンクを決定してもよい。このバンクには、上述した偏光モードと無偏光モードのどちらを採用するかを示す設定情報が含まれている。   A plurality of combinations (banks) may be prepared in advance as reading conditions to be tuned. The tuning unit 65 may determine an appropriate bank for each work by switching banks and executing a reading test. This bank includes setting information indicating which of the polarization mode and the non-polarization mode described above is adopted.

図2(B)などを用いて説明したように、撮像素子31の光学系、第一照明手段および第二照明手段の少なくとも1つには集光部材であるリフレクタ17が採用されてもよい。リフレクタ17のうち撮像素子用の集光部材は、撮像素子31の撮像面と平行な断面の形状が円形である集光部材であってもよい。つまり、コーン型または円錐台型の集光部材が採用されてもよい。発光素子26〜29についても同様の集光部材が採用されてもよい。とりわけ、偏光フィルタを採用すると光量が低下するため、集光部材が光量低下を補償しよう。   As described with reference to FIG. 2B and the like, the reflector 17 that is a condensing member may be employed in at least one of the optical system, the first illumination unit, and the second illumination unit of the image sensor 31. The condensing member for the image sensor in the reflector 17 may be a condensing member having a circular cross-sectional shape parallel to the imaging surface of the image sensor 31. That is, a cone-type or truncated cone-type light collecting member may be employed. Similar light condensing members may be employed for the light emitting elements 26 to 29. In particular, if a polarizing filter is used, the amount of light decreases, so the condensing member will compensate for the decrease in the amount of light.

1...ライン、2...ワーク、3...照明装置、4...カメラ、5...画像処理装置、6...入力部、7...表示部   1 ... line, 2 ... work, 3 ... lighting device, 4 ... camera, 5 ... image processing device, 6 ... input unit, 7 ... display unit

Claims (7)

ワークに設けられたコードを読み取る固定式のコード読取装置であって、  A fixed code reader for reading a code provided on a workpiece,
ワークを照明する照明手段であって第一偏光フィルタを介して照明光をワークに照射する第一照明手段と、  A first illuminating means for illuminating the work and irradiating the work with illumination light through the first polarizing filter;
ワークを照明する照明手段であって偏光フィルタを介さずに照明光をワークに照射する第二照明手段と、  A second illuminating means for illuminating the work and irradiating the work with illumination light without using a polarizing filter;
照明モードとして、前記第一照明手段を点灯させ、かつ、前記第二照明手段を点灯させない偏光モードと、前記第一照明手段を点灯させず、かつ、前記第二照明手段を点灯させる無偏光モードとを有し、設定された照明モードにしたがって前記第一照明手段と前記第二照明手段とを制御する照明制御手段と、  As a lighting mode, a polarization mode in which the first illumination means is turned on and the second illumination means is not turned on, and a non-polarization mode in which the first illumination means is not turned on and the second illumination means is turned on. Illumination control means for controlling the first illumination means and the second illumination means according to a set illumination mode;
前記第一偏光フィルタの偏光方向とは異なる偏光方向の第二偏光フィルタが設けられ、前記第一照明手段と前記第二照明手段との少なくとも一方によって照射され前記ワークにて反射された光を前記第二偏光フィルタを介して受光し、前記ワークに設けられているコードを撮像する撮像手段と、  A second polarizing filter having a polarization direction different from the polarization direction of the first polarizing filter is provided, and the light irradiated by at least one of the first illuminating means and the second illuminating means is reflected by the workpiece. Imaging means for receiving light through the second polarizing filter and imaging a code provided on the workpiece;
前記撮像手段に関する撮像条件を制御する撮像制御手段と、  Imaging control means for controlling imaging conditions relating to the imaging means;
前記偏光モードにより照明され、かつ、複数の撮像条件のそれぞれについて前記ワークから取得された複数の画像データに基づく前記コードの読み取りやすさを示す指標と、前記無偏光モードにより照明され、かつ、複数の撮像条件のそれぞれについて前記ワークから取得された複数の画像データに基づく前記コードの読み取りやすさを示す指標とのうちで良好な指標が得られた照明モードを前記照明制御手段に設定する設定手段と、  An indicator indicating the readability of the code based on a plurality of image data obtained from the workpiece for each of a plurality of imaging conditions and illuminated by the polarization mode, and a plurality of illuminations by the non-polarization mode Setting means for setting an illumination mode in which a good index is obtained among the indices indicating the readability of the code based on a plurality of image data acquired from the workpiece for each of the imaging conditions in the illumination control means When,
前記設定手段により設定された照明モードにしたがって照明されたワークを前記撮像手段により撮像することで取得された画像データをデコードするデコード手段と  Decoding means for decoding image data acquired by imaging the workpiece illuminated according to the illumination mode set by the setting means by the imaging means;
を備えることを特徴とするコード読取装置。A code reading device comprising:
前記設定手段は、前記コードの読み取りやすさを示す指標に基づき前記撮像条件を設定することを特徴とする請求項1に記載のコード読取装置。  The code reading apparatus according to claim 1, wherein the setting unit sets the imaging condition based on an index indicating the readability of the code. 前記設定手段は、前記良好な指標が得られた照明モードを前記照明制御手段に設定した後で、前記撮像条件を微調整することを特徴とする請求項1または2に記載のコード読取装置。  The code reading device according to claim 1, wherein the setting unit finely adjusts the imaging condition after setting an illumination mode in which the good index is obtained in the illumination control unit. 前記照明モードを設定するために探索される撮像条件の探索範囲であって、前記偏光モードについての撮像条件の探索範囲と、前記無偏光モードについての撮像条件の探索範囲とが異なっていることを特徴とする請求項1ないし3のいずれか一項に記載のコード読取装置。  A search range of imaging conditions searched for setting the illumination mode, wherein a search range of imaging conditions for the polarization mode is different from a search range of imaging conditions for the non-polarization mode. The code reader according to any one of claims 1 to 3, wherein 前記撮像条件は、前記第一照明手段の明るさレベル、前記第二照明手段の明るさレベル、前記撮像手段のゲインおよび前記撮像手段の露光時間のうちのいずれかであることを特徴とする請求項1ないし4のいずれか一項に記載のコード読取装置。  The imaging condition is any one of a brightness level of the first illumination unit, a brightness level of the second illumination unit, a gain of the imaging unit, and an exposure time of the imaging unit. Item 5. The code reading device according to any one of Items 1 to 4. 前記第一照明手段が備える発光素子の数は前記第二照明手段が備える発光素子の数よりも多いことを特徴とする請求項1ないし5のいずれか一項に記載のコード読取装置。  6. The code reading apparatus according to claim 1, wherein the number of light emitting elements included in the first illumination unit is greater than the number of light emitting elements included in the second illumination unit. 前記コードの読み取りやすさを示す指標は、前記コードの読取成功確率または前記コードについてのマッチングレベルであることを特徴とする請求項1ないし6のいずれか一項に記載のコード読取装置。  The code reading apparatus according to claim 1, wherein the index indicating the readability of the code is a probability of successful reading of the code or a matching level for the code.
JP2016256736A 2016-12-28 2016-12-28 Optical information reader Active JP6266746B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016256736A JP6266746B2 (en) 2016-12-28 2016-12-28 Optical information reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016256736A JP6266746B2 (en) 2016-12-28 2016-12-28 Optical information reader

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2014157029A Division JP6363903B2 (en) 2014-07-31 2014-07-31 Optical information reader

Publications (2)

Publication Number Publication Date
JP2017059266A JP2017059266A (en) 2017-03-23
JP6266746B2 true JP6266746B2 (en) 2018-01-24

Family

ID=58391635

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016256736A Active JP6266746B2 (en) 2016-12-28 2016-12-28 Optical information reader

Country Status (1)

Country Link
JP (1) JP6266746B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6683666B2 (en) 2017-10-04 2020-04-22 ファナック株式会社 Identification code reader and machine learning device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5010241A (en) * 1989-01-12 1991-04-23 Hewlett-Packard Company Sensor array and illumination system for a large depth-of-field bar code scanner
US5541419A (en) * 1994-03-21 1996-07-30 Intermec Corporation Symbology reader wth reduced specular reflection
AP2010005207A0 (en) * 2007-10-09 2010-04-30 Sicpa Hildings S A Security marking authentication device
UY32530A (en) * 2009-04-02 2010-10-29 Sicpa Holding Sa IDENTIFICATION AND AUTHENTICATION USING POLYMER LIQUID CRYSTAL MATERIAL MARKS

Also Published As

Publication number Publication date
JP2017059266A (en) 2017-03-23

Similar Documents

Publication Publication Date Title
JP6363903B2 (en) Optical information reader
US10515249B2 (en) Optical information reading device
US9280693B2 (en) Indicia-reader housing with an integrated optical structure
US20180239937A1 (en) Optical Information Reading Device
JPH06333074A (en) Optical information reader
JP6434118B2 (en) Optical information reading apparatus, optical information reading method and program
JP2005202930A (en) Optical information reading device
US9430690B2 (en) Optical information reading device
JP2016033788A (en) Optical information reading device, optical information reading method, and program
JP6266746B2 (en) Optical information reader
JP6360875B2 (en) Code reader
JP6586201B2 (en) Optical information reader
JP2008530684A (en) Stamp type barcode reader
JP2019071018A (en) Optical information reader and optical information reading method
JP6486767B2 (en) Fixed optical information reader and optical information reading method using the same
JP5556684B2 (en) Information code reader
JP2016218588A (en) Fixed-type optical information reading device, and optical information reading method using the same
JP2018136854A (en) Optical information reader
JP4107280B2 (en) Image sensor and information code reader
JP2011108114A (en) Print information reader
JP2023079343A (en) Optical information reading apparatus
GB2302754A (en) Data symbol reading device
JP2019091210A (en) Optical information reader and optical information reading system
JP2005258516A (en) Optical information reading device
JP2016201116A (en) Light irradiation device and program

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20161228

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170728

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

R150 Certificate of patent or registration of utility model

Ref document number: 6266746

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250