JP6486767B2 - Fixed optical information reader and optical information reading method using the same - Google Patents

Fixed optical information reader and optical information reading method using the same Download PDF

Info

Publication number
JP6486767B2
JP6486767B2 JP2015100489A JP2015100489A JP6486767B2 JP 6486767 B2 JP6486767 B2 JP 6486767B2 JP 2015100489 A JP2015100489 A JP 2015100489A JP 2015100489 A JP2015100489 A JP 2015100489A JP 6486767 B2 JP6486767 B2 JP 6486767B2
Authority
JP
Japan
Prior art keywords
light
unit
illumination
illumination unit
diffusion
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
JP2015100489A
Other languages
Japanese (ja)
Other versions
JP2016218587A (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 JP2015100489A priority Critical patent/JP6486767B2/en
Publication of JP2016218587A publication Critical patent/JP2016218587A/en
Application granted granted Critical
Publication of JP6486767B2 publication Critical patent/JP6486767B2/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に記載されている。   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. . The fixed optical information reader is mainly installed in a factory line and reads a code stamped or affixed on a work (product to be inspected) conveyed by a conveyor belt. In particular, 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.

特開2011−76519号公報JP 2011-76519 A

ところで、リーダを小型化すると、撮像素子についての光軸と照明系の光軸とを平行にせざるをえない。これは、撮像素子の光軸と照明系の光軸との距離を短くせざるを得ないからである。このようなリーダでは照明光がワークの表面で反射し、正反射光(鏡面反射光)が撮像素子に入射し、2次元コードを読み取りにくくなってしまう。とりわけ、鏡面加工された金属製のワークなどでは、ワークの表面で鏡面反射が発生し、鏡面反射光が撮像素子に入射し、コードが読み取れなくなってしまう。そこで、ワークの表面の法線とリーダの光軸とが一致しないように、法線に対して光軸を傾けてリーダを設置しなければならない。これを斜め取り付けという。なお、ワークの表面の法線とリーダの光軸とが平行となるようにリーダを取り付けることを正面取付けと呼ぶことにする。   By the way, 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, illumination light is reflected on the surface of the workpiece, and regular reflection light (specular reflection light) is incident on the image sensor, making it difficult to read the two-dimensional code. In particular, in a mirror-finished metal workpiece or the like, specular reflection occurs on the surface of the workpiece, and the specular reflection light enters the image sensor, making it impossible to read the 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.

斜め取り付けを行うことで、鏡面反射光は撮像素子が存在しない方向に進行するが、リーダの周囲に存在する物体で反射してワークの表面に戻り、再びワークの表面で反射して、撮像素子に入射してしまうことがある。これを避けようとしてリーダの取付け角度(スキュー角)をさらに調整することはユーザにとって困難であった。そこで、本発明は、鏡面反射を起こすようなワークに付与されたコードを精度よく読み取り可能な光学的情報読取装置を提供することを目的とする。   By performing oblique mounting, the specular reflected light travels in the direction in which the image sensor does not exist, but is reflected by an object existing around the reader, returns to the surface of the work, and is reflected again by the surface of the work, and the image sensor May enter. In order to avoid this, it is difficult for the user to further adjust the attachment angle (skew angle) of the reader. SUMMARY OF THE INVENTION An object of the present invention is to provide an optical information reader capable of accurately reading a code attached to a workpiece that causes specular reflection.

本発明によれば、たとえば、
筐体と、
前記筐体の第一面側にある光出射領域から光を出射する第一照明部および第二照明部を含む照明手段と、
前記第一照明部の光の出射方向と前記第二照明部の光の出射方向と平行な光軸を有し、前記光出射領域とは異なる前記筐体の前記第一面側にある光入射領域から入射する光であって、ワークからの反射光を受光することで、前記ワークに設けられたコードを撮像する撮像手段と、
前記撮像手段により撮像された前記コードをデコードするデコード手段と、
前記筐体から着脱可能であり、前記光出射領域および前記光入射領域を包囲するアタッチメントフードと、
を有し、
前記アタッチメントフードは、
前記撮像手段の光軸上に配置され、前記コードの像を前記撮像手段に結像する結像レンズと、
前記第一照明部から出射する光の出射軸上と前記第二照明部から出射する光の出射軸上とに設けられ、前記第一照明部から出射する光と前記第二照明部から出射する光を拡散する拡散手段と
を有し、
前記第一照明部は、前記筐体の前記第一面の長手方向の端部の近くに設けられており、
前記第二照明部は、前記筐体の前記第一面の長手方向の端部から離れて設けられていることを特徴とすることを特徴とする固定式の光学的情報読取装置が提供される。
According to the present invention, for example,
A housing,
An illuminating means including a first illuminating unit and a second illuminating unit that emit light from the light emitting region on the first surface side of the housing;
Light incident on the first surface side of the housing having an optical axis parallel to the light emission direction of the first illumination unit and the light emission direction of the second illumination unit, which is different from the light emission region Imaging means for imaging a code provided on the workpiece by receiving light reflected from the workpiece, which is light incident from a region;
Decoding means for decoding the code imaged by the imaging means;
An attachment hood that is detachable from the housing and surrounds the light emitting region and the light incident region;
Have
The attachment hood is
An imaging lens disposed on the optical axis of the imaging means and forming an image of the code on the imaging means;
Provided on the emission axis of light emitted from the first illumination unit and on the emission axis of light emitted from the second illumination unit, and emitted from the first illumination unit and the second illumination unit have a diffusion means for diffusing light,
The first illumination unit is provided near an end in a longitudinal direction of the first surface of the housing,
The second illuminating unit is provided apart from the longitudinal end of the first surface of the casing, and a fixed optical information reader is provided. .

本発明によれば、鏡面反射を起こすようなワークに付与されたコードを精度よく読み取り可能な光学的情報読取装置を提供することが可能となる。   ADVANTAGE OF THE INVENTION According to this invention, it becomes possible to provide the optical information reader which can read the code provided to the workpiece | work which raise | generates a specular reflection accurately.

光学的情報読取装置を示す図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 リーダのスキュー角の違いに応じた読み取り画像を説明する図The figure explaining the reading image according to the difference in the skew angle of a reader アタッチメントフードを説明する図Illustration explaining attachment hood アタッチメントフードを構成する部材を説明する分解図Exploded view for explaining the members constituting the attachment hood リーダのスキュー角の違いに応じた読み取り画像を説明する図The figure explaining the reading image according to the difference in the skew angle of a reader スキュー角の推奨角度を案内する案内部材を説明する図The figure explaining the guide member which guides the recommended angle of a skew angle 明視野照明モードと暗視野照明モードとを説明する図Diagram explaining bright field illumination mode and dark field illumination mode 照明モードのチューニング処理を示すフローチャートFlow chart showing lighting mode tuning processing スキュー角と拡散部材の有無との関係を説明する図The figure explaining the relationship between a skew angle and the presence or absence of a diffusing member 拡散部材の拡散度の違いに応じたコードの読み取り画像の変化を説明する図The figure explaining the change of the read image of the code according to the difference in the diffusion degree of a diffusion member

以下に本発明の一実施形態を示す。以下で説明される個別の実施形態は、本発明の上位概念、中位概念および下位概念など種々の概念を理解するために役立つであろう。また、本発明の技術的範囲は、特許請求の範囲によって確定されるのであって、以下の個別の実施形態によって限定されるわけではない。   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つの面を有している。つまり、筐体9には頂面94、底面95、前面96、後面97、左側面98、右側面99が存在する。図2(B)が示すように筐体9は主にフロントケース10とリアケース19により構成されている。
<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. That is, the housing 9 has a top surface 94, a bottom surface 95, a front surface 96, a rear surface 97, a left side surface 98, and a right side surface 99. As shown in FIG. 2B, the housing 9 is mainly composed of a front case 10 and a rear case 19.

図2(B)が示すようにフロントケース10には4つの開口が設けられている。頂面側の開口にはホルダー13と、ホルダー13によって支持される画像表示装置14と、画像表示装置14をカバーするように配置される表示パネル15と、メインシート16が設けられる。フロントケース10の前面側の開口には透光性を有する窓部11と、フロントカバー12とが設けられる。窓部11の一部には偏光フィルタが設けられてもよい。前面96のうちフロントカバー12よりも下側の部分を腹部と呼ぶことにする。この例では、腹部の中心は略矩形の平面部と、その左右に位置する曲面部とを有している。フロントケース10の後面側の開口から、リフレクタ17と照明基板18とが挿入され、リアケース19によってふたをされる。リアケース19には、メイン基板21と、メイン基板21に固定された光学系50およびAF機構51が設けられている。リフレクタ17は、照明基板18に設けられた発光素子からの光を効率よく前方に照射するための構造部品である。リフレクタ17には、照明用の発光素子からの光を前方に集光して照射するためのコーン(円錐台)型の集光部176〜179と、ポインタ用の発光素子からの光を前方に集光して照射するためのコーン型の集光部175とが設けられている。これらには集光効率を高めるために金メッキ等が施されている。フロントケース10の底面側に開口にはコネクタホルダ20が取り付けられる。コネクタホルダ20には2本の通信ケーブルが接続されており、それぞれコンピュータ4とPLC5とに接続される。コネクタホルダ20にはコネクタ基板が取り付けられている。   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. A polarizing filter may be provided in a part of the window portion 11. A portion of the front surface 96 below the front cover 12 is referred to as an abdomen. In this example, the center of the abdomen has a substantially rectangular flat surface portion and curved surface portions located on the left and right sides thereof. The reflector 17 and the illumination board 18 are inserted from the opening on the rear surface 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 bottom 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.

左側面98と右側面99にはそれぞれリーダ3から着脱可能なオプションのアタッチメントパーツを固定するためのネジ穴45が設けられていてもよい。後述する拡散部材などはこのネジ穴45を利用してネジ止めされてもよい。   The left side surface 98 and the right side surface 99 may be provided with screw holes 45 for fixing optional attachment parts detachable from the reader 3. A diffusion member or the like to be described later may be screwed using this screw hole 45.

図3(A)〜図3(C)はホルダー13の周辺の構造を説明するための図である。図2(A)、図3(A)および図3(B)が示すようにホルダー13は画像表示装置14を支持する支持部材である。照明基板18は、ホルダー13に対して直交した方向に延在し、ホルダー13に係合してホルダー13を支持する。つまり、ホルダー13はフロントケース10の頂面94に対して平行に設けられており、照明基板18はフロントケース10の前面96と平行に設けられており、両者は直交している。なお、ホルダー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. 2A, 3A, and 3B, the holder 13 is a support member that supports the image display device. 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 top surface 94 of the front case 10, and the illumination board 18 is provided in parallel with the front surface 96 of the front case 10, and both are orthogonal to each other. A groove 131 is provided on the bottom side of the holder 13, and the holder 13 may be firmly fixed to the illumination substrate 18 by fitting the end of the illumination substrate 18 into 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の頂面94から外部に出力されるように、ホルダー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 from the top surface 94 of the front case 10 to the outside. 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. The control unit 60 has various functions, but these may be realized by a logic circuit or may be realized by executing sohood air. 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を設定する。チューニング部65は、暗視野照明モードと明視野照明モードなどのどちらがコードを読み取るために適しているかを判定してもよい。   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. The tuning unit 65 may determine which one of the dark field illumination mode and the bright field illumination mode is suitable for reading the code.

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 one function of the calculation unit 81, generates a user interface for setting the imaging conditions of the reader 3, and a user interface for displaying the decoding result 71, the image data 72, and the like output from the reader 3. Are 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.

<偏光フィルタ>
本実施形態では、偏光フィルタを設けられた第一照明手段と、偏光フィルタを設けられていない第二照明手段とを設け、ワーク2に応じてどちらかが選択されて点灯される。なお、偏光フィルタを設けることはオプションである。
<Polarizing filter>
In the present embodiment, a first illuminating unit provided with a polarizing filter and a second illuminating unit not provided with a polarizing filter are provided, and one of them is selected according to the work 2 and lit. It is optional to provide a polarizing filter.

図7(A)はリーダ3の斜視図であり、図7(B)は窓部11の拡大図である。窓部11のうち、発光素子26からの光が出射する部分(光出射領域)と、発光素子27からの光が出射する部分とには偏光フィルタ91が設けられている。また、窓部11のうち、撮像素子31の光学系に光が入射する部分(光入射領域)には偏光フィルタ92が設けられている。窓部11において、発光素子26〜29からの光が出射する光出射領域を第一領域と呼び、撮像素子31の光学系に光が入射する光入射領域を第二領域と呼ぶことにする。なお、偏光フィルタ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 from the light emitting element 26 is emitted (light emitting region) and a portion where the light from the light emitting element 27 is emitted. 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. In the window portion 11, a light emission area where light from the light emitting elements 26 to 29 is emitted is referred to as a first area, and a light incident area where light is incident on the optical system of the imaging element 31 is referred to as a second area. 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, the polarizing filter is not provided in the part from which the light of the light emitting element 28 radiates | emits, and the part from which the light of the light emitting element 29 radiates | emits among the window parts 11. FIG. 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 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(A)ないし図9(F)を用いて拡散反射部材をリーダ3に取り付けることの利点について説明する。図9(A)はリーダ3をワーク2に対して正面取付けした際の側面図である。ワーク2は金属表面を有し、この金属表面にコード6がDPMにより設けられている。DPMはダイレクト・パーツ・マーキングの略称である。DPMは、たとえば、レーザ光を照射することで金属表面などにコードを刻印する手法である。図9(A)が示すように、発光素子26、27から出射した光は金属表面やコード6で鏡面反射(正反射)し、撮像素子31に入射する。図9(B)は正面取付けの際に撮像素子31により撮像された画像の一例を示している。図9(B)が示すように、ワーク2の表面が鏡面として働く、その結果、画像には、ワーク2に映ったリーダ3の一部や、鏡面反射による白とび部分が含まれている。とりわけ、コード6と白とび部分が重なってしまうと、コード6を正しくデコードできなくなってしまう。よって、金属表面などの鏡面を有するワーク2に対してリーダ3を正面取付けすることは好ましくないケースが存在しうる。
<Advantages of diagonal mounting>
The advantage of attaching the diffuse reflection member to the reader 3 will be described with reference to FIGS. 9 (A) to 9 (F). FIG. 9A is a side view when the reader 3 is attached to the work 2 in front. The workpiece 2 has a metal surface, and a cord 6 is provided on the metal surface by DPM. DPM is an abbreviation for direct parts marking. DPM is a method of marking a code on a metal surface or the like by irradiating laser light, for example. As shown in FIG. 9A, the light emitted from the light emitting elements 26 and 27 is specularly reflected (regularly reflected) by the metal surface or the cord 6 and enters the imaging element 31. FIG. 9B shows an example of an image captured by the image sensor 31 during front mounting. As shown in FIG. 9B, the surface of the workpiece 2 works as a mirror surface. As a result, the image includes a part of the reader 3 reflected on the workpiece 2 and a whiteout portion caused by mirror reflection. In particular, if the code 6 overlaps with the whiteout portion, the code 6 cannot be correctly decoded. Therefore, there may be cases where it is not preferable to attach the reader 3 to the work 2 having a mirror surface such as a metal surface.

図9(C)はリーダ3をワーク2に対して斜め取付けした際の側面図である。図9(C)が示すように、発光素子26、27から出射した光の一部の成分はワーク2で鏡面反射するが、リーダ3に与えられたスキュー角によって鏡面反射光は撮像素子31の光軸方向とは異なる方向に向かう(実線)。一方で、発光素子26、27から出射した光の他の成分はワーク2で拡散反射し、撮像素子31に入射する(破線)。図9(D)は斜め取付けの際に撮像素子31により撮像された画像の一例を示している。図9(D)が示すように、もはや鏡面反射光が撮像素子31に入射しないようになり、コード6をデコード可能な程度に撮像することが可能となる。   FIG. 9C is a side view when the reader 3 is obliquely attached to the workpiece 2. As shown in FIG. 9C, some components of the light emitted from the light emitting elements 26 and 27 are specularly reflected by the work 2, but the specularly reflected light of the imaging element 31 is reflected by the skew angle given to the reader 3. Heading in a direction different from the optical axis direction (solid line). On the other hand, the other components of the light emitted from the light emitting elements 26 and 27 are diffusely reflected by the work 2 and enter the imaging element 31 (broken line). FIG. 9D shows an example of an image captured by the image sensor 31 during oblique mounting. As shown in FIG. 9D, the specular reflection light no longer enters the image sensor 31, and the code 6 can be imaged to the extent that it can be decoded.

図9(E)はリーダ3をワーク2に対して斜め取付けした際の側面図である。図9(E)が示すように、ワーク2で鏡面反射した光はリーダ3の筐体が存在する方向には向かわない。鏡面反射光が向かう先に何らかの物体7(たとえば、人間の手など)が存在すると、鏡面反射光のうちその物体7で反射した光の成分がワーク2の表面に向かい、そこで再び反射して、撮像素子31に入射してしまうことがある。図9(F)は斜め取付けの際に撮像素子31により撮像された画像の一例を示している。図9(F)が示すように、物体7が画像に写りこんでしまい、デコード誤りの原因となり得る。このようにリーダ3の頂面側を上げ、底面側を下げるようなスキュー角に設定すると、コード6の画像は物体7の影響を受ける。   FIG. 9E is a side view when the leader 3 is obliquely attached to the workpiece 2. As shown in FIG. 9E, the light specularly reflected by the work 2 does not travel in the direction in which the housing of the reader 3 exists. If there is some object 7 (for example, a human hand) ahead of the specular reflection light, the component of the light reflected by the object 7 out of the specular reflection light is directed toward the surface of the work 2 and is reflected again there. The light may enter the image sensor 31. FIG. 9F shows an example of an image picked up by the image pickup device 31 during oblique mounting. As shown in FIG. 9F, the object 7 appears in the image, which may cause a decoding error. When the skew angle is set such that the top surface side of the reader 3 is raised and the bottom surface side is lowered in this way, the image of the code 6 is affected by the object 7.

<拡散部材の構成>
図10(A)ないし図10(C)を用いてリーダ3の筐体に対して着脱可能な拡散部材を有したアタッチメントフードについて説明する。図10(A)はアタッチメントフード8が取り付けられたリーダ3を示す斜視図である。図10(B)はアタッチメントフード8が取り付けられたリーダ3の左側面98を示す側面図である。図10(C)はアタッチメントフード8が取り付けられたリーダ3により取得されたコード6の画像を示す図である。アタッチメントフード8の内部には拡散部材が設けられており、照明光の指向角度を増大させる。
<Configuration of diffusion member>
An attachment hood having a diffusing member that can be attached to and detached from the housing of the reader 3 will be described with reference to FIGS. 10 (A) to 10 (C). FIG. 10A is a perspective view showing the reader 3 to which the attachment hood 8 is attached. FIG. 10B is a side view showing the left side surface 98 of the reader 3 to which the attachment hood 8 is attached. FIG. 10C is a diagram showing an image of the code 6 acquired by the reader 3 to which the attachment hood 8 is attached. A diffusion member is provided inside the attachment hood 8 to increase the directivity angle of the illumination light.

図10(A)などが示すように、アタッチメントフード8はリーダ3の窓部11を覆うように取り付けられる。リーダ3からアタッチメントフード8を着脱可能としたのは、アタッチメントフード8を取り付けた方がマッチングレベルが向上するワーク2が存在したり、アタッチメントフード8を取り付けない方がマッチングレベルが向上するワーク2が存在したりするからである。ユーザがワーク2の種類に応じてアタッチメントフード8を取り付けたり、取り外したりすることで、マッチングレベルを容易に向上させることができるようになる。また、アタッチメントフード8をオプション部品として提供することで、リーダ3で読取可能なワーク2やコード6の組み合わせを増やすことが可能となろう。ユーザはすでに購入済みのリーダ3に対して新たにアタッチメントフード8を購入するだけで、読取可能なワーク2やコード6の組み合わせを増やすことが可能となるため、生産ラインの設備コストを削減できよう。   As shown in FIG. 10A and the like, the attachment hood 8 is attached so as to cover the window portion 11 of the reader 3. The attachment hood 8 can be attached to and detached from the reader 3 because there is a workpiece 2 that has a higher matching level when the attachment hood 8 is attached, or a workpiece 2 that has a higher matching level when the attachment hood 8 is not attached. Because it exists. The user can easily improve the matching level by attaching or removing the attachment hood 8 according to the type of the work 2. Further, by providing the attachment hood 8 as an optional part, it will be possible to increase the number of combinations of the workpiece 2 and the code 6 that can be read by the reader 3. The user can increase the number of combinations of readable workpieces 2 and codes 6 simply by purchasing a new attachment hood 8 with respect to the reader 3 that has already been purchased. .

図10(B)が示すように、リーダ3の取付け角度(スキュー角)はワーク2の表面と平行になる角度から数度(例:8度以上かつ14度以下)だけ傾いている。これによりワーク2の法線方向と照明光の光軸(および撮像素子31の撮像面の法線方向)とが平行とならないため、強力な鏡面反射光が撮像素子31に入射しないようになる。図10(C)が示すように、コード6は十分なコントラストを有した画像となるため、マッチングレベルが向上する。   As shown in FIG. 10B, the attachment angle (skew angle) of the leader 3 is inclined by several degrees (eg, 8 degrees or more and 14 degrees or less) from the angle parallel to the surface of the workpiece 2. As a result, the normal direction of the workpiece 2 and the optical axis of the illumination light (and the normal direction of the imaging surface of the imaging device 31) are not parallel, so that strong specular reflected light does not enter the imaging device 31. As shown in FIG. 10C, since the code 6 becomes an image having sufficient contrast, the matching level is improved.

<アタッチメントフードの構造>
図11はアタッチメントフード8の構造を示す分解図である。アタッチメントフード8は複数の部品から構成されている。第一アタッチメントケース100は、アタッチメントフード8の外装を成す構造部材である。第一アタッチメントケース100の前面と後面には照明光を通過させるために開放されている。第一アタッチメントケース100の右側面と左側面とには、筐体9に設けられたネジ穴45に対応したスルーホール102が設けられている。アタッチメントフード8をリーダ3にあてがって位置決めし、スルーホール102にネジ101を差し込み、ネジ101をネジ穴45に螺合させる。これにより、アタッチメントフード8がリーダ3に固定される。このようなネジによる締結構造を採用することで、アタッチメントフード8の着脱が容易になる。嵌合構造など締結構造以外の固定手段が採用されてもよい。アタッチメントフード8の底面にも2つのスルーホール104が設けられており、ネジ103が挿入される。ネジ103は、第一アタッチメントケース100に第二アタッチメントケース110を固定するための固定部材である。第一アタッチメントケース100の概ね中央には撮像素子31の光軸が通過する筒状の遮光壁105が設けられている。本実施形態では、撮像素子31の光軸と発光素子26〜29からの照明光の光軸とが平行である。つまり、第一アタッチメントケース100の内部を照明光とワーク2からの反射光とが通過する。第一アタッチメントケース100内で照明光が内部反射して撮像素子31に入射すると、著しくコード6のマッチングレベルが低下することがある。そこで、本実施形態では、筒状の遮光壁105を設けることで、第一アタッチメントケース100の内部で反射した照明光が撮像素子31に入射しないようにしている。このように第一アタッチメントケース100には、アタッチメントフード8の内部において第一照明部からの光と第二照明部からの光とが撮像素子31の光軸上に漏れ出さないようにするための筒状の遮光壁が設けられていてもよい。
<Structure of attachment hood>
FIG. 11 is an exploded view showing the structure of the attachment hood 8. The attachment hood 8 is composed of a plurality of parts. The first attachment case 100 is a structural member that forms the exterior of the attachment hood 8. The front surface and the rear surface of the first attachment case 100 are opened to allow illumination light to pass through. Through holes 102 corresponding to the screw holes 45 provided in the housing 9 are provided on the right side surface and the left side surface of the first attachment case 100. The attachment hood 8 is positioned with respect to the reader 3, the screw 101 is inserted into the through hole 102, and the screw 101 is screwed into the screw hole 45. Thereby, the attachment hood 8 is fixed to the reader 3. By adopting such a fastening structure with screws, the attachment hood 8 can be easily attached and detached. Fixing means other than a fastening structure such as a fitting structure may be employed. Two through holes 104 are also provided on the bottom surface of the attachment hood 8, and screws 103 are inserted therein. The screw 103 is a fixing member for fixing the second attachment case 110 to the first attachment case 100. A cylindrical light shielding wall 105 through which the optical axis of the image sensor 31 passes is provided in the approximate center of the first attachment case 100. In the present embodiment, the optical axis of the image sensor 31 and the optical axis of the illumination light from the light emitting elements 26 to 29 are parallel. That is, the illumination light and the reflected light from the work 2 pass through the first attachment case 100. If the illumination light is internally reflected in the first attachment case 100 and enters the image sensor 31, the matching level of the code 6 may be significantly reduced. Therefore, in the present embodiment, the cylindrical light shielding wall 105 is provided so that the illumination light reflected inside the first attachment case 100 does not enter the image sensor 31. As described above, the first attachment case 100 is configured to prevent the light from the first illumination unit and the light from the second illumination unit from leaking onto the optical axis of the image sensor 31 inside the attachment hood 8. A cylindrical light shielding wall may be provided.

第一拡散部材120は第一照明部である発光素子26、27から出射する光の出射軸上と第二照明部である発光素子28、29から出射する光の出射軸上とに設けられ、第一照明部から出射する光と第二照明部から出射する光を拡散する。ここでは第一照明部と第二照明部とで1枚の拡散部材を共用しているが、それぞれ個別の拡散部材が設けられてもよい。第一照明部の拡散度と第二照明部の拡散度を拡散部材の厚みや素材によって変更する場合には、後者が有利であろう。前者は部品点数を削減できる点で有利であろう。結像レンズ122は撮像素子31の光軸上に配置され、コード6の像を撮像素子31に結像する光学部品である。第一拡散部材120は、たとえば、一定の厚みを持った拡散板である。第一拡散部材120のほぼ中央にはU字型の切り欠き121が設けられており、ここを撮像素子31の光軸が通る。つまり、撮像素子31の光軸上に結像レンズ122が配置される。U字型の切り欠き121のサイズは、第一アタッチメントケース100に設けられた筒状の遮光壁105よりも若干大きくなっている。これは、第一拡散部材120を第一アタッチメントケース100の前面まで内挿できるようにするためである。なお、結像レンズ122は筒状の遮光壁105の後端に配置され、そこに固定される。結像レンズ122を設けることで非常に小さなコード6であっても拡大して撮像することが可能となる。   The first diffusing member 120 is provided on the emission axis of light emitted from the light emitting elements 26 and 27 that are the first illumination part and on the emission axis of light emitted from the light emitting elements 28 and 29 that are the second illumination part, The light emitted from the first illumination unit and the light emitted from the second illumination unit are diffused. Here, the first illuminating unit and the second illuminating unit share one diffusing member, but individual diffusing members may be provided. The latter will be advantageous when the diffusivity of the first illuminating unit and the diffusivity of the second illuminating unit are changed depending on the thickness and material of the diffusing member. The former will be advantageous in that the number of parts can be reduced. The imaging lens 122 is an optical component that is disposed on the optical axis of the image sensor 31 and forms an image of the code 6 on the image sensor 31. The first diffusion member 120 is, for example, a diffusion plate having a certain thickness. A U-shaped notch 121 is provided substantially at the center of the first diffusing member 120, and the optical axis of the image sensor 31 passes therethrough. That is, the imaging lens 122 is disposed on the optical axis of the image sensor 31. The size of the U-shaped notch 121 is slightly larger than the cylindrical light shielding wall 105 provided in the first attachment case 100. This is because the first diffusion member 120 can be inserted up to the front surface of the first attachment case 100. The imaging lens 122 is disposed at the rear end of the cylindrical light shielding wall 105 and is fixed thereto. By providing the imaging lens 122, even a very small code 6 can be enlarged and imaged.

第二アタッチメントケース110は、第一アタッチメントケース100の内壁よりもサイズが小さく、第一アタッチメントケース100の内部に挿入可能となっている。第一アタッチメントケース100の前面側にある縁部と、第二アタッチメントケース110の前面側とによって第一拡散部材120が挟持される。第二アタッチメントケース110の内部は複数の遮光壁(遮蔽壁)によって複数の空間に分割されている。第一空間111は発光素子26からの照明光が通過する空間である。第二空間112は発光素子27からの照明光が通過する空間である。第三空間113は発光素子28、29からの照明光が通過する空間である。第四空間115は撮像素子31の光軸が通っており、ワーク2からの反射光が通過する空間である。なお、第四空間115の内部に筒状の遮光壁105が配置される。第二アタッチメントケース110に筒状の遮光壁105が設けられてもよい。筒状の遮光壁105は第一アタッチメントケース100と第二アタッチメントケース110との双方に設けられていてもよいし、いずれか一方にのみ設けられていてもよい。   The second attachment case 110 is smaller in size than the inner wall of the first attachment case 100 and can be inserted into the first attachment case 100. The first diffusion member 120 is sandwiched between the edge portion on the front surface side of the first attachment case 100 and the front surface side of the second attachment case 110. The inside of the second attachment case 110 is divided into a plurality of spaces by a plurality of light shielding walls (shielding walls). The first space 111 is a space through which illumination light from the light emitting element 26 passes. The second space 112 is a space through which illumination light from the light emitting element 27 passes. The third space 113 is a space through which illumination light from the light emitting elements 28 and 29 passes. The fourth space 115 is a space through which the optical axis of the image sensor 31 passes and the reflected light from the work 2 passes. A cylindrical light shielding wall 105 is disposed inside the fourth space 115. A cylindrical light shielding wall 105 may be provided on the second attachment case 110. The cylindrical light shielding wall 105 may be provided on both the first attachment case 100 and the second attachment case 110, or may be provided on only one of them.

両面テープ130は第二拡散部材140を第二アタッチメントケース110に固定するための固定部材である。この例では、第二拡散部材140が第二アタッチメントケース110の後面下側(第四空間115に対応した位置)に固定される。両面テープ130には、発光素子28、29からの照明光が通過するための切り欠き132と撮像素子31の光軸が通る半円状の切り欠き131とを有している。   The double-sided tape 130 is a fixing member for fixing the second diffusion member 140 to the second attachment case 110. In this example, the second diffusion member 140 is fixed to the lower side of the rear surface of the second attachment case 110 (a position corresponding to the fourth space 115). The double-sided tape 130 has a notch 132 through which illumination light from the light emitting elements 28 and 29 passes and a semicircular notch 131 through which the optical axis of the image sensor 31 passes.

第二拡散部材140は、撮像素子31の光軸が通る半円状の切り欠き141を有している。この例では第二拡散部材140が発光素子28、29からの照明光が通過する位置に設けられているが、発光素子26、27からの照明光が通過する位置に設けられてもよい。第一照明部と第二照明部とのいずれか一方からの光は、第一拡散部材120と第二拡散部材140との両方を通過する。よって、これは、第一拡散部材120のみを通過する照明光と比較して、より大きく拡散されることになる。なお、第一拡散部材120の厚みと第二拡散部材140の厚みとは目標とされる拡散度に応じて適宜の厚みを採用可能であるが、両者を同一の厚みとすれば、同一の素材から第一拡散部材120と第二拡散部材140とを製作できるための、製造効率が向上しよう。   The second diffusing member 140 has a semicircular cutout 141 through which the optical axis of the image sensor 31 passes. In this example, the second diffusing member 140 is provided at a position where the illumination light from the light emitting elements 28 and 29 passes, but may be provided at a position where the illumination light from the light emitting elements 26 and 27 passes. Light from either the first illumination unit or the second illumination unit passes through both the first diffusion member 120 and the second diffusion member 140. Therefore, this is more diffused than the illumination light that passes only through the first diffusion member 120. The thickness of the first diffusing member 120 and the thickness of the second diffusing member 140 can be appropriately selected according to the target degree of diffusion, but if both are made the same thickness, the same material Therefore, the manufacturing efficiency of the first diffusion member 120 and the second diffusion member 140 can be improved.

円環状のレンズ支持部材150は筒状の遮光壁105の後端と協働して結像レンズ122を挟持して支持する部材であり、レンズ支持部材150の上縁はネジ151によって第一アタッチメントケース100に固定される。第一アタッチメントケース100において筒状の遮光壁105は、第一アタッチメントケース100の頂面から吊り下げられている。筒状の遮光壁105を吊り下げるための吊り下げ部材の後面にネジ穴が設けられており、そこにネジ151が螺合する。   An annular lens support member 150 is a member that holds and supports the imaging lens 122 in cooperation with the rear end of the cylindrical light shielding wall 105, and the upper edge of the lens support member 150 is a first attachment by a screw 151. It is fixed to the case 100. In the first attachment case 100, the cylindrical light shielding wall 105 is suspended from the top surface of the first attachment case 100. A screw hole is provided in the rear surface of the suspension member for suspending the cylindrical light shielding wall 105, and the screw 151 is screwed there.

図12(A)ないし図12(D)を用いてリーダ3のスキュー角(取り付け角度)θについて説明する。図12(A)はリーダ3の撮像素子31の光軸とワーク2の表面の法線とを平行にしたとき(正面取り付けしたとき)の側面図である。なお、図12(A)が示すように、アタッチメントフード8の前面とワーク2の表面とは平行にならないように、アタッチメントフード8の頂面の長さは底面の長さよりも短い。なお、ここでの長さは撮像素子31の光軸(一点破線)が通る方向である。図12(B)はリーダ3の撮像素子31の光軸とワーク2の表面の法線とを平行にしたとき(正面取り付けしたとき)に取得される画像の一例を示す図である。図12(B)が示すように、リーダ3を正面取付けすると、アタッチメントフード8の前面が画像に写りこんでしまい、コード6と重なってしまうようになり、コード6のマッチングレベルが低下する。   The skew angle (attachment angle) θ of the reader 3 will be described with reference to FIGS. 12 (A) to 12 (D). FIG. 12A is a side view when the optical axis of the image sensor 31 of the reader 3 is parallel to the normal of the surface of the workpiece 2 (when front mounted). As shown in FIG. 12A, the length of the top surface of the attachment hood 8 is shorter than the length of the bottom surface so that the front surface of the attachment hood 8 and the surface of the work 2 are not parallel. Note that the length here is the direction along which the optical axis (one-dot broken line) of the image sensor 31 passes. FIG. 12B is a diagram illustrating an example of an image acquired when the optical axis of the image sensor 31 of the reader 3 and the normal line of the surface of the workpiece 2 are parallel (when mounted in front). As shown in FIG. 12B, when the reader 3 is mounted on the front surface, the front surface of the attachment hood 8 is reflected in the image and overlaps with the cord 6, and the matching level of the cord 6 is lowered.

図12(C)はリーダ3の撮像素子31の光軸とワーク2の表面の法線とを平行にしなかったとき(斜め取り付けしたとき)の側面図である。図12(D)はリーダ3の撮像素子31の光軸とワーク2の表面の法線とを平行にしなかったとき(斜め取り付けしたとき)に取得される画像の一例を示す図である。スキュー角θが0度以上になるように、とりわけ、スキュー角θが8度以上ないし14度以下となるようにリーダ3を固定することで、コード6のマッチングレベルが増加する。これは、図12(D)が示すように、アタッチメントフード8の前面のうち撮像素子31への入射口が画像に写りこみにくくなるためである。図12(B)や図12(D)において入射口の像は半円状の黒い影となっている部分である。図12(C)によれば、アタッチメントフード8の前面とワーク2の表面とは平行になっている。このようにアタッチメントフード8の前面をワーク2の表面に対して概ね平行となるようにリーダ3を固定することで、リーダ3のスキュー角θが適切な角度に設定される。つまり、アタッチメントフード8の前面の法線方向は撮像素子31の光軸方向に対してθだけ傾いている。これにより、ユーザは容易にリーダ3のスキュー角θを推奨角度に設定することが可能となる。なお、推奨角度は、リーダ3の読み取り距離や読取視野などに応じて設定される。   FIG. 12C is a side view when the optical axis of the image sensor 31 of the reader 3 and the normal of the surface of the work 2 are not parallel (when obliquely attached). FIG. 12D is a diagram illustrating an example of an image acquired when the optical axis of the image sensor 31 of the reader 3 and the normal of the surface of the workpiece 2 are not parallel (when obliquely attached). The matching level of the code 6 is increased by fixing the reader 3 so that the skew angle θ is not less than 0 degrees, and in particular, the skew angle θ is not less than 8 degrees and not more than 14 degrees. This is because, as shown in FIG. 12D, the entrance to the image sensor 31 in the front surface of the attachment hood 8 is less likely to appear in the image. In FIGS. 12B and 12D, the image of the entrance is a semicircular black shadow. According to FIG.12 (C), the front surface of the attachment hood 8 and the surface of the workpiece | work 2 are parallel. Thus, by fixing the reader 3 so that the front surface of the attachment hood 8 is substantially parallel to the surface of the workpiece 2, the skew angle θ of the reader 3 is set to an appropriate angle. That is, the normal direction of the front surface of the attachment hood 8 is inclined by θ with respect to the optical axis direction of the image sensor 31. As a result, the user can easily set the skew angle θ of the reader 3 to the recommended angle. The recommended angle is set according to the reading distance of the reader 3, the reading visual field, and the like.

図13(A)は取り付けガイド160を貼付されたアタッチメントフードの左側面を示す図である。図13(B)は取り付けガイド160の一例を示す図である。取り付けガイド160はユーザなどに推奨されるリーダ3の取り付け角度を案内する案内部材である。取り付けガイド160には光軸方向を示す矢印が描画されている。取り付けガイド160には、アタッチメントフード8を取り付けられたリーダ3を模写した絵が含まれている。さらに、ワーク2に対してアタッチメントフード8の前面を平行にすることで、スキュー角θが推奨角度(例:8度〜14度)に設定されることも示されている。ユーザは取り付けガイド160を見ることでスキュー角θの推奨角度を容易に把握できる。つまり、ユーザは容易にスキュー角θを推奨角度に調整できるようになろう。   FIG. 13A is a view showing the left side surface of the attachment hood to which the attachment guide 160 is attached. FIG. 13B shows an example of the attachment guide 160. The attachment guide 160 is a guide member that guides the attachment angle of the reader 3 recommended by the user or the like. An arrow indicating the optical axis direction is drawn on the attachment guide 160. The attachment guide 160 includes a picture that replicates the reader 3 to which the attachment hood 8 is attached. Further, it is also shown that the skew angle θ is set to a recommended angle (eg, 8 degrees to 14 degrees) by making the front surface of the attachment hood 8 parallel to the workpiece 2. The user can easily grasp the recommended angle of the skew angle θ by looking at the attachment guide 160. In other words, the user can easily adjust the skew angle θ to the recommended angle.

なお、リーダ3の底面側を上げ、頂面側を下げるようなスキュー角θに設定すると、ワーク2で鏡面反射した光はリーダ3の前面側のうち腹部に向かう。腹部を艶消し黒色などの塗料で塗装することで、腹部に向かった光のほとんどはそこで吸収されてしまうため、コード6へと向かう光は減少する。よって、図9(E)に示したような物体7の影響を低減できる。なお、リーダ3の頂面側に物体7が存在しないケースでは、頂面が長く、底面が短くなるような寸法のアタッチメントフード8が提供されてもよい。   If the skew angle θ is set such that the bottom surface side of the reader 3 is raised and the top surface side is lowered, the light that is specularly reflected by the work 2 goes to the abdomen of the front surface side of the reader 3. By painting the abdomen with a matte black paint or the like, most of the light toward the abdomen is absorbed there, so that the light toward the cord 6 is reduced. Therefore, the influence of the object 7 as shown in FIG. In addition, in the case where the object 7 does not exist on the top surface side of the reader 3, an attachment hood 8 having a dimension such that the top surface is long and the bottom surface is short may be provided.

<暗視野照明モードと明視野照明モードとの切り替え>
ワーク2の表面の素材や表面加工の種類に応じてコード6を読み取りやすい照明モードが異なることがある。上述したように本実施形態では発光素子26、27を含む第一照明部と、発光素子28、29を含む第二照明部とを有している。そこで、撮像制御部62が第一照明部を点灯させ第二照明部を消灯する照明モードと第二照明部を点灯させ第一照明部を消灯する照明モードとを切り替えることで、暗視野照明モードと明視野照明モードとが切り替わる。
<Switching between dark field illumination mode and bright field illumination mode>
The illumination mode in which the code 6 can be easily read may differ depending on the material of the surface of the workpiece 2 and the type of surface processing. As described above, the present embodiment includes the first illumination unit including the light emitting elements 26 and 27 and the second illumination unit including the light emitting elements 28 and 29. Therefore, the imaging control unit 62 switches between the illumination mode in which the first illumination unit is turned on and the second illumination unit is turned off, and the illumination mode in which the second illumination unit is turned on and the first illumination unit is turned off, thereby dark field illumination mode. And bright-field illumination mode.

図14(A)は明視野照明モードを説明するための側面図である。リーダ3は8度ないし14度の範囲内になるスキュー角θ1で固定されている。第一照明部からの照明光の入射角はα1となる。この場合のコード6に対する照明のアングルは、図14(C)で示すケースと比較していわゆるローアングル照明となる。図14(B)は明視野照明モードにより取得されたコード6の画像の一例を示す図である。コード6のうち彫りこまれていない部分やコード6の周囲にあるワーク2の表面部分は黒く写り、彫りこまれた部分は白く写る。これは、ワーク2の表面部分などでは鏡面反射が優勢となり、ほとんどの光は撮像素子31に入射しないからである。一方で、彫りこまれた部分では拡散反射が優勢となり、ワーク2の表面部分と比較すると撮像素子31に入射する光の量が増加するため、彫りこまれた部分は白く写る。このようにコード6の彫りこまれた部分が白く写り、ワーク2の表面部分が黒く写るための、いわゆる明視野画像が得られることになる。   FIG. 14A is a side view for explaining the bright field illumination mode. The reader 3 is fixed at a skew angle θ1 that falls within a range of 8 degrees to 14 degrees. The incident angle of the illumination light from the first illumination unit is α1. In this case, the illumination angle with respect to the cord 6 is a so-called low angle illumination as compared with the case shown in FIG. FIG. 14B is a diagram illustrating an example of an image of the code 6 acquired in the bright field illumination mode. A portion of the cord 6 that is not engraved and a surface portion of the work 2 around the cord 6 appear black, and a portion that is engraved appears white. This is because specular reflection is dominant on the surface portion of the workpiece 2 and most of the light does not enter the image sensor 31. On the other hand, diffuse reflection is dominant in the engraved portion, and the amount of light incident on the image sensor 31 is increased as compared with the surface portion of the workpiece 2, so that the engraved portion appears white. In this way, a so-called bright field image is obtained in which the engraved portion of the code 6 appears white and the surface portion of the workpiece 2 appears black.

図14(C)は暗視野照明モードを説明するための側面図である。リーダ3は8度ないし14度の範囲内になるスキュー角θ1で固定されている。第二照明部からの照明光の入射角はα2となる。ここでα2<α1が成り立っている。つまり、暗視野照明モードにおけるコード6に対する照明のアングルは、明視野照明モードにおけるアングルと比較するとハイアングルとなる。図14(D)は暗視野照明モードにより取得されたコード6の画像の一例を示す図である。コード6のうち彫りこまれていない部分やコード6の周囲にあるワーク2の表面部分は白く写り、彫りこまれた部分は黒く写る。これは、ワーク2の表面部分などでは鏡面反射が優勢となり、ほとんどの光が撮像素子31に入射するからである。一方で、彫りこまれた部分では拡散反射が優勢となり、ワーク2の表面部分と比較すると撮像素子31に入射する光の量が減少するため、彫りこまれた部分は黒く写る。このようにコード6の彫りこまれた部分が黒く写り、ワーク2の表面部分が白く写るための、いわゆる暗視野画像が得られることになる。   FIG. 14C is a side view for explaining the dark field illumination mode. The reader 3 is fixed at a skew angle θ1 that falls within a range of 8 degrees to 14 degrees. The incident angle of the illumination light from the second illumination unit is α2. Here, α2 <α1 holds. That is, the illumination angle with respect to the code 6 in the dark field illumination mode is a high angle compared to the angle in the bright field illumination mode. FIG. 14D is a diagram illustrating an example of an image of the code 6 acquired in the dark field illumination mode. A portion of the cord 6 that is not engraved and a surface portion of the work 2 around the cord 6 appear white, and a portion that is engraved appears black. This is because specular reflection is dominant on the surface portion of the workpiece 2 and most of the light is incident on the image sensor 31. On the other hand, diffuse reflection is dominant in the engraved portion, and the amount of light incident on the image sensor 31 is reduced as compared with the surface portion of the workpiece 2, so that the engraved portion appears black. Thus, a so-called dark field image is obtained in which the engraved portion of the code 6 appears black and the surface portion of the work 2 appears white.

このように本実施形態では、撮像素子31の光軸よりも頂面側に配置された第一照明部を点灯し、かつ、撮像素子31の光軸よりも底面側に配置された第二照明部を消灯することで明視野照明モードが実現される。一方で、第一照明部を消灯し、かつ、第二照明部を点灯することで暗視野照明モードが実現される。ワーク2に応じてどちらの照明モードが適しているかは変化しうる。そこで、事前にチューニングを実行することでより適切な照明モードが選択されてもよい。   As described above, in the present embodiment, the first illumination unit disposed on the top surface side with respect to the optical axis of the image sensor 31 is turned on, and the second illumination disposed on the bottom surface side with respect to the optical axis of the image sensor 31. The bright field illumination mode is realized by turning off the light. On the other hand, the dark field illumination mode is realized by turning off the first illumination unit and turning on the second illumination unit. Depending on the work 2, which illumination mode is suitable can be changed. Therefore, a more appropriate illumination mode may be selected by performing tuning in advance.

図15はチューニング処理の一例を示すフローチャートである。ここではリーダ3のチューニング部65がチューニング処理を実行するものとして説明するが、コンピュータ4の演算部81がチューニング処理の一部を実行してもよい。なお、マッチングレベルに代えて読み取り成功率が求められてもよい。   FIG. 15 is a flowchart illustrating an example of tuning processing. Here, the tuning unit 65 of the reader 3 is described as executing the tuning process, but the calculation unit 81 of the computer 4 may execute a part of the tuning process. Note that a reading success rate may be obtained instead of the matching level.

S1でチューニング部65は明視野照明モードを選択し、撮像制御部62を通じて照明部52に対して明視野照明モードで発光するよう指示する。明視野照明モードでは発光素子26、27が点灯するモードである。なお、発光素子28、29は消灯している。   In S <b> 1, the tuning unit 65 selects the bright field illumination mode, and instructs the illumination unit 52 to emit light in the bright field illumination mode through the imaging control unit 62. In the bright field illumination mode, the light emitting elements 26 and 27 are turned on. The light emitting elements 28 and 29 are turned off.

S2でチューニング部65は光量を段階的に変化させながらコードを読み取り、マッチングレベルを求める。たとえば、チューニング部65は照明部52に対してn個ある光量レベルうちの第1レベルを設定して発光素子26、27を点灯させる。さらにチューニング部65はAF制御部61にAF制御を開始させ、AF制御部61から合焦したことが報告されると、撮像制御部62にコード6の撮像を実行させる。チューニング部65はデコード部53にコード6の画像を送ってデコードを実行させ、演算部63にデコード結果を用いてマッチングレベルを演算させる。マッチングレベルは、n個ある光量レベルのそれぞれについて求められる。   In S <b> 2, the tuning unit 65 reads the code while changing the light amount stepwise to obtain a matching level. For example, the tuning unit 65 sets the first level among the n light quantity levels for the illumination unit 52 to light the light emitting elements 26 and 27. Further, the tuning unit 65 causes the AF control unit 61 to start AF control, and when the AF control unit 61 reports that it is in focus, causes the imaging control unit 62 to execute the code 6 imaging. The tuning unit 65 sends the image of the code 6 to the decoding unit 53 to execute decoding, and causes the calculation unit 63 to calculate the matching level using the decoding result. The matching level is obtained for each of the n light quantity levels.

S3でチューニング部65は暗視野照明モードを選択し、撮像制御部62を通じて照明部52に対して暗視野照明モードで発光するよう指示する。暗視野照明モードでは発光素子28、29が点灯する。なお、発光素子26、27は消灯している。   In S3, the tuning unit 65 selects the dark field illumination mode, and instructs the illumination unit 52 to emit light in the dark field illumination mode through the imaging control unit 62. In the dark field illumination mode, the light emitting elements 28 and 29 are turned on. The light emitting elements 26 and 27 are turned off.

S4でチューニング部65は光量を段階的に変化させながらコードを読み取り、マッチングレベルを求める。たとえば、チューニング部65は撮像制御部62を通じて照明部52に対してn個ある光量レベルうちの第1レベルを設定して発光素子28、29を点灯させる。さらにチューニング部65はAF制御部61にAF制御を開始させ、AF制御部61から合焦したことが報告されると、撮像制御部62にコード6の撮像を実行させる。チューニング部65はデコード部53にコード6の画像を送ってデコードを実行させ、演算部63にデコード結果を用いてマッチングレベルを演算させる。マッチングレベルは、n個ある光量レベルのそれぞれについて求められる。   In S4, the tuning unit 65 reads the code while gradually changing the light amount, and obtains a matching level. For example, the tuning unit 65 sets the first level among the n light quantity levels for the illumination unit 52 through the imaging control unit 62 and turns on the light emitting elements 28 and 29. Further, the tuning unit 65 causes the AF control unit 61 to start AF control, and when the AF control unit 61 reports that it is in focus, causes the imaging control unit 62 to execute the code 6 imaging. The tuning unit 65 sends the image of the code 6 to the decoding unit 53 to execute decoding, and causes the calculation unit 63 to calculate the matching level using the decoding result. The matching level is obtained for each of the n light quantity levels.

S5でチューニング部65は、明視野照明モードについてのn個のマッチングレベルと暗視野照明モードについてのn個のマッチングレベルとのうちで最も高いマッチングレベルであった照明モードと光量レベルとの組み合わせを決定する。これによりワーク2とコード6との組み合わせに適した照明モードと光量レベルとが選択され、設定データ73に保存される。この設定データ73は、ライン1を搬送されるワーク2についてのコード6の読み取りが開始されると、制御ユニット60により読み出され、撮像制御部62に設定される。撮像制御部62は設定データ73にしたがって照明モードと光量レベルで発光素子を点灯させる。   In S5, the tuning unit 65 selects a combination of the illumination mode and the light amount level that is the highest matching level among the n matching levels for the bright field illumination mode and the n matching levels for the dark field illumination mode. decide. As a result, an illumination mode and a light amount level suitable for the combination of the workpiece 2 and the code 6 are selected and stored in the setting data 73. The setting data 73 is read by the control unit 60 and set in the imaging control unit 62 when reading of the code 6 for the workpiece 2 conveyed on the line 1 is started. The imaging control unit 62 turns on the light emitting element in the illumination mode and the light amount level according to the setting data 73.

なお、照明モードと光量レベルとの各組み合わせに対するマッチングレベルなどのデコード結果71はチューニング部65からコンピュータ4に送信され、表示部84に表示されてもよい。また、各組合せに対して取得された画像データ72もチューニング部65からコンピュータ4に送信され、表示部84に表示されてもよい。   The decoding result 71 such as the matching level for each combination of the illumination mode and the light amount level may be transmitted from the tuning unit 65 to the computer 4 and displayed on the display unit 84. The image data 72 acquired for each combination may also be transmitted from the tuning unit 65 to the computer 4 and displayed on the display unit 84.

<スキュー角と拡散部材の有無との関係>
ここではスキュー角θと拡散部材の有無との関係について説明する。ここではいずれも発光素子26、27を点灯し、発光素子28、29は消灯している。
<Relationship between skew angle and presence / absence of diffusion member>
Here, the relationship between the skew angle θ and the presence or absence of the diffusing member will be described. Here, the light emitting elements 26 and 27 are both turned on, and the light emitting elements 28 and 29 are turned off.

図16(A)は拡散部材を設けずに、スキュー角θを12度に設定したときに取得されたコード6の画像を示している。図16(B)は拡散部材を設けずに、スキュー角θを8度に設定したときに取得されたコード6の画像を示している。図16(A)と図16(B)とを比較すると分かるように、スキュー角θが小さくなると、コード6の読み取り画像のコントラストが低下する。これはマッチングレベルを低下させるであろう。   FIG. 16A shows an image of the code 6 obtained when the skew angle θ is set to 12 degrees without providing the diffusing member. FIG. 16B shows an image of the code 6 obtained when the skew angle θ is set to 8 degrees without providing the diffusing member. As can be seen by comparing FIG. 16A and FIG. 16B, when the skew angle θ decreases, the contrast of the read image of the code 6 decreases. This will reduce the matching level.

図16(C)は拡散部材を設け、かつ、スキュー角θを12度に設定したときに取得されたコード6の画像を示している。図16(D)は拡散部材を設け、かつ、スキュー角θを8度に設定したときに取得されたコード6の画像を示している。図16(C)と図16(D)とを比較すると分かるように、スキュー角θの違いがコード6の読み取り画像のコントラストに与える影響が減少している。さらに、図16(B)と図16(D)とを比較すると分かるように、スキュー角θが8度であっても、コード6の読み取り画像のコントラストは十分なものに改善されている。したがって、マッチングレベルも十分な値となる。このように、拡散部材を設けられたアタッチメントフード8をリーダ3に取り付けることで、スキュー角θの自由度を増加させることができる。つまり、ユーザにとって取り付けの自由度が増すことになるため、様々な製造ラインにリーダ3を導入できるようになろう。   FIG. 16C shows an image of the code 6 obtained when the diffusion member is provided and the skew angle θ is set to 12 degrees. FIG. 16D shows an image of the code 6 obtained when the diffusion member is provided and the skew angle θ is set to 8 degrees. As can be seen by comparing FIG. 16C and FIG. 16D, the influence of the difference in the skew angle θ on the contrast of the read image of the code 6 is reduced. Further, as can be seen from a comparison between FIG. 16B and FIG. 16D, even when the skew angle θ is 8 degrees, the contrast of the read image of the code 6 is improved sufficiently. Therefore, the matching level is also a sufficient value. Thus, by attaching the attachment hood 8 provided with the diffusing member to the reader 3, the degree of freedom of the skew angle θ can be increased. That is, since the degree of freedom of attachment increases for the user, the reader 3 can be introduced into various production lines.

<拡散部材の枚数>
本実施形態では第一照明部と第二照明部とで拡散部材の枚数を変えている。両者の拡散部材の枚数は同一であってもよいが、これらを異ならしめることの利点について説明する。ここではいずれも発光素子26、27を消灯し、発光素子28、29は点灯している。
<Number of diffusion members>
In the present embodiment, the number of diffusion members is changed between the first illumination unit and the second illumination unit. The number of both diffusion members may be the same, but the advantage of making them different will be described. Here, the light emitting elements 26 and 27 are both turned off, and the light emitting elements 28 and 29 are turned on.

図17(A)は拡散部材を設けずに、スキュー角θを12度に設定したときに取得されたコード6の画像を示している。図17(B)は1枚の拡散部材を設け、かつ、スキュー角θを12度に設定したときに取得されたコード6の画像を示している。図17(C)は2枚の拡散部材を設け、かつ、スキュー角θを12度に設定したときに取得されたコード6の画像を示している。とりわけ、図17(A)ないし図17(C)を比較すると、拡散部材の拡散度にも適切な値があることがわかる。たとえば、図17(B)と図17(C)とを比較すると分かるように、発光素子28、29については1枚の拡散部材だけでは拡散度が不足し、画像の一部に白とびが発生してしまう。よって、撮像素子31の光軸よりも底面側に配置された発光素子28、29については2枚の拡散部材が採用されるべきであろう。なお、撮像素子31の光軸よりも頂面側に配置された発光素子26、27については、図16(C)が示すように、1枚の拡散部材が採用されるべきであろう。拡散部材の枚数を増加させると、コード6から戻ってくる光量が減少してしまい、マッチングレベルを低下させるからである。   FIG. 17A shows an image of the code 6 obtained when the skew angle θ is set to 12 degrees without providing the diffusing member. FIG. 17B shows an image of the code 6 obtained when one diffusion member is provided and the skew angle θ is set to 12 degrees. FIG. 17C shows an image of the code 6 obtained when two diffusion members are provided and the skew angle θ is set to 12 degrees. In particular, comparing FIG. 17A to FIG. 17C, it can be seen that there is an appropriate value for the diffusion degree of the diffusion member. For example, as can be seen from a comparison between FIG. 17B and FIG. 17C, the light-emitting elements 28 and 29 have insufficient diffusivity with only one diffusing member, and whiteout occurs in part of the image. Resulting in. Therefore, two diffusing members should be adopted for the light emitting elements 28 and 29 arranged on the bottom side of the optical axis of the image pickup element 31. In addition, as for the light emitting elements 26 and 27 arranged on the top surface side with respect to the optical axis of the imaging element 31, a single diffusing member should be adopted as shown in FIG. This is because if the number of the diffusing members is increased, the amount of light returning from the cord 6 is reduced, and the matching level is lowered.

<まとめ>
本実施形態によれば、照明部52は筐体9の第一面側(前面96)にある第一領域(窓部11の一部である光出射領域)から光を出射する第一照明部(発光素子26、27)および第二照明部(発光素子28、29)を含む照明手段の一例である。撮像素子31は第一照明部の光の出射方向と第二照明部の光の出射方向と平行な光軸を有している。また、撮像素子31は第一領域とは異なる筐体9の第一面側にある第二領域(窓部11の一部である光入射領域)から入射する光であって、ワーク2からの反射光を受光することで、ワーク2に設けられたコード6を撮像する。デコード部53は撮像素子31により撮像されたコード6をデコードするデコード手段として機能する。アタッチメントフード8は、筐体9から着脱可能であり、第一領域および第二領域を包囲するアタッチメントフードの一例である。図11を用いて説明したように、アタッチメントフード8は、撮像素子31の光軸上に配置され、コード6の像を撮像素子31に結像する結像レンズ122を有している。結像レンズ122はクローズアップレンズとして機能するため、小さなサイズのコード6であっても拡大して撮像することが可能となる。なお、小さなサイズのコード6を撮像する場合、読み取り距離(コード6からリーダ3の窓部11までの距離)を短くすることになる。しかし、この場合、反射光の光量の多くが撮像素子31に入射してしまい、コード6のコントラストが低下してしまう。そこで、アタッチメントフード8は、第一照明部から出射する光の出射軸上と第二照明部から出射する光の出射軸上とに設けられ、第一照明部から出射する光と第二照明部から出射する光を拡散する拡散手段として第一拡散部材120を有している。第一拡散部材120を設けることで、照明光が拡散するため、とりわけ、撮像素子31に入射する鏡面反射光が減少する。これにより、コード6のコントラストが向上し、マッチングレベルが向上しよう。このように鏡面反射を起こすようなワーク2に付与されたコード6を精度よく読み取り可能なリーダ3が提供されるようになる。また、アタッチメントフード8を取り付けたり、取り外したりすることで結像レンズの有無を切り替えることが可能となる。これにより、適切な読み取り距離が異なる複数のワーク2やコード6についても容易にマッチングレベルを向上させることが可能となる。
<Summary>
According to the present embodiment, the illumination unit 52 emits light from a first region (light emission region that is a part of the window 11) on the first surface side (front surface 96) of the housing 9. It is an example of the illumination means containing (the light emitting elements 26 and 27) and the 2nd illumination part (light emitting elements 28 and 29). The imaging element 31 has an optical axis parallel to the light emission direction of the first illumination unit and the light emission direction of the second illumination unit. The image sensor 31 is light incident from a second region (light incident region that is a part of the window portion 11) on the first surface side of the housing 9, which is different from the first region. The cord 6 provided on the work 2 is imaged by receiving the reflected light. The decoding unit 53 functions as a decoding unit that decodes the code 6 imaged by the imaging device 31. The attachment hood 8 is detachable from the housing 9 and is an example of an attachment hood that surrounds the first region and the second region. As described with reference to FIG. 11, the attachment hood 8 includes the imaging lens 122 that is disposed on the optical axis of the image sensor 31 and forms an image of the code 6 on the image sensor 31. Since the imaging lens 122 functions as a close-up lens, it is possible to magnify and capture even a small size code 6. Note that when a small-sized code 6 is imaged, the reading distance (the distance from the code 6 to the window 11 of the reader 3) is shortened. However, in this case, much of the amount of reflected light is incident on the image sensor 31 and the contrast of the cord 6 is lowered. Therefore, the attachment hood 8 is provided on the emission axis of the light emitted from the first illumination unit and on the emission axis of the light emitted from the second illumination unit, and the light emitted from the first illumination unit and the second illumination unit The first diffusing member 120 is provided as a diffusing means for diffusing the light emitted from the light. By providing the first diffusing member 120, the illumination light is diffused, so that the specular reflected light incident on the image sensor 31 is reduced. This will improve the contrast of the code 6 and improve the matching level. Thus, the reader 3 capable of accurately reading the code 6 attached to the workpiece 2 that causes specular reflection is provided. In addition, it is possible to switch the presence or absence of the imaging lens by attaching or detaching the attachment hood 8. Thereby, it becomes possible to easily improve the matching level for a plurality of workpieces 2 and codes 6 having different appropriate reading distances.

上述したように、アタッチメントフード8はリーダ3からの取り外しが可能なため、ワーク2やコード6に応じて、アタッチメントフード8を取り付けたり、取り外したりすることが可能となる。これは、ワーク2やコード6に応じて、拡散部材があった方がマッチングレベルが向上したり、拡散部材がなかった方がマッチングレベルが向上したりすることがあるためである。ユーザはワーク2やコード6に応じてアタッチメントフード8を取り付けたり、取り外したりすることでマッチングレベルを向上させることが可能となる。   As described above, since the attachment hood 8 can be detached from the reader 3, the attachment hood 8 can be attached or detached according to the workpiece 2 or the cord 6. This is because, depending on the workpiece 2 and the cord 6, the matching level may be improved when the diffusing member is provided, or the matching level may be improved when the diffusing member is not provided. The user can improve the matching level by attaching or removing the attachment hood 8 according to the workpiece 2 or the cord 6.

図14、図15を用いて説明したように、照明部52は、第一照明部を点灯し、かつ、第二照明部を点灯しない第一照明モード(明視野照明モード)と、第一照明部を消灯し、かつ、第二照明部を点灯する第二照明モード(暗視野照明モード)とを有していてもよい。これによりワーク2に適した照明モードを選択できるようになる。   As described with reference to FIGS. 14 and 15, the illumination unit 52 lights the first illumination unit and does not light the second illumination unit, and the first illumination mode (bright field illumination mode) and the first illumination. The second illumination mode (dark field illumination mode) for turning off the light source and turning on the second illumination part may be provided. As a result, an illumination mode suitable for the workpiece 2 can be selected.

図11を用いて説明したように、第一拡散部材120は、第一照明部から出射する光の出射軸上に設けられた第一拡散部(第一拡散部材120の上側)と、第二照明部から出射する光の出射軸上に設けられた第二拡散部(第一拡散部材120の下側および第二拡散部材140)を有していてもよい。この場合、第一拡散部の拡散率と、第二拡散部の拡散率とが異なっている。これにより拡散率の異なる2種類の拡散部を通じて照明光をコード6に照射することが可能となる。ワーク2の表面素材や読み取り距離などに応じて、適した拡散率は異なることがある。よって、拡散率の異なる複数の拡散部を切り替えて照明することで、コード6に適した照明光を選択できるようになる。   As described with reference to FIG. 11, the first diffusing member 120 includes a first diffusing portion (upper side of the first diffusing member 120) provided on the emission axis of the light emitted from the first illuminating portion, and the second diffusing member 120. You may have the 2nd diffuser (the lower side of the 1st diffuser 120, and the 2nd diffuser 140) provided on the outgoing axis of the light radiate | emitted from an illumination part. In this case, the diffusivity of the first diffusion part is different from the diffusivity of the second diffusion part. As a result, it is possible to irradiate the cord 6 with the illumination light through two types of diffusion portions having different diffusion rates. Depending on the surface material of the workpiece 2, the reading distance, and the like, the appropriate diffusion rate may vary. Therefore, it becomes possible to select illumination light suitable for the code 6 by switching and illuminating a plurality of diffusion units having different diffusion rates.

図11や図14(A)ないし図14(D)などを用いて説明したように、第一拡散部の拡散率は第二拡散部の拡散率よりも小さい。これにより、第一拡散部を通じた照明光の減衰を少なくすることが可能となり、第二拡散部を通じた照明光はより拡散させることが可能となる。このように光量の切り替えと照明光の指向性の切り替えが容易となる。   As described with reference to FIGS. 11 and 14A to 14D, the diffusivity of the first diffusing portion is smaller than the diffusivity of the second diffusing portion. As a result, the attenuation of the illumination light through the first diffusion unit can be reduced, and the illumination light through the second diffusion unit can be further diffused. In this way, it becomes easy to switch the light quantity and the directivity of the illumination light.

第一拡散部は一枚の拡散板(第一拡散部材120)を有し、第二拡散部は二枚の拡散板(第一拡散部材120と第二拡散部材140)を有していてもよい。図11が示すように、第一拡散部を構成する一枚の拡散板(第一拡散部材120)と第二拡散部を構成する一枚の拡散板(第一拡散部材120)とは共通の拡散板であってもよい。これにより部品点数を削減することが可能となり、製造コストを低減することが可能となる。第一拡散部が有する一枚の拡散板(第一拡散部材120)の厚みと、第二拡散部が有する二枚の拡散板(第一拡散部材120と第二拡散部材140)それぞれの厚みとは同一であってもよい。つまり、複数の拡散板を同一の素材をカットして作成することが可能となり、製造コストを低減することが可能となる。第二拡散部が有する二枚の拡散板は平行に配置されていてもよい。   The first diffusion portion has one diffusion plate (first diffusion member 120), and the second diffusion portion has two diffusion plates (first diffusion member 120 and second diffusion member 140). Good. As shown in FIG. 11, one diffusion plate (first diffusion member 120) constituting the first diffusion portion and one diffusion plate (first diffusion member 120) constituting the second diffusion portion are common. A diffusion plate may be used. As a result, the number of parts can be reduced, and the manufacturing cost can be reduced. The thickness of one diffusion plate (first diffusion member 120) that the first diffusion portion has, and the thickness of each of the two diffusion plates (first diffusion member 120 and second diffusion member 140) that the second diffusion portion has May be the same. That is, a plurality of diffusion plates can be produced by cutting the same material, and the manufacturing cost can be reduced. The two diffusion plates included in the second diffusion unit may be arranged in parallel.

第一拡散部材120は、第一拡散部を形成する部分(第一拡散板)と、第二拡散部の一部を形成する部分(第三拡散板)とに分割されてもよい。この場合、第二拡散部は、第二拡散部材140により形成される第二拡散板と第三拡散板とによって構成されよう。第一拡散板と第三拡散板とを採用することで、第一拡散板の拡散度と第三拡散板の拡散度とを個別に設定できるようになるため、第一照明部と第2の照明部の拡散度の調整の自由度がさらに増すことになろう。   The first diffusion member 120 may be divided into a portion (first diffusion plate) that forms the first diffusion portion and a portion (third diffusion plate) that forms a part of the second diffusion portion. In this case, the second diffusion part will be constituted by the second diffusion plate and the third diffusion plate formed by the second diffusion member 140. By adopting the first diffusion plate and the third diffusion plate, the diffusion degree of the first diffusion plate and the diffusion degree of the third diffusion plate can be individually set. The degree of freedom in adjusting the diffusivity of the illumination section will be further increased.

第一照明部から出射し、第一拡散部で拡散された光の指向性と、第二照明部から出射し、第二拡散部で拡散された光の指向性とが異なっていてもよい。ワーク2やコード6の種類に応じて、適切な指向性が異なることがある。本実施形態によれば、第一照明部と第二照明部とでは拡散度が異なっているため、第一照明部と第二照明部とのどちらを点灯させるかを選択することで、容易に、照明光の指向性を変化させることが可能となる。   The directivity of light emitted from the first illumination unit and diffused by the first diffusion unit may be different from the directivity of light emitted from the second illumination unit and diffused by the second diffusion unit. Depending on the type of the work 2 or the code 6, the appropriate directivity may be different. According to this embodiment, since the diffusivity is different between the first illumination unit and the second illumination unit, it is easy to select which one of the first illumination unit and the second illumination unit is lit. The directivity of illumination light can be changed.

図14(A)ないし図14(D)や図15を用いて説明したように、撮像素子31は、第一照明モードにおいてコードの明視野画像を取得し、第二照明モードにおいてコードの暗視野画像を取得する。これにより、容易に暗視野と明視野とを切り替えることが可能となる。   As described with reference to FIGS. 14A to 14D and FIG. 15, the image sensor 31 acquires a bright field image of the code in the first illumination mode and the dark field of the code in the second illumination mode. Get an image. As a result, it is possible to easily switch between the dark field and the bright field.

図15を用いて説明したように、チューニング部65などは、第一照明モードによりワーク2を試験的に照明して取得したデコード結果と第二照明モードによりワークを試験的に照明して取得したデコード結果とのうちより優れたデコード結果を取得するために使用された照明モードを決定する決定手段として機能してもよい。照明部52は、チューニング部65などにより決定された照明モードでワーク2を照明する。これにより、より適した照明モードでワーク2およびコード6が照明されるようになり、マッチングレベルが向上しよう。   As described with reference to FIG. 15, the tuning unit 65 or the like acquires the decoding result obtained by experimentally illuminating the work 2 in the first illumination mode and the work illuminating the work in the second illumination mode. You may function as a determination means which determines the illumination mode used in order to acquire a better decoding result among decoding results. The illumination unit 52 illuminates the workpiece 2 in the illumination mode determined by the tuning unit 65 or the like. As a result, the workpiece 2 and the cord 6 are illuminated in a more suitable illumination mode, and the matching level will be improved.

図11などを用いて説明したように、第一領域(窓部11)の法線方向に対して、第一拡散部材120における第一照明部からの光の出射面の法線方向と、第一拡散部材120における第二照明部からの光の出射面の法線方向とが異なっている。とりわけ、第一照明部からの光の出射軸と、第一拡散部材120における光の出射面とは垂直ではなく、第二照明部からの光の出射軸と、第一拡散部材120における光の出射面とは垂直ではなくてもよい。つまり、アタッチメントフード8の前面は、窓部11とは平行とはならない。これは、ワーク2からの鏡面反射光を撮像素子31に入射させないようにするために適しているだろう。なお、窓部11の法線方向とアタッチメントフード8の前面の法線方向がなす角度と窓部11とアタッチメントフード8の前面がなす角度は一致している。上述したようにリーダ3のスキュー角θには推奨角度が存在する。よって、これらの角度を推奨角度となるように設計することで、リーダ3のスキュー角θを容易に推奨角度となるように設置できるようになる。図12(C)を用いて説明したように、アタッチメントフード8の前面をワーク2の表面に対して平行に設置すれば、おのずとリーダ3のスキュー角θが推奨角度に一致するからである。   As described with reference to FIG. 11 and the like, the normal direction of the light exit surface from the first illumination unit in the first diffusion member 120 and the normal direction of the first region (window portion 11), The normal direction of the light emission surface from the second illuminating unit in one diffusing member 120 is different. In particular, the light emission axis from the first illumination part and the light emission surface of the first diffusion member 120 are not perpendicular to each other, but the light emission axis from the second illumination part and the light emission from the first diffusion member 120 It may not be perpendicular to the exit surface. That is, the front surface of the attachment hood 8 is not parallel to the window portion 11. This would be suitable for preventing the specular reflected light from the work 2 from entering the image sensor 31. The angle formed by the normal direction of the window portion 11 and the normal direction of the front surface of the attachment hood 8 is the same as the angle formed by the window portion 11 and the front surface of the attachment hood 8. As described above, there is a recommended angle for the skew angle θ of the reader 3. Therefore, by designing these angles to be the recommended angles, the skew angle θ of the reader 3 can be easily installed to be the recommended angle. This is because, as described with reference to FIG. 12C, if the front surface of the attachment hood 8 is installed in parallel to the surface of the workpiece 2, the skew angle θ of the reader 3 naturally matches the recommended angle.

第一照明部は、筐体9の第一面の長手方向の端部(つまり、頂面94)の近くに設けられており、第二照明部は、筐体9の第一面の長手方向の端部から離れて設けられていてもよい。第一照明部と第二照明部とを切り替えることで、ワーク2に対する照明光の入射角を切り替えることが可能となる。   The first illuminating unit is provided near the longitudinal end of the first surface of the housing 9 (that is, the top surface 94), and the second illuminating unit is the longitudinal direction of the first surface of the housing 9. It may be provided away from the end of the. By switching between the first illumination unit and the second illumination unit, the incident angle of the illumination light with respect to the workpiece 2 can be switched.

第一領域(窓部11)における第一照明部からの光の出射面と、第二照明部からの光の出射面とは同一の面上にあってもよい。図7(A)や図7(B)が示すように、窓部11が第一照明部からの光の出射面と第二照明部からの光の出射面を形成する場合、両者の出射面は同一の面上にある。同様に、第一拡散部材120における第一照明部からの光の出射面と、第二照明部からの光の出射面とは同一の面上にあってもよい。   The light emission surface from the first illumination unit and the light emission surface from the second illumination unit in the first region (window portion 11) may be on the same surface. As shown in FIG. 7A and FIG. 7B, when the window portion 11 forms the light emission surface from the first illumination portion and the light emission surface from the second illumination portion, both emission surfaces are formed. Are on the same plane. Similarly, the light emission surface from the first illumination unit and the light emission surface from the second illumination unit in the first diffusion member 120 may be on the same surface.

図9、図10(B)、図12(A)、図12(B)などに示したように、固定式のリーダ3は、ワーク2のうちコード6を設けられた表面の法線方向に対して、撮像素子31の撮像面の法線方向が異なるように設置されてもよい。このようにスキュー角θをある程度の値にすることで、鏡面反射光の入射が減り、適切な光量でコード6を読み取れるようになる。   As shown in FIG. 9, FIG. 10 (B), FIG. 12 (A), FIG. 12 (B), etc., the fixed reader 3 is in the normal direction of the surface of the workpiece 2 on which the cord 6 is provided. On the other hand, it may be installed so that the normal direction of the imaging surface of the image sensor 31 is different. By setting the skew angle θ to a certain value in this way, the incidence of specular reflection light is reduced, and the code 6 can be read with an appropriate amount of light.

ワーク2を搬送する搬送部材(ライン1)に対するスキュー角θが8度以上かつ14度以内となるように、筐体9が固定されてもよい。このようにスキュー角θを推奨角度に調節することで、鏡面反射光の入射が減り、コード6のマッチングレベルが良好になろう。   The housing 9 may be fixed so that the skew angle θ with respect to the conveying member (line 1) that conveys the workpiece 2 is not less than 8 degrees and not more than 14 degrees. Thus, by adjusting the skew angle θ to the recommended angle, the incidence of specular reflection light is reduced, and the matching level of the cord 6 will be improved.

図11を用いて説明したように、アタッチメントフード8は、第一アタッチメントケース100と、第一拡散部材120を支持する第二アタッチメントケース110とを有していてもよい。これにより、第一拡散部材120を固定することが可能となる。第二アタッチメントケース110は、アタッチメントフード8の内部において第一照明部からの光が通過する空間と第二照明部からの光が通過する空間とを遮蔽する遮蔽壁を有していてもよい。これにより、第一照明部からの光と第二照明部からの光を独立させることが可能となる。第一照明部と第二照明部との切り替え効果をより明確にすることが可能となる。なお、第二照明部の拡散度を大きくするために、発光素子28の照明光が通過する空間と発光素子29の照明光が通過する空間との間には遮光壁が省略されていてもよい。   As described with reference to FIG. 11, the attachment hood 8 may include the first attachment case 100 and the second attachment case 110 that supports the first diffusion member 120. Thereby, the first diffusion member 120 can be fixed. The second attachment case 110 may have a shielding wall that shields a space through which light from the first illumination unit passes and a space through which light from the second illumination unit passes inside the attachment hood 8. Thereby, it becomes possible to make the light from a 1st illumination part and the light from a 2nd illumination part independent. It becomes possible to clarify the switching effect between the first illumination unit and the second illumination unit. In order to increase the diffusivity of the second illumination unit, a light shielding wall may be omitted between the space through which the illumination light of the light emitting element 28 passes and the space through which the illumination light of the light emitting element 29 passes. .

第一アタッチメントケース100と第二アタッチメントケース110とのうちの少なくとも一方は、アタッチメントフード8の内部において第一照明部からの光と第二照明部からの光とが撮像素子31の光軸上に漏れ出さないようにするための筒状の遮光壁(筒状の遮光壁105など)を有していてもよい。アタッチメントフード8の内部で反射した光が撮像素子31に入射すると、コード6の画像のコントラストが低下しうる。よって、遮光壁によってこれを低減ないしは防止することで、コントラストを向上させ、マッチングレベルを向上させることが可能となろう。   In at least one of the first attachment case 100 and the second attachment case 110, the light from the first illumination unit and the light from the second illumination unit are on the optical axis of the image sensor 31 inside the attachment hood 8. A cylindrical light shielding wall (such as a cylindrical light shielding wall 105) for preventing leakage may be provided. When the light reflected inside the attachment hood 8 is incident on the image sensor 31, the contrast of the image of the cord 6 can be lowered. Therefore, by reducing or preventing this by the light shielding wall, it will be possible to improve the contrast and improve the matching level.

図13を用いて説明したように、アタッチメントフード8の側面には、ワーク2に対する筐体9の設置角度が図示されていてもよい。これによりユーザは取扱説明書を参照しなくても容易にリーダ3のスキュー角を調整することが可能となろう。   As described with reference to FIG. 13, the installation angle of the housing 9 with respect to the workpiece 2 may be illustrated on the side surface of the attachment hood 8. As a result, the user can easily adjust the skew angle of the reader 3 without referring to the instruction manual.

本実施形態によれば固定式の光学的情報読取装置を用いた光学的読取方法も提供される。ユーザ(設置担当者であってもよく、必ずしもリーダ3の使用者でなくてもよい)は、アタッチメントフード8を筐体9に取り付ける。さらに、ユーザは、第一拡散部材120で拡散された光がワークの表面で反射して撮像素子31で受光されるように、筐体9を固定する。ユーザは、撮像素子31にコード6を撮像させる。ユーザは、撮像素子31により撮像されたコードをデコード部53によりデコードさせる。これにより、コード6を精度よく読み取れるようになろう。   According to the present embodiment, an optical reading method using a fixed optical information reading device is also provided. A user (which may be a person in charge of installation or not necessarily a user of the reader 3) attaches the attachment hood 8 to the housing 9. Further, the user fixes the housing 9 so that the light diffused by the first diffusing member 120 is reflected by the surface of the workpiece and received by the image sensor 31. The user causes the image sensor 31 to image the code 6. The user causes the decoding unit 53 to decode the code imaged by the image sensor 31. As a result, the code 6 can be read with high accuracy.

発光素子26〜29は赤色の光を発光するLEDであってもよい。赤色LEDは青色LEDや白色LEDと比較して安価であるため、リーダ3の製造原価を低減できるであろう。   The light emitting elements 26 to 29 may be LEDs that emit red light. Since the red LED is cheaper than the blue LED and the white LED, the manufacturing cost of the reader 3 will be reduced.

図11などが示すように、リーダ3の重心位置は底面側よりも頂面側に偏った位置に存在する。とりわけ、アタッチメントフード8が取り付けられると、アタッチメントフード8の重量によって、リーダ3の重心位置はさらに頂面側に移動する。このような重心配置にすることで、リーダ3の頂面側を底面側よりも下げてリーダ3を固定することが容易になろう。   As shown in FIG. 11 and the like, the position of the center of gravity of the reader 3 exists at a position biased to the top surface side rather than the bottom surface side. In particular, when the attachment hood 8 is attached, the position of the center of gravity of the reader 3 further moves to the top surface side due to the weight of the attachment hood 8. Such a center of gravity arrangement makes it easy to fix the reader 3 by lowering the top surface side of the reader 3 from the bottom surface side.

1…ライン、2…ワーク、3…リーダ、4…コンピュータ、5…PLC、6…コード、8…拡散反射部材   DESCRIPTION OF SYMBOLS 1 ... Line, 2 ... Work, 3 ... Reader, 4 ... Computer, 5 ... PLC, 6 ... Code, 8 ... Diffuse reflection member

Claims (22)

筐体と、
前記筐体の第一面側にある光出射領域から光を出射する第一照明部および第二照明部を含む照明手段と、
前記第一照明部の光の出射方向と前記第二照明部の光の出射方向と平行な光軸を有し、前記光出射領域とは異なる前記筐体の前記第一面側にある光入射領域から入射する光であって、ワークからの反射光を受光することで、前記ワークに設けられたコードを撮像する撮像手段と、
前記撮像手段により撮像された前記コードをデコードするデコード手段と、
前記筐体から着脱可能であり、前記光出射領域および前記光入射領域を包囲するアタッチメントフードと、
を有し、
前記アタッチメントフードは、
前記撮像手段の光軸上に配置され、前記コードの像を前記撮像手段に結像する結像レンズと、
前記第一照明部から出射する光の出射軸上と前記第二照明部から出射する光の出射軸上とに設けられ、前記第一照明部から出射する光と前記第二照明部から出射する光を拡散する拡散手段と
を有し、
前記第一照明部は、前記筐体の前記第一面の長手方向の端部の近くに設けられており、
前記第二照明部は、前記筐体の前記第一面の長手方向の端部から離れて設けられていることを特徴とすることを特徴とする固定式の光学的情報読取装置。
A housing,
An illuminating means including a first illuminating unit and a second illuminating unit that emit light from the light emitting region on the first surface side of the housing;
Light incident on the first surface side of the housing having an optical axis parallel to the light emission direction of the first illumination unit and the light emission direction of the second illumination unit, which is different from the light emission region Imaging means for imaging a code provided on the workpiece by receiving light reflected from the workpiece, which is light incident from a region;
Decoding means for decoding the code imaged by the imaging means;
An attachment hood that is detachable from the housing and surrounds the light emitting region and the light incident region;
Have
The attachment hood is
An imaging lens disposed on the optical axis of the imaging means and forming an image of the code on the imaging means;
Provided on the emission axis of light emitted from the first illumination unit and on the emission axis of light emitted from the second illumination unit, and emitted from the first illumination unit and the second illumination unit have a diffusion means for diffusing light,
The first illumination unit is provided near an end in a longitudinal direction of the first surface of the housing,
The fixed optical information reader according to claim 1, wherein the second illumination unit is provided apart from an end of the first surface of the housing in the longitudinal direction .
筐体と、
前記筐体の第一面側にある光出射領域から光を出射する第一照明部および第二照明部を含む照明手段と、
前記第一照明部の光の出射方向と前記第二照明部の光の出射方向と平行な光軸を有し、前記光出射領域とは異なる前記筐体の前記第一面側にある光入射領域から入射する光であって、ワークからの反射光を受光することで、前記ワークに設けられたコードを撮像する撮像手段と、
前記撮像手段により撮像された前記コードをデコードするデコード手段と、
前記筐体から着脱可能であり、前記光出射領域および前記光入射領域を包囲するアタッチメントフードと、
を有し、
前記アタッチメントフードは、
前記撮像手段の光軸上に配置され、前記コードの像を前記撮像手段に結像する結像レンズと、
前記第一照明部から出射する光の出射軸上と前記第二照明部から出射する光の出射軸上とに設けられ、前記第一照明部から出射する光と前記第二照明部から出射する光を拡散する拡散手段と
を有し
前記拡散手段は、
前記第一照明部から出射する光の出射軸上に設けられた第一拡散部と、
前記第二照明部から出射する光の出射軸上に設けられた第二拡散部と
を有し、
前記第一拡散部の拡散率と、前記第二拡散部の拡散率とが異なっていることを特徴とする固定式の光学的情報読取装置。
A housing,
An illuminating means including a first illuminating unit and a second illuminating unit that emit light from the light emitting region on the first surface side of the housing;
Light incident on the first surface side of the housing having an optical axis parallel to the light emission direction of the first illumination unit and the light emission direction of the second illumination unit, which is different from the light emission region Imaging means for imaging a code provided on the workpiece by receiving light reflected from the workpiece, which is light incident from a region;
Decoding means for decoding the code imaged by the imaging means;
An attachment hood that is detachable from the housing and surrounds the light emitting region and the light incident region;
Have
The attachment hood is
An imaging lens disposed on the optical axis of the imaging means and forming an image of the code on the imaging means;
Provided on the emission axis of light emitted from the first illumination unit and on the emission axis of light emitted from the second illumination unit, and emitted from the first illumination unit and the second illumination unit Diffusing means for diffusing light ,
The diffusion means is
A first diffusion part provided on an emission axis of light emitted from the first illumination part;
A second diffusing unit provided on an emission axis of light emitted from the second illumination unit;
Have
A fixed optical information reading apparatus, wherein a diffusion rate of the first diffusion unit is different from a diffusion rate of the second diffusion unit.
筐体と、
前記筐体の第一面側にある光出射領域から光を出射する第一照明部および第二照明部を含む照明手段と、
前記第一照明部の光の出射方向と前記第二照明部の光の出射方向と平行な光軸を有し、前記光出射領域とは異なる前記筐体の前記第一面側にある光入射領域から入射する光であって、ワークからの反射光を受光することで、前記ワークに設けられたコードを撮像する撮像手段と、
前記撮像手段により撮像された前記コードをデコードするデコード手段と、
前記筐体から着脱可能であり、前記光出射領域および前記光入射領域を包囲するアタッチメントフードと、
を有し、
前記アタッチメントフードは、
前記撮像手段の光軸上に配置され、前記コードの像を前記撮像手段に結像する結像レンズと、
前記第一照明部から出射する光の出射軸上と前記第二照明部から出射する光の出射軸上とに設けられ、前記第一照明部から出射する光と前記第二照明部から出射する光を拡散する拡散手段と
を有し
前記第一照明部からの光の出射軸と前記拡散手段における光の出射面と、または
前記第二照明部からの光の出射軸と前記拡散手段における光の出射面との少なくとも一方は垂直ではないことを特徴とする固定式の光学的情報読取装置。
A housing,
An illuminating means including a first illuminating unit and a second illuminating unit that emit light from the light emitting region on the first surface side of the housing;
Light incident on the first surface side of the housing having an optical axis parallel to the light emission direction of the first illumination unit and the light emission direction of the second illumination unit, which is different from the light emission region Imaging means for imaging a code provided on the workpiece by receiving light reflected from the workpiece, which is light incident from a region;
Decoding means for decoding the code imaged by the imaging means;
An attachment hood that is detachable from the housing and surrounds the light emitting region and the light incident region;
Have
The attachment hood is
An imaging lens disposed on the optical axis of the imaging means and forming an image of the code on the imaging means;
Provided on the emission axis of light emitted from the first illumination unit and on the emission axis of light emitted from the second illumination unit, and emitted from the first illumination unit and the second illumination unit Diffusing means for diffusing light ,
An emission axis of light from the first illumination unit and an emission surface of light in the diffusing means, or
At least one of the light emission axis from the second illuminating unit and the light emission surface of the diffusing means is not vertical, and is a fixed optical information reader.
筐体と、
前記筐体の第一面側にある光出射領域から光を出射する第一照明部および第二照明部を含む照明手段と、
前記第一照明部の光の出射方向と前記第二照明部の光の出射方向と平行な光軸を有し、前記光出射領域とは異なる前記筐体の前記第一面側にある光入射領域から入射する光であって、ワークからの反射光を受光することで、前記ワークに設けられたコードを撮像する撮像手段と、
前記撮像手段により撮像された前記コードをデコードするデコード手段と、
前記筐体から着脱可能であり、前記光出射領域および前記光入射領域を包囲するアタッチメントフードと、
を有し、
前記アタッチメントフードは、
前記撮像手段の光軸上に配置され、前記コードの像を前記撮像手段に結像する結像レンズと、
前記第一照明部から出射する光の出射軸上と前記第二照明部から出射する光の出射軸上とに設けられ、前記第一照明部から出射する光と前記第二照明部から出射する光を拡散する拡散手段と
を有し
前記アタッチメントフードは、第一アタッチメントケースと、前記拡散手段を支持する第二アタッチメントケースとを有し、
前記第二アタッチメントケースは、前記アタッチメントフードの内部において前記第一照明部からの光が通過する空間と前記第二照明部からの光が通過する空間とを遮蔽する遮蔽壁を有していることを特徴とする固定式の光学的情報読取装置。
A housing,
An illuminating means including a first illuminating unit and a second illuminating unit that emit light from the light emitting region on the first surface side of the housing;
Light incident on the first surface side of the housing having an optical axis parallel to the light emission direction of the first illumination unit and the light emission direction of the second illumination unit, which is different from the light emission region Imaging means for imaging a code provided on the workpiece by receiving light reflected from the workpiece, which is light incident from a region;
Decoding means for decoding the code imaged by the imaging means;
An attachment hood that is detachable from the housing and surrounds the light emitting region and the light incident region;
Have
The attachment hood is
An imaging lens disposed on the optical axis of the imaging means and forming an image of the code on the imaging means;
Provided on the emission axis of light emitted from the first illumination unit and on the emission axis of light emitted from the second illumination unit, and emitted from the first illumination unit and the second illumination unit Diffusing means for diffusing light ,
The attachment hood has a first attachment case and a second attachment case that supports the diffusion means,
The second attachment case has a shielding wall that shields a space through which light from the first illumination unit passes and a space through which light from the second illumination unit passes inside the attachment hood. A fixed optical information reader characterized by the above.
前記照明手段は、
前記第一照明部を点灯し、かつ、前記第二照明部を点灯しない第一照明モードと、
前記第一照明部を消灯し、かつ、前記第二照明部を点灯する第二照明モードと、
を有していることを特徴とする請求項1ないし4のいずれか一項に記載の固定式の光学的情報読取装置。
The illumination means includes
A first illumination mode in which the first illumination unit is lit and the second illumination unit is not lit;
A second illumination mode for turning off the first illumination unit and turning on the second illumination unit;
Claims 1, characterized in that it has a to 4 stationary optical information reading apparatus according to any one of.
前記拡散手段は、
前記第一照明部から出射する光の出射軸上に設けられた第一拡散部と、
前記第二照明部から出射する光の出射軸上に設けられた第二拡散部と
を有し、
前記第一拡散部の拡散率と、前記第二拡散部の拡散率とが異なっていることを特徴とする請求項1、3および4のいずれか一項に記載の固定式の光学的情報読取装置。
The diffusion means is
A first diffusion part provided on an emission axis of light emitted from the first illumination part;
A second diffusing portion provided on an emission axis of light emitted from the second illumination portion,
And spreading factor of the first spreading section, reading fixed optical information according to any one of claims 1, 3 and 4, characterized in that different diffusion rate of the second diffusion part apparatus.
前記第一拡散部の拡散率は前記第二拡散部の拡散率よりも小さいことを特徴とする請求項2または6記載の固定式の光学的情報読取装置。 The fixed optical information reader according to claim 2 or 6, wherein a diffusion rate of the first diffusion unit is smaller than a diffusion rate of the second diffusion unit. 前記第一拡散部は一枚の拡散板を有し、
前記第二拡散部は二枚の拡散板を有していることを特徴とする請求項2、6、7のいずれか一項に記載の固定式の光学的情報読取装置。
The first diffusion part has one diffusion plate,
It said second diffusion portion is fixed an optical information reading apparatus according to any one of claims 2, 6, 7, characterized in that it has two diffusion plates.
前記第一拡散部を構成する一枚の拡散板と前記第二拡散部を構成する一枚の拡散板とは共通の拡散板であることを特徴とする請求項に記載の固定式の光学的情報読取装置。 9. The fixed optical system according to claim 8 , wherein one diffusion plate constituting the first diffusion portion and one diffusion plate constituting the second diffusion portion are a common diffusion plate. Information reader. 前記第一拡散部が有する一枚の拡散板の厚みと、前記第二拡散部が有する二枚の拡散板それぞれの厚みとは同一であることを特徴とする請求項または記載の固定式の光学的情報読取装置。 The thickness of one of the diffusion plate, wherein said first diffusion portion has, the second is a two diffusion plates each having a thickness of the diffusion section has to, wherein the at least claim 8 or 9, wherein the fixed Optical information reader. 前記第二拡散部が有する二枚の拡散板は平行に配置されていることを特徴とする請求項ないし10のいずれか1項に記載の固定式の光学的情報読取装置。 Fixed optical information reading apparatus according to any one of claims 8 to 10 two of the diffusion plate where the second diffusion part has is characterized by being arranged in parallel. 前記第一照明部から出射し、前記第一拡散部で拡散された光の指向性と、前記第二照明部から出射し、前記第二拡散部で拡散された光の指向性とが異なっていることを特徴とする請求項2、6ないし11のいずれか一項に記載の固定式の光学的情報読取装置。 The directivity of light emitted from the first illumination unit and diffused by the first diffusion unit is different from the directivity of light emitted from the second illumination unit and diffused by the second diffusion unit. fixed optical information reading apparatus according to any one of claims 2, 6 to 11, characterized in that there. 前記撮像手段は、前記第一照明モードにおいて前記コードの明視野画像を取得し、前記第二照明モードにおいて前記コードの暗視野画像を取得することを特徴とする請求項に記載の固定式の光学的情報読取装置。 6. The fixed type according to claim 5 , wherein the imaging unit acquires a bright field image of the code in the first illumination mode and acquires a dark field image of the code in the second illumination mode. Optical information reader. 前記第一照明モードにより前記ワークを試験的に照明して取得したデコード結果と前記第二照明モードにより前記ワークを試験的に照明して取得したデコード結果とのうちより優れたデコード結果を取得するために使用された照明モードを決定する決定手段をさらに有し、
前記照明手段は、前記決定手段により決定された照明モードでワークを照明することを特徴とする請求項5または13に記載の固定式の光学的情報読取装置。
A better decoding result is obtained from a decoding result obtained by illuminating the workpiece in a test in the first illumination mode and a decoding result obtained by illuminating the workpiece in a test in the second illumination mode. Further comprising a determining means for determining the illumination mode used for
The fixed optical information reading apparatus according to claim 5 , wherein the illuminating unit illuminates the workpiece in an illumination mode determined by the determining unit.
前記光出射領域の法線方向に対して、前記拡散手段における前記第一照明部からの光の出射面の法線方向と、前記拡散手段における前記第二照明部からの光の出射面の法線方向とが異なっている請求項1ないし14のいずれか一項に記載の固定式の光学的情報読取装置。 The normal direction of the light exit surface from the first illuminating unit in the diffusing unit and the method of the light exit surface from the second illuminating unit in the diffusing unit with respect to the normal direction of the light emitting region The fixed optical information reading device according to any one of claims 1 to 14, wherein a linear direction is different. 前記第一照明部からの光の出射軸と、前記拡散手段における光の出射面とは垂直ではなく、
前記第二照明部からの光の出射軸と、前記拡散手段における光の出射面とは垂直ではないことを特徴とする請求項1ないし15のいずれか一項に記載の固定式の光学的情報読取装置。
The light emission axis from the first illumination unit and the light emission surface of the diffusion means are not perpendicular,
Wherein the emission axis of the light from the second illumination unit, a fixed optical information according to any one of claims 1 to 15, characterized in that it is not perpendicular to the exit surface of the light in the diffuser Reader.
前記光出射領域における前記第一照明部からの光の出射面と、前記第二照明部からの光の出射面とは同一の面上にあり、
前記拡散手段における前記第一照明部からの光の出射面と、前記第二照明部からの光の出射面とは同一の面上にあることを特徴とする請求項1ないし16のいずれか項に記載の固定式の光学的情報読取装置。
The light emission surface from the first illumination unit in the light emission region and the light emission surface from the second illumination unit are on the same surface,
An exit surface of the light from the first illuminating portion of the diffusion means, any one of claims 1 to 16, characterized in that on the same plane and the exit surface of the light from the second illumination unit The fixed optical information reading device according to Item.
前記第一照明部からの光の出射面と前記第二照明部からの光の出射面とを形成する窓部をさらに有し、前記アタッチメントフードの前面は前記拡散手段における前記第一照明部からの光の出射面と、前記第二照明部からの光の出射面とを形成しており、前記窓部と前記アタッチメントフードの前面とがなす角度は前記光学的情報読取装置のスキュー角の推奨角度に一致していることを特徴とする請求項17に記載の固定式の光学的情報読取装置。 Further comprising a window portion that forms a light emission surface from the first illumination portion and a light emission surface from the second illumination portion, and the front surface of the attachment hood is from the first illumination portion in the diffusing means. A light emitting surface of the second illumination unit and a light emitting surface of the second illuminating unit, and an angle formed by the window unit and the front surface of the attachment hood is a recommended skew angle of the optical information reading device. The fixed optical information reading device according to claim 17 , wherein the optical information reading device matches the angle. 前記固定式の光学的情報読取装置は、前記ワークのうち前記コードを設けられた表面の法線方向に対して、前記撮像手段の撮像面の法線方向が異なるように設置されることを特徴とする請求項1ないし18のいずれか項に記載の固定式の光学的情報読取装置。 The fixed optical information reading device is installed such that a normal direction of an imaging surface of the imaging unit is different from a normal direction of a surface of the workpiece on which the code is provided. A fixed optical information reading device according to any one of claims 1 to 18 . 前記第一アタッチメントケースと前記第二アタッチメントケースとのうちの少なくとも一方は、前記アタッチメントフードの内部において前記第一照明部からの光と前記第二照明部からの光とが前記撮像手段の光軸上に漏れ出さないようにするための筒状の遮光壁を有していることを特徴とする請求項に記載の固定式の光学的情報読取装置。 At least one of the first attachment case and the second attachment case is configured such that the light from the first illumination unit and the light from the second illumination unit are optical axes of the imaging unit inside the attachment hood. 5. The fixed optical information reader according to claim 4 , further comprising a cylindrical light shielding wall for preventing leakage from above. 前記アタッチメントフードの側面には、前記ワークに対する前記筐体の設置角度が図示されている請求項1ないし20のいずれか項に記載の固定式の光学的情報読取装置。 The fixed optical information reading device according to any one of claims 1 to 20 , wherein an installation angle of the housing with respect to the workpiece is illustrated on a side surface of the attachment hood. 筐体と、
前記筐体の第一面側にある光出射領域から光を出射する第一照明部および第二照明部を含む照明手段と、
前記第一照明部の光の出射方向と前記第二照明部の光の出射方向と平行な光軸を有し、前記光出射領域とは異なる前記筐体の前記第一面側にある光入射領域から入射する光であって、ワークからの反射光を受光することで、前記ワークに設けられたコードを撮像する撮像手段と、
前記撮像手段により撮像された前記コードをデコードするデコード手段と、
を有する固定式の光学的情報読取装置を用いた光学的読取方法であって、
前記筐体から着脱可能であり、前記光出射領域および前記光入射領域を包囲するアタッチメントフードであって、前記撮像手段の光軸上に配置され、前記コードの像を前記撮像手段に結像する結像レンズと、前記第一照明部から出射する光の出射軸上と前記第二照明部から出射する光の出射軸上とに設けられ、前記第一照明部から出射する光と前記第二照明部から出射する光を拡散する拡散手段とを有し、前記第一照明部からの光の出射軸と前記拡散手段における光の出射面、または前記第二照明部からの光の出射軸と前記拡散手段における光の出射面の少なくとも一方は垂直ではない当該アタッチメントフードを、前記筐体に取り付ける工程と、
前記拡散手段で拡散された光が前記ワークの表面で反射して前記撮像手段で受光され、かつ、前記撮像手段の光軸とワーク表面の法線とが平行とならないように、前記筐体を固定する工程と、
前記撮像手段により前記コードを撮像させる工程と、
前記撮像手段により撮像された前記コードを前記デコード手段によりデコードする工程と
を有することを特徴とする光学的読取方法。
A housing,
An illuminating means including a first illuminating unit and a second illuminating unit that emit light from the light emitting region on the first surface side of the housing;
Light incident on the first surface side of the housing having an optical axis parallel to the light emission direction of the first illumination unit and the light emission direction of the second illumination unit, which is different from the light emission region Imaging means for imaging a code provided on the workpiece by receiving light reflected from the workpiece, which is light incident from a region;
Decoding means for decoding the code imaged by the imaging means;
An optical reading method using a fixed optical information reading device having:
An attachment hood that is detachable from the housing and surrounds the light emitting area and the light incident area, is disposed on the optical axis of the imaging means, and forms an image of the code on the imaging means The imaging lens is provided on an emission axis of light emitted from the first illumination unit and on an emission axis of light emitted from the second illumination unit, and the light emitted from the first illumination unit and the second have a diffusion means for diffusing the light emitted from the illumination unit, the light emission axis from the exit surface, or the second illumination portion of the light at the diffusing means and the exit axis of the light from the first illumination unit Attaching the attachment hood to the housing, wherein at least one of the light exit surfaces of the diffusing means is not vertical ;
The casing is arranged so that the light diffused by the diffusing means is reflected by the surface of the workpiece and received by the imaging means , and the optical axis of the imaging means and the normal of the workpiece surface are not parallel. Fixing, and
Imaging the code by the imaging means;
And a step of decoding by the decoding means the code imaged by the imaging means.
JP2015100489A 2015-05-15 2015-05-15 Fixed optical information reader and optical information reading method using the same Active JP6486767B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015100489A JP6486767B2 (en) 2015-05-15 2015-05-15 Fixed optical information reader and optical information reading method using the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015100489A JP6486767B2 (en) 2015-05-15 2015-05-15 Fixed optical information reader and optical information reading method using the same

Publications (2)

Publication Number Publication Date
JP2016218587A JP2016218587A (en) 2016-12-22
JP6486767B2 true JP6486767B2 (en) 2019-03-20

Family

ID=57578477

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015100489A Active JP6486767B2 (en) 2015-05-15 2015-05-15 Fixed optical information reader and optical information reading method using the same

Country Status (1)

Country Link
JP (1) JP6486767B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7378170B2 (en) 2022-03-31 2023-11-13 有限会社東奥電気 Medical equipment two-dimensional code reader

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10334176A (en) * 1997-05-28 1998-12-18 Tec Corp Symbol reader
JP4306741B2 (en) * 2006-07-20 2009-08-05 株式会社デンソーウェーブ Optical information reader
JP5045276B2 (en) * 2007-07-05 2012-10-10 株式会社デンソーウェーブ Optical information reader

Also Published As

Publication number Publication date
JP2016218587A (en) 2016-12-22

Similar Documents

Publication Publication Date Title
US10747976B2 (en) Optical information reading device
US8584954B2 (en) Scanner
US9886611B2 (en) Stationary-type information code reading apparatus
JP2018136860A (en) Optical information reader
JP2009075784A (en) Code symbol image pickup device and code symbol read device
JP4424990B2 (en) Camera placement and confirmation feedback system
JP6486767B2 (en) Fixed optical information reader and optical information reading method using the same
JP5395104B2 (en) Scanner
JP2008530684A (en) Stamp type barcode reader
JP2019071018A (en) Optical information reader and optical information reading method
JP6360875B2 (en) Code reader
JP6266746B2 (en) Optical information reader
JP2016218588A (en) Fixed-type optical information reading device, and optical information reading method using the same
US11237459B2 (en) Camera comprising a light-refracting apparatus for dispersing light
JP5968963B2 (en) Optical information reader
JP6586201B2 (en) Optical information reader
JP2014241160A (en) Light irradiation device and program
EP3629224A1 (en) Mobile imaging barcode scanner
JP2019091209A (en) Optical information reader
JP2010231437A (en) Code symbol reading apparatus
JP5087520B2 (en) Image sensor module
JP2017203759A (en) Image processing sensor
JP2023079343A (en) Optical information reading apparatus
JP5605627B2 (en) Pattern or image reading apparatus, control method thereof, and program
JP2016201116A (en) Light irradiation device and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180228

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20181026

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20181024

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20181220

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190220

R150 Certificate of patent or registration of utility model

Ref document number: 6486767

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250